]> git.meshlink.io Git - catta/blobdiff - configure.ac
Fix compilation error caused by ACX_THREAD
[catta] / configure.ac
index 07eb2497511bac1c16e66ecf2a910b49d19c95a5..d5de5e1f77edd1427295dffa19a2962c1f8f33c8 100644 (file)
@@ -50,6 +50,7 @@ AC_PROG_INSTALL
 AC_PROG_LN_S
 AC_PROG_MAKE_SET
 AC_PROG_GCC_TRADITIONAL
+AX_PTHREAD(,AC_MSG_ERROR([Missing POSIX Threads support]))
 
 if test x"$ac_cv_prog_cc_c99" = x"no"; then
     AC_MSG_ERROR([C99 support is required])
@@ -144,8 +145,6 @@ fi
 # libtool stuff
 LT_INIT([win32-dll])
 
-ACX_PTHREAD(,AC_MSG_ERROR([Missing POSIX Threads support]))
-
 #
 # Check for netlink.h
 #
@@ -261,7 +260,7 @@ test_gcc_flag() {
 # If using GCC specify some additional parameters
 if test "x$GCC" = "xyes" ; then
 
-    DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wold-style-definition -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -fdiagnostics-show-option -fno-strict-aliasing"
+    DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wold-style-definition -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wshadow -Wbad-function-cast -Wwrite-strings -fdiagnostics-show-option -fno-strict-aliasing"
 
     # when compiling for MingW, -Wmissing-noreturn is triggered a bunch of
     # times from autogenerated libtool wrappers, so leave it out on Windows.