Commit 7d8edbae authored by Jon Turney's avatar Jon Turney

configure: Don't require pthread-stubs on Cygwin

Commit 1f4869a2 unconditionally requires pthread-stubs.  Unfortunately, the
cleverness that pthread-stubs is doesn't work with PE/COFF, and historically
Cygwin doesn't have a pthread-stubs.pc.

Don't require pthread-stubs on Cygwin.
Signed-off-by: Jon Turney's avatarJon Turney <jon.turney@dronecode.org.uk>
parent 5d303867
...@@ -822,9 +822,21 @@ dnl to -pthread, which causes problems if we need -lpthread to appear in ...@@ -822,9 +822,21 @@ dnl to -pthread, which causes problems if we need -lpthread to appear in
dnl pkgconfig files. dnl pkgconfig files.
test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread" test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread"
PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs) dnl pthread-stubs is mandatory on targets where it exists
AC_SUBST(PTHREADSTUBS_CFLAGS) case "$host_os" in
AC_SUBST(PTHREADSTUBS_LIBS) cygwin* )
pthread_stubs_possible="no"
;;
* )
pthread_stubs_possible="yes"
;;
esac
if test "x$pthread_stubs_possible" = xyes; then
PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs)
AC_SUBST(PTHREADSTUBS_CFLAGS)
AC_SUBST(PTHREADSTUBS_LIBS)
fi
dnl SELinux awareness. dnl SELinux awareness.
AC_ARG_ENABLE([selinux], AC_ARG_ENABLE([selinux],
......
Markdown is supported
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