Port: Set required compiler flags to use pthreads
[babeltrace.git] / configure.ac
index c04e8fec3fa4085beb49437de852b934e34ec1b7..23db68100e3a2313105d3b34b780183d8c0db648 100644 (file)
@@ -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])
This page took 0.023205 seconds and 4 git commands to generate.