X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=configure.ac;h=75bc9af422e40e30ef3f5f95f1286c437690ce1c;hp=f9bb2e033d0a0515b9e750fe0ff508dd10997e34;hb=909d3caa7a163c5f2ae9712787b5c3925ffd4fc1;hpb=58cb7c6332bb82cd557ed2faf723fe6047e8409d diff --git a/configure.ac b/configure.ac index f9bb2e03..75bc9af4 100644 --- a/configure.ac +++ b/configure.ac @@ -37,6 +37,11 @@ AS_IF([test "x$ax_cv___attribute__" = "xyes"], [:], [AC_MSG_ERROR([The compiler does not support __attribute__ extensions])]) +AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])]) +LIBS="$PTHREAD_LIBS $LIBS" +CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +CC="$PTHREAD_CC" + # Check linker option AX_APPEND_LINK_FLAGS([-Wl,--no-as-needed], [LD_NO_AS_NEEDED]) AC_SUBST([LD_NO_AS_NEEDED])