Fix pthreads setup

As reported by Raimund Steger.
This commit is contained in:
Behdad Esfahbod 2013-01-07 20:10:14 -06:00
parent 1c4c4978ad
commit d7de1b5c6d
1 changed files with 3 additions and 0 deletions

View File

@ -598,6 +598,9 @@ if test "$os_win32" = no; then
AX_PTHREAD([have_pthread=true])
fi
if $have_pthread; then
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
AC_DEFINE(HAVE_PTHREAD, 1, [Have POSIX threads])
fi
AM_CONDITIONAL(HAVE_PTHREAD, $have_pthread)