From: Costa Tsaousis (ktsaou) Date: Sat, 11 Mar 2017 22:16:30 +0000 (+0200) Subject: check pthreads before compiler flags X-Git-Tag: ab-debian_0.20170316.01-0ab1~1^2~8^2~8 X-Git-Url: https://arthur.barton.de/gitweb/?p=netdata.git;a=commitdiff_plain;h=3279faa2f2cd62d2fb7ba58ee6b5b7e28cd0da8d check pthreads before compiler flags --- diff --git a/configure.ac b/configure.ac index 47f8153a..305843dd 100644 --- a/configure.ac +++ b/configure.ac @@ -171,6 +171,15 @@ AM_CONDITIONAL([LINUX], [test "${build_target}" = "linux"]) 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 @@ -213,15 +222,6 @@ if test "${enable_pedantic}" = "yes"; then 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