From: warlord Date: Tue, 7 Oct 2003 20:11:21 +0000 (+0000) Subject: Fix Scott's test to make it work on Linux again X-Git-Tag: 2.4~2152 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=60381a7e9820b9a0da102a330f84b652deb44c2a Fix Scott's test to make it work on Linux again git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@710 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/acx_pthread.m4 b/acx_pthread.m4 index 630e6f4..1f2a56e 100644 --- a/acx_pthread.m4 +++ b/acx_pthread.m4 @@ -229,7 +229,13 @@ else $2 fi +saveCFLAGS="$CFLAGS" +saveLIBS="$LIBS" +CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +LIBS="$LIBS $PTHREAD_LIBS" AC_CHECK_FUNCS([pthread_rwlock_init]) +LIBS="$saveLIBS" +CFLAGS="$saveCFLAGS" AC_LANG_RESTORE ])dnl ACX_PTHREAD