From e6dddfdfa6cfa00c5e87e99f5c13e24cadf8204d Mon Sep 17 00:00:00 2001 From: Carlo Bramini Date: Tue, 5 Jun 2012 12:11:25 +0300 Subject: CYGWIN needs PTHREAD_CFLAGS to be empty and PTHREAD_LIBS to be "-lpthread" --- m4/pthreads.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m4/pthreads.m4 b/m4/pthreads.m4 index 6cbed9255..06a046a76 100644 --- a/m4/pthreads.m4 +++ b/m4/pthreads.m4 @@ -19,6 +19,7 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [ if test "${PTHREAD_CFLAGS-unset}" = "unset"; then case $host in *-mingw*) PTHREAD_CFLAGS="" ;; + *-cygwin*) PTHREAD_CFLAGS="" ;; *-hpux11*) PTHREAD_CFLAGS="" ;; *-darwin*) PTHREAD_CFLAGS="" ;; *-solaris*|*-linux-gnu) @@ -31,6 +32,7 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [ if test "${PTHREAD_LIBS-unset}" = "unset"; then case $host in *-mingw*) PTHREAD_LIBS="-lpthreadGC2" ;; + *-cygwin*) PTHREAD_LIBS="-lpthread" ;; *-hpux11*) PTHREAD_LIBS="-lpthread" ;; *-darwin*) PTHREAD_LIBS="" ;; *-solaris*) -- cgit v1.2.3