summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-02-24 02:12:15 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-02-24 02:12:15 +0000
commit13227910e4c4230eab40f84e5955e1c3fd2dd199 (patch)
treea28f0ee380ab7f41fcc8ad733dbae72160cb7be7 /configure.in
parente71d09a47213ec34b626477e40845b07e8abc7c2 (diff)
downloadpostgresql-13227910e4c4230eab40f84e5955e1c3fd2dd199.tar.gz
We aren't supposed to try to run test programs until after we've
verified that AC_TRY_RUN works.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in25
1 files changed, 13 insertions, 12 deletions
diff --git a/configure.in b/configure.in
index 9c81ad5f5a..ff5a858240 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.400 2005/02/22 03:55:12 momjian Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.401 2005/02/24 02:12:15 tgl Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -841,9 +841,6 @@ PGAC_VAR_INT_TIMEZONE
AC_FUNC_ACCEPT_ARGTYPES
PGAC_FUNC_GETTIMEOFDAY_1ARG
-# SunOS doesn't handle negative byte comparisons properly with +/- return
-AC_FUNC_MEMCMP
-
AC_CHECK_FUNCS([cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs])
AC_CHECK_DECLS(fdatasync, [], [], [#include <unistd.h>])
@@ -875,17 +872,12 @@ fi
# We use our snprintf.c emulation if either snprintf() or vsnprintf()
# is missing. Yes, there are machines that have only one. We may
# also decide to use snprintf.c if snprintf() is present but does not
-# have working "long long int" support -- see below.
+# have all the features we need --- see below.
pgac_need_repl_snprintf=no
AC_CHECK_FUNCS(snprintf, [], pgac_need_repl_snprintf=yes)
AC_CHECK_FUNCS(vsnprintf, [], pgac_need_repl_snprintf=yes)
-PGAC_FUNC_PRINTF_ARG_CONTROL
-# cross compiler should use our snprintf too
-if test $pgac_cv_printf_arg_control != yes ; then
- pgac_need_repl_snprintf=yes
-fi
# Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
# include/c.h will provide declarations. Note this is a separate test
@@ -1074,8 +1066,6 @@ AC_MSG_ERROR([[
[AC_MSG_RESULT([cross-compiling])])
-dnl 64-bit section
-dnl
dnl Check to see if we have a working 64-bit integer type.
dnl This breaks down into two steps:
dnl (1) figure out if the compiler has a 64-bit int type with working
@@ -1141,6 +1131,14 @@ AC_DEFINE_UNQUOTED(INT64_FORMAT, $INT64_FORMAT,
AC_DEFINE_UNQUOTED(UINT64_FORMAT, $UINT64_FORMAT,
[Define to the appropriate snprintf format for unsigned 64-bit ints, if any.])
+# Also force use of our snprintf if system's doesn't do arg control
+if test $pgac_need_repl_snprintf = no; then
+ PGAC_FUNC_PRINTF_ARG_CONTROL
+ if test $pgac_cv_printf_arg_control != yes ; then
+ pgac_need_repl_snprintf=yes
+ fi
+fi
+
if test $pgac_need_repl_snprintf = yes; then
AC_LIBOBJ(snprintf)
fi
@@ -1197,6 +1195,9 @@ if test $ac_cv_func_fseeko = yes; then
AC_SYS_LARGEFILE
fi
+# SunOS doesn't handle negative byte comparisons properly with +/- return
+AC_FUNC_MEMCMP
+
# Select semaphore implementation type.
if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then