From 3279faa2f2cd62d2fb7ba58ee6b5b7e28cd0da8d Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Sun, 12 Mar 2017 00:16:30 +0200 Subject: [PATCH] check pthreads before compiler flags --- configure.ac | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 -- 2.39.2