Skip to content

Commit

Permalink
Bug 40: Change test on enable-thread-safety to not check against plat…
Browse files Browse the repository at this point in the history
…forms.

As far as we can tell:

- All platforms we know of set this by default

- It's never safe not to require it, because we're not merely worried,
  when slon multithreads, about the Postgres bits, but also about
  attendant stuff like OpenSSL, where we can't control much about their
  thread safety.
  • Loading branch information
Christopher Browne committed Aug 25, 2010
1 parent 736fe39 commit 7e74997
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions config/acx_libpq.m4
Expand Up @@ -167,27 +167,25 @@ if test -n "$PG_CONFIG_LOCATION"; then
echo "pg_config says pg_sharedir is $PG_SHAREDIR"
fi
AC_MSG_CHECKING(PostgreSQL for enable-thread-safety)
PG_ETS=`echo $PG_CONFIGURE | grep -c enable-thread-safety`
if test $PG_ETS -eq 0; then
AC_MSG_RESULT(no)
AC_MSG_ERROR(PostgreSQL needs to be compiled with --enable-thread-safety)
else
AC_MSG_RESULT(yes)
fi
case ${host_os} in
aix*|*solaris*)
AC_MSG_CHECKING(PostgreSQL for enable-thread-safety as required on ${host_os})
PG_ETS=`echo $PG_CONFIGURE | grep -c enable-thread-safety`
if test $PG_ETS -eq 0; then
AC_MSG_RESULT(no)
AC_MSG_ERROR(PostgreSQL needs to be compiled with --enable-thread-safety on ${host_os})
else
AC_MSG_RESULT(yes)
fi
;;
*mingw32*)
if test $PG_VERSION_MAJOR -ge 8 -a $PG_VERSION_MINOR -ge 2; then
AC_SUBST(NEED_PG_DLLINIT, 0)
else
AC_SUBST(NEED_PG_DLLINIT, 1)
fi
;;
*)
;;
;;
esac
dnl ----
dnl Define the detected PostgreSQL version
dnl ----
Expand Down

0 comments on commit 7e74997

Please sign in to comment.