From e6486dbd29470939ed032972ca693888465e9ff4 Mon Sep 17 00:00:00 2001 From: Arty Gus Date: Fri, 29 Apr 2016 21:47:32 +0200 Subject: configure.ac: Only check for pthread support on non-win32 platforms --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index bade848..26fe819 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,6 @@ AC_PROG_LIBTOOL PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= $LIBUSBMUXD_VERSION) PKG_CHECK_MODULES(libplist, libplist >= $LIBPLIST_VERSION) PKG_CHECK_MODULES(libplistmm, libplist++ >= $LIBPLISTMM_VERSION) -AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build libimobiledevice])]) # Checks for header files. AC_HEADER_STDC @@ -82,6 +81,10 @@ case ${host_os} in esac AM_CONDITIONAL(WIN32, test x$win32 = xtrue) +if test "x$win32" != xtrue; then + AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build libimobiledevice])]) +fi + # Cython Python Bindings AC_ARG_WITH([cython], [AS_HELP_STRING([--without-cython], -- cgit v1.1-32-gdbae