]> granicus.if.org Git - postgresql/blobdiff - configure
On Win32, libintl replaces snprintf() with its own version that
[postgresql] / configure
index ba97253d478f5fe5eaf8b835805320ec540f0daf..b4f300d6a66d7cca4a0fc270528da3efccdd56fe 100755 (executable)
--- a/configure
+++ b/configure
 
 # 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; then
+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
   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