diff options
| author | Bruce Momjian | 2004-08-17 15:19:09 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2004-08-17 15:19:09 +0000 |
| commit | 0d4aa039acb80df2018e4b8653dfedea89feefd2 (patch) | |
| tree | b1c33692c8042b6a26980968b50afbaa63d07637 /config | |
| parent | 26f6111dd9fcdbe2b4b8ed8474d720127fe3c3d7 (diff) | |
Fix agressive collection of thread flags.
Diffstat (limited to 'config')
| -rw-r--r-- | config/acx_pthread.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/acx_pthread.m4 b/config/acx_pthread.m4 index ba3f46395c8..2228a6e0085 100644 --- a/config/acx_pthread.m4 +++ b/config/acx_pthread.m4 @@ -82,6 +82,8 @@ esac if test x"$acx_pthread_ok" = xno; then for flag in $acx_pthread_flags; do + tryPTHREAD_CFLAGS="" + tryPTHREAD_LIBS="" case $flag in none) AC_MSG_CHECKING([whether pthreads work without any flags]) @@ -125,7 +127,7 @@ for flag in $acx_pthread_flags; do [pthread_t th; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], - [acx_pthread_ok=yes]) + [acx_pthread_ok=yes], [acx_pthread_ok=no]) LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" @@ -138,7 +140,6 @@ for flag in $acx_pthread_flags; do PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS" PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS" fi - done fi |
