From 34b6dbb743654fdb6edccf101c4da7e671b7a92d Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Mon, 17 May 2021 22:48:17 -0400 Subject: 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. --- threadlib/configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'threadlib') 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 + +double x() +{ + return sqrt(0); +}],[ +], [ + LIBS='-lm' +]) if test "$GCC" = "yes" then -- cgit v1.2.3