Skip to content

Commit

Permalink
Properly define ENABLE_THREAD_SAFETY in conflgure, per suggestion fro…
Browse files Browse the repository at this point in the history
…m Peter.
  • Loading branch information
bmomjian committed Dec 11, 2009
1 parent 324385d commit 6457996
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -4881,6 +4881,13 @@ else
fi


if test "$enable_thread_safety" = yes; then

cat >>confdefs.h <<\_ACEOF
#define ENABLE_THREAD_SAFETY 1
_ACEOF

fi
{ $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
$as_echo "$enable_thread_safety" >&6; }

Expand Down
6 changes: 5 additions & 1 deletion configure.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
dnl $PostgreSQL: pgsql/configure.in,v 1.615 2009/12/02 14:07:25 momjian Exp $
dnl $PostgreSQL: pgsql/configure.in,v 1.616 2009/12/11 02:21:21 momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
Expand Down Expand Up @@ -559,6 +559,10 @@ IFS=$ac_save_IFS
#
AC_MSG_CHECKING([allow thread-safe client libraries])
PGAC_ARG_BOOL(enable, thread-safety, yes, [disable thread-safety in client libraries])
if test "$enable_thread_safety" = yes; then
AC_DEFINE([ENABLE_THREAD_SAFETY], 1,
[Define to 1 to build client libraries as thread-safe code. (--enable-thread-safety)])
fi
AC_MSG_RESULT([$enable_thread_safety])
AC_SUBST(enable_thread_safety)

Expand Down

0 comments on commit 6457996

Please sign in to comment.