Use LT_LIB_M to determine if we need to link to the math library and link Pidgin to the X11 libraries
Gentoo ran into an issue with the gold linker without -lm. The original patch
and work came from Justin Lechner. https://bugs.gentoo.org/386079
Gentoo also ran into an issue with X11_LIBS not being added to pidgin. This
should already be implicit everywhere except for homebrew which patches X11
out of their build. Original patch/work came from and. https://bugs.gentoo.org/500762
Testing Done:
Installed and ran locally.
Reviewed at https://reviews.imfreedom.org/r/608/
--- a/COPYRIGHT Fri Apr 09 23:53:13 2021 -0500
+++ b/COPYRIGHT Sun Apr 11 03:27:46 2021 -0500
@@ -25,6 +25,7 @@
@@ -310,6 +311,7 @@
--- a/configure.ac Fri Apr 09 23:53:13 2021 -0500
+++ b/configure.ac Sun Apr 11 03:27:46 2021 -0500
@@ -91,6 +91,9 @@
dnl Checks for library functions.
--- a/libpurple/Makefile.am Fri Apr 09 23:53:13 2021 -0500
+++ b/libpurple/Makefile.am Sun Apr 11 03:27:46 2021 -0500
@@ -313,8 +313,8 @@
- ciphers/libpurple-ciphers.la \
+ ciphers/libpurple-ciphers.la -DDATADIR=\"$(datadir)\" \
--- a/pidgin/Makefile.am Fri Apr 09 23:53:13 2021 -0500
+++ b/pidgin/Makefile.am Sun Apr 11 03:27:46 2021 -0500
@@ -162,6 +162,8 @@
$(top_builddir)/libpurple/libpurple.la