mirror of https://github.com/getdnsapi/getdns.git
Fix HAVE_PTHREADS define in configure.ac
This commit is contained in:
parent
393b24fe89
commit
db6cee94fa
|
@ -644,7 +644,7 @@ CHECK_CFLAGS=""
|
|||
PKG_CHECK_MODULES([CHECK],[check >= 0.9.6],[CHECK_GETDNS="check_getdns"],[
|
||||
AC_SEARCH_LIBS([floor], [m])
|
||||
AC_SEARCH_LIBS([timer_create], [rt])
|
||||
AC_SEARCH_LIBS([pthread_create], [pthread], [AC_DEFINE([HAVE_PTHREADS], [1], [Define if pthreads exist.])])
|
||||
AC_SEARCH_LIBS([pthread_create], [pthread])
|
||||
AC_SEARCH_LIBS([srunner_create],[check check_pic],[
|
||||
CHECK_GETDNS="check_getdns"
|
||||
CHECK_LIBS="$LIBS"],[
|
||||
|
@ -924,6 +924,10 @@ if [ test -n "$DOXYGEN" ]
|
|||
fi
|
||||
|
||||
|
||||
#---- check for pthreads library
|
||||
AC_SEARCH_LIBS([pthread_mutex_init],[pthread],[AC_DEFINE([HAVE_PTHREADS], [1], [Have pthreads library])], [AC_MSG_WARN([pthreads not available])])
|
||||
|
||||
|
||||
dnl -----
|
||||
dnl ----- Start of "Things needed for gldns" section
|
||||
dnl -----
|
||||
|
|
Loading…
Reference in New Issue