summaryrefslogtreecommitdiffstats
path: root/threadlib/configure.ac
diff options
context:
space:
mode:
authorSam Varshavchik2021-05-17 22:48:17 -0400
committerSam Varshavchik2021-05-19 08:03:46 -0400
commit34b6dbb743654fdb6edccf101c4da7e671b7a92d (patch)
tree9328e2bd91c4fb8bf5f5103e97ca3456b1c09943 /threadlib/configure.ac
parentf47a71576c377269f5c5ca6156b2f319256e2738 (diff)
downloadcourier-libs-34b6dbb743654fdb6edccf101c4da7e671b7a92d.tar.bz2
Tolerate -Wall and -Werror
Fixes to configure scripts and code so that it compiles (hopefully correctly) with -Wall and -Werror. Remove support for ancient BSD stricmp and strnicmp functions. AC_CHECK_FUNC does not work for strcasecmp and strncasecmp under -Wall, it's simpler to remove it.
Diffstat (limited to 'threadlib/configure.ac')
-rw-r--r--threadlib/configure.ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/threadlib/configure.ac b/threadlib/configure.ac
index d125374..408c07c 100644
--- a/threadlib/configure.ac
+++ b/threadlib/configure.ac
@@ -76,7 +76,16 @@ AM_CONDITIONAL(HAVE_PTHREADS, test "$have_pthreads" != "no")
AC_SUBST(THREADLIB)
-AC_CHECK_LIB(m, sqrt)
+AC_TRY_COMPILE([
+#include <math.h>
+
+double x()
+{
+ return sqrt(0);
+}],[
+], [
+ LIBS='-lm'
+])
if test "$GCC" = "yes"
then