]> arthur.barton.de Git - netdata.git/commitdiff
check pthreads before compiler flags
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 11 Mar 2017 22:16:30 +0000 (00:16 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 11 Mar 2017 22:16:30 +0000 (00:16 +0200)
configure.ac

index 47f8153a43c76d9e30e779ade4ab3c909ac9bbd4..305843ddee0bcea3cea1ab6cfe674eefc28c3b53 100644 (file)
@@ -171,6 +171,15 @@ AM_CONDITIONAL([LINUX], [test "${build_target}" = "linux"])
 AC_MSG_RESULT([${build_target}])
 
 
 AC_MSG_RESULT([${build_target}])
 
 
+# -----------------------------------------------------------------------------
+# pthreads
+
+ACX_PTHREAD(, [AC_MSG_ERROR([Cannot initialize pthread environment])])
+LIBS="${PTHREAD_LIBS} ${LIBS}"
+CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
+CC="${PTHREAD_CC}"
+
+
 # -----------------------------------------------------------------------------
 # compiler options
 
 # -----------------------------------------------------------------------------
 # compiler options
 
@@ -213,15 +222,6 @@ if test "${enable_pedantic}" = "yes"; then
 fi
 
 
 fi
 
 
-# -----------------------------------------------------------------------------
-# pthreads
-
-ACX_PTHREAD(, [AC_MSG_ERROR([Cannot initialize pthread environment])])
-LIBS="${PTHREAD_LIBS} ${LIBS}"
-CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
-CC="${PTHREAD_CC}"
-
-
 # -----------------------------------------------------------------------------
 # memory allocation library
 
 # -----------------------------------------------------------------------------
 # memory allocation library