diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-08-12 14:58:37 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-08-12 14:58:37 +0000 |
| commit | 19f1370b1e2d9216158637e2c43389371213432b (patch) | |
| tree | 0826b34492be2e05377e55c126b20199bf935c39 /config/acx_pthread.m4 | |
| parent | 250e51605109536a1346785b535612c6baea796a (diff) | |
| download | postgresql-19f1370b1e2d9216158637e2c43389371213432b.tar.gz | |
Minor style cleanup of thread test script.
Diffstat (limited to 'config/acx_pthread.m4')
| -rw-r--r-- | config/acx_pthread.m4 | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/config/acx_pthread.m4 b/config/acx_pthread.m4 index 11c62b3f77..5961fafd1a 100644 --- a/config/acx_pthread.m4 +++ b/config/acx_pthread.m4 @@ -92,12 +92,12 @@ for flag in $acx_pthread_flags; do PTHREAD_CFLAGS="$flag" ;; - pthread-config) - AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no) - if test x"$acx_pthread_config" = xno; then continue; fi - PTHREAD_CFLAGS="`pthread-config --cflags`" - PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" - ;; + pthread-config) + AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no) + if test x"$acx_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" + ;; *) AC_MSG_CHECKING([for the pthreads library -l$flag]) @@ -168,11 +168,11 @@ if test "x$acx_pthread_ok" = xyes; then AC_MSG_CHECKING([if more special flags are required for pthreads]) flag=no -# We handle this ourselves in PostgreSQL -# case "${host_cpu}-${host_os}" in -# *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; -# *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; -# esac +# We always add these in PostgreSQL +# case "${host_cpu}-${host_os}" in +# *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; +# *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; +# esac AC_MSG_RESULT(${flag}) if test "x$flag" != xno; then PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
