Commit 19f1370b authored by Bruce Momjian's avatar Bruce Momjian

Minor style cleanup of thread test script.

parent 250e5160
...@@ -92,12 +92,12 @@ for flag in $acx_pthread_flags; do ...@@ -92,12 +92,12 @@ for flag in $acx_pthread_flags; do
PTHREAD_CFLAGS="$flag" PTHREAD_CFLAGS="$flag"
;; ;;
pthread-config) pthread-config)
AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no) AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
if test x"$acx_pthread_config" = xno; then continue; fi if test x"$acx_pthread_config" = xno; then continue; fi
PTHREAD_CFLAGS="`pthread-config --cflags`" PTHREAD_CFLAGS="`pthread-config --cflags`"
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
;; ;;
*) *)
AC_MSG_CHECKING([for the pthreads library -l$flag]) AC_MSG_CHECKING([for the pthreads library -l$flag])
...@@ -168,11 +168,11 @@ if test "x$acx_pthread_ok" = xyes; then ...@@ -168,11 +168,11 @@ if test "x$acx_pthread_ok" = xyes; then
AC_MSG_CHECKING([if more special flags are required for pthreads]) AC_MSG_CHECKING([if more special flags are required for pthreads])
flag=no flag=no
# We handle this ourselves in PostgreSQL # We always add these in PostgreSQL
# case "${host_cpu}-${host_os}" in # case "${host_cpu}-${host_os}" in
# *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
# *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
# esac # esac
AC_MSG_RESULT(${flag}) AC_MSG_RESULT(${flag})
if test "x$flag" != xno; then if test "x$flag" != xno; then
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
......
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