summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-12-06 02:29:04 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-12-06 02:29:04 +0000
commite0e7589169fb0246dd5c6accc64b66820f4549af (patch)
treeb0318b68f02c3cc374d327f703239ced102f06a8 /configure
parent1daac8e16522f5394f0f55caf2ce47cedbe6a5c5 (diff)
downloadpostgresql-e0e7589169fb0246dd5c6accc64b66820f4549af.tar.gz
Make Win32 build use our port/snprintf.c routines, instead of depending
on libintl which may or may not provide what we need. Make a few marginal cleanups to ensure this works. Andrew Dunstan and Tom Lane.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 9 insertions, 10 deletions
diff --git a/configure b/configure
index 089573a0a7..48d5324209 100755
--- a/configure
+++ b/configure
@@ -13893,7 +13893,11 @@ fi
# also decide to use snprintf.c if snprintf() is present but does not
# have all the features we need --- see below.
-pgac_need_repl_snprintf=no
+if test "$PORTNAME" = "win32"; then
+ # Win32 gets this built unconditionally
+ pgac_need_repl_snprintf=yes
+else
+ pgac_need_repl_snprintf=no
for ac_func in snprintf
do
@@ -14102,6 +14106,7 @@ else
fi
done
+fi
# Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
@@ -17151,14 +17156,8 @@ fi
# Force use of our snprintf if system's doesn't do arg control
-# This feature is used by NLS
-if test "$enable_nls" = yes &&
- test $pgac_need_repl_snprintf = no &&
-# On Win32, libintl replaces snprintf() with its own version that
-# understands arg control, so we don't need our own. In fact, it
-# also uses macros that conflict with ours, so we _can't_ use
-# our own.
- test "$PORTNAME" != "win32"; then
+# This feature is needed by NLS
+if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
if test "${pgac_cv_printf_arg_control+set}" = set; then
@@ -17645,7 +17644,7 @@ _ACEOF
if test $pgac_need_repl_snprintf = yes; then
cat >>confdefs.h <<\_ACEOF
-#define USE_SNPRINTF 1
+#define USE_REPL_SNPRINTF 1
_ACEOF
case $LIBOBJS in