Skip to content

Commit

Permalink
Fix #533
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Feb 1, 2016
1 parent da06378 commit 4be34cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 0 additions & 3 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@
/* Define to 1 if you have the <port.h> header file. */
#undef HAVE_PORT_H

/* Define if you have POSIX threads libraries and header files. */
#undef HAVE_PTHREAD

/* Have PTHREAD_PRIO_INHERIT. */
#undef HAVE_PTHREAD_PRIO_INHERIT

Expand Down
6 changes: 3 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -15545,9 +15545,9 @@ test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"

# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
if test x"$ax_pthread_ok" = xyes; then

$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h

LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
:
else
ax_pthread_ok=no
Expand Down
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ AC_CHECK_LIB(socket, connect)
dnl Checks for library functions.
AC_CHECK_FUNCS([malloc memset socket])

AX_PTHREAD(, AC_MSG_ERROR(Can not find pthreads. This is required.))
AX_PTHREAD([LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"], AC_MSG_ERROR(Can not find pthreads. This is required.))

AM_COND_IF([USE_SYSTEM_SHARED_LIB],
[],
Expand Down

0 comments on commit 4be34cb

Please sign in to comment.