Commit 9acda993 authored by Ano Nymous's avatar Ano Nymous
Browse files

Fix pthread detection on Win32

parent 2a742707
......@@ -68,7 +68,7 @@ AC_TYPE_SIGNAL
# required headers
AC_CHECK_HEADERS([stdarg.h sys/types.h dirent.h errno.h libgen.h malloc.h])
AC_CHECK_HEADERS([stdlib.h mntent.h linux/cdrom.h inttypes.h])
AC_CHECK_HEADERS([sys/time.h time.h pthread.h sys/select.h])
AC_CHECK_HEADERS([sys/time.h time.h sys/select.h])
# required structures
AC_STRUCT_DIRENT_D_TYPE
......@@ -81,6 +81,7 @@ AC_CHECK_FUNC([snprintf],, [AC_MSG_ERROR($function_not_found)])
# pthread check (not on win32)
if test "${SYS}" != "mingw32" ; then
AC_CHECK_HEADERS([pthread.h])
AC_CHECK_LIB([pthread], [pthread_mutex_init],,
[AC_MSG_ERROR($library_not_found)])
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment