*** pgsql/configure 2005/11/05 04:01:38 1.461 --- pgsql/configure 2006/02/12 22:37:44 1.461.2.8 *************** *** 1,6 **** #! /bin/sh # Guess values for system-dependent variables and create Makefiles. ! # Generated by GNU Autoconf 2.59 for PostgreSQL 8.1.0. # # Report bugs to . # --- 1,6 ---- #! /bin/sh # Guess values for system-dependent variables and create Makefiles. ! # Generated by GNU Autoconf 2.59 for PostgreSQL 8.1.3. # # Report bugs to . # *************** SHELL=${CONFIG_SHELL-/bin/sh} *** 271,278 **** # Identity of this package. PACKAGE_NAME='PostgreSQL' PACKAGE_TARNAME='postgresql' ! PACKAGE_VERSION='8.1.0' ! PACKAGE_STRING='PostgreSQL 8.1.0' PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org' ac_unique_file="src/backend/access/common/heaptuple.c" --- 271,278 ---- # Identity of this package. PACKAGE_NAME='PostgreSQL' PACKAGE_TARNAME='postgresql' ! PACKAGE_VERSION='8.1.3' ! PACKAGE_STRING='PostgreSQL 8.1.3' PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org' ac_unique_file="src/backend/access/common/heaptuple.c" *************** if test "$ac_init_help" = "long"; then *** 791,797 **** # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF ! \`configure' configures PostgreSQL 8.1.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... --- 791,797 ---- # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF ! \`configure' configures PostgreSQL 8.1.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... *************** fi *** 852,858 **** if test -n "$ac_init_help"; then case $ac_init_help in ! short | recursive ) echo "Configuration of PostgreSQL 8.1.0:";; esac cat <<\_ACEOF --- 852,858 ---- if test -n "$ac_init_help"; then case $ac_init_help in ! short | recursive ) echo "Configuration of PostgreSQL 8.1.3:";; esac cat <<\_ACEOF *************** fi *** 1005,1011 **** test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF ! PostgreSQL configure 8.1.0 generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. --- 1005,1011 ---- test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF ! PostgreSQL configure 8.1.3 generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. *************** cat >&5 <<_ACEOF *** 1021,1027 **** This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. ! It was created by PostgreSQL $as_me 8.1.0, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ --- 1021,1027 ---- This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. ! It was created by PostgreSQL $as_me 8.1.3, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ *************** fi *** 13269,13274 **** --- 13269,13349 ---- fi + # This is probably only present on Darwin, but may as well check always + echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5 + echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6 + if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF + cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ + #include + + int + main () + { + #ifndef F_FULLFSYNC + char *p = (char *) F_FULLFSYNC; + #endif + + ; + return 0; + } + _ACEOF + rm -f conftest.$ac_objext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_have_decl_F_FULLFSYNC=yes + else + echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_have_decl_F_FULLFSYNC=no + fi + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + fi + echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5 + echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6 + if test $ac_cv_have_decl_F_FULLFSYNC = yes; then + + cat >>confdefs.h <<_ACEOF + #define HAVE_DECL_F_FULLFSYNC 1 + _ACEOF + + + else + cat >>confdefs.h <<_ACEOF + #define HAVE_DECL_F_FULLFSYNC 0 + _ACEOF + + + fi + + + ## ## Functions, global variables ## *************** fi *** 13852,13858 **** # 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 for ac_func in snprintf do --- 13927,13961 ---- # also decide to use snprintf.c if snprintf() is present but does not # have all the features we need --- see below. ! if test "$PORTNAME" = "win32"; then ! # Win32 gets snprintf.c built unconditionally. ! # ! # To properly translate all NLS languages strings, we must support the ! # *printf() %$ format, which allows *printf() arguments to be selected ! # by position in the translated string. ! # ! # libintl versions < 0.13 use the native *printf() functions, and Win32 ! # *printf() doesn't understand %$, so we must use our /port versions, ! # which do understand %$. libintl versions >= 0.13 include their own ! # *printf versions on Win32. The libintl 0.13 release note text is: ! # ! # C format strings with positions, as they arise when a translator ! # needs to reorder a sentence, are now supported on all platforms. ! # On those few platforms (NetBSD and Woe32) for which the native ! # printf()/fprintf()/... functions don't support such format ! # strings, replacements are provided through . ! # ! # We could use libintl >= 0.13's *printf() if we were sure that we had ! # a litint >= 0.13 at runtime, but seeing that there is no clean way ! # to guarantee that, it is best to just use our own, so we are sure to ! # get %$ support. In include/port.h we disable the *printf() macros ! # that might have been defined by libintl. ! # ! # We do this unconditionally whether NLS is used or not so we are sure ! # that all Win32 libraries and binaries behave the same. ! pgac_need_repl_snprintf=yes ! else ! pgac_need_repl_snprintf=no for ac_func in snprintf do *************** else *** 14061,14066 **** --- 14164,14170 ---- fi done + fi # Check whether declares snprintf() and vsnprintf(); if not, *************** fi *** 14212,14218 **** - # do this one the hard way in case isinf() is a macro echo "$as_me:$LINENO: checking for isinf" >&5 echo $ECHO_N "checking for isinf... $ECHO_C" >&6 if test "${ac_cv_func_isinf+set}" = set; then --- 14316,14321 ---- *************** _ACEOF *** 14224,14235 **** cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { ! double x = 0.0; int res = isinf(x); ; return 0; } --- 14327,14340 ---- cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ + #include + double glob_double; int main () { ! return isinf(glob_double) ? 0 : 1; ; return 0; } *************** _ACEOF *** 15109,15119 **** cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { ! int dummy=finite(1.0); ; return 0; } --- 15214,15227 ---- cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ + #include + double glob_double; + int main () { ! return finite(glob_double) ? 0 : 1; ; return 0; } *************** fi *** 17108,17123 **** rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 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 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 --- 17216,17228 ---- rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi + # -------------------- + # Run tests below here + # -------------------- # Force use of our snprintf if system's doesn't do arg control ! # See comment above at snprintf test for details. ! 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 *************** _ACEOF *** 17604,17610 **** if test $pgac_need_repl_snprintf = yes; then cat >>confdefs.h <<\_ACEOF ! #define USE_SNPRINTF 1 _ACEOF case $LIBOBJS in --- 17709,17715 ---- if test $pgac_need_repl_snprintf = yes; then cat >>confdefs.h <<\_ACEOF ! #define USE_REPL_SNPRINTF 1 _ACEOF case $LIBOBJS in *************** _ASBOX *** 22902,22908 **** } >&5 cat >&5 <<_CSEOF ! This file was extended by PostgreSQL $as_me 8.1.0, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES --- 23007,23013 ---- } >&5 cat >&5 <<_CSEOF ! This file was extended by PostgreSQL $as_me 8.1.3, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES *************** _ACEOF *** 22968,22974 **** cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ ! PostgreSQL config.status 8.1.0 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" --- 23073,23079 ---- cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ ! PostgreSQL config.status 8.1.3 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"