2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2008, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir=.
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
262 CONFIG_SHELL=$as_shell
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
290 as_func_ret_success () {
293 as_func_ret_failure () {
298 if as_func_success; then
302 echo as_func_success failed.
305 if as_func_failure; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
476 ECHO_C= ECHO_N= ECHO_T=
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 elif ln conf$$.file conf$$ 2>/dev/null; then
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
521 test -d ./-p && rmdir ./-p
525 if test -x / >/dev/null 2>&1; then
528 if ls -dL / >/dev/null 2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev/null 6>&1
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 ac_default_prefix=/usr/local
568 ac_config_libobj_dir=.
574 SHELL=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME='PostgreSQL'
578 PACKAGE_TARNAME='postgresql'
579 PACKAGE_VERSION='8.4devel'
580 PACKAGE_STRING='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
583 ac_unique_file="src/backend/access/common/heaptuple.c"
584 ac_default_prefix=/usr/local/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
630 program_transform_name
736 python_additional_libs
767 ac_precious_vars='build_alias
780 # Initialize some variables set by options.
782 ac_init_version=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name=s,x,x,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885 { (exit 1); exit 1; }; }
886 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
887 eval enable_$ac_feature=no ;;
889 -docdir | --docdir | --docdi | --doc | --do)
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 -enable-* | --enable-*)
900 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
903 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904 { (exit 1); exit 1; }; }
905 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
906 eval enable_$ac_feature=\$ac_optarg ;;
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
921 -help | --help | --hel | --he | -h)
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 htmldir=$ac_optarg ;;
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
951 -libdir | --libdir | --libdi | --libd)
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
963 -localedir | --localedir | --localedi | --localed | --locale)
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 # Obsolete; use --without-fp.
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1042 -psdir | --psdir | --psdi | --psd | --ps)
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 sbindir=$ac_optarg ;;
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 sharedstatedir=$ac_optarg ;;
1068 -site | --site | --sit)
1070 -site=* | --site=* | --sit=*)
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1097 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid package name: $ac_package" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1103 eval with_$ac_package=\$ac_optarg ;;
1105 -without-* | --without-*)
1106 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1112 eval with_$ac_package=no ;;
1115 # Obsolete; use --with-x.
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 { echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
1163 # Be sure to have absolute directory names.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val=\$$ac_var
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175 { (exit 1); exit 1; }; }
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1183 target=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199 test "$silent" = yes && exec 6>/dev/null
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 { echo "$as_me: error: Working directory cannot be determined" >&2
1206 { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 { echo "$as_me: error: pwd does not report name of working directory" >&2
1209 { (exit 1); exit 1; }; }
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
1215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$0" : 'X\(//\)[^/]' \| \
1219 X"$0" : 'X\(//\)$' \| \
1220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1244 ac_srcdir_defaulted=no
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249 { (exit 1); exit 1; }; }
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254 { (exit 1); exit 1; }; }
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1280 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1338 --build=BUILD configure for building on BUILD [guessed]
1339 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1343 if test -n "$ac_init_help"; then
1344 case $ac_init_help in
1345 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1352 --disable-integer-datetimes disable 64-bit integer date/time support
1353 --enable-nls[=LANGUAGES] enable Native Language Support
1354 --disable-shared do not build shared libraries
1355 --disable-rpath do not embed shared library search path in executables
1356 --disable-spinlocks do not use spinlocks
1357 --enable-debug build with debugging symbols (-g)
1358 --enable-profiling build with profiling enabled
1359 --enable-dtrace build with DTrace support
1360 --enable-depend turn on automatic dependency tracking
1361 --enable-cassert enable assertion checks (for debugging)
1362 --enable-thread-safety make client libraries thread-safe
1363 --enable-thread-safety-force force thread-safety despite thread test failure
1364 --disable-float4-byval disable float4 passed by value
1365 --disable-float8-byval disable float8 passed by value
1366 --disable-largefile omit support for large files
1369 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1370 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1372 --with-includes=DIRS look for additional header files in DIRS
1373 --with-libraries=DIRS look for additional libraries in DIRS
1374 --with-libs=DIRS alternative spelling of --with-libraries
1375 --with-pgport=PORTNUM set default port number [5432]
1376 --with-blocksize=BLOCKSIZE set table block size in kB [8]
1377 --with-segsize=SEGSIZE set table segment size in GB [1]
1378 --with-wal-blocksize=BLOCKSIZE set WAL block size in kB [8]
1379 --with-wal-segsize=SEGSIZE set WAL segment size in MB [16]
1380 --with-tcl build Tcl modules (PL/Tcl)
1381 --with-tclconfig=DIR tclConfig.sh is in DIR
1382 --with-perl build Perl modules (PL/Perl)
1383 --with-python build Python modules (PL/Python)
1384 --with-gssapi build with GSSAPI support
1385 --with-krb5 build with Kerberos 5 support
1386 --with-krb-srvnam=NAME default service principal name in Kerberos [postgres]
1387 --with-pam build with PAM support
1388 --with-ldap build with LDAP support
1389 --with-bonjour build with Bonjour support
1390 --with-openssl build with OpenSSL support
1391 --without-readline do not use GNU Readline nor BSD Libedit for editing
1392 --with-libedit-preferred prefer BSD Libedit over GNU Readline
1393 --with-ossp-uuid use OSSP UUID library when building contrib/uuid-ossp
1394 --with-libxml build with XML support
1395 --with-libxslt use XSLT support when building contrib/xml2
1396 --with-system-tzdata=DIR use system time zone data in DIR
1397 --without-zlib do not use Zlib
1398 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1400 Some influential environment variables:
1401 CC C compiler command
1402 CFLAGS C compiler flags
1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1404 nonstandard directory <lib dir>
1405 LIBS libraries to pass to the linker, e.g. -l<library>
1406 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1407 you have headers in a nonstandard directory <include dir>
1411 location of DocBook stylesheets
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1416 Report bugs to <pgsql-bugs@postgresql.org>.
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" || continue
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1444 .) # We are building in place.
1446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
1449 ac_srcdir=$srcdir$ac_dir_suffix;
1450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1466 $SHELL "$ac_srcdir/configure" --help=recursive
1468 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 cd "$ac_pwd" || { ac_status=$?; break; }
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1477 PostgreSQL configure 8.4devel
1478 generated by GNU Autoconf 2.61
1480 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1481 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1485 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1489 cat >config.log <<_ACEOF
1490 This file contains any messages produced by compilers while
1491 running configure, to aid debugging if configure makes a mistake.
1493 It was created by PostgreSQL $as_me 8.4devel, which was
1494 generated by GNU Autoconf 2.61. Invocation command line was
1506 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1507 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1508 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1509 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1510 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1512 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1513 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1515 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1516 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1517 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1518 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1519 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1520 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1521 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir=.
1530 echo "PATH: $as_dir"
1546 # Keep a trace of the command line.
1547 # Strip out --no-create and --no-recursion so they do not pile up.
1548 # Strip out --silent because we don't want to record it for future runs.
1549 # Also quote any args containing shell meta-characters.
1550 # Make two passes to allow for proper duplicate-argument suppression.
1554 ac_must_keep_next=false
1560 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1562 | -silent | --silent | --silen | --sile | --sil)
1565 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1568 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1570 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1571 if test $ac_must_keep_next = true; then
1572 ac_must_keep_next=false # Got value, back to normal.
1575 *=* | --config-cache | -C | -disable-* | --disable-* \
1576 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1577 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1578 | -with-* | --with-* | -without-* | --without-* | --x)
1579 case "$ac_configure_args0 " in
1580 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1583 -* ) ac_must_keep_next=true ;;
1586 ac_configure_args="$ac_configure_args '$ac_arg'"
1591 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1592 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1594 # When interrupted or exit'd, cleanup temporary files, and complete
1595 # config.log. We remove comments because anyway the quotes in there
1596 # would cause problems or look ugly.
1597 # WARNING: Use '\'' to represent an apostrophe within the trap.
1598 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1599 trap 'exit_status=$?
1600 # Save into config.log some information that might help in debugging.
1605 ## ---------------- ##
1606 ## Cache variables. ##
1607 ## ---------------- ##
1610 # The following way of writing the cache mishandles newlines in values,
1612 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1613 eval ac_val=\$$ac_var
1617 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1618 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1621 _ | IFS | as_nl) ;; #(
1622 *) $as_unset $ac_var ;;
1627 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1628 *${as_nl}ac_space=\ *)
1630 "s/'\''/'\''\\\\'\'''\''/g;
1631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1634 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1642 ## ----------------- ##
1643 ## Output variables. ##
1644 ## ----------------- ##
1647 for ac_var in $ac_subst_vars
1649 eval ac_val=\$$ac_var
1651 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1653 echo "$ac_var='\''$ac_val'\''"
1657 if test -n "$ac_subst_files"; then
1659 ## ------------------- ##
1660 ## File substitutions. ##
1661 ## ------------------- ##
1664 for ac_var in $ac_subst_files
1666 eval ac_val=\$$ac_var
1668 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1670 echo "$ac_var='\''$ac_val'\''"
1675 if test -s confdefs.h; then
1685 test "$ac_signal" != 0 &&
1686 echo "$as_me: caught signal $ac_signal"
1687 echo "$as_me: exit $exit_status"
1689 rm -f core *.core core.conftest.* &&
1690 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1693 for ac_signal in 1 2 13 15; do
1694 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1698 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1699 rm -f -r conftest* confdefs.h
1701 # Predefined preprocessor variables.
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_NAME "$PACKAGE_NAME"
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_STRING "$PACKAGE_STRING"
1723 cat >>confdefs.h <<_ACEOF
1724 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1728 # Let the site file select an alternate cache file if it wants to.
1729 # Prefer explicitly selected file to automatically selected ones.
1730 if test -n "$CONFIG_SITE"; then
1731 set x "$CONFIG_SITE"
1732 elif test "x$prefix" != xNONE; then
1733 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1735 set x "$ac_default_prefix/share/config.site" \
1736 "$ac_default_prefix/etc/config.site"
1741 if test -r "$ac_site_file"; then
1742 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1743 echo "$as_me: loading site script $ac_site_file" >&6;}
1744 sed 's/^/| /' "$ac_site_file" >&5
1749 if test -r "$cache_file"; then
1750 # Some versions of bash will fail to source /dev/null (special
1751 # files actually), so we avoid doing that.
1752 if test -f "$cache_file"; then
1753 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1754 echo "$as_me: loading cache $cache_file" >&6;}
1756 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1757 *) . "./$cache_file";;
1761 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1762 echo "$as_me: creating cache $cache_file" >&6;}
1766 # Check that the precious variables saved in the cache have kept the same
1768 ac_cache_corrupted=false
1769 for ac_var in $ac_precious_vars; do
1770 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1771 eval ac_new_set=\$ac_env_${ac_var}_set
1772 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1773 eval ac_new_val=\$ac_env_${ac_var}_value
1774 case $ac_old_set,$ac_new_set in
1776 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1777 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1778 ac_cache_corrupted=: ;;
1780 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1781 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1782 ac_cache_corrupted=: ;;
1785 if test "x$ac_old_val" != "x$ac_new_val"; then
1786 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1787 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1788 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1789 echo "$as_me: former value: $ac_old_val" >&2;}
1790 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1791 echo "$as_me: current value: $ac_new_val" >&2;}
1792 ac_cache_corrupted=:
1795 # Pass precious variables to config.status.
1796 if test "$ac_new_set" = set; then
1798 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1799 *) ac_arg=$ac_var=$ac_new_val ;;
1801 case " $ac_configure_args " in
1802 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1803 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1807 if $ac_cache_corrupted; then
1808 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1809 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1810 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1811 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1812 { (exit 1); exit 1; }; }
1840 ac_cpp='$CPP $CPPFLAGS'
1841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1851 for ac_dir in config "$srcdir"/config; do
1852 if test -f "$ac_dir/install-sh"; then
1854 ac_install_sh="$ac_aux_dir/install-sh -c"
1856 elif test -f "$ac_dir/install.sh"; then
1858 ac_install_sh="$ac_aux_dir/install.sh -c"
1860 elif test -f "$ac_dir/shtool"; then
1862 ac_install_sh="$ac_aux_dir/shtool install -c"
1866 if test -z "$ac_aux_dir"; then
1867 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1868 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1869 { (exit 1); exit 1; }; }
1872 # These three variables are undocumented and unsupported,
1873 # and are intended to be withdrawn in a future Autoconf release.
1874 # They can cause serious problems if a builder's source tree is in a directory
1875 # whose full name contains unusual characters.
1876 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1877 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1878 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1882 configure_args=$ac_configure_args
1886 cat >>confdefs.h <<_ACEOF
1887 #define PG_VERSION "$PACKAGE_VERSION"
1891 # Make sure we can run config.sub.
1892 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1893 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1894 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1895 { (exit 1); exit 1; }; }
1897 { echo "$as_me:$LINENO: checking build system type" >&5
1898 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1899 if test "${ac_cv_build+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 ac_build_alias=$build_alias
1903 test "x$ac_build_alias" = x &&
1904 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1905 test "x$ac_build_alias" = x &&
1906 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1907 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1908 { (exit 1); exit 1; }; }
1909 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1910 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1911 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1912 { (exit 1); exit 1; }; }
1915 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1916 echo "${ECHO_T}$ac_cv_build" >&6; }
1917 case $ac_cv_build in
1919 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1920 echo "$as_me: error: invalid value of canonical build" >&2;}
1921 { (exit 1); exit 1; }; };;
1924 ac_save_IFS=$IFS; IFS='-'
1930 # Remember, the first character of IFS is used to create $*,
1931 # except with old shells:
1934 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1937 { echo "$as_me:$LINENO: checking host system type" >&5
1938 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1939 if test "${ac_cv_host+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 if test "x$host_alias" = x; then
1943 ac_cv_host=$ac_cv_build
1945 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1946 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1947 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1948 { (exit 1); exit 1; }; }
1952 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1953 echo "${ECHO_T}$ac_cv_host" >&6; }
1956 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1957 echo "$as_me: error: invalid value of canonical host" >&2;}
1958 { (exit 1); exit 1; }; };;
1961 ac_save_IFS=$IFS; IFS='-'
1967 # Remember, the first character of IFS is used to create $*,
1968 # except with old shells:
1971 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1976 { echo "$as_me:$LINENO: checking which template to use" >&5
1977 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1980 pgac_args="$pgac_args with_template"
1983 # Check whether --with-template was given.
1984 if test "${with_template+set}" = set; then
1985 withval=$with_template;
1988 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1989 echo "$as_me: error: argument required for --with-template option" >&2;}
1990 { (exit 1); exit 1; }; }
1993 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1994 echo "$as_me: error: argument required for --with-template option" >&2;}
1995 { (exit 1); exit 1; }; }
2000 list) echo; ls "$srcdir/src/template"; exit;;
2001 *) if test -f "$srcdir/src/template/$with_template" ; then
2004 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2005 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2006 { (exit 1); exit 1; }; }
2015 # --with-template not given
2018 aix*) template=aix ;;
2019 bsdi*) template=bsdi ;;
2020 cygwin*) template=cygwin ;;
2021 darwin*) template=darwin ;;
2022 dgux*) template=dgux ;;
2023 freebsd*) template=freebsd ;;
2024 hpux*) template=hpux ;;
2025 irix*) template=irix ;;
2026 linux*|gnu*|k*bsd*-gnu)
2028 mingw*) template=win32 ;;
2029 netbsd*) template=netbsd ;;
2030 nextstep*) template=nextstep ;;
2031 openbsd*) template=openbsd ;;
2032 osf*) template=osf ;;
2033 sco*) template=sco ;;
2034 solaris*) template=solaris ;;
2035 sunos*) template=sunos4 ;;
2037 case $host_vendor in
2038 univel) template=univel ;;
2040 sysv4*) template=svr4 ;;
2041 sysv5*) template=unixware ;;
2042 ultrix*) template=ultrix4 ;;
2045 if test x"$template" = x"" ; then
2046 { { echo "$as_me:$LINENO: error:
2047 *******************************************************************
2048 PostgreSQL has apparently not been ported to your platform yet.
2049 To try a manual configuration, look into the src/template directory
2050 for a similar platform and use the '--with-template=' option.
2052 Please also contact <pgsql-ports@postgresql.org> to see about
2053 rectifying this. Include the above 'checking host system type...'
2055 *******************************************************************
2057 echo "$as_me: error:
2058 *******************************************************************
2059 PostgreSQL has apparently not been ported to your platform yet.
2060 To try a manual configuration, look into the src/template directory
2061 for a similar platform and use the '--with-template=' option.
2063 Please also contact <pgsql-ports@postgresql.org> to see about
2064 rectifying this. Include the above 'checking host system type...'
2066 *******************************************************************
2068 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $template" >&5
2077 echo "${ECHO_T}$template" >&6; }
2082 # Initialize default assumption that we do not need separate assembly code
2083 # for TAS (test-and-set). This can be overridden by the template file
2084 # when it's executed.
2091 ## Command line options
2095 # Add non-standard directories to the include path
2098 pgac_args="$pgac_args with_includes"
2101 # Check whether --with-includes was given.
2102 if test "${with_includes+set}" = set; then
2103 withval=$with_includes;
2106 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2107 echo "$as_me: error: argument required for --with-includes option" >&2;}
2108 { (exit 1); exit 1; }; }
2111 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2112 echo "$as_me: error: argument required for --with-includes option" >&2;}
2113 { (exit 1); exit 1; }; }
2126 # Add non-standard directories to the library search path
2129 pgac_args="$pgac_args with_libraries"
2132 # Check whether --with-libraries was given.
2133 if test "${with_libraries+set}" = set; then
2134 withval=$with_libraries;
2137 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2138 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2139 { (exit 1); exit 1; }; }
2142 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2143 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2144 { (exit 1); exit 1; }; }
2147 LIBRARY_DIRS=$withval
2156 pgac_args="$pgac_args with_libs"
2159 # Check whether --with-libs was given.
2160 if test "${with_libs+set}" = set; then
2164 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2165 echo "$as_me: error: argument required for --with-libs option" >&2;}
2166 { (exit 1); exit 1; }; }
2169 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2170 echo "$as_me: error: argument required for --with-libs option" >&2;}
2171 { (exit 1); exit 1; }; }
2174 LIBRARY_DIRS=$withval
2184 # 64-bit integer date/time storage: enabled by default.
2186 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2187 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2189 pgac_args="$pgac_args enable_integer_datetimes"
2191 # Check whether --enable-integer-datetimes was given.
2192 if test "${enable_integer_datetimes+set}" = set; then
2193 enableval=$enable_integer_datetimes;
2197 cat >>confdefs.h <<\_ACEOF
2198 #define USE_INTEGER_DATETIMES 1
2206 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2207 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2208 { (exit 1); exit 1; }; }
2213 enable_integer_datetimes=yes
2215 cat >>confdefs.h <<\_ACEOF
2216 #define USE_INTEGER_DATETIMES 1
2222 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2223 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2229 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2230 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2232 pgac_args="$pgac_args enable_nls"
2234 # Check whether --enable-nls was given.
2235 if test "${enable_nls+set}" = set; then
2236 enableval=$enable_nls;
2246 WANTED_LANGUAGES=$enableval
2256 if test "$enable_nls" = yes; then
2258 cat >>confdefs.h <<\_ACEOF
2259 #define ENABLE_NLS 1
2264 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2265 echo "${ECHO_T}$enable_nls" >&6; }
2270 # Default port number (--with-pgport), default 5432
2272 { echo "$as_me:$LINENO: checking for default port number" >&5
2273 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2275 pgac_args="$pgac_args with_pgport"
2278 # Check whether --with-pgport was given.
2279 if test "${with_pgport+set}" = set; then
2280 withval=$with_pgport;
2283 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2284 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2285 { (exit 1); exit 1; }; }
2288 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2289 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2290 { (exit 1); exit 1; }; }
2293 default_port=$withval
2302 { echo "$as_me:$LINENO: result: $default_port" >&5
2303 echo "${ECHO_T}$default_port" >&6; }
2304 # Need both of these because some places want an integer and some a string
2306 cat >>confdefs.h <<_ACEOF
2307 #define DEF_PGPORT ${default_port}
2311 cat >>confdefs.h <<_ACEOF
2312 #define DEF_PGPORT_STR "${default_port}"
2318 # Option to disable shared libraries
2321 pgac_args="$pgac_args enable_shared"
2323 # Check whether --enable-shared was given.
2324 if test "${enable_shared+set}" = set; then
2325 enableval=$enable_shared;
2334 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2335 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2336 { (exit 1); exit 1; }; }
2349 # '-rpath'-like feature can be disabled
2352 pgac_args="$pgac_args enable_rpath"
2354 # Check whether --enable-rpath was given.
2355 if test "${enable_rpath+set}" = set; then
2356 enableval=$enable_rpath;
2365 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2366 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2367 { (exit 1); exit 1; }; }
2383 pgac_args="$pgac_args enable_spinlocks"
2385 # Check whether --enable-spinlocks was given.
2386 if test "${enable_spinlocks+set}" = set; then
2387 enableval=$enable_spinlocks;
2396 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2397 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2398 { (exit 1); exit 1; }; }
2403 enable_spinlocks=yes
2410 # --enable-debug adds -g to compiler flags
2413 pgac_args="$pgac_args enable_debug"
2415 # Check whether --enable-debug was given.
2416 if test "${enable_debug+set}" = set; then
2417 enableval=$enable_debug;
2426 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2427 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2428 { (exit 1); exit 1; }; }
2441 # --enable-profiling enables gcc profiling
2444 pgac_args="$pgac_args enable_profiling"
2446 # Check whether --enable-profiling was given.
2447 if test "${enable_profiling+set}" = set; then
2448 enableval=$enable_profiling;
2457 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2458 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2459 { (exit 1); exit 1; }; }
2475 pgac_args="$pgac_args enable_dtrace"
2477 # Check whether --enable-dtrace was given.
2478 if test "${enable_dtrace+set}" = set; then
2479 enableval=$enable_dtrace;
2483 cat >>confdefs.h <<\_ACEOF
2484 #define ENABLE_DTRACE 1
2487 for ac_prog in dtrace
2489 # Extract the first word of "$ac_prog", so it can be a program name with args.
2490 set dummy $ac_prog; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_DTRACE+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 if test -n "$DTRACE"; then
2497 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_DTRACE="$ac_prog"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 DTRACE=$ac_cv_prog_DTRACE
2517 if test -n "$DTRACE"; then
2518 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2519 echo "${ECHO_T}$DTRACE" >&6; }
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2526 test -n "$DTRACE" && break
2529 if test -z "$DTRACE"; then
2530 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2531 echo "$as_me: error: dtrace not found" >&2;}
2532 { (exit 1); exit 1; }; }
2540 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2541 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2542 { (exit 1); exit 1; }; }
2557 { echo "$as_me:$LINENO: checking for block size" >&5
2558 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2560 pgac_args="$pgac_args with_blocksize"
2563 # Check whether --with-blocksize was given.
2564 if test "${with_blocksize+set}" = set; then
2565 withval=$with_blocksize;
2568 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2569 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2570 { (exit 1); exit 1; }; }
2573 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2574 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2575 { (exit 1); exit 1; }; }
2587 case ${blocksize} in
2594 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2595 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2596 { (exit 1); exit 1; }; }
2598 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2599 echo "${ECHO_T}${blocksize}kB" >&6; }
2602 cat >>confdefs.h <<_ACEOF
2603 #define BLCKSZ ${BLCKSZ}
2608 # Relation segment size
2610 { echo "$as_me:$LINENO: checking for segment size" >&5
2611 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2613 pgac_args="$pgac_args with_segsize"
2616 # Check whether --with-segsize was given.
2617 if test "${with_segsize+set}" = set; then
2618 withval=$with_segsize;
2621 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2622 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2623 { (exit 1); exit 1; }; }
2626 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2627 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2628 { (exit 1); exit 1; }; }
2640 # this expression is set up to avoid unnecessary integer overflow
2641 # blocksize is already guaranteed to be a factor of 1024
2642 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2643 test $? -eq 0 || exit 1
2644 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2645 echo "${ECHO_T}${segsize}GB" >&6; }
2648 cat >>confdefs.h <<_ACEOF
2649 #define RELSEG_SIZE ${RELSEG_SIZE}
2656 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2657 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2659 pgac_args="$pgac_args with_wal_blocksize"
2662 # Check whether --with-wal-blocksize was given.
2663 if test "${with_wal_blocksize+set}" = set; then
2664 withval=$with_wal_blocksize;
2667 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2668 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2669 { (exit 1); exit 1; }; }
2672 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2673 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2674 { (exit 1); exit 1; }; }
2677 wal_blocksize=$withval
2686 case ${wal_blocksize} in
2687 1) XLOG_BLCKSZ=1024;;
2688 2) XLOG_BLCKSZ=2048;;
2689 4) XLOG_BLCKSZ=4096;;
2690 8) XLOG_BLCKSZ=8192;;
2691 16) XLOG_BLCKSZ=16384;;
2692 32) XLOG_BLCKSZ=32768;;
2693 64) XLOG_BLCKSZ=65536;;
2694 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2695 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2696 { (exit 1); exit 1; }; }
2698 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2699 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2702 cat >>confdefs.h <<_ACEOF
2703 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2710 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2711 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2713 pgac_args="$pgac_args with_wal_segsize"
2716 # Check whether --with-wal-segsize was given.
2717 if test "${with_wal_segsize+set}" = set; then
2718 withval=$with_wal_segsize;
2721 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2722 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2723 { (exit 1); exit 1; }; }
2726 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2727 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2728 { (exit 1); exit 1; }; }
2731 wal_segsize=$withval
2740 case ${wal_segsize} in
2748 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2749 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2750 { (exit 1); exit 1; }; }
2752 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2753 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2756 cat >>confdefs.h <<_ACEOF
2757 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2765 # For historical reasons you can also use --with-CC to specify the C compiler
2766 # to use, although the standard way to do this is to set the CC environment
2769 pgac_args="$pgac_args with_CC"
2772 # Check whether --with-CC was given.
2773 if test "${with_CC+set}" = set; then
2777 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2778 echo "$as_me: error: argument required for --with-CC option" >&2;}
2779 { (exit 1); exit 1; }; }
2782 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2783 echo "$as_me: error: argument required for --with-CC option" >&2;}
2784 { (exit 1); exit 1; }; }
2796 aix) pgac_cc_list="gcc xlc";;
2797 irix) pgac_cc_list="cc";; # no gcc
2798 *) pgac_cc_list="gcc cc";;
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 if test -n "$ac_tool_prefix"; then
2807 for ac_prog in $pgac_cc_list
2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CC"; then
2838 { echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6; }
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2846 test -n "$CC" && break
2849 if test -z "$CC"; then
2851 for ac_prog in $pgac_cc_list
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$ac_ct_CC"; then
2861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_ac_ct_CC="$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2881 if test -n "$ac_ct_CC"; then
2882 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2883 echo "${ECHO_T}$ac_ct_CC" >&6; }
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2890 test -n "$ac_ct_CC" && break
2893 if test "x$ac_ct_CC" = x; then
2896 case $cross_compiling:$ac_tool_warned in
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet. If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet. If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2911 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2917 # Provide some information about the compiler.
2918 echo "$as_me:$LINENO: checking for C compiler version" >&5
2919 ac_compiler=`set X $ac_compile; echo $2`
2920 { (ac_try="$ac_compiler --version >&5"
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compiler --version >&5") 2>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }
2930 { (ac_try="$ac_compiler -v >&5"
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compiler -v >&5") 2>&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }
2940 { (ac_try="$ac_compiler -V >&5"
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compiler -V >&5") 2>&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2966 ac_clean_files_save=$ac_clean_files
2967 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2968 # Try to create an executable without -o first, disregard a.out.
2969 # It will help us diagnose broken compilers, and finding out an intuition
2971 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2972 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2973 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2975 # List of possible output files, starting from the most likely.
2976 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2977 # only as a last resort. b.out is created by i960 compilers.
2978 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2980 # The IRIX 6 linker writes into existing files which may not be
2981 # executable, retaining their permissions. Remove them first so a
2982 # subsequent execution test works.
2984 for ac_file in $ac_files
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2993 if { (ac_try="$ac_link_default"
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_link_default") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; then
3003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3004 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3005 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3006 # so that the user can short-circuit this test for compilers unknown to
3008 for ac_file in $ac_files ''
3010 test -f "$ac_file" || continue
3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3015 # We found the default executable, but exeext='' is most
3019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3023 # We set ac_cv_exeext here because the later test for it is not
3024 # safe: cross compilers may not add the suffix if given an `-o'
3025 # argument, so we may need to know it at that point already.
3026 # Even if this section looks crufty: it has the advantage of
3033 test "$ac_cv_exeext" = no && ac_cv_exeext=
3039 { echo "$as_me:$LINENO: result: $ac_file" >&5
3040 echo "${ECHO_T}$ac_file" >&6; }
3041 if test -z "$ac_file"; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3046 See \`config.log' for more details." >&5
3047 echo "$as_me: error: C compiler cannot create executables
3048 See \`config.log' for more details." >&2;}
3049 { (exit 77); exit 77; }; }
3052 ac_exeext=$ac_cv_exeext
3054 # Check that the compiler produces executables we can run. If not, either
3055 # the compiler is broken, or we cross compile.
3056 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3057 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3058 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3059 # If not cross compiling, check that we can run a simple program.
3060 if test "$cross_compiling" != yes; then
3061 if { ac_try='./$ac_file'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3073 if test "$cross_compiling" = maybe; then
3076 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3077 If you meant to cross compile, use \`--host'.
3078 See \`config.log' for more details." >&5
3079 echo "$as_me: error: cannot run C compiled programs.
3080 If you meant to cross compile, use \`--host'.
3081 See \`config.log' for more details." >&2;}
3082 { (exit 1); exit 1; }; }
3086 { echo "$as_me:$LINENO: result: yes" >&5
3087 echo "${ECHO_T}yes" >&6; }
3089 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3090 ac_clean_files=$ac_clean_files_save
3091 # Check that the compiler produces executables we can run. If not, either
3092 # the compiler is broken, or we cross compile.
3093 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3094 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3095 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3096 echo "${ECHO_T}$cross_compiling" >&6; }
3098 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3099 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3100 if { (ac_try="$ac_link"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_link") 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; then
3110 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3111 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3112 # work properly (i.e., refer to `conftest.exe'), while it won't with
3114 for ac_file in conftest.exe conftest conftest.*; do
3115 test -f "$ac_file" || continue
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3118 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details." >&5
3126 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3131 rm -f conftest$ac_cv_exeext
3132 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3133 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3135 rm -f conftest.$ac_ext
3136 EXEEXT=$ac_cv_exeext
3138 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3139 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3140 if test "${ac_cv_objext+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 cat >conftest.$ac_ext <<_ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3158 rm -f conftest.o conftest.obj
3159 if { (ac_try="$ac_compile"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
3169 for ac_file in conftest.o conftest.obj conftest.*; do
3170 test -f "$ac_file" || continue;
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3182 See \`config.log' for more details." >&5
3183 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3184 See \`config.log' for more details." >&2;}
3185 { (exit 1); exit 1; }; }
3188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3190 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3191 echo "${ECHO_T}$ac_cv_objext" >&6; }
3192 OBJEXT=$ac_cv_objext
3194 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3195 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3196 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3217 rm -f conftest.$ac_objext
3218 if { (ac_try="$ac_compile"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_compile") 2>conftest.er1
3226 grep -v '^ *+' conftest.er1 >conftest.err
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } && {
3231 test -z "$ac_c_werror_flag" ||
3232 test ! -s conftest.err
3233 } && test -s conftest.$ac_objext; then
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3246 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3247 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3248 GCC=`test $ac_compiler_gnu = yes && echo yes`
3249 ac_test_CFLAGS=${CFLAGS+set}
3250 ac_save_CFLAGS=$CFLAGS
3251 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3252 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3253 if test "${ac_cv_prog_cc_g+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 ac_save_c_werror_flag=$ac_c_werror_flag
3257 ac_c_werror_flag=yes
3260 cat >conftest.$ac_ext <<_ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3275 rm -f conftest.$ac_objext
3276 if { (ac_try="$ac_compile"
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compile") 2>conftest.er1
3284 grep -v '^ *+' conftest.er1 >conftest.err
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_c_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest.$ac_objext; then
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3313 rm -f conftest.$ac_objext
3314 if { (ac_try="$ac_compile"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_compile") 2>conftest.er1
3322 grep -v '^ *+' conftest.er1 >conftest.err
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } && {
3327 test -z "$ac_c_werror_flag" ||
3328 test ! -s conftest.err
3329 } && test -s conftest.$ac_objext; then
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 ac_c_werror_flag=$ac_save_c_werror_flag
3337 cat >conftest.$ac_ext <<_ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3352 rm -f conftest.$ac_objext
3353 if { (ac_try="$ac_compile"
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_compile") 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } && {
3366 test -z "$ac_c_werror_flag" ||
3367 test ! -s conftest.err
3368 } && test -s conftest.$ac_objext; then
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 ac_c_werror_flag=$ac_save_c_werror_flag
3386 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3387 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3388 if test "$ac_test_CFLAGS" = set; then
3389 CFLAGS=$ac_save_CFLAGS
3390 elif test $ac_cv_prog_cc_g = yes; then
3391 if test "$GCC" = yes; then
3397 if test "$GCC" = yes; then
3403 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3404 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3405 if test "${ac_cv_prog_cc_c89+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 ac_cv_prog_cc_c89=no
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3418 #include <sys/types.h>
3419 #include <sys/stat.h>
3420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3421 struct buf { int x; };
3422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3423 static char *e (p, i)
3429 static char *f (char * (*g) (char **, int), char **p, ...)
3434 s = g (p, va_arg (v,int));
3439 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3440 function prototypes and stuff, but not '\xHH' hex character constants.
3441 These don't provoke an error unfortunately, instead are silently treated
3442 as 'x'. The following induces an error, until -std is added to get
3443 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3444 array size at least. It's necessary to write '\x00'==0 to get something
3445 that's true only with -std. */
3446 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3448 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3449 inside strings and character constants. */
3451 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3453 int test (int i, double x);
3454 struct s1 {int (*f) (int a);};
3455 struct s2 {int (*f) (double a);};
3456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3462 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3467 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3468 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3470 CC="$ac_save_CC $ac_arg"
3471 rm -f conftest.$ac_objext
3472 if { (ac_try="$ac_compile"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_compile") 2>conftest.er1
3480 grep -v '^ *+' conftest.er1 >conftest.err
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } && {
3485 test -z "$ac_c_werror_flag" ||
3486 test ! -s conftest.err
3487 } && test -s conftest.$ac_objext; then
3488 ac_cv_prog_cc_c89=$ac_arg
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3496 rm -f core conftest.err conftest.$ac_objext
3497 test "x$ac_cv_prog_cc_c89" != "xno" && break
3499 rm -f conftest.$ac_ext
3504 case "x$ac_cv_prog_cc_c89" in
3506 { echo "$as_me:$LINENO: result: none needed" >&5
3507 echo "${ECHO_T}none needed" >&6; } ;;
3509 { echo "$as_me:$LINENO: result: unsupported" >&5
3510 echo "${ECHO_T}unsupported" >&6; } ;;
3512 CC="$CC $ac_cv_prog_cc_c89"
3513 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3514 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3526 # but has idiosyncrasies of its own. We assume icc will define
3527 # __INTEL_COMPILER regardless of CFLAGS.
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3539 #ifndef __INTEL_COMPILER
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 . "$srcdir/src/template/$template" || exit
3580 # CFLAGS are selected so:
3581 # If the user specifies something in the environment, that is used.
3582 # else: If the template file set something, that is used.
3583 # else: If the compiler is GCC, then we use -O2.
3584 # else: If the compiler is something else, then we use -0.
3586 if test "$ac_env_CFLAGS_set" = set; then
3587 CFLAGS=$ac_env_CFLAGS_value
3588 elif test "${CFLAGS+set}" = set; then
3589 : # (keep what template set)
3590 elif test "$GCC" = yes; then
3593 # if the user selected debug mode, don't use -O
3594 if test "$enable_debug" != yes; then
3599 # Some versions of GCC support some additional useful warning flags.
3600 # Check whether they are supported, and add them to CFLAGS if so.
3601 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3603 if test "$GCC" = yes -a "$ICC" = no; then
3604 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3605 # These work in some but not all gcc versions
3606 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3607 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3608 pgac_save_CFLAGS=$CFLAGS
3609 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3610 cat >conftest.$ac_ext <<_ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3625 rm -f conftest.$ac_objext
3626 if { (ac_try="$ac_compile"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_compile") 2>conftest.er1
3634 grep -v '^ *+' conftest.er1 >conftest.err
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } && {
3639 test -z "$ac_c_werror_flag" ||
3640 test ! -s conftest.err
3641 } && test -s conftest.$ac_objext; then
3642 { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; }
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 CFLAGS="$pgac_save_CFLAGS"
3649 { echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6; }
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3656 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3657 pgac_save_CFLAGS=$CFLAGS
3658 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3691 { echo "$as_me:$LINENO: result: yes" >&5
3692 echo "${ECHO_T}yes" >&6; }
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697 CFLAGS="$pgac_save_CFLAGS"
3698 { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 # Disable strict-aliasing rules; needed for gcc 3.3+
3705 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3706 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3707 pgac_save_CFLAGS=$CFLAGS
3708 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3709 cat >conftest.$ac_ext <<_ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3724 rm -f conftest.$ac_objext
3725 if { (ac_try="$ac_compile"
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compile") 2>conftest.er1
3733 grep -v '^ *+' conftest.er1 >conftest.err
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } && {
3738 test -z "$ac_c_werror_flag" ||
3739 test ! -s conftest.err
3740 } && test -s conftest.$ac_objext; then
3741 { echo "$as_me:$LINENO: result: yes" >&5
3742 echo "${ECHO_T}yes" >&6; }
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 CFLAGS="$pgac_save_CFLAGS"
3748 { echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6; }
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3755 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3756 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3757 pgac_save_CFLAGS=$CFLAGS
3758 CFLAGS="$pgac_save_CFLAGS -fwrapv"
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3783 grep -v '^ *+' conftest.er1 >conftest.err
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
3791 { echo "$as_me:$LINENO: result: yes" >&5
3792 echo "${ECHO_T}yes" >&6; }
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 CFLAGS="$pgac_save_CFLAGS"
3798 { echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6; }
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 elif test "$ICC" = yes; then
3805 # Intel's compiler has a bug/misoptimization in checking for
3806 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3807 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3808 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
3809 pgac_save_CFLAGS=$CFLAGS
3810 CFLAGS="$pgac_save_CFLAGS -mp1"
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3826 rm -f conftest.$ac_objext
3827 if { (ac_try="$ac_compile"
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3835 grep -v '^ *+' conftest.er1 >conftest.err
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && {
3840 test -z "$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 } && test -s conftest.$ac_objext; then
3843 { echo "$as_me:$LINENO: result: yes" >&5
3844 echo "${ECHO_T}yes" >&6; }
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 CFLAGS="$pgac_save_CFLAGS"
3850 { echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6; }
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 # Make sure strict aliasing is off (though this is said to be the default)
3857 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3858 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3859 pgac_save_CFLAGS=$CFLAGS
3860 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3861 cat >conftest.$ac_ext <<_ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3893 { echo "$as_me:$LINENO: result: yes" >&5
3894 echo "${ECHO_T}yes" >&6; }
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3899 CFLAGS="$pgac_save_CFLAGS"
3900 { echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6; }
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 elif test x"${CC}" = x"xlc"; then
3907 # AIX xlc has to have strict aliasing turned off too
3908 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3909 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
3910 pgac_save_CFLAGS=$CFLAGS
3911 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3927 rm -f conftest.$ac_objext
3928 if { (ac_try="$ac_compile"
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_compile") 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest.$ac_objext; then
3944 { echo "$as_me:$LINENO: result: yes" >&5
3945 echo "${ECHO_T}yes" >&6; }
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 CFLAGS="$pgac_save_CFLAGS"
3951 { echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6; }
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 # supply -g if --enable-debug
3960 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3964 # enable profiling if --enable-profiling
3965 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3966 if test "$GCC" = yes; then
3968 cat >>confdefs.h <<\_ACEOF
3969 #define PROFILE_PID_DIR 1
3972 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
3974 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3975 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3976 { (exit 1); exit 1; }; }
3980 # We already have this in Makefile.win32, but configure needs it too
3981 if test "$PORTNAME" = "win32"; then
3982 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3985 # Check if the compiler still works with the template settings
3986 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3987 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
4003 rm -f conftest.$ac_objext conftest$ac_exeext
4004 if { (ac_try="$ac_link"
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_link") 2>conftest.er1
4012 grep -v '^ *+' conftest.er1 >conftest.err
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } && {
4017 test -z "$ac_c_werror_flag" ||
4018 test ! -s conftest.err
4019 } && test -s conftest$ac_exeext &&
4020 $as_test_x conftest$ac_exeext; then
4021 { echo "$as_me:$LINENO: result: yes" >&5
4022 echo "${ECHO_T}yes" >&6; }
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4029 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4030 echo "$as_me: error: cannot proceed" >&2;}
4031 { (exit 1); exit 1; }; }
4034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4035 conftest$ac_exeext conftest.$ac_ext
4037 # Defend against gcc -ffast-math
4038 if test "$GCC" = yes; then
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4049 #ifdef __FAST_MATH__
4056 rm -f conftest.$ac_objext
4057 if { (ac_try="$ac_compile"
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_compile") 2>conftest.er1
4065 grep -v '^ *+' conftest.er1 >conftest.err
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && {
4070 test -z "$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4072 } && test -s conftest.$ac_objext; then
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4078 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4079 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4080 { (exit 1); exit 1; }; }
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4092 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4093 # On Suns, sometimes $CPP names a directory.
4094 if test -n "$CPP" && test -d "$CPP"; then
4097 if test -z "$CPP"; then
4098 if test "${ac_cv_prog_CPP+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 # Double quotes because CPP needs to be expanded
4102 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4105 for ac_c_preproc_warn_flag in '' yes
4107 # Use a header file that comes with gcc, so configuring glibc
4108 # with a fresh cross-compiler works.
4109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4110 # <limits.h> exists even on freestanding compilers.
4111 # On the NeXT, cc -E runs the code through the compiler's parser,
4112 # not just through cpp. "Syntax error" is here to catch this case.
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4120 # include <limits.h>
4122 # include <assert.h>
4126 if { (ac_try="$ac_cpp conftest.$ac_ext"
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4134 grep -v '^ *+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } >/dev/null && {
4139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4140 test ! -s conftest.err
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 # Broken: fails on valid input.
4151 rm -f conftest.err conftest.$ac_ext
4153 # OK, works on sane cases. Now check whether nonexistent headers
4154 # can be detected and how.
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 #include <ac_nonexistent.h>
4163 if { (ac_try="$ac_cpp conftest.$ac_ext"
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4171 grep -v '^ *+' conftest.er1 >conftest.err
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } >/dev/null && {
4176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4177 test ! -s conftest.err
4179 # Broken: success on invalid input.
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 # Passes both tests.
4190 rm -f conftest.err conftest.$ac_ext
4193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194 rm -f conftest.err conftest.$ac_ext
4195 if $ac_preproc_ok; then
4207 { echo "$as_me:$LINENO: result: $CPP" >&5
4208 echo "${ECHO_T}$CPP" >&6; }
4210 for ac_c_preproc_warn_flag in '' yes
4212 # Use a header file that comes with gcc, so configuring glibc
4213 # with a fresh cross-compiler works.
4214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215 # <limits.h> exists even on freestanding compilers.
4216 # On the NeXT, cc -E runs the code through the compiler's parser,
4217 # not just through cpp. "Syntax error" is here to catch this case.
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4225 # include <limits.h>
4227 # include <assert.h>
4231 if { (ac_try="$ac_cpp conftest.$ac_ext"
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4239 grep -v '^ *+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } >/dev/null && {
4244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 # Broken: fails on valid input.
4256 rm -f conftest.err conftest.$ac_ext
4258 # OK, works on sane cases. Now check whether nonexistent headers
4259 # can be detected and how.
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <ac_nonexistent.h>
4268 if { (ac_try="$ac_cpp conftest.$ac_ext"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4276 grep -v '^ *+' conftest.er1 >conftest.err
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } >/dev/null && {
4281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4282 test ! -s conftest.err
4284 # Broken: success on invalid input.
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 # Passes both tests.
4295 rm -f conftest.err conftest.$ac_ext
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then
4303 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4304 See \`config.log' for more details." >&5
4305 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4306 See \`config.log' for more details." >&2;}
4307 { (exit 1); exit 1; }; }
4311 ac_cpp='$CPP $CPPFLAGS'
4312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 # Create compiler version string
4319 if test x"$GCC" = x"yes" ; then
4320 cc_string="GCC `${CC} --version | sed q`"
4325 cat >>confdefs.h <<_ACEOF
4326 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4332 # Set up TAS assembly code if needed; the template file has now had its
4333 # chance to request this.
4335 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4338 if test "$need_tas" = yes ; then
4347 # Automatic dependency tracking
4350 pgac_args="$pgac_args enable_depend"
4352 # Check whether --enable-depend was given.
4353 if test "${enable_depend+set}" = set; then
4354 enableval=$enable_depend;
4363 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4364 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4365 { (exit 1); exit 1; }; }
4379 # Enable assert checks
4382 pgac_args="$pgac_args enable_cassert"
4384 # Check whether --enable-cassert was given.
4385 if test "${enable_cassert+set}" = set; then
4386 enableval=$enable_cassert;
4390 cat >>confdefs.h <<\_ACEOF
4391 #define USE_ASSERT_CHECKING 1
4399 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4400 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4401 { (exit 1); exit 1; }; }
4414 # Include directories
4417 IFS="${IFS}${PATH_SEPARATOR}"
4418 # SRCH_INC comes from the template file
4419 for dir in $with_includes $SRCH_INC; do
4420 if test -d "$dir"; then
4421 INCLUDES="$INCLUDES -I$dir"
4423 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4424 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4432 # Library directories
4435 IFS="${IFS}${PATH_SEPARATOR}"
4436 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4437 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4438 if test -d "$dir"; then
4439 LIBDIRS="$LIBDIRS -L$dir"
4441 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4442 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4448 # Enable thread-safe client libraries
4450 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4451 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4452 if test "$PORTNAME" != "win32"; then
4454 pgac_args="$pgac_args enable_thread_safety"
4456 # Check whether --enable-thread-safety was given.
4457 if test "${enable_thread_safety+set}" = set; then
4458 enableval=$enable_thread_safety;
4467 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4468 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4469 { (exit 1); exit 1; }; }
4474 enable_thread_safety=no
4480 # Win32 should always use threads
4482 pgac_args="$pgac_args enable_thread_safety"
4484 # Check whether --enable-thread-safety was given.
4485 if test "${enable_thread_safety+set}" = set; then
4486 enableval=$enable_thread_safety;
4495 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4496 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4497 { (exit 1); exit 1; }; }
4502 enable_thread_safety=yes
4510 pgac_args="$pgac_args enable_thread_safety_force"
4512 # Check whether --enable-thread-safety-force was given.
4513 if test "${enable_thread_safety_force+set}" = set; then
4514 enableval=$enable_thread_safety_force;
4523 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4524 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4525 { (exit 1); exit 1; }; }
4530 enable_thread_safety_force=no
4535 if test "$enable_thread_safety" = yes -o \
4536 "$enable_thread_safety_force" = yes; then
4537 enable_thread_safety="yes" # for 'force'
4539 cat >>confdefs.h <<\_ACEOF
4540 #define ENABLE_THREAD_SAFETY 1
4544 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4545 echo "${ECHO_T}$enable_thread_safety" >&6; }
4549 # Optionally build Tcl modules (PL/Tcl)
4551 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4552 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4554 pgac_args="$pgac_args with_tcl"
4557 # Check whether --with-tcl was given.
4558 if test "${with_tcl+set}" = set; then
4568 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4569 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4570 { (exit 1); exit 1; }; }
4580 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4581 echo "${ECHO_T}$with_tcl" >&6; }
4584 # We see if the path to the Tcl/Tk configuration scripts is specified.
4585 # This will override the use of tclsh to find the paths to search.
4588 pgac_args="$pgac_args with_tclconfig"
4591 # Check whether --with-tclconfig was given.
4592 if test "${with_tclconfig+set}" = set; then
4593 withval=$with_tclconfig;
4596 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4597 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4598 { (exit 1); exit 1; }; }
4601 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4602 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4603 { (exit 1); exit 1; }; }
4615 # Optionally build Perl modules (PL/Perl)
4617 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4618 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4620 pgac_args="$pgac_args with_perl"
4623 # Check whether --with-perl was given.
4624 if test "${with_perl+set}" = set; then
4634 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4635 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4636 { (exit 1); exit 1; }; }
4646 { echo "$as_me:$LINENO: result: $with_perl" >&5
4647 echo "${ECHO_T}$with_perl" >&6; }
4651 # Optionally build Python modules (PL/Python)
4653 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4654 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4656 pgac_args="$pgac_args with_python"
4659 # Check whether --with-python was given.
4660 if test "${with_python+set}" = set; then
4661 withval=$with_python;
4670 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4671 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4672 { (exit 1); exit 1; }; }
4682 { echo "$as_me:$LINENO: result: $with_python" >&5
4683 echo "${ECHO_T}$with_python" >&6; }
4689 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4690 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4692 pgac_args="$pgac_args with_gssapi"
4695 # Check whether --with-gssapi was given.
4696 if test "${with_gssapi+set}" = set; then
4697 withval=$with_gssapi;
4702 cat >>confdefs.h <<\_ACEOF
4703 #define ENABLE_GSS 1
4706 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4713 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4714 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4715 { (exit 1); exit 1; }; }
4725 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4726 echo "${ECHO_T}$with_gssapi" >&6; }
4732 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4733 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4735 pgac_args="$pgac_args with_krb5"
4738 # Check whether --with-krb5 was given.
4739 if test "${with_krb5+set}" = set; then
4745 cat >>confdefs.h <<\_ACEOF
4749 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4756 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4757 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4758 { (exit 1); exit 1; }; }
4768 { echo "$as_me:$LINENO: result: $with_krb5" >&5
4769 echo "${ECHO_T}$with_krb5" >&6; }
4777 # Kerberos configuration parameters
4780 pgac_args="$pgac_args with_krb_srvnam"
4783 # Check whether --with-krb-srvnam was given.
4784 if test "${with_krb_srvnam+set}" = set; then
4785 withval=$with_krb_srvnam;
4788 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4789 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4790 { (exit 1); exit 1; }; }
4793 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4794 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4795 { (exit 1); exit 1; }; }
4803 with_krb_srvnam="postgres"
4808 cat >>confdefs.h <<_ACEOF
4809 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4817 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4818 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
4820 pgac_args="$pgac_args with_pam"
4823 # Check whether --with-pam was given.
4824 if test "${with_pam+set}" = set; then
4829 cat >>confdefs.h <<\_ACEOF
4838 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4839 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4840 { (exit 1); exit 1; }; }
4850 { echo "$as_me:$LINENO: result: $with_pam" >&5
4851 echo "${ECHO_T}$with_pam" >&6; }
4858 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4859 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
4861 pgac_args="$pgac_args with_ldap"
4864 # Check whether --with-ldap was given.
4865 if test "${with_ldap+set}" = set; then
4870 cat >>confdefs.h <<\_ACEOF
4879 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4880 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4881 { (exit 1); exit 1; }; }
4891 { echo "$as_me:$LINENO: result: $with_ldap" >&5
4892 echo "${ECHO_T}$with_ldap" >&6; }
4899 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4900 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
4902 pgac_args="$pgac_args with_bonjour"
4905 # Check whether --with-bonjour was given.
4906 if test "${with_bonjour+set}" = set; then
4907 withval=$with_bonjour;
4911 cat >>confdefs.h <<\_ACEOF
4912 #define USE_BONJOUR 1
4920 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4921 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4922 { (exit 1); exit 1; }; }
4932 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
4933 echo "${ECHO_T}$with_bonjour" >&6; }
4940 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4941 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
4943 pgac_args="$pgac_args with_openssl"
4946 # Check whether --with-openssl was given.
4947 if test "${with_openssl+set}" = set; then
4948 withval=$with_openssl;
4952 cat >>confdefs.h <<\_ACEOF
4961 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4962 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4963 { (exit 1); exit 1; }; }
4973 { echo "$as_me:$LINENO: result: $with_openssl" >&5
4974 echo "${ECHO_T}$with_openssl" >&6; }
4982 pgac_args="$pgac_args with_readline"
4985 # Check whether --with-readline was given.
4986 if test "${with_readline+set}" = set; then
4987 withval=$with_readline;
4996 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4997 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4998 { (exit 1); exit 1; }; }
5008 # readline on MinGW has problems with backslashes in psql and other bugs.
5009 # This is particularly a problem with non-US code pages.
5010 # Therefore disable its use until we understand the cause. 2004-07-20
5011 if test "$PORTNAME" = "win32"; then
5012 if test "$with_readline" = yes; then
5013 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5014 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5024 pgac_args="$pgac_args with_libedit_preferred"
5027 # Check whether --with-libedit-preferred was given.
5028 if test "${with_libedit_preferred+set}" = set; then
5029 withval=$with_libedit_preferred;
5038 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5039 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5040 { (exit 1); exit 1; }; }
5045 with_libedit_preferred=no
5056 pgac_args="$pgac_args with_ossp_uuid"
5059 # Check whether --with-ossp-uuid was given.
5060 if test "${with_ossp_uuid+set}" = set; then
5061 withval=$with_ossp_uuid;
5070 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5071 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5072 { (exit 1); exit 1; }; }
5089 pgac_args="$pgac_args with_libxml"
5092 # Check whether --with-libxml was given.
5093 if test "${with_libxml+set}" = set; then
5094 withval=$with_libxml;
5098 cat >>confdefs.h <<\_ACEOF
5099 #define USE_LIBXML 1
5107 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5108 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5109 { (exit 1); exit 1; }; }
5120 if test "$with_libxml" = yes ; then
5121 for ac_prog in xml2-config
5123 # Extract the first word of "$ac_prog", so it can be a program name with args.
5124 set dummy $ac_prog; ac_word=$2
5125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 if test -n "$XML2_CONFIG"; then
5131 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_XML2_CONFIG="$ac_prog"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5151 if test -n "$XML2_CONFIG"; then
5152 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5153 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5155 { echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6; }
5160 test -n "$XML2_CONFIG" && break
5163 if test -n "$XML2_CONFIG"; then
5164 for pgac_option in `$XML2_CONFIG --cflags`; do
5165 case $pgac_option in
5166 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5169 for pgac_option in `$XML2_CONFIG --libs`; do
5170 case $pgac_option in
5171 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5183 pgac_args="$pgac_args with_libxslt"
5186 # Check whether --with-libxslt was given.
5187 if test "${with_libxslt+set}" = set; then
5188 withval=$with_libxslt;
5192 cat >>confdefs.h <<\_ACEOF
5193 #define USE_LIBXSLT 1
5201 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5202 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5203 { (exit 1); exit 1; }; }
5221 pgac_args="$pgac_args with_system_tzdata"
5224 # Check whether --with-system-tzdata was given.
5225 if test "${with_system_tzdata+set}" = set; then
5226 withval=$with_system_tzdata;
5229 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5230 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5231 { (exit 1); exit 1; }; }
5234 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5235 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5236 { (exit 1); exit 1; }; }
5252 pgac_args="$pgac_args with_zlib"
5255 # Check whether --with-zlib was given.
5256 if test "${with_zlib+set}" = set; then
5266 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5267 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5268 { (exit 1); exit 1; }; }
5284 # Assume system is ELF if it predefines __ELF__ as 1,
5285 # otherwise believe host_os based default.
5287 freebsd1*|freebsd2*) elf=no;;
5288 freebsd3*|freebsd4*) elf=yes;;
5292 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5293 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5294 if test "${ac_cv_path_GREP+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 # Extract the first word of "grep ggrep" to use in msg output
5298 if test -z "$GREP"; then
5299 set dummy grep ggrep; ac_prog_name=$2
5300 if test "${ac_cv_path_GREP+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 ac_path_GREP_found=false
5304 # Loop through the user's path and test for each of PROGNAME-LIST
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5309 test -z "$as_dir" && as_dir=.
5310 for ac_prog in grep ggrep; do
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5313 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5314 # Check for GNU ac_path_GREP and select it if it is found.
5315 # Check for GNU $ac_path_GREP
5316 case `"$ac_path_GREP" --version 2>&1` in
5318 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5321 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 echo 'GREP' >> "conftest.nl"
5328 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5330 ac_count=`expr $ac_count + 1`
5331 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_GREP="$ac_path_GREP"
5334 ac_path_GREP_max=$ac_count
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5343 $ac_path_GREP_found && break 3
5353 GREP="$ac_cv_path_GREP"
5354 if test -z "$GREP"; then
5355 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5356 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5357 { (exit 1); exit 1; }; }
5361 ac_cv_path_GREP=$GREP
5366 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5367 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5368 GREP="$ac_cv_path_GREP"
5371 { echo "$as_me:$LINENO: checking for egrep" >&5
5372 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5373 if test "${ac_cv_path_EGREP+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5377 then ac_cv_path_EGREP="$GREP -E"
5379 # Extract the first word of "egrep" to use in msg output
5380 if test -z "$EGREP"; then
5381 set dummy egrep; ac_prog_name=$2
5382 if test "${ac_cv_path_EGREP+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 ac_path_EGREP_found=false
5386 # Loop through the user's path and test for each of PROGNAME-LIST
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5391 test -z "$as_dir" && as_dir=.
5392 for ac_prog in egrep; do
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5395 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5396 # Check for GNU ac_path_EGREP and select it if it is found.
5397 # Check for GNU $ac_path_EGREP
5398 case `"$ac_path_EGREP" --version 2>&1` in
5400 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5403 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5406 cat "conftest.in" "conftest.in" >"conftest.tmp"
5407 mv "conftest.tmp" "conftest.in"
5408 cp "conftest.in" "conftest.nl"
5409 echo 'EGREP' >> "conftest.nl"
5410 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5412 ac_count=`expr $ac_count + 1`
5413 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5414 # Best one so far, save it but keep looking for a better one
5415 ac_cv_path_EGREP="$ac_path_EGREP"
5416 ac_path_EGREP_max=$ac_count
5418 # 10*(2^10) chars as input seems more than enough
5419 test $ac_count -gt 10 && break
5421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5425 $ac_path_EGREP_found && break 3
5435 EGREP="$ac_cv_path_EGREP"
5436 if test -z "$EGREP"; then
5437 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5438 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5439 { (exit 1); exit 1; }; }
5443 ac_cv_path_EGREP=$EGREP
5449 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5450 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5451 EGREP="$ac_cv_path_EGREP"
5454 cat >conftest.$ac_ext <<_ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5466 $EGREP "yes" >/dev/null 2>&1; then
5469 if test "X$elf" = "Xyes" ; then
5483 CPPFLAGS="$CPPFLAGS $INCLUDES"
5484 LDFLAGS="$LDFLAGS $LIBDIRS"
5489 # Check whether --with-gnu-ld was given.
5490 if test "${with_gnu_ld+set}" = set; then
5491 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5497 if test "$GCC" = yes; then
5498 # Check if gcc -print-prog-name=ld gives a path.
5499 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5500 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5503 # gcc leaves a trailing carriage return which upsets mingw
5504 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5506 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5509 # Accept absolute paths.
5510 [\\/]* | [A-Za-z]:[\\/]*)
5511 re_direlt='/[^/][^/]*/\.\./'
5512 # Canonicalize the path of ld
5513 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5514 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5515 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5517 test -z "$LD" && LD="$ac_prog"
5520 # If it fails, then pretend we aren't using GCC.
5524 # If it is relative, then search for the first ld in PATH.
5528 elif test "$with_gnu_ld" = yes; then
5529 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5530 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5532 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5533 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5535 if test "${ac_cv_path_LD+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 if test -z "$LD"; then
5539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5540 for ac_dir in $PATH; do
5541 test -z "$ac_dir" && ac_dir=.
5542 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5543 ac_cv_path_LD="$ac_dir/$ac_prog"
5544 # Check to see if the program is GNU ld. I'd rather use --version,
5545 # but apparently some GNU ld's only accept -v.
5546 # Break only if it was the GNU/non-GNU ld that we prefer.
5547 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5548 test "$with_gnu_ld" != no && break
5550 test "$with_gnu_ld" != yes && break
5556 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5561 if test -n "$LD"; then
5562 { echo "$as_me:$LINENO: result: $LD" >&5
5563 echo "${ECHO_T}$LD" >&6; }
5565 { echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6; }
5568 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5569 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5570 { (exit 1); exit 1; }; }
5571 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5572 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5573 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5577 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5578 ac_cv_prog_gnu_ld=yes
5580 ac_cv_prog_gnu_ld=no
5583 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5584 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5585 with_gnu_ld=$ac_cv_prog_gnu_ld
5590 case $host_os in sysv5*)
5591 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5592 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5593 if test "${pgac_cv_prog_ld_R+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (ac_try="$ac_link"
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_link") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1 >conftest.err
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest$ac_exeext &&
5630 $as_test_x conftest$ac_exeext; then
5631 pgac_cv_prog_ld_R=yes
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 pgac_cv_prog_ld_R=no
5639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5640 conftest$ac_exeext conftest.$ac_ext
5641 LDFLAGS=$pgac_save_LDFLAGS
5644 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5645 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5646 ld_R_works=$pgac_cv_prog_ld_R
5649 if test -n "$ac_tool_prefix"; then
5650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5654 if test "${ac_cv_prog_RANLIB+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 if test -n "$RANLIB"; then
5658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 RANLIB=$ac_cv_prog_RANLIB
5678 if test -n "$RANLIB"; then
5679 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5680 echo "${ECHO_T}$RANLIB" >&6; }
5682 { echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6; }
5688 if test -z "$ac_cv_prog_RANLIB"; then
5689 ac_ct_RANLIB=$RANLIB
5690 # Extract the first word of "ranlib", so it can be a program name with args.
5691 set dummy ranlib; ac_word=$2
5692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5694 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 if test -n "$ac_ct_RANLIB"; then
5698 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_prog_ac_ct_RANLIB="ranlib"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5718 if test -n "$ac_ct_RANLIB"; then
5719 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5720 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5722 { echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6; }
5726 if test "x$ac_ct_RANLIB" = x; then
5729 case $cross_compiling:$ac_tool_warned in
5731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5732 whose name does not start with the host triplet. If you think this
5733 configuration is useful to you, please write to autoconf@gnu.org." >&5
5734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5735 whose name does not start with the host triplet. If you think this
5736 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5737 ac_tool_warned=yes ;;
5739 RANLIB=$ac_ct_RANLIB
5742 RANLIB="$ac_cv_prog_RANLIB"
5746 if test -n "$ac_tool_prefix"; then
5747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5748 set dummy ${ac_tool_prefix}strip; ac_word=$2
5749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5751 if test "${ac_cv_prog_STRIP+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 if test -n "$STRIP"; then
5755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 STRIP=$ac_cv_prog_STRIP
5775 if test -n "$STRIP"; then
5776 { echo "$as_me:$LINENO: result: $STRIP" >&5
5777 echo "${ECHO_T}$STRIP" >&6; }
5779 { echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6; }
5785 if test -z "$ac_cv_prog_STRIP"; then
5787 # Extract the first word of "strip", so it can be a program name with args.
5788 set dummy strip; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 if test -n "$ac_ct_STRIP"; then
5795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_prog_ac_ct_STRIP="strip"
5805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5815 if test -n "$ac_ct_STRIP"; then
5816 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5817 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5819 { echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6; }
5823 if test "x$ac_ct_STRIP" = x; then
5826 case $cross_compiling:$ac_tool_warned in
5828 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5829 whose name does not start with the host triplet. If you think this
5830 configuration is useful to you, please write to autoconf@gnu.org." >&5
5831 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5832 whose name does not start with the host triplet. If you think this
5833 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5834 ac_tool_warned=yes ;;
5839 STRIP="$ac_cv_prog_STRIP"
5843 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
5844 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
5845 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
5846 STRIP_STATIC_LIB="$STRIP -x"
5847 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
5848 { echo "$as_me:$LINENO: result: yes" >&5
5849 echo "${ECHO_T}yes" >&6; }
5853 { echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6; }
5860 # Extract the first word of "tar", so it can be a program name with args.
5861 set dummy tar; ac_word=$2
5862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864 if test "${ac_cv_path_TAR+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 if test -n "$TAR"; then
5892 { echo "$as_me:$LINENO: result: $TAR" >&5
5893 echo "${ECHO_T}$TAR" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5900 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5901 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5903 if test "$LN_S" = "ln -s"; then
5904 { echo "$as_me:$LINENO: result: yes" >&5
5905 echo "${ECHO_T}yes" >&6; }
5907 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5908 echo "${ECHO_T}no, using $LN_S" >&6; }
5911 for ac_prog in gawk mawk nawk awk
5913 # Extract the first word of "$ac_prog", so it can be a program name with args.
5914 set dummy $ac_prog; ac_word=$2
5915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5917 if test "${ac_cv_prog_AWK+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 if test -n "$AWK"; then
5921 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_prog_AWK="$ac_prog"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 if test -n "$AWK"; then
5942 { echo "$as_me:$LINENO: result: $AWK" >&5
5943 echo "${ECHO_T}$AWK" >&6; }
5945 { echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6; }
5950 test -n "$AWK" && break
5954 # Let the user override the search
5955 if test -z "$BISON"; then
5956 for ac_prog in bison
5958 # Extract the first word of "$ac_prog", so it can be a program name with args.
5959 set dummy $ac_prog; ac_word=$2
5960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5962 if test "${ac_cv_prog_BISON+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 if test -n "$BISON"; then
5966 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_BISON="$ac_prog"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 BISON=$ac_cv_prog_BISON
5986 if test -n "$BISON"; then
5987 { echo "$as_me:$LINENO: result: $BISON" >&5
5988 echo "${ECHO_T}$BISON" >&6; }
5990 { echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6; }
5995 test -n "$BISON" && break
6000 if test "$BISON"; then
6001 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6002 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6003 echo "$as_me: using $pgac_bison_version" >&6;}
6004 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6006 { echo "$as_me:$LINENO: WARNING:
6007 *** The installed version of Bison is too old to use with PostgreSQL.
6008 *** Bison version 1.875 or later is required." >&5
6009 echo "$as_me: WARNING:
6010 *** The installed version of Bison is too old to use with PostgreSQL.
6011 *** Bison version 1.875 or later is required." >&2;}
6016 if test -z "$BISON"; then
6017 { echo "$as_me:$LINENO: WARNING:
6018 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6019 *** change any of the parser definition files. You can obtain Bison from
6020 *** a GNU mirror site. (If you are using the official distribution of
6021 *** PostgreSQL then you do not need to worry about this, because the Bison
6022 *** output is pre-generated.)" >&5
6023 echo "$as_me: WARNING:
6024 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6025 *** change any of the parser definition files. You can obtain Bison from
6026 *** a GNU mirror site. (If you are using the official distribution of
6027 *** PostgreSQL then you do not need to worry about this, because the Bison
6028 *** output is pre-generated.)" >&2;}
6030 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6033 { echo "$as_me:$LINENO: checking for flex" >&5
6034 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6035 if test "${pgac_cv_path_flex+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 # Let the user override the test
6039 if test -n "$FLEX"; then
6040 pgac_cv_path_flex=$FLEX
6044 for pgac_dir in $PATH; do
6046 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6049 for pgac_prog in flex lex; do
6050 pgac_candidate="$pgac_dir/$pgac_prog"
6051 if test -f "$pgac_candidate" \
6052 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6054 echo '%%' > conftest.l
6055 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6056 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6057 pgac_broken_flex=$pgac_candidate
6061 pgac_cv_path_flex=$pgac_candidate
6067 rm -f conftest.l lex.yy.c
6068 : ${pgac_cv_path_flex=no}
6072 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6073 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6074 if test x"$pgac_cv_path_flex" = x"no"; then
6075 if test -n "$pgac_broken_flex"; then
6076 { echo "$as_me:$LINENO: WARNING:
6077 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6078 *** should get version 2.5.4 or later." >&5
6079 echo "$as_me: WARNING:
6080 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6081 *** should get version 2.5.4 or later." >&2;}
6084 { echo "$as_me:$LINENO: WARNING:
6085 *** Without Flex you will not be able to build PostgreSQL from CVS or
6086 *** change any of the scanner definition files. You can obtain Flex from
6087 *** a GNU mirror site. (If you are using the official distribution of
6088 *** PostgreSQL then you do not need to worry about this because the Flex
6089 *** output is pre-generated.)" >&5
6090 echo "$as_me: WARNING:
6091 *** Without Flex you will not be able to build PostgreSQL from CVS or
6092 *** change any of the scanner definition files. You can obtain Flex from
6093 *** a GNU mirror site. (If you are using the official distribution of
6094 *** PostgreSQL then you do not need to worry about this because the Flex
6095 *** output is pre-generated.)" >&2;}
6099 FLEX=$pgac_cv_path_flex
6100 pgac_flex_version=`$FLEX -V 2>/dev/null`
6101 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6102 echo "$as_me: using $pgac_flex_version" >&6;}
6109 # Extract the first word of "perl", so it can be a program name with args.
6110 set dummy perl; ac_word=$2
6111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6113 if test "${ac_cv_path_PERL+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 PERL=$ac_cv_path_PERL
6140 if test -n "$PERL"; then
6141 { echo "$as_me:$LINENO: result: $PERL" >&5
6142 echo "${ECHO_T}$PERL" >&6; }
6144 { echo "$as_me:$LINENO: result: no" >&5
6145 echo "${ECHO_T}no" >&6; }
6149 if test "$with_perl" = yes; then
6151 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6152 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6153 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6154 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6155 echo "${ECHO_T}$perl_archlibexp" >&6; }
6156 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6157 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6158 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6159 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6160 echo "${ECHO_T}$perl_privlibexp" >&6; }
6161 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6162 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6163 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6164 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6165 echo "${ECHO_T}$perl_useshrplib" >&6; }
6167 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6168 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6169 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6170 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6171 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6172 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6173 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6176 if test "$with_python" = yes; then
6177 # Extract the first word of "python", so it can be a program name with args.
6178 set dummy python; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_path_PYTHON+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 PYTHON=$ac_cv_path_PYTHON
6208 if test -n "$PYTHON"; then
6209 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6210 echo "${ECHO_T}$PYTHON" >&6; }
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6217 if test x"$PYTHON" = x""; then
6218 { { echo "$as_me:$LINENO: error: Python not found" >&5
6219 echo "$as_me: error: Python not found" >&2;}
6220 { (exit 1); exit 1; }; }
6224 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6225 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6226 if "${PYTHON}" 2>&- -c 'import distutils'
6228 { echo "$as_me:$LINENO: result: yes" >&5
6229 echo "${ECHO_T}yes" >&6; }
6231 { echo "$as_me:$LINENO: result: no" >&5
6232 echo "${ECHO_T}no" >&6; }
6233 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6234 echo "$as_me: error: distutils module not found" >&2;}
6235 { (exit 1); exit 1; }; }
6237 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6238 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6239 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6240 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print os.path.join(f(plat_specific=1,standard_lib=1),'config')"`
6241 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6243 # This should be enough of a message.
6244 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6245 echo "${ECHO_T}$python_configdir" >&6; }
6248 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6249 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6251 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6252 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6253 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6254 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6256 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6258 # New way: use the official shared library
6259 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6260 python_libspec="-L${python_libdir} -l${ldlibrary}"
6262 # Old way: use libpython from python_configdir
6263 python_libdir="${python_configdir}"
6264 python_libspec="-L${python_libdir} -lpython${python_version}"
6267 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6269 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6270 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6273 # threaded python is not supported on bsd's
6274 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6275 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6276 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6277 if test "$pythreads" = "1"; then
6278 { echo "$as_me:$LINENO: result: yes" >&5
6279 echo "${ECHO_T}yes" >&6; }
6282 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6283 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6284 { (exit 1); exit 1; }; }
6288 { echo "$as_me:$LINENO: result: no" >&5
6289 echo "${ECHO_T}no" >&6; }
6295 # Supply a numeric version string for use by 3rd party add-ons
6296 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6297 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6299 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6301 cat >>confdefs.h <<_ACEOF
6302 #define PG_VERSION_NUM $PG_VERSION_NUM
6309 ## Most libraries are included only if they demonstrably provide a function
6310 ## we need, but libm is an exception: always include it, because there are
6311 ## too many compilers that play cute optimization games that will break
6312 ## probes for standard functions such as pow().
6316 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6317 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6318 if test "${ac_cv_lib_m_main+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_check_lib_save_LIBS=$LIBS
6323 cat >conftest.$ac_ext <<_ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6339 rm -f conftest.$ac_objext conftest$ac_exeext
6340 if { (ac_try="$ac_link"
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_link") 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } && {
6353 test -z "$ac_c_werror_flag" ||
6354 test ! -s conftest.err
6355 } && test -s conftest$ac_exeext &&
6356 $as_test_x conftest$ac_exeext; then
6357 ac_cv_lib_m_main=yes
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6366 conftest$ac_exeext conftest.$ac_ext
6367 LIBS=$ac_check_lib_save_LIBS
6369 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6370 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6371 if test $ac_cv_lib_m_main = yes; then
6372 cat >>confdefs.h <<_ACEOF
6380 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6381 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6382 if test "${ac_cv_search_setproctitle+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 ac_func_search_save_LIBS=$LIBS
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6393 /* Override any GCC internal prototype to avoid an error.
6394 Use char because int might match the return type of a GCC
6395 builtin and then its argument prototype would still apply. */
6399 char setproctitle ();
6403 return setproctitle ();
6408 for ac_lib in '' util; do
6409 if test -z "$ac_lib"; then
6410 ac_res="none required"
6413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6415 rm -f conftest.$ac_objext conftest$ac_exeext
6416 if { (ac_try="$ac_link"
6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419 *) ac_try_echo=$ac_try;;
6421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6422 (eval "$ac_link") 2>conftest.er1
6424 grep -v '^ *+' conftest.er1 >conftest.err
6426 cat conftest.err >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } && {
6429 test -z "$ac_c_werror_flag" ||
6430 test ! -s conftest.err
6431 } && test -s conftest$ac_exeext &&
6432 $as_test_x conftest$ac_exeext; then
6433 ac_cv_search_setproctitle=$ac_res
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6443 if test "${ac_cv_search_setproctitle+set}" = set; then
6447 if test "${ac_cv_search_setproctitle+set}" = set; then
6450 ac_cv_search_setproctitle=no
6453 LIBS=$ac_func_search_save_LIBS
6455 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6456 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6457 ac_res=$ac_cv_search_setproctitle
6458 if test "$ac_res" != no; then
6459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6463 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6464 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6465 if test "${ac_cv_search_dlopen+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 ac_func_search_save_LIBS=$LIBS
6469 cat >conftest.$ac_ext <<_ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6476 /* Override any GCC internal prototype to avoid an error.
6477 Use char because int might match the return type of a GCC
6478 builtin and then its argument prototype would still apply. */
6491 for ac_lib in '' dl; do
6492 if test -z "$ac_lib"; then
6493 ac_res="none required"
6496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6498 rm -f conftest.$ac_objext conftest$ac_exeext
6499 if { (ac_try="$ac_link"
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_link") 2>conftest.er1
6507 grep -v '^ *+' conftest.er1 >conftest.err
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && {
6512 test -z "$ac_c_werror_flag" ||
6513 test ! -s conftest.err
6514 } && test -s conftest$ac_exeext &&
6515 $as_test_x conftest$ac_exeext; then
6516 ac_cv_search_dlopen=$ac_res
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6526 if test "${ac_cv_search_dlopen+set}" = set; then
6530 if test "${ac_cv_search_dlopen+set}" = set; then
6533 ac_cv_search_dlopen=no
6536 LIBS=$ac_func_search_save_LIBS
6538 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6539 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6540 ac_res=$ac_cv_search_dlopen
6541 if test "$ac_res" != no; then
6542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6546 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6547 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6548 if test "${ac_cv_search_socket+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 ac_func_search_save_LIBS=$LIBS
6552 cat >conftest.$ac_ext <<_ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6559 /* Override any GCC internal prototype to avoid an error.
6560 Use char because int might match the return type of a GCC
6561 builtin and then its argument prototype would still apply. */
6574 for ac_lib in '' socket wsock32; do
6575 if test -z "$ac_lib"; then
6576 ac_res="none required"
6579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6581 rm -f conftest.$ac_objext conftest$ac_exeext
6582 if { (ac_try="$ac_link"
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_link") 2>conftest.er1
6590 grep -v '^ *+' conftest.er1 >conftest.err
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && {
6595 test -z "$ac_c_werror_flag" ||
6596 test ! -s conftest.err
6597 } && test -s conftest$ac_exeext &&
6598 $as_test_x conftest$ac_exeext; then
6599 ac_cv_search_socket=$ac_res
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6609 if test "${ac_cv_search_socket+set}" = set; then
6613 if test "${ac_cv_search_socket+set}" = set; then
6616 ac_cv_search_socket=no
6619 LIBS=$ac_func_search_save_LIBS
6621 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6622 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6623 ac_res=$ac_cv_search_socket
6624 if test "$ac_res" != no; then
6625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6629 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6630 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6631 if test "${ac_cv_search_shl_load+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_func_search_save_LIBS=$LIBS
6635 cat >conftest.$ac_ext <<_ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6642 /* Override any GCC internal prototype to avoid an error.
6643 Use char because int might match the return type of a GCC
6644 builtin and then its argument prototype would still apply. */
6657 for ac_lib in '' dld; do
6658 if test -z "$ac_lib"; then
6659 ac_res="none required"
6662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6664 rm -f conftest.$ac_objext conftest$ac_exeext
6665 if { (ac_try="$ac_link"
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_link") 2>conftest.er1
6673 grep -v '^ *+' conftest.er1 >conftest.err
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } && {
6678 test -z "$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 } && test -s conftest$ac_exeext &&
6681 $as_test_x conftest$ac_exeext; then
6682 ac_cv_search_shl_load=$ac_res
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6692 if test "${ac_cv_search_shl_load+set}" = set; then
6696 if test "${ac_cv_search_shl_load+set}" = set; then
6699 ac_cv_search_shl_load=no
6702 LIBS=$ac_func_search_save_LIBS
6704 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6705 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6706 ac_res=$ac_cv_search_shl_load
6707 if test "$ac_res" != no; then
6708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6712 # We only use libld in port/dynloader/aix.c
6715 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6716 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6717 if test "${ac_cv_search_ldopen+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 ac_func_search_save_LIBS=$LIBS
6721 cat >conftest.$ac_ext <<_ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6728 /* Override any GCC internal prototype to avoid an error.
6729 Use char because int might match the return type of a GCC
6730 builtin and then its argument prototype would still apply. */
6743 for ac_lib in '' ld; do
6744 if test -z "$ac_lib"; then
6745 ac_res="none required"
6748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6750 rm -f conftest.$ac_objext conftest$ac_exeext
6751 if { (ac_try="$ac_link"
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_link") 2>conftest.er1
6759 grep -v '^ *+' conftest.er1 >conftest.err
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && {
6764 test -z "$ac_c_werror_flag" ||
6765 test ! -s conftest.err
6766 } && test -s conftest$ac_exeext &&
6767 $as_test_x conftest$ac_exeext; then
6768 ac_cv_search_ldopen=$ac_res
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6778 if test "${ac_cv_search_ldopen+set}" = set; then
6782 if test "${ac_cv_search_ldopen+set}" = set; then
6785 ac_cv_search_ldopen=no
6788 LIBS=$ac_func_search_save_LIBS
6790 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6791 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
6792 ac_res=$ac_cv_search_ldopen
6793 if test "$ac_res" != no; then
6794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6800 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6801 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
6802 if test "${ac_cv_search_getopt_long+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 ac_func_search_save_LIBS=$LIBS
6806 cat >conftest.$ac_ext <<_ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6813 /* Override any GCC internal prototype to avoid an error.
6814 Use char because int might match the return type of a GCC
6815 builtin and then its argument prototype would still apply. */
6819 char getopt_long ();
6823 return getopt_long ();
6828 for ac_lib in '' getopt gnugetopt; do
6829 if test -z "$ac_lib"; then
6830 ac_res="none required"
6833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6835 rm -f conftest.$ac_objext conftest$ac_exeext
6836 if { (ac_try="$ac_link"
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_link") 2>conftest.er1
6844 grep -v '^ *+' conftest.er1 >conftest.err
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } && {
6849 test -z "$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6851 } && test -s conftest$ac_exeext &&
6852 $as_test_x conftest$ac_exeext; then
6853 ac_cv_search_getopt_long=$ac_res
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6863 if test "${ac_cv_search_getopt_long+set}" = set; then
6867 if test "${ac_cv_search_getopt_long+set}" = set; then
6870 ac_cv_search_getopt_long=no
6873 LIBS=$ac_func_search_save_LIBS
6875 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6876 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
6877 ac_res=$ac_cv_search_getopt_long
6878 if test "$ac_res" != no; then
6879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6883 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
6884 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
6885 if test "${ac_cv_search_crypt+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 ac_func_search_save_LIBS=$LIBS
6889 cat >conftest.$ac_ext <<_ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6896 /* Override any GCC internal prototype to avoid an error.
6897 Use char because int might match the return type of a GCC
6898 builtin and then its argument prototype would still apply. */
6911 for ac_lib in '' crypt; do
6912 if test -z "$ac_lib"; then
6913 ac_res="none required"
6916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6918 rm -f conftest.$ac_objext conftest$ac_exeext
6919 if { (ac_try="$ac_link"
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_link") 2>conftest.er1
6927 grep -v '^ *+' conftest.er1 >conftest.err
6929 cat conftest.err >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } && {
6932 test -z "$ac_c_werror_flag" ||
6933 test ! -s conftest.err
6934 } && test -s conftest$ac_exeext &&
6935 $as_test_x conftest$ac_exeext; then
6936 ac_cv_search_crypt=$ac_res
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6946 if test "${ac_cv_search_crypt+set}" = set; then
6950 if test "${ac_cv_search_crypt+set}" = set; then
6953 ac_cv_search_crypt=no
6956 LIBS=$ac_func_search_save_LIBS
6958 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6959 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
6960 ac_res=$ac_cv_search_crypt
6961 if test "$ac_res" != no; then
6962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6967 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6968 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
6969 if test "${ac_cv_search_fdatasync+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 ac_func_search_save_LIBS=$LIBS
6973 cat >conftest.$ac_ext <<_ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6980 /* Override any GCC internal prototype to avoid an error.
6981 Use char because int might match the return type of a GCC
6982 builtin and then its argument prototype would still apply. */
6990 return fdatasync ();
6995 for ac_lib in '' rt posix4; do
6996 if test -z "$ac_lib"; then
6997 ac_res="none required"
7000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (ac_try="$ac_link"
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009 (eval "$ac_link") 2>conftest.er1
7011 grep -v '^ *+' conftest.er1 >conftest.err
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } && {
7016 test -z "$ac_c_werror_flag" ||
7017 test ! -s conftest.err
7018 } && test -s conftest$ac_exeext &&
7019 $as_test_x conftest$ac_exeext; then
7020 ac_cv_search_fdatasync=$ac_res
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7030 if test "${ac_cv_search_fdatasync+set}" = set; then
7034 if test "${ac_cv_search_fdatasync+set}" = set; then
7037 ac_cv_search_fdatasync=no
7040 LIBS=$ac_func_search_save_LIBS
7042 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7043 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7044 ac_res=$ac_cv_search_fdatasync
7045 if test "$ac_res" != no; then
7046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7051 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7052 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7053 if test "${ac_cv_search_shmget+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 ac_func_search_save_LIBS=$LIBS
7057 cat >conftest.$ac_ext <<_ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7064 /* Override any GCC internal prototype to avoid an error.
7065 Use char because int might match the return type of a GCC
7066 builtin and then its argument prototype would still apply. */
7079 for ac_lib in '' cygipc; do
7080 if test -z "$ac_lib"; then
7081 ac_res="none required"
7084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7086 rm -f conftest.$ac_objext conftest$ac_exeext
7087 if { (ac_try="$ac_link"
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_link") 2>conftest.er1
7095 grep -v '^ *+' conftest.er1 >conftest.err
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && {
7100 test -z "$ac_c_werror_flag" ||
7101 test ! -s conftest.err
7102 } && test -s conftest$ac_exeext &&
7103 $as_test_x conftest$ac_exeext; then
7104 ac_cv_search_shmget=$ac_res
7106 echo "$as_me: failed program was:" >&5
7107 sed 's/^/| /' conftest.$ac_ext >&5
7112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7114 if test "${ac_cv_search_shmget+set}" = set; then
7118 if test "${ac_cv_search_shmget+set}" = set; then
7121 ac_cv_search_shmget=no
7124 LIBS=$ac_func_search_save_LIBS
7126 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7127 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7128 ac_res=$ac_cv_search_shmget
7129 if test "$ac_res" != no; then
7130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7135 if test "$with_readline" = yes; then
7138 if test "${pgac_cv_check_readline+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 pgac_cv_check_readline=no
7142 pgac_save_LIBS=$LIBS
7143 if test x"$with_libedit_preferred" != x"yes"
7144 then READLINE_ORDER="-lreadline -ledit"
7145 else READLINE_ORDER="-ledit -lreadline"
7147 for pgac_rllib in $READLINE_ORDER ; do
7148 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7149 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7150 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7151 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7159 /* Override any GCC internal prototype to avoid an error.
7160 Use char because int might match the return type of a GCC
7161 builtin and then its argument prototype would still apply. */
7174 rm -f conftest.$ac_objext conftest$ac_exeext
7175 if { (ac_try="$ac_link"
7177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178 *) ac_try_echo=$ac_try;;
7180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7181 (eval "$ac_link") 2>conftest.er1
7183 grep -v '^ *+' conftest.er1 >conftest.err
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } && {
7188 test -z "$ac_c_werror_flag" ||
7189 test ! -s conftest.err
7190 } && test -s conftest$ac_exeext &&
7191 $as_test_x conftest$ac_exeext; then
7193 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7194 # recognize dependent libraries; assume curses is needed if we didn't
7195 # find any dependency.
7197 netbsd* | openbsd* | irix*)
7198 if test x"$pgac_lib" = x"" ; then
7199 pgac_lib=" -lcurses"
7203 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7214 conftest$ac_exeext conftest.$ac_ext
7216 if test "$pgac_cv_check_readline" != no ; then
7217 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7218 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7221 { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7225 LIBS=$pgac_save_LIBS
7229 if test "$pgac_cv_check_readline" != no ; then
7230 LIBS="$pgac_cv_check_readline $LIBS"
7232 cat >>confdefs.h <<\_ACEOF
7233 #define HAVE_LIBREADLINE 1
7239 if test x"$pgac_cv_check_readline" = x"no"; then
7240 { { echo "$as_me:$LINENO: error: readline library not found
7241 If you have readline already installed, see config.log for details on the
7242 failure. It is possible the compiler isn't looking in the proper directory.
7243 Use --without-readline to disable readline support." >&5
7244 echo "$as_me: error: readline library not found
7245 If you have readline already installed, see config.log for details on the
7246 failure. It is possible the compiler isn't looking in the proper directory.
7247 Use --without-readline to disable readline support." >&2;}
7248 { (exit 1); exit 1; }; }
7252 if test "$with_zlib" = yes; then
7254 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7255 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7256 if test "${ac_cv_lib_z_inflate+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 ac_check_lib_save_LIBS=$LIBS
7261 cat >conftest.$ac_ext <<_ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7268 /* Override any GCC internal prototype to avoid an error.
7269 Use char because int might match the return type of a GCC
7270 builtin and then its argument prototype would still apply. */
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (ac_try="$ac_link"
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290 (eval "$ac_link") 2>conftest.er1
7292 grep -v '^ *+' conftest.er1 >conftest.err
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } && {
7297 test -z "$ac_c_werror_flag" ||
7298 test ! -s conftest.err
7299 } && test -s conftest$ac_exeext &&
7300 $as_test_x conftest$ac_exeext; then
7301 ac_cv_lib_z_inflate=yes
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 ac_cv_lib_z_inflate=no
7309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7310 conftest$ac_exeext conftest.$ac_ext
7311 LIBS=$ac_check_lib_save_LIBS
7313 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7314 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7315 if test $ac_cv_lib_z_inflate = yes; then
7316 cat >>confdefs.h <<_ACEOF
7323 { { echo "$as_me:$LINENO: error: zlib library not found
7324 If you have zlib already installed, see config.log for details on the
7325 failure. It is possible the compiler isn't looking in the proper directory.
7326 Use --without-zlib to disable zlib support." >&5
7327 echo "$as_me: error: zlib library not found
7328 If you have zlib already installed, see config.log for details on the
7329 failure. It is possible the compiler isn't looking in the proper directory.
7330 Use --without-zlib to disable zlib support." >&2;}
7331 { (exit 1); exit 1; }; }
7336 if test "$enable_spinlocks" = yes; then
7338 cat >>confdefs.h <<\_ACEOF
7339 #define HAVE_SPINLOCKS 1
7343 { echo "$as_me:$LINENO: WARNING:
7344 *** Not using spinlocks will cause poor performance." >&5
7345 echo "$as_me: WARNING:
7346 *** Not using spinlocks will cause poor performance." >&2;}
7349 if test "$with_gssapi" = yes ; then
7350 if test "$PORTNAME" != "win32"; then
7351 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7352 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7353 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 ac_func_search_save_LIBS=$LIBS
7357 cat >conftest.$ac_ext <<_ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7364 /* Override any GCC internal prototype to avoid an error.
7365 Use char because int might match the return type of a GCC
7366 builtin and then its argument prototype would still apply. */
7370 char gss_init_sec_context ();
7374 return gss_init_sec_context ();
7379 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7380 if test -z "$ac_lib"; then
7381 ac_res="none required"
7384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7386 rm -f conftest.$ac_objext conftest$ac_exeext
7387 if { (ac_try="$ac_link"
7389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7390 *) ac_try_echo=$ac_try;;
7392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7393 (eval "$ac_link") 2>conftest.er1
7395 grep -v '^ *+' conftest.er1 >conftest.err
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } && {
7400 test -z "$ac_c_werror_flag" ||
7401 test ! -s conftest.err
7402 } && test -s conftest$ac_exeext &&
7403 $as_test_x conftest$ac_exeext; then
7404 ac_cv_search_gss_init_sec_context=$ac_res
7406 echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7414 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7418 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7421 ac_cv_search_gss_init_sec_context=no
7424 LIBS=$ac_func_search_save_LIBS
7426 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7427 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7428 ac_res=$ac_cv_search_gss_init_sec_context
7429 if test "$ac_res" != no; then
7430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7433 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7434 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7435 { (exit 1); exit 1; }; }
7439 LIBS="$LIBS -lgssapi32"
7443 if test "$with_krb5" = yes ; then
7444 if test "$PORTNAME" != "win32"; then
7445 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7446 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7447 if test "${ac_cv_search_com_err+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 ac_func_search_save_LIBS=$LIBS
7451 cat >conftest.$ac_ext <<_ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7458 /* Override any GCC internal prototype to avoid an error.
7459 Use char because int might match the return type of a GCC
7460 builtin and then its argument prototype would still apply. */
7473 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7474 if test -z "$ac_lib"; then
7475 ac_res="none required"
7478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (ac_try="$ac_link"
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_link") 2>conftest.er1
7489 grep -v '^ *+' conftest.er1 >conftest.err
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest$ac_exeext &&
7497 $as_test_x conftest$ac_exeext; then
7498 ac_cv_search_com_err=$ac_res
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7508 if test "${ac_cv_search_com_err+set}" = set; then
7512 if test "${ac_cv_search_com_err+set}" = set; then
7515 ac_cv_search_com_err=no
7518 LIBS=$ac_func_search_save_LIBS
7520 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7521 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7522 ac_res=$ac_cv_search_com_err
7523 if test "$ac_res" != no; then
7524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7527 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7528 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7529 { (exit 1); exit 1; }; }
7532 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7533 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7534 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 ac_func_search_save_LIBS=$LIBS
7538 cat >conftest.$ac_ext <<_ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7545 /* Override any GCC internal prototype to avoid an error.
7546 Use char because int might match the return type of a GCC
7547 builtin and then its argument prototype would still apply. */
7551 char krb5_sendauth ();
7555 return krb5_sendauth ();
7560 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7561 if test -z "$ac_lib"; then
7562 ac_res="none required"
7565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7567 rm -f conftest.$ac_objext conftest$ac_exeext
7568 if { (ac_try="$ac_link"
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_link") 2>conftest.er1
7576 grep -v '^ *+' conftest.er1 >conftest.err
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } && {
7581 test -z "$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest$ac_exeext &&
7584 $as_test_x conftest$ac_exeext; then
7585 ac_cv_search_krb5_sendauth=$ac_res
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7595 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7599 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7602 ac_cv_search_krb5_sendauth=no
7605 LIBS=$ac_func_search_save_LIBS
7607 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7608 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7609 ac_res=$ac_cv_search_krb5_sendauth
7610 if test "$ac_res" != no; then
7611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7614 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7615 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7616 { (exit 1); exit 1; }; }
7620 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7621 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7622 if test "${ac_cv_search_com_err+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 ac_func_search_save_LIBS=$LIBS
7626 cat >conftest.$ac_ext <<_ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7633 /* Override any GCC internal prototype to avoid an error.
7634 Use char because int might match the return type of a GCC
7635 builtin and then its argument prototype would still apply. */
7648 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7649 if test -z "$ac_lib"; then
7650 ac_res="none required"
7653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7655 rm -f conftest.$ac_objext conftest$ac_exeext
7656 if { (ac_try="$ac_link"
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_link") 2>conftest.er1
7664 grep -v '^ *+' conftest.er1 >conftest.err
7666 cat conftest.err >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } && {
7669 test -z "$ac_c_werror_flag" ||
7670 test ! -s conftest.err
7671 } && test -s conftest$ac_exeext &&
7672 $as_test_x conftest$ac_exeext; then
7673 ac_cv_search_com_err=$ac_res
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7683 if test "${ac_cv_search_com_err+set}" = set; then
7687 if test "${ac_cv_search_com_err+set}" = set; then
7690 ac_cv_search_com_err=no
7693 LIBS=$ac_func_search_save_LIBS
7695 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7696 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7697 ac_res=$ac_cv_search_com_err
7698 if test "$ac_res" != no; then
7699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7702 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7703 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7704 { (exit 1); exit 1; }; }
7710 if test "$with_openssl" = yes ; then
7711 if test "$PORTNAME" != "win32"; then
7713 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7714 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7715 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 ac_check_lib_save_LIBS=$LIBS
7719 LIBS="-lcrypto $LIBS"
7720 cat >conftest.$ac_ext <<_ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7727 /* Override any GCC internal prototype to avoid an error.
7728 Use char because int might match the return type of a GCC
7729 builtin and then its argument prototype would still apply. */
7733 char CRYPTO_new_ex_data ();
7737 return CRYPTO_new_ex_data ();
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (ac_try="$ac_link"
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_link") 2>conftest.er1
7751 grep -v '^ *+' conftest.er1 >conftest.err
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } && {
7756 test -z "$ac_c_werror_flag" ||
7757 test ! -s conftest.err
7758 } && test -s conftest$ac_exeext &&
7759 $as_test_x conftest$ac_exeext; then
7760 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7769 conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7772 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7773 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
7774 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7775 cat >>confdefs.h <<_ACEOF
7776 #define HAVE_LIBCRYPTO 1
7779 LIBS="-lcrypto $LIBS"
7782 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7783 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7784 { (exit 1); exit 1; }; }
7788 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7789 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
7790 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 ac_check_lib_save_LIBS=$LIBS
7795 cat >conftest.$ac_ext <<_ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7802 /* Override any GCC internal prototype to avoid an error.
7803 Use char because int might match the return type of a GCC
7804 builtin and then its argument prototype would still apply. */
7808 char SSL_library_init ();
7812 return SSL_library_init ();
7817 rm -f conftest.$ac_objext conftest$ac_exeext
7818 if { (ac_try="$ac_link"
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_link") 2>conftest.er1
7826 grep -v '^ *+' conftest.er1 >conftest.err
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && {
7831 test -z "$ac_c_werror_flag" ||
7832 test ! -s conftest.err
7833 } && test -s conftest$ac_exeext &&
7834 $as_test_x conftest$ac_exeext; then
7835 ac_cv_lib_ssl_SSL_library_init=yes
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7840 ac_cv_lib_ssl_SSL_library_init=no
7843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7844 conftest$ac_exeext conftest.$ac_ext
7845 LIBS=$ac_check_lib_save_LIBS
7847 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7848 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
7849 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7850 cat >>confdefs.h <<_ACEOF
7851 #define HAVE_LIBSSL 1
7857 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7858 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7859 { (exit 1); exit 1; }; }
7864 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7865 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
7866 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 ac_check_lib_save_LIBS=$LIBS
7870 LIBS="-leay32 $LIBS"
7871 cat >conftest.$ac_ext <<_ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7878 /* Override any GCC internal prototype to avoid an error.
7879 Use char because int might match the return type of a GCC
7880 builtin and then its argument prototype would still apply. */
7884 char CRYPTO_new_ex_data ();
7888 return CRYPTO_new_ex_data ();
7893 rm -f conftest.$ac_objext conftest$ac_exeext
7894 if { (ac_try="$ac_link"
7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7900 (eval "$ac_link") 2>conftest.er1
7902 grep -v '^ *+' conftest.er1 >conftest.err
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } && {
7907 test -z "$ac_c_werror_flag" ||
7908 test ! -s conftest.err
7909 } && test -s conftest$ac_exeext &&
7910 $as_test_x conftest$ac_exeext; then
7911 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7916 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7920 conftest$ac_exeext conftest.$ac_ext
7921 LIBS=$ac_check_lib_save_LIBS
7923 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7924 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
7925 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7926 cat >>confdefs.h <<_ACEOF
7927 #define HAVE_LIBEAY32 1
7930 LIBS="-leay32 $LIBS"
7933 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7934 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7935 { (exit 1); exit 1; }; }
7939 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7940 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
7941 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 ac_check_lib_save_LIBS=$LIBS
7945 LIBS="-lssleay32 $LIBS"
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7953 /* Override any GCC internal prototype to avoid an error.
7954 Use char because int might match the return type of a GCC
7955 builtin and then its argument prototype would still apply. */
7959 char SSL_library_init ();
7963 return SSL_library_init ();
7968 rm -f conftest.$ac_objext conftest$ac_exeext
7969 if { (ac_try="$ac_link"
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_link") 2>conftest.er1
7977 grep -v '^ *+' conftest.er1 >conftest.err
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest$ac_exeext &&
7985 $as_test_x conftest$ac_exeext; then
7986 ac_cv_lib_ssleay32_SSL_library_init=yes
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 ac_cv_lib_ssleay32_SSL_library_init=no
7994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7995 conftest$ac_exeext conftest.$ac_ext
7996 LIBS=$ac_check_lib_save_LIBS
7998 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7999 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8000 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8001 cat >>confdefs.h <<_ACEOF
8002 #define HAVE_LIBSSLEAY32 1
8005 LIBS="-lssleay32 $LIBS"
8008 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8009 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8010 { (exit 1); exit 1; }; }
8016 if test "$with_pam" = yes ; then
8018 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8019 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8020 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 ac_check_lib_save_LIBS=$LIBS
8025 cat >conftest.$ac_ext <<_ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8032 /* Override any GCC internal prototype to avoid an error.
8033 Use char because int might match the return type of a GCC
8034 builtin and then its argument prototype would still apply. */
8042 return pam_start ();
8047 rm -f conftest.$ac_objext conftest$ac_exeext
8048 if { (ac_try="$ac_link"
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_link") 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest$ac_exeext &&
8064 $as_test_x conftest$ac_exeext; then
8065 ac_cv_lib_pam_pam_start=yes
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 ac_cv_lib_pam_pam_start=no
8073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8074 conftest$ac_exeext conftest.$ac_ext
8075 LIBS=$ac_check_lib_save_LIBS
8077 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8078 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8079 if test $ac_cv_lib_pam_pam_start = yes; then
8080 cat >>confdefs.h <<_ACEOF
8081 #define HAVE_LIBPAM 1
8087 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8088 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8089 { (exit 1); exit 1; }; }
8094 if test "$with_libxml" = yes ; then
8096 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8097 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8098 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 ac_check_lib_save_LIBS=$LIBS
8103 cat >conftest.$ac_ext <<_ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8110 /* Override any GCC internal prototype to avoid an error.
8111 Use char because int might match the return type of a GCC
8112 builtin and then its argument prototype would still apply. */
8116 char xmlSaveToBuffer ();
8120 return xmlSaveToBuffer ();
8125 rm -f conftest.$ac_objext conftest$ac_exeext
8126 if { (ac_try="$ac_link"
8128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129 *) ac_try_echo=$ac_try;;
8131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132 (eval "$ac_link") 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } && {
8139 test -z "$ac_c_werror_flag" ||
8140 test ! -s conftest.err
8141 } && test -s conftest$ac_exeext &&
8142 $as_test_x conftest$ac_exeext; then
8143 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8145 echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8148 ac_cv_lib_xml2_xmlSaveToBuffer=no
8151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8152 conftest$ac_exeext conftest.$ac_ext
8153 LIBS=$ac_check_lib_save_LIBS
8155 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8156 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8157 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8158 cat >>confdefs.h <<_ACEOF
8159 #define HAVE_LIBXML2 1
8165 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8166 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8167 { (exit 1); exit 1; }; }
8172 if test "$with_libxslt" = yes ; then
8174 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8175 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8176 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 ac_check_lib_save_LIBS=$LIBS
8181 cat >conftest.$ac_ext <<_ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8188 /* Override any GCC internal prototype to avoid an error.
8189 Use char because int might match the return type of a GCC
8190 builtin and then its argument prototype would still apply. */
8194 char xsltCleanupGlobals ();
8198 return xsltCleanupGlobals ();
8203 rm -f conftest.$ac_objext conftest$ac_exeext
8204 if { (ac_try="$ac_link"
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_link") 2>conftest.er1
8212 grep -v '^ *+' conftest.er1 >conftest.err
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } && {
8217 test -z "$ac_c_werror_flag" ||
8218 test ! -s conftest.err
8219 } && test -s conftest$ac_exeext &&
8220 $as_test_x conftest$ac_exeext; then
8221 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 ac_cv_lib_xslt_xsltCleanupGlobals=no
8229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8230 conftest$ac_exeext conftest.$ac_ext
8231 LIBS=$ac_check_lib_save_LIBS
8233 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8234 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8235 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8236 cat >>confdefs.h <<_ACEOF
8237 #define HAVE_LIBXSLT 1
8243 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8244 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8245 { (exit 1); exit 1; }; }
8250 # for contrib/uuid-ossp
8251 if test "$with_ossp_uuid" = yes ; then
8252 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8253 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8254 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 ac_check_lib_save_LIBS=$LIBS
8258 LIBS="-lossp-uuid $LIBS"
8259 cat >conftest.$ac_ext <<_ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8266 /* Override any GCC internal prototype to avoid an error.
8267 Use char because int might match the return type of a GCC
8268 builtin and then its argument prototype would still apply. */
8272 char uuid_export ();
8276 return uuid_export ();
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (ac_try="$ac_link"
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_link") 2>conftest.er1
8290 grep -v '^ *+' conftest.er1 >conftest.err
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } && {
8295 test -z "$ac_c_werror_flag" ||
8296 test ! -s conftest.err
8297 } && test -s conftest$ac_exeext &&
8298 $as_test_x conftest$ac_exeext; then
8299 ac_cv_lib_ossp_uuid_uuid_export=yes
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ac_cv_lib_ossp_uuid_uuid_export=no
8307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8308 conftest$ac_exeext conftest.$ac_ext
8309 LIBS=$ac_check_lib_save_LIBS
8311 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8312 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8313 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8314 OSSP_UUID_LIBS="-lossp-uuid"
8316 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8317 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8318 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 ac_check_lib_save_LIBS=$LIBS
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8330 /* Override any GCC internal prototype to avoid an error.
8331 Use char because int might match the return type of a GCC
8332 builtin and then its argument prototype would still apply. */
8336 char uuid_export ();
8340 return uuid_export ();
8345 rm -f conftest.$ac_objext conftest$ac_exeext
8346 if { (ac_try="$ac_link"
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_link") 2>conftest.er1
8354 grep -v '^ *+' conftest.er1 >conftest.err
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } && {
8359 test -z "$ac_c_werror_flag" ||
8360 test ! -s conftest.err
8361 } && test -s conftest$ac_exeext &&
8362 $as_test_x conftest$ac_exeext; then
8363 ac_cv_lib_uuid_uuid_export=yes
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8368 ac_cv_lib_uuid_uuid_export=no
8371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8372 conftest$ac_exeext conftest.$ac_ext
8373 LIBS=$ac_check_lib_save_LIBS
8375 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8376 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8377 if test $ac_cv_lib_uuid_uuid_export = yes; then
8378 OSSP_UUID_LIBS="-luuid"
8380 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8381 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8382 { (exit 1); exit 1; }; }
8395 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8396 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8397 if test "${ac_cv_header_stdc+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 cat >conftest.$ac_ext <<_ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_compile") 2>conftest.er1
8428 grep -v '^ *+' conftest.er1 >conftest.err
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } && {
8433 test -z "$ac_c_werror_flag" ||
8434 test ! -s conftest.err
8435 } && test -s conftest.$ac_objext; then
8436 ac_cv_header_stdc=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_header_stdc=no
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8446 if test $ac_cv_header_stdc = yes; then
8447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8448 cat >conftest.$ac_ext <<_ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8458 $EGREP "memchr" >/dev/null 2>&1; then
8461 ac_cv_header_stdc=no
8467 if test $ac_cv_header_stdc = yes; then
8468 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8469 cat >conftest.$ac_ext <<_ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8479 $EGREP "free" >/dev/null 2>&1; then
8482 ac_cv_header_stdc=no
8488 if test $ac_cv_header_stdc = yes; then
8489 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8490 if test "$cross_compiling" = yes; then
8493 cat >conftest.$ac_ext <<_ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8501 #if ((' ' & 0x0FF) == 0x020)
8502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8505 # define ISLOWER(c) \
8506 (('a' <= (c) && (c) <= 'i') \
8507 || ('j' <= (c) && (c) <= 'r') \
8508 || ('s' <= (c) && (c) <= 'z'))
8509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8517 for (i = 0; i < 256; i++)
8518 if (XOR (islower (i), ISLOWER (i))
8519 || toupper (i) != TOUPPER (i))
8524 rm -f conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_link") 2>&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8535 { (case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_try") 2>&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8546 echo "$as_me: program exited with status $ac_status" >&5
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8551 ac_cv_header_stdc=no
8553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8559 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8560 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8561 if test $ac_cv_header_stdc = yes; then
8563 cat >>confdefs.h <<\_ACEOF
8564 #define STDC_HEADERS 1
8569 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8579 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8580 inttypes.h stdint.h unistd.h
8582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 cat >conftest.$ac_ext <<_ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8594 $ac_includes_default
8596 #include <$ac_header>
8598 rm -f conftest.$ac_objext
8599 if { (ac_try="$ac_compile"
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_compile") 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } && {
8612 test -z "$ac_c_werror_flag" ||
8613 test ! -s conftest.err
8614 } && test -s conftest.$ac_objext; then
8615 eval "$as_ac_Header=yes"
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 eval "$as_ac_Header=no"
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 ac_res=`eval echo '${'$as_ac_Header'}'`
8626 { echo "$as_me:$LINENO: result: $ac_res" >&5
8627 echo "${ECHO_T}$ac_res" >&6; }
8628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8629 cat >>confdefs.h <<_ACEOF
8630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8664 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
8666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 ac_res=`eval echo '${'$as_ac_Header'}'`
8674 { echo "$as_me:$LINENO: result: $ac_res" >&5
8675 echo "${ECHO_T}$ac_res" >&6; }
8677 # Is the header compilable?
8678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8680 cat >conftest.$ac_ext <<_ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 #include <$ac_header>
8689 rm -f conftest.$ac_objext
8690 if { (ac_try="$ac_compile"
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_compile") 2>conftest.er1
8698 grep -v '^ *+' conftest.er1 >conftest.err
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && {
8703 test -z "$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8705 } && test -s conftest.$ac_objext; then
8706 ac_header_compiler=yes
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8711 ac_header_compiler=no
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8716 echo "${ECHO_T}$ac_header_compiler" >&6; }
8718 # Is the header present?
8719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8721 cat >conftest.$ac_ext <<_ACEOF
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8727 #include <$ac_header>
8729 if { (ac_try="$ac_cpp conftest.$ac_ext"
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8737 grep -v '^ *+' conftest.er1 >conftest.err
8739 cat conftest.err >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } >/dev/null && {
8742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8743 test ! -s conftest.err
8745 ac_header_preproc=yes
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8750 ac_header_preproc=no
8753 rm -f conftest.err conftest.$ac_ext
8754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8755 echo "${ECHO_T}$ac_header_preproc" >&6; }
8757 # So? What about this header?
8758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8764 ac_header_preproc=yes
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8780 ## ---------------------------------------- ##
8781 ## Report this to pgsql-bugs@postgresql.org ##
8782 ## ---------------------------------------- ##
8784 ) | sed "s/^/$as_me: WARNING: /" >&2
8787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 eval "$as_ac_Header=\$ac_header_preproc"
8794 ac_res=`eval echo '${'$as_ac_Header'}'`
8795 { echo "$as_me:$LINENO: result: $ac_res" >&5
8796 echo "${ECHO_T}$ac_res" >&6; }
8799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8800 cat >>confdefs.h <<_ACEOF
8801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8809 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8810 # netinet/in.h is included first.
8812 for ac_header in netinet/in.h
8814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 ac_res=`eval echo '${'$as_ac_Header'}'`
8822 { echo "$as_me:$LINENO: result: $ac_res" >&5
8823 echo "${ECHO_T}$ac_res" >&6; }
8825 # Is the header compilable?
8826 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8828 cat >conftest.$ac_ext <<_ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8834 $ac_includes_default
8835 #include <$ac_header>
8837 rm -f conftest.$ac_objext
8838 if { (ac_try="$ac_compile"
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_compile") 2>conftest.er1
8846 grep -v '^ *+' conftest.er1 >conftest.err
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } && {
8851 test -z "$ac_c_werror_flag" ||
8852 test ! -s conftest.err
8853 } && test -s conftest.$ac_objext; then
8854 ac_header_compiler=yes
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8859 ac_header_compiler=no
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8864 echo "${ECHO_T}$ac_header_compiler" >&6; }
8866 # Is the header present?
8867 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8869 cat >conftest.$ac_ext <<_ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875 #include <$ac_header>
8877 if { (ac_try="$ac_cpp conftest.$ac_ext"
8879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8880 *) ac_try_echo=$ac_try;;
8882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8885 grep -v '^ *+' conftest.er1 >conftest.err
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } >/dev/null && {
8890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8891 test ! -s conftest.err
8893 ac_header_preproc=yes
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 ac_header_preproc=no
8901 rm -f conftest.err conftest.$ac_ext
8902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8903 echo "${ECHO_T}$ac_header_preproc" >&6; }
8905 # So? What about this header?
8906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8912 ac_header_preproc=yes
8915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8928 ## ---------------------------------------- ##
8929 ## Report this to pgsql-bugs@postgresql.org ##
8930 ## ---------------------------------------- ##
8932 ) | sed "s/^/$as_me: WARNING: /" >&2
8935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 eval "$as_ac_Header=\$ac_header_preproc"
8942 ac_res=`eval echo '${'$as_ac_Header'}'`
8943 { echo "$as_me:$LINENO: result: $ac_res" >&5
8944 echo "${ECHO_T}$ac_res" >&6; }
8947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8948 cat >>confdefs.h <<_ACEOF
8949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8957 for ac_header in netinet/tcp.h
8959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 cat >conftest.$ac_ext <<_ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 $ac_includes_default
8972 #ifdef HAVE_NETINET_IN_H
8973 #include <netinet/in.h>
8977 #include <$ac_header>
8979 rm -f conftest.$ac_objext
8980 if { (ac_try="$ac_compile"
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_compile") 2>conftest.er1
8988 grep -v '^ *+' conftest.er1 >conftest.err
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } && {
8993 test -z "$ac_c_werror_flag" ||
8994 test ! -s conftest.err
8995 } && test -s conftest.$ac_objext; then
8996 eval "$as_ac_Header=yes"
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9001 eval "$as_ac_Header=no"
9004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006 ac_res=`eval echo '${'$as_ac_Header'}'`
9007 { echo "$as_me:$LINENO: result: $ac_res" >&5
9008 echo "${ECHO_T}$ac_res" >&6; }
9009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9010 cat >>confdefs.h <<_ACEOF
9011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9019 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9021 for ac_header in readline/readline.h
9023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 ac_res=`eval echo '${'$as_ac_Header'}'`
9031 { echo "$as_me:$LINENO: result: $ac_res" >&5
9032 echo "${ECHO_T}$ac_res" >&6; }
9034 # Is the header compilable?
9035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9037 cat >conftest.$ac_ext <<_ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 $ac_includes_default
9044 #include <$ac_header>
9046 rm -f conftest.$ac_objext
9047 if { (ac_try="$ac_compile"
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_compile") 2>conftest.er1
9055 grep -v '^ *+' conftest.er1 >conftest.err
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && {
9060 test -z "$ac_c_werror_flag" ||
9061 test ! -s conftest.err
9062 } && test -s conftest.$ac_objext; then
9063 ac_header_compiler=yes
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 ac_header_compiler=no
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9073 echo "${ECHO_T}$ac_header_compiler" >&6; }
9075 # Is the header present?
9076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9078 cat >conftest.$ac_ext <<_ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 #include <$ac_header>
9086 if { (ac_try="$ac_cpp conftest.$ac_ext"
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9094 grep -v '^ *+' conftest.er1 >conftest.err
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } >/dev/null && {
9099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9100 test ! -s conftest.err
9102 ac_header_preproc=yes
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_header_preproc=no
9110 rm -f conftest.err conftest.$ac_ext
9111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9112 echo "${ECHO_T}$ac_header_preproc" >&6; }
9114 # So? What about this header?
9115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9121 ac_header_preproc=yes
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9137 ## ---------------------------------------- ##
9138 ## Report this to pgsql-bugs@postgresql.org ##
9139 ## ---------------------------------------- ##
9141 ) | sed "s/^/$as_me: WARNING: /" >&2
9144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 eval "$as_ac_Header=\$ac_header_preproc"
9151 ac_res=`eval echo '${'$as_ac_Header'}'`
9152 { echo "$as_me:$LINENO: result: $ac_res" >&5
9153 echo "${ECHO_T}$ac_res" >&6; }
9156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9157 cat >>confdefs.h <<_ACEOF
9158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9163 for ac_header in readline.h
9165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 ac_res=`eval echo '${'$as_ac_Header'}'`
9173 { echo "$as_me:$LINENO: result: $ac_res" >&5
9174 echo "${ECHO_T}$ac_res" >&6; }
9176 # Is the header compilable?
9177 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9179 cat >conftest.$ac_ext <<_ACEOF
9182 cat confdefs.h >>conftest.$ac_ext
9183 cat >>conftest.$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9185 $ac_includes_default
9186 #include <$ac_header>
9188 rm -f conftest.$ac_objext
9189 if { (ac_try="$ac_compile"
9191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195 (eval "$ac_compile") 2>conftest.er1
9197 grep -v '^ *+' conftest.er1 >conftest.err
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } && {
9202 test -z "$ac_c_werror_flag" ||
9203 test ! -s conftest.err
9204 } && test -s conftest.$ac_objext; then
9205 ac_header_compiler=yes
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9210 ac_header_compiler=no
9213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9215 echo "${ECHO_T}$ac_header_compiler" >&6; }
9217 # Is the header present?
9218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9220 cat >conftest.$ac_ext <<_ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9226 #include <$ac_header>
9228 if { (ac_try="$ac_cpp conftest.$ac_ext"
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9236 grep -v '^ *+' conftest.er1 >conftest.err
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } >/dev/null && {
9241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9242 test ! -s conftest.err
9244 ac_header_preproc=yes
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9249 ac_header_preproc=no
9252 rm -f conftest.err conftest.$ac_ext
9253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9254 echo "${ECHO_T}$ac_header_preproc" >&6; }
9256 # So? What about this header?
9257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9263 ac_header_preproc=yes
9266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9279 ## ---------------------------------------- ##
9280 ## Report this to pgsql-bugs@postgresql.org ##
9281 ## ---------------------------------------- ##
9283 ) | sed "s/^/$as_me: WARNING: /" >&2
9286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 eval "$as_ac_Header=\$ac_header_preproc"
9293 ac_res=`eval echo '${'$as_ac_Header'}'`
9294 { echo "$as_me:$LINENO: result: $ac_res" >&5
9295 echo "${ECHO_T}$ac_res" >&6; }
9298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9299 cat >>confdefs.h <<_ACEOF
9300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9304 { { echo "$as_me:$LINENO: error: readline header not found
9305 If you have readline already installed, see config.log for details on the
9306 failure. It is possible the compiler isn't looking in the proper directory.
9307 Use --without-readline to disable readline support." >&5
9308 echo "$as_me: error: readline header not found
9309 If you have readline already installed, see config.log for details on the
9310 failure. It is possible the compiler isn't looking in the proper directory.
9311 Use --without-readline to disable readline support." >&2;}
9312 { (exit 1); exit 1; }; }
9322 for ac_header in readline/history.h
9324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
9331 ac_res=`eval echo '${'$as_ac_Header'}'`
9332 { echo "$as_me:$LINENO: result: $ac_res" >&5
9333 echo "${ECHO_T}$ac_res" >&6; }
9335 # Is the header compilable?
9336 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 $ac_includes_default
9345 #include <$ac_header>
9347 rm -f conftest.$ac_objext
9348 if { (ac_try="$ac_compile"
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354 (eval "$ac_compile") 2>conftest.er1
9356 grep -v '^ *+' conftest.er1 >conftest.err
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } && {
9361 test -z "$ac_c_werror_flag" ||
9362 test ! -s conftest.err
9363 } && test -s conftest.$ac_objext; then
9364 ac_header_compiler=yes
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9369 ac_header_compiler=no
9372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9374 echo "${ECHO_T}$ac_header_compiler" >&6; }
9376 # Is the header present?
9377 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9379 cat >conftest.$ac_ext <<_ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9385 #include <$ac_header>
9387 if { (ac_try="$ac_cpp conftest.$ac_ext"
9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390 *) ac_try_echo=$ac_try;;
9392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9395 grep -v '^ *+' conftest.er1 >conftest.err
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } >/dev/null && {
9400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9401 test ! -s conftest.err
9403 ac_header_preproc=yes
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_header_preproc=no
9411 rm -f conftest.err conftest.$ac_ext
9412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9413 echo "${ECHO_T}$ac_header_preproc" >&6; }
9415 # So? What about this header?
9416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9422 ac_header_preproc=yes
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9438 ## ---------------------------------------- ##
9439 ## Report this to pgsql-bugs@postgresql.org ##
9440 ## ---------------------------------------- ##
9442 ) | sed "s/^/$as_me: WARNING: /" >&2
9445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 eval "$as_ac_Header=\$ac_header_preproc"
9452 ac_res=`eval echo '${'$as_ac_Header'}'`
9453 { echo "$as_me:$LINENO: result: $ac_res" >&5
9454 echo "${ECHO_T}$ac_res" >&6; }
9457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9458 cat >>confdefs.h <<_ACEOF
9459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9464 for ac_header in history.h
9466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 ac_res=`eval echo '${'$as_ac_Header'}'`
9474 { echo "$as_me:$LINENO: result: $ac_res" >&5
9475 echo "${ECHO_T}$ac_res" >&6; }
9477 # Is the header compilable?
9478 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9480 cat >conftest.$ac_ext <<_ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 $ac_includes_default
9487 #include <$ac_header>
9489 rm -f conftest.$ac_objext
9490 if { (ac_try="$ac_compile"
9492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496 (eval "$ac_compile") 2>conftest.er1
9498 grep -v '^ *+' conftest.er1 >conftest.err
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } && {
9503 test -z "$ac_c_werror_flag" ||
9504 test ! -s conftest.err
9505 } && test -s conftest.$ac_objext; then
9506 ac_header_compiler=yes
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_header_compiler=no
9514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9516 echo "${ECHO_T}$ac_header_compiler" >&6; }
9518 # Is the header present?
9519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9521 cat >conftest.$ac_ext <<_ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 #include <$ac_header>
9529 if { (ac_try="$ac_cpp conftest.$ac_ext"
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9537 grep -v '^ *+' conftest.er1 >conftest.err
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } >/dev/null && {
9542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9545 ac_header_preproc=yes
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9550 ac_header_preproc=no
9553 rm -f conftest.err conftest.$ac_ext
9554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9555 echo "${ECHO_T}$ac_header_preproc" >&6; }
9557 # So? What about this header?
9558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9564 ac_header_preproc=yes
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9580 ## ---------------------------------------- ##
9581 ## Report this to pgsql-bugs@postgresql.org ##
9582 ## ---------------------------------------- ##
9584 ) | sed "s/^/$as_me: WARNING: /" >&2
9587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 eval "$as_ac_Header=\$ac_header_preproc"
9594 ac_res=`eval echo '${'$as_ac_Header'}'`
9595 { echo "$as_me:$LINENO: result: $ac_res" >&5
9596 echo "${ECHO_T}$ac_res" >&6; }
9599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9600 cat >>confdefs.h <<_ACEOF
9601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9605 { { echo "$as_me:$LINENO: error: history header not found
9606 If you have readline already installed, see config.log for details on the
9607 failure. It is possible the compiler isn't looking in the proper directory.
9608 Use --without-readline to disable readline support." >&5
9609 echo "$as_me: error: history header not found
9610 If you have readline already installed, see config.log for details on the
9611 failure. It is possible the compiler isn't looking in the proper directory.
9612 Use --without-readline to disable readline support." >&2;}
9613 { (exit 1); exit 1; }; }
9624 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9625 # Some installations of libedit usurp /usr/include/readline/, which seems
9626 # bad practice, since in combined installations readline will have its headers
9627 # there. We might have to resort to AC_EGREP checks to make sure we found
9628 # the proper header...
9630 for ac_header in editline/readline.h
9632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 ac_res=`eval echo '${'$as_ac_Header'}'`
9640 { echo "$as_me:$LINENO: result: $ac_res" >&5
9641 echo "${ECHO_T}$ac_res" >&6; }
9643 # Is the header compilable?
9644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9646 cat >conftest.$ac_ext <<_ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 $ac_includes_default
9653 #include <$ac_header>
9655 rm -f conftest.$ac_objext
9656 if { (ac_try="$ac_compile"
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_compile") 2>conftest.er1
9664 grep -v '^ *+' conftest.er1 >conftest.err
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && {
9669 test -z "$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9671 } && test -s conftest.$ac_objext; then
9672 ac_header_compiler=yes
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 ac_header_compiler=no
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9682 echo "${ECHO_T}$ac_header_compiler" >&6; }
9684 # Is the header present?
9685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9687 cat >conftest.$ac_ext <<_ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 #include <$ac_header>
9695 if { (ac_try="$ac_cpp conftest.$ac_ext"
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9703 grep -v '^ *+' conftest.er1 >conftest.err
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } >/dev/null && {
9708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9709 test ! -s conftest.err
9711 ac_header_preproc=yes
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9716 ac_header_preproc=no
9719 rm -f conftest.err conftest.$ac_ext
9720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9721 echo "${ECHO_T}$ac_header_preproc" >&6; }
9723 # So? What about this header?
9724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9730 ac_header_preproc=yes
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9746 ## ---------------------------------------- ##
9747 ## Report this to pgsql-bugs@postgresql.org ##
9748 ## ---------------------------------------- ##
9750 ) | sed "s/^/$as_me: WARNING: /" >&2
9753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 eval "$as_ac_Header=\$ac_header_preproc"
9760 ac_res=`eval echo '${'$as_ac_Header'}'`
9761 { echo "$as_me:$LINENO: result: $ac_res" >&5
9762 echo "${ECHO_T}$ac_res" >&6; }
9765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9766 cat >>confdefs.h <<_ACEOF
9767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9772 for ac_header in readline.h
9774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 ac_res=`eval echo '${'$as_ac_Header'}'`
9782 { echo "$as_me:$LINENO: result: $ac_res" >&5
9783 echo "${ECHO_T}$ac_res" >&6; }
9785 # Is the header compilable?
9786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 $ac_includes_default
9795 #include <$ac_header>
9797 rm -f conftest.$ac_objext
9798 if { (ac_try="$ac_compile"
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_compile") 2>conftest.er1
9806 grep -v '^ *+' conftest.er1 >conftest.err
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest.$ac_objext; then
9814 ac_header_compiler=yes
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_header_compiler=no
9822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9824 echo "${ECHO_T}$ac_header_compiler" >&6; }
9826 # Is the header present?
9827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9829 cat >conftest.$ac_ext <<_ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 #include <$ac_header>
9837 if { (ac_try="$ac_cpp conftest.$ac_ext"
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9845 grep -v '^ *+' conftest.er1 >conftest.err
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } >/dev/null && {
9850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9853 ac_header_preproc=yes
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_header_preproc=no
9861 rm -f conftest.err conftest.$ac_ext
9862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9863 echo "${ECHO_T}$ac_header_preproc" >&6; }
9865 # So? What about this header?
9866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9872 ac_header_preproc=yes
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9888 ## ---------------------------------------- ##
9889 ## Report this to pgsql-bugs@postgresql.org ##
9890 ## ---------------------------------------- ##
9892 ) | sed "s/^/$as_me: WARNING: /" >&2
9895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 eval "$as_ac_Header=\$ac_header_preproc"
9902 ac_res=`eval echo '${'$as_ac_Header'}'`
9903 { echo "$as_me:$LINENO: result: $ac_res" >&5
9904 echo "${ECHO_T}$ac_res" >&6; }
9907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9908 cat >>confdefs.h <<_ACEOF
9909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9914 for ac_header in readline/readline.h
9916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 ac_res=`eval echo '${'$as_ac_Header'}'`
9924 { echo "$as_me:$LINENO: result: $ac_res" >&5
9925 echo "${ECHO_T}$ac_res" >&6; }
9927 # Is the header compilable?
9928 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9930 cat >conftest.$ac_ext <<_ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936 $ac_includes_default
9937 #include <$ac_header>
9939 rm -f conftest.$ac_objext
9940 if { (ac_try="$ac_compile"
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_compile") 2>conftest.er1
9948 grep -v '^ *+' conftest.er1 >conftest.err
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } && {
9953 test -z "$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 } && test -s conftest.$ac_objext; then
9956 ac_header_compiler=yes
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9961 ac_header_compiler=no
9964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9966 echo "${ECHO_T}$ac_header_compiler" >&6; }
9968 # Is the header present?
9969 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9971 cat >conftest.$ac_ext <<_ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9977 #include <$ac_header>
9979 if { (ac_try="$ac_cpp conftest.$ac_ext"
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9987 grep -v '^ *+' conftest.er1 >conftest.err
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } >/dev/null && {
9992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9995 ac_header_preproc=yes
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_header_preproc=no
10003 rm -f conftest.err conftest.$ac_ext
10004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10005 echo "${ECHO_T}$ac_header_preproc" >&6; }
10007 # So? What about this header?
10008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10014 ac_header_preproc=yes
10017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10030 ## ---------------------------------------- ##
10031 ## Report this to pgsql-bugs@postgresql.org ##
10032 ## ---------------------------------------- ##
10034 ) | sed "s/^/$as_me: WARNING: /" >&2
10037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 eval "$as_ac_Header=\$ac_header_preproc"
10044 ac_res=`eval echo '${'$as_ac_Header'}'`
10045 { echo "$as_me:$LINENO: result: $ac_res" >&5
10046 echo "${ECHO_T}$ac_res" >&6; }
10049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10050 cat >>confdefs.h <<_ACEOF
10051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10055 { { echo "$as_me:$LINENO: error: readline header not found
10056 If you have libedit already installed, see config.log for details on the
10057 failure. It is possible the compiler isn't looking in the proper directory.
10058 Use --without-readline to disable libedit support." >&5
10059 echo "$as_me: error: readline header not found
10060 If you have libedit already installed, see config.log for details on the
10061 failure. It is possible the compiler isn't looking in the proper directory.
10062 Use --without-readline to disable libedit support." >&2;}
10063 { (exit 1); exit 1; }; }
10076 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10077 # not be there at all. Hence, don't complain if not found. We must check
10078 # though, since in yet other versions it is an independent header.
10080 for ac_header in editline/history.h
10082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 ac_res=`eval echo '${'$as_ac_Header'}'`
10090 { echo "$as_me:$LINENO: result: $ac_res" >&5
10091 echo "${ECHO_T}$ac_res" >&6; }
10093 # Is the header compilable?
10094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10096 cat >conftest.$ac_ext <<_ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 $ac_includes_default
10103 #include <$ac_header>
10105 rm -f conftest.$ac_objext
10106 if { (ac_try="$ac_compile"
10107 case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_compile") 2>conftest.er1
10114 grep -v '^ *+' conftest.er1 >conftest.err
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest.$ac_objext; then
10122 ac_header_compiler=yes
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10127 ac_header_compiler=no
10130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10132 echo "${ECHO_T}$ac_header_compiler" >&6; }
10134 # Is the header present?
10135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10137 cat >conftest.$ac_ext <<_ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10143 #include <$ac_header>
10145 if { (ac_try="$ac_cpp conftest.$ac_ext"
10146 case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10153 grep -v '^ *+' conftest.er1 >conftest.err
10155 cat conftest.err >&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } >/dev/null && {
10158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10159 test ! -s conftest.err
10161 ac_header_preproc=yes
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 ac_header_preproc=no
10169 rm -f conftest.err conftest.$ac_ext
10170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10171 echo "${ECHO_T}$ac_header_preproc" >&6; }
10173 # So? What about this header?
10174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10180 ac_header_preproc=yes
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10196 ## ---------------------------------------- ##
10197 ## Report this to pgsql-bugs@postgresql.org ##
10198 ## ---------------------------------------- ##
10200 ) | sed "s/^/$as_me: WARNING: /" >&2
10203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 eval "$as_ac_Header=\$ac_header_preproc"
10210 ac_res=`eval echo '${'$as_ac_Header'}'`
10211 { echo "$as_me:$LINENO: result: $ac_res" >&5
10212 echo "${ECHO_T}$ac_res" >&6; }
10215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10216 cat >>confdefs.h <<_ACEOF
10217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10222 for ac_header in history.h
10224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 ac_res=`eval echo '${'$as_ac_Header'}'`
10232 { echo "$as_me:$LINENO: result: $ac_res" >&5
10233 echo "${ECHO_T}$ac_res" >&6; }
10235 # Is the header compilable?
10236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10238 cat >conftest.$ac_ext <<_ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 $ac_includes_default
10245 #include <$ac_header>
10247 rm -f conftest.$ac_objext
10248 if { (ac_try="$ac_compile"
10249 case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_compile") 2>conftest.er1
10256 grep -v '^ *+' conftest.er1 >conftest.err
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && {
10261 test -z "$ac_c_werror_flag" ||
10262 test ! -s conftest.err
10263 } && test -s conftest.$ac_objext; then
10264 ac_header_compiler=yes
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_header_compiler=no
10272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10274 echo "${ECHO_T}$ac_header_compiler" >&6; }
10276 # Is the header present?
10277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10279 cat >conftest.$ac_ext <<_ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 #include <$ac_header>
10287 if { (ac_try="$ac_cpp conftest.$ac_ext"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10295 grep -v '^ *+' conftest.er1 >conftest.err
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } >/dev/null && {
10300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10301 test ! -s conftest.err
10303 ac_header_preproc=yes
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 ac_header_preproc=no
10311 rm -f conftest.err conftest.$ac_ext
10312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10313 echo "${ECHO_T}$ac_header_preproc" >&6; }
10315 # So? What about this header?
10316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10322 ac_header_preproc=yes
10325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10338 ## ---------------------------------------- ##
10339 ## Report this to pgsql-bugs@postgresql.org ##
10340 ## ---------------------------------------- ##
10342 ) | sed "s/^/$as_me: WARNING: /" >&2
10345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 eval "$as_ac_Header=\$ac_header_preproc"
10352 ac_res=`eval echo '${'$as_ac_Header'}'`
10353 { echo "$as_me:$LINENO: result: $ac_res" >&5
10354 echo "${ECHO_T}$ac_res" >&6; }
10357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10358 cat >>confdefs.h <<_ACEOF
10359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10364 for ac_header in readline/history.h
10366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 ac_res=`eval echo '${'$as_ac_Header'}'`
10374 { echo "$as_me:$LINENO: result: $ac_res" >&5
10375 echo "${ECHO_T}$ac_res" >&6; }
10377 # Is the header compilable?
10378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10380 cat >conftest.$ac_ext <<_ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 $ac_includes_default
10387 #include <$ac_header>
10389 rm -f conftest.$ac_objext
10390 if { (ac_try="$ac_compile"
10391 case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_compile") 2>conftest.er1
10398 grep -v '^ *+' conftest.er1 >conftest.err
10400 cat conftest.err >&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } && {
10403 test -z "$ac_c_werror_flag" ||
10404 test ! -s conftest.err
10405 } && test -s conftest.$ac_objext; then
10406 ac_header_compiler=yes
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10411 ac_header_compiler=no
10414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10416 echo "${ECHO_T}$ac_header_compiler" >&6; }
10418 # Is the header present?
10419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10421 cat >conftest.$ac_ext <<_ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10427 #include <$ac_header>
10429 if { (ac_try="$ac_cpp conftest.$ac_ext"
10430 case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10437 grep -v '^ *+' conftest.er1 >conftest.err
10439 cat conftest.err >&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } >/dev/null && {
10442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10443 test ! -s conftest.err
10445 ac_header_preproc=yes
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 ac_header_preproc=no
10453 rm -f conftest.err conftest.$ac_ext
10454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10455 echo "${ECHO_T}$ac_header_preproc" >&6; }
10457 # So? What about this header?
10458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10464 ac_header_preproc=yes
10467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10480 ## ---------------------------------------- ##
10481 ## Report this to pgsql-bugs@postgresql.org ##
10482 ## ---------------------------------------- ##
10484 ) | sed "s/^/$as_me: WARNING: /" >&2
10487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 eval "$as_ac_Header=\$ac_header_preproc"
10494 ac_res=`eval echo '${'$as_ac_Header'}'`
10495 { echo "$as_me:$LINENO: result: $ac_res" >&5
10496 echo "${ECHO_T}$ac_res" >&6; }
10499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10500 cat >>confdefs.h <<_ACEOF
10501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10518 if test "$with_zlib" = yes; then
10519 if test "${ac_cv_header_zlib_h+set}" = set; then
10520 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10521 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10522 if test "${ac_cv_header_zlib_h+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10526 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10528 # Is the header compilable?
10529 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10530 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10531 cat >conftest.$ac_ext <<_ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 $ac_includes_default
10540 rm -f conftest.$ac_objext
10541 if { (ac_try="$ac_compile"
10542 case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_compile") 2>conftest.er1
10549 grep -v '^ *+' conftest.er1 >conftest.err
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest.$ac_objext; then
10557 ac_header_compiler=yes
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10562 ac_header_compiler=no
10565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10567 echo "${ECHO_T}$ac_header_compiler" >&6; }
10569 # Is the header present?
10570 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10571 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10580 if { (ac_try="$ac_cpp conftest.$ac_ext"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10588 grep -v '^ *+' conftest.er1 >conftest.err
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } >/dev/null && {
10593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10596 ac_header_preproc=yes
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_header_preproc=no
10604 rm -f conftest.err conftest.$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10606 echo "${ECHO_T}$ac_header_preproc" >&6; }
10608 # So? What about this header?
10609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10611 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10612 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10613 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10614 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10615 ac_header_preproc=yes
10618 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10619 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10621 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10623 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10625 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10627 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10629 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10631 ## ---------------------------------------- ##
10632 ## Report this to pgsql-bugs@postgresql.org ##
10633 ## ---------------------------------------- ##
10635 ) | sed "s/^/$as_me: WARNING: /" >&2
10638 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10639 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10640 if test "${ac_cv_header_zlib_h+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 ac_cv_header_zlib_h=$ac_header_preproc
10645 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10646 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10649 if test $ac_cv_header_zlib_h = yes; then
10652 { { echo "$as_me:$LINENO: error: zlib header not found
10653 If you have zlib already installed, see config.log for details on the
10654 failure. It is possible the compiler isn't looking in the proper directory.
10655 Use --without-zlib to disable zlib support." >&5
10656 echo "$as_me: error: zlib header not found
10657 If you have zlib already installed, see config.log for details on the
10658 failure. It is possible the compiler isn't looking in the proper directory.
10659 Use --without-zlib to disable zlib support." >&2;}
10660 { (exit 1); exit 1; }; }
10666 if test "$with_gssapi" = yes ; then
10668 for ac_header in gssapi/gssapi.h
10670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 ac_res=`eval echo '${'$as_ac_Header'}'`
10678 { echo "$as_me:$LINENO: result: $ac_res" >&5
10679 echo "${ECHO_T}$ac_res" >&6; }
10681 # Is the header compilable?
10682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10684 cat >conftest.$ac_ext <<_ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 $ac_includes_default
10691 #include <$ac_header>
10693 rm -f conftest.$ac_objext
10694 if { (ac_try="$ac_compile"
10695 case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700 (eval "$ac_compile") 2>conftest.er1
10702 grep -v '^ *+' conftest.er1 >conftest.err
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } && {
10707 test -z "$ac_c_werror_flag" ||
10708 test ! -s conftest.err
10709 } && test -s conftest.$ac_objext; then
10710 ac_header_compiler=yes
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 ac_header_compiler=no
10718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10720 echo "${ECHO_T}$ac_header_compiler" >&6; }
10722 # Is the header present?
10723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 #include <$ac_header>
10733 if { (ac_try="$ac_cpp conftest.$ac_ext"
10734 case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10741 grep -v '^ *+' conftest.er1 >conftest.err
10743 cat conftest.err >&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } >/dev/null && {
10746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10747 test ! -s conftest.err
10749 ac_header_preproc=yes
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10754 ac_header_preproc=no
10757 rm -f conftest.err conftest.$ac_ext
10758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10759 echo "${ECHO_T}$ac_header_preproc" >&6; }
10761 # So? What about this header?
10762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10768 ac_header_preproc=yes
10771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10784 ## ---------------------------------------- ##
10785 ## Report this to pgsql-bugs@postgresql.org ##
10786 ## ---------------------------------------- ##
10788 ) | sed "s/^/$as_me: WARNING: /" >&2
10791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 eval "$as_ac_Header=\$ac_header_preproc"
10798 ac_res=`eval echo '${'$as_ac_Header'}'`
10799 { echo "$as_me:$LINENO: result: $ac_res" >&5
10800 echo "${ECHO_T}$ac_res" >&6; }
10803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10804 cat >>confdefs.h <<_ACEOF
10805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10810 for ac_header in gssapi.h
10812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 ac_res=`eval echo '${'$as_ac_Header'}'`
10820 { echo "$as_me:$LINENO: result: $ac_res" >&5
10821 echo "${ECHO_T}$ac_res" >&6; }
10823 # Is the header compilable?
10824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10826 cat >conftest.$ac_ext <<_ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 $ac_includes_default
10833 #include <$ac_header>
10835 rm -f conftest.$ac_objext
10836 if { (ac_try="$ac_compile"
10837 case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_compile") 2>conftest.er1
10844 grep -v '^ *+' conftest.er1 >conftest.err
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } && {
10849 test -z "$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 } && test -s conftest.$ac_objext; then
10852 ac_header_compiler=yes
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10857 ac_header_compiler=no
10860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10862 echo "${ECHO_T}$ac_header_compiler" >&6; }
10864 # Is the header present?
10865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10867 cat >conftest.$ac_ext <<_ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873 #include <$ac_header>
10875 if { (ac_try="$ac_cpp conftest.$ac_ext"
10876 case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10883 grep -v '^ *+' conftest.er1 >conftest.err
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } >/dev/null && {
10888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10889 test ! -s conftest.err
10891 ac_header_preproc=yes
10893 echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10896 ac_header_preproc=no
10899 rm -f conftest.err conftest.$ac_ext
10900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10901 echo "${ECHO_T}$ac_header_preproc" >&6; }
10903 # So? What about this header?
10904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10910 ac_header_preproc=yes
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10926 ## ---------------------------------------- ##
10927 ## Report this to pgsql-bugs@postgresql.org ##
10928 ## ---------------------------------------- ##
10930 ) | sed "s/^/$as_me: WARNING: /" >&2
10933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 eval "$as_ac_Header=\$ac_header_preproc"
10940 ac_res=`eval echo '${'$as_ac_Header'}'`
10941 { echo "$as_me:$LINENO: result: $ac_res" >&5
10942 echo "${ECHO_T}$ac_res" >&6; }
10945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10946 cat >>confdefs.h <<_ACEOF
10947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10951 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10952 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10953 { (exit 1); exit 1; }; }
10964 if test "$with_krb5" = yes ; then
10965 if test "${ac_cv_header_krb5_h+set}" = set; then
10966 { echo "$as_me:$LINENO: checking for krb5.h" >&5
10967 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10968 if test "${ac_cv_header_krb5_h+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10972 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10974 # Is the header compilable?
10975 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
10976 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 $ac_includes_default
10986 rm -f conftest.$ac_objext
10987 if { (ac_try="$ac_compile"
10988 case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_compile") 2>conftest.er1
10995 grep -v '^ *+' conftest.er1 >conftest.err
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && {
11000 test -z "$ac_c_werror_flag" ||
11001 test ! -s conftest.err
11002 } && test -s conftest.$ac_objext; then
11003 ac_header_compiler=yes
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11008 ac_header_compiler=no
11011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11013 echo "${ECHO_T}$ac_header_compiler" >&6; }
11015 # Is the header present?
11016 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11017 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11018 cat >conftest.$ac_ext <<_ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11026 if { (ac_try="$ac_cpp conftest.$ac_ext"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11034 grep -v '^ *+' conftest.er1 >conftest.err
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } >/dev/null && {
11039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11040 test ! -s conftest.err
11042 ac_header_preproc=yes
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11047 ac_header_preproc=no
11050 rm -f conftest.err conftest.$ac_ext
11051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11052 echo "${ECHO_T}$ac_header_preproc" >&6; }
11054 # So? What about this header?
11055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11057 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11058 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11060 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11061 ac_header_preproc=yes
11064 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11065 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11067 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11069 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11071 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11073 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11075 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11077 ## ---------------------------------------- ##
11078 ## Report this to pgsql-bugs@postgresql.org ##
11079 ## ---------------------------------------- ##
11081 ) | sed "s/^/$as_me: WARNING: /" >&2
11084 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11085 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11086 if test "${ac_cv_header_krb5_h+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 ac_cv_header_krb5_h=$ac_header_preproc
11091 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11092 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11095 if test $ac_cv_header_krb5_h = yes; then
11098 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11099 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11100 { (exit 1); exit 1; }; }
11106 if test "$with_openssl" = yes ; then
11107 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11108 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11109 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11110 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11114 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11116 # Is the header compilable?
11117 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11118 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11119 cat >conftest.$ac_ext <<_ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125 $ac_includes_default
11126 #include <openssl/ssl.h>
11128 rm -f conftest.$ac_objext
11129 if { (ac_try="$ac_compile"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_compile") 2>conftest.er1
11137 grep -v '^ *+' conftest.er1 >conftest.err
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest.$ac_objext; then
11145 ac_header_compiler=yes
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_header_compiler=no
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11155 echo "${ECHO_T}$ac_header_compiler" >&6; }
11157 # Is the header present?
11158 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11159 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11160 cat >conftest.$ac_ext <<_ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 #include <openssl/ssl.h>
11168 if { (ac_try="$ac_cpp conftest.$ac_ext"
11169 case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11176 grep -v '^ *+' conftest.er1 >conftest.err
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } >/dev/null && {
11181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11182 test ! -s conftest.err
11184 ac_header_preproc=yes
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11189 ac_header_preproc=no
11192 rm -f conftest.err conftest.$ac_ext
11193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194 echo "${ECHO_T}$ac_header_preproc" >&6; }
11196 # So? What about this header?
11197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11199 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11200 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11202 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11203 ac_header_preproc=yes
11206 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11207 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11209 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11211 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11213 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11215 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11217 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11219 ## ---------------------------------------- ##
11220 ## Report this to pgsql-bugs@postgresql.org ##
11221 ## ---------------------------------------- ##
11223 ) | sed "s/^/$as_me: WARNING: /" >&2
11226 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11227 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11228 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11233 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11234 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11237 if test $ac_cv_header_openssl_ssl_h = yes; then
11240 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11241 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11242 { (exit 1); exit 1; }; }
11246 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11247 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11248 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11249 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11253 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11255 # Is the header compilable?
11256 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11257 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11258 cat >conftest.$ac_ext <<_ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11264 $ac_includes_default
11265 #include <openssl/err.h>
11267 rm -f conftest.$ac_objext
11268 if { (ac_try="$ac_compile"
11269 case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_compile") 2>conftest.er1
11276 grep -v '^ *+' conftest.er1 >conftest.err
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } && {
11281 test -z "$ac_c_werror_flag" ||
11282 test ! -s conftest.err
11283 } && test -s conftest.$ac_objext; then
11284 ac_header_compiler=yes
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 ac_header_compiler=no
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11294 echo "${ECHO_T}$ac_header_compiler" >&6; }
11296 # Is the header present?
11297 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11298 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11299 cat >conftest.$ac_ext <<_ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 #include <openssl/err.h>
11307 if { (ac_try="$ac_cpp conftest.$ac_ext"
11308 case "(($ac_try" in
11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310 *) ac_try_echo=$ac_try;;
11312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11315 grep -v '^ *+' conftest.er1 >conftest.err
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } >/dev/null && {
11320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11321 test ! -s conftest.err
11323 ac_header_preproc=yes
11325 echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11328 ac_header_preproc=no
11331 rm -f conftest.err conftest.$ac_ext
11332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11333 echo "${ECHO_T}$ac_header_preproc" >&6; }
11335 # So? What about this header?
11336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11338 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11339 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11341 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11342 ac_header_preproc=yes
11345 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11346 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11348 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11350 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11352 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11354 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11356 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11358 ## ---------------------------------------- ##
11359 ## Report this to pgsql-bugs@postgresql.org ##
11360 ## ---------------------------------------- ##
11362 ) | sed "s/^/$as_me: WARNING: /" >&2
11365 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11366 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11367 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 ac_cv_header_openssl_err_h=$ac_header_preproc
11372 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11373 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11376 if test $ac_cv_header_openssl_err_h = yes; then
11379 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11380 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11381 { (exit 1); exit 1; }; }
11386 for ac_func in ERR_set_mark
11388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 cat >conftest.$ac_ext <<_ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11402 #define $ac_func innocuous_$ac_func
11404 /* System header to define __stub macros and hopefully few prototypes,
11405 which can conflict with char $ac_func (); below.
11406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407 <limits.h> exists even on freestanding compilers. */
11410 # include <limits.h>
11412 # include <assert.h>
11417 /* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
11424 /* The GNU C library defines this for functions which it implements
11425 to always fail with ENOSYS. Some functions are actually named
11426 something starting with __ and the normal name is an alias. */
11427 #if defined __stub_$ac_func || defined __stub___$ac_func
11434 return $ac_func ();
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (ac_try="$ac_link"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_link") 2>conftest.er1
11448 grep -v '^ *+' conftest.er1 >conftest.err
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_c_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest$ac_exeext &&
11456 $as_test_x conftest$ac_exeext; then
11457 eval "$as_ac_var=yes"
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 eval "$as_ac_var=no"
11465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11466 conftest$ac_exeext conftest.$ac_ext
11468 ac_res=`eval echo '${'$as_ac_var'}'`
11469 { echo "$as_me:$LINENO: result: $ac_res" >&5
11470 echo "${ECHO_T}$ac_res" >&6; }
11471 if test `eval echo '${'$as_ac_var'}'` = yes; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11481 if test "$with_pam" = yes ; then
11483 for ac_header in security/pam_appl.h
11485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 ac_res=`eval echo '${'$as_ac_Header'}'`
11493 { echo "$as_me:$LINENO: result: $ac_res" >&5
11494 echo "${ECHO_T}$ac_res" >&6; }
11496 # Is the header compilable?
11497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11506 #include <$ac_header>
11508 rm -f conftest.$ac_objext
11509 if { (ac_try="$ac_compile"
11510 case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_compile") 2>conftest.er1
11517 grep -v '^ *+' conftest.er1 >conftest.err
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest.$ac_objext; then
11525 ac_header_compiler=yes
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11530 ac_header_compiler=no
11533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11535 echo "${ECHO_T}$ac_header_compiler" >&6; }
11537 # Is the header present?
11538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 #include <$ac_header>
11548 if { (ac_try="$ac_cpp conftest.$ac_ext"
11549 case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11556 grep -v '^ *+' conftest.er1 >conftest.err
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } >/dev/null && {
11561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11562 test ! -s conftest.err
11564 ac_header_preproc=yes
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 ac_header_preproc=no
11572 rm -f conftest.err conftest.$ac_ext
11573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11574 echo "${ECHO_T}$ac_header_preproc" >&6; }
11576 # So? What about this header?
11577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11583 ac_header_preproc=yes
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11599 ## ---------------------------------------- ##
11600 ## Report this to pgsql-bugs@postgresql.org ##
11601 ## ---------------------------------------- ##
11603 ) | sed "s/^/$as_me: WARNING: /" >&2
11606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 eval "$as_ac_Header=\$ac_header_preproc"
11613 ac_res=`eval echo '${'$as_ac_Header'}'`
11614 { echo "$as_me:$LINENO: result: $ac_res" >&5
11615 echo "${ECHO_T}$ac_res" >&6; }
11618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11619 cat >>confdefs.h <<_ACEOF
11620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11625 for ac_header in pam/pam_appl.h
11627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 ac_res=`eval echo '${'$as_ac_Header'}'`
11635 { echo "$as_me:$LINENO: result: $ac_res" >&5
11636 echo "${ECHO_T}$ac_res" >&6; }
11638 # Is the header compilable?
11639 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 $ac_includes_default
11648 #include <$ac_header>
11650 rm -f conftest.$ac_objext
11651 if { (ac_try="$ac_compile"
11652 case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_compile") 2>conftest.er1
11659 grep -v '^ *+' conftest.er1 >conftest.err
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } && {
11664 test -z "$ac_c_werror_flag" ||
11665 test ! -s conftest.err
11666 } && test -s conftest.$ac_objext; then
11667 ac_header_compiler=yes
11669 echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11672 ac_header_compiler=no
11675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11677 echo "${ECHO_T}$ac_header_compiler" >&6; }
11679 # Is the header present?
11680 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11682 cat >conftest.$ac_ext <<_ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11688 #include <$ac_header>
11690 if { (ac_try="$ac_cpp conftest.$ac_ext"
11691 case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11698 grep -v '^ *+' conftest.er1 >conftest.err
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } >/dev/null && {
11703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11704 test ! -s conftest.err
11706 ac_header_preproc=yes
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ac_header_preproc=no
11714 rm -f conftest.err conftest.$ac_ext
11715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11716 echo "${ECHO_T}$ac_header_preproc" >&6; }
11718 # So? What about this header?
11719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11725 ac_header_preproc=yes
11728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11741 ## ---------------------------------------- ##
11742 ## Report this to pgsql-bugs@postgresql.org ##
11743 ## ---------------------------------------- ##
11745 ) | sed "s/^/$as_me: WARNING: /" >&2
11748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 eval "$as_ac_Header=\$ac_header_preproc"
11755 ac_res=`eval echo '${'$as_ac_Header'}'`
11756 { echo "$as_me:$LINENO: result: $ac_res" >&5
11757 echo "${ECHO_T}$ac_res" >&6; }
11760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11761 cat >>confdefs.h <<_ACEOF
11762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11766 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11767 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11768 { (exit 1); exit 1; }; }
11779 if test "$with_libxml" = yes ; then
11780 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11781 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11782 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11783 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11786 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11787 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11789 # Is the header compilable?
11790 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11791 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
11792 cat >conftest.$ac_ext <<_ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11798 $ac_includes_default
11799 #include <libxml/parser.h>
11801 rm -f conftest.$ac_objext
11802 if { (ac_try="$ac_compile"
11803 case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_compile") 2>conftest.er1
11810 grep -v '^ *+' conftest.er1 >conftest.err
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } && {
11815 test -z "$ac_c_werror_flag" ||
11816 test ! -s conftest.err
11817 } && test -s conftest.$ac_objext; then
11818 ac_header_compiler=yes
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 ac_header_compiler=no
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11828 echo "${ECHO_T}$ac_header_compiler" >&6; }
11830 # Is the header present?
11831 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11832 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
11833 cat >conftest.$ac_ext <<_ACEOF
11836 cat confdefs.h >>conftest.$ac_ext
11837 cat >>conftest.$ac_ext <<_ACEOF
11838 /* end confdefs.h. */
11839 #include <libxml/parser.h>
11841 if { (ac_try="$ac_cpp conftest.$ac_ext"
11842 case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11849 grep -v '^ *+' conftest.er1 >conftest.err
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } >/dev/null && {
11854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11857 ac_header_preproc=yes
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_header_preproc=no
11865 rm -f conftest.err conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11867 echo "${ECHO_T}$ac_header_preproc" >&6; }
11869 # So? What about this header?
11870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11872 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11873 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11875 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11876 ac_header_preproc=yes
11879 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11880 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11881 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
11882 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11884 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
11886 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11888 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11890 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11892 ## ---------------------------------------- ##
11893 ## Report this to pgsql-bugs@postgresql.org ##
11894 ## ---------------------------------------- ##
11896 ) | sed "s/^/$as_me: WARNING: /" >&2
11899 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11900 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11901 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 ac_cv_header_libxml_parser_h=$ac_header_preproc
11906 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11907 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11910 if test $ac_cv_header_libxml_parser_h = yes; then
11913 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11914 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11915 { (exit 1); exit 1; }; }
11921 if test "$with_libxslt" = yes ; then
11922 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11923 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11924 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11925 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11929 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11931 # Is the header compilable?
11932 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11933 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940 $ac_includes_default
11941 #include <libxslt/xslt.h>
11943 rm -f conftest.$ac_objext
11944 if { (ac_try="$ac_compile"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_compile") 2>conftest.er1
11952 grep -v '^ *+' conftest.er1 >conftest.err
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } && {
11957 test -z "$ac_c_werror_flag" ||
11958 test ! -s conftest.err
11959 } && test -s conftest.$ac_objext; then
11960 ac_header_compiler=yes
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 ac_header_compiler=no
11968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11970 echo "${ECHO_T}$ac_header_compiler" >&6; }
11972 # Is the header present?
11973 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11974 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
11975 cat >conftest.$ac_ext <<_ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 #include <libxslt/xslt.h>
11983 if { (ac_try="$ac_cpp conftest.$ac_ext"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11991 grep -v '^ *+' conftest.er1 >conftest.err
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } >/dev/null && {
11996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11997 test ! -s conftest.err
11999 ac_header_preproc=yes
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 ac_header_preproc=no
12007 rm -f conftest.err conftest.$ac_ext
12008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12009 echo "${ECHO_T}$ac_header_preproc" >&6; }
12011 # So? What about this header?
12012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12014 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12015 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12016 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12017 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12018 ac_header_preproc=yes
12021 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12022 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12023 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12024 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12025 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12026 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12027 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12028 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12030 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12032 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12034 ## ---------------------------------------- ##
12035 ## Report this to pgsql-bugs@postgresql.org ##
12036 ## ---------------------------------------- ##
12038 ) | sed "s/^/$as_me: WARNING: /" >&2
12041 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12042 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12043 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12048 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12049 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12052 if test $ac_cv_header_libxslt_xslt_h = yes; then
12055 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12056 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12057 { (exit 1); exit 1; }; }
12063 if test "$with_ldap" = yes ; then
12064 if test "$PORTNAME" != "win32"; then
12066 for ac_header in ldap.h
12068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 ac_res=`eval echo '${'$as_ac_Header'}'`
12076 { echo "$as_me:$LINENO: result: $ac_res" >&5
12077 echo "${ECHO_T}$ac_res" >&6; }
12079 # Is the header compilable?
12080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12082 cat >conftest.$ac_ext <<_ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h. */
12088 $ac_includes_default
12089 #include <$ac_header>
12091 rm -f conftest.$ac_objext
12092 if { (ac_try="$ac_compile"
12093 case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_compile") 2>conftest.er1
12100 grep -v '^ *+' conftest.er1 >conftest.err
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } && {
12105 test -z "$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12107 } && test -s conftest.$ac_objext; then
12108 ac_header_compiler=yes
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 ac_header_compiler=no
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12118 echo "${ECHO_T}$ac_header_compiler" >&6; }
12120 # Is the header present?
12121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 #include <$ac_header>
12131 if { (ac_try="$ac_cpp conftest.$ac_ext"
12132 case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12139 grep -v '^ *+' conftest.er1 >conftest.err
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } >/dev/null && {
12144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12145 test ! -s conftest.err
12147 ac_header_preproc=yes
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12152 ac_header_preproc=no
12155 rm -f conftest.err conftest.$ac_ext
12156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12157 echo "${ECHO_T}$ac_header_preproc" >&6; }
12159 # So? What about this header?
12160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12166 ac_header_preproc=yes
12169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12182 ## ---------------------------------------- ##
12183 ## Report this to pgsql-bugs@postgresql.org ##
12184 ## ---------------------------------------- ##
12186 ) | sed "s/^/$as_me: WARNING: /" >&2
12189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12192 echo $ECHO_N "(cached) $ECHO_C" >&6
12194 eval "$as_ac_Header=\$ac_header_preproc"
12196 ac_res=`eval echo '${'$as_ac_Header'}'`
12197 { echo "$as_me:$LINENO: result: $ac_res" >&5
12198 echo "${ECHO_T}$ac_res" >&6; }
12201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12202 cat >>confdefs.h <<_ACEOF
12203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12207 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12208 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12209 { (exit 1); exit 1; }; }
12216 for ac_header in winldap.h
12218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 cat >conftest.$ac_ext <<_ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h. */
12230 $ac_includes_default
12231 #include <windows.h>
12234 #include <$ac_header>
12236 rm -f conftest.$ac_objext
12237 if { (ac_try="$ac_compile"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_compile") 2>conftest.er1
12245 grep -v '^ *+' conftest.er1 >conftest.err
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } && {
12250 test -z "$ac_c_werror_flag" ||
12251 test ! -s conftest.err
12252 } && test -s conftest.$ac_objext; then
12253 eval "$as_ac_Header=yes"
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258 eval "$as_ac_Header=no"
12261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263 ac_res=`eval echo '${'$as_ac_Header'}'`
12264 { echo "$as_me:$LINENO: result: $ac_res" >&5
12265 echo "${ECHO_T}$ac_res" >&6; }
12266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12267 cat >>confdefs.h <<_ACEOF
12268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12272 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12273 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12274 { (exit 1); exit 1; }; }
12282 if test "$with_bonjour" = yes ; then
12283 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12284 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12285 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12286 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12290 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12292 # Is the header compilable?
12293 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12294 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12295 cat >conftest.$ac_ext <<_ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301 $ac_includes_default
12302 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12304 rm -f conftest.$ac_objext
12305 if { (ac_try="$ac_compile"
12306 case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_compile") 2>conftest.er1
12313 grep -v '^ *+' conftest.er1 >conftest.err
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } && {
12318 test -z "$ac_c_werror_flag" ||
12319 test ! -s conftest.err
12320 } && test -s conftest.$ac_objext; then
12321 ac_header_compiler=yes
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ac_header_compiler=no
12329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12331 echo "${ECHO_T}$ac_header_compiler" >&6; }
12333 # Is the header present?
12334 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12335 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12336 cat >conftest.$ac_ext <<_ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12344 if { (ac_try="$ac_cpp conftest.$ac_ext"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12352 grep -v '^ *+' conftest.er1 >conftest.err
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } >/dev/null && {
12357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12358 test ! -s conftest.err
12360 ac_header_preproc=yes
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_header_preproc=no
12368 rm -f conftest.err conftest.$ac_ext
12369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12370 echo "${ECHO_T}$ac_header_preproc" >&6; }
12372 # So? What about this header?
12373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12375 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12376 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12377 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12378 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12379 ac_header_preproc=yes
12382 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12383 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12384 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12385 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12387 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12389 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12391 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12393 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12395 ## ---------------------------------------- ##
12396 ## Report this to pgsql-bugs@postgresql.org ##
12397 ## ---------------------------------------- ##
12399 ) | sed "s/^/$as_me: WARNING: /" >&2
12402 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12403 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12404 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12409 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12410 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12413 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12416 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12417 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12418 { (exit 1); exit 1; }; }
12424 # for contrib/uuid-ossp
12425 if test "$with_ossp_uuid" = yes ; then
12427 for ac_header in ossp/uuid.h
12429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12436 ac_res=`eval echo '${'$as_ac_Header'}'`
12437 { echo "$as_me:$LINENO: result: $ac_res" >&5
12438 echo "${ECHO_T}$ac_res" >&6; }
12440 # Is the header compilable?
12441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12443 cat >conftest.$ac_ext <<_ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 $ac_includes_default
12450 #include <$ac_header>
12452 rm -f conftest.$ac_objext
12453 if { (ac_try="$ac_compile"
12454 case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_compile") 2>conftest.er1
12461 grep -v '^ *+' conftest.er1 >conftest.err
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && {
12466 test -z "$ac_c_werror_flag" ||
12467 test ! -s conftest.err
12468 } && test -s conftest.$ac_objext; then
12469 ac_header_compiler=yes
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12474 ac_header_compiler=no
12477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12479 echo "${ECHO_T}$ac_header_compiler" >&6; }
12481 # Is the header present?
12482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 #include <$ac_header>
12492 if { (ac_try="$ac_cpp conftest.$ac_ext"
12493 case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } >/dev/null && {
12505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12506 test ! -s conftest.err
12508 ac_header_preproc=yes
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12513 ac_header_preproc=no
12516 rm -f conftest.err conftest.$ac_ext
12517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12518 echo "${ECHO_T}$ac_header_preproc" >&6; }
12520 # So? What about this header?
12521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12527 ac_header_preproc=yes
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12543 ## ---------------------------------------- ##
12544 ## Report this to pgsql-bugs@postgresql.org ##
12545 ## ---------------------------------------- ##
12547 ) | sed "s/^/$as_me: WARNING: /" >&2
12550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 eval "$as_ac_Header=\$ac_header_preproc"
12557 ac_res=`eval echo '${'$as_ac_Header'}'`
12558 { echo "$as_me:$LINENO: result: $ac_res" >&5
12559 echo "${ECHO_T}$ac_res" >&6; }
12562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12563 cat >>confdefs.h <<_ACEOF
12564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12570 for ac_header in uuid.h
12572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 ac_res=`eval echo '${'$as_ac_Header'}'`
12580 { echo "$as_me:$LINENO: result: $ac_res" >&5
12581 echo "${ECHO_T}$ac_res" >&6; }
12583 # Is the header compilable?
12584 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12586 cat >conftest.$ac_ext <<_ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12592 $ac_includes_default
12593 #include <$ac_header>
12595 rm -f conftest.$ac_objext
12596 if { (ac_try="$ac_compile"
12597 case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_compile") 2>conftest.er1
12604 grep -v '^ *+' conftest.er1 >conftest.err
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && {
12609 test -z "$ac_c_werror_flag" ||
12610 test ! -s conftest.err
12611 } && test -s conftest.$ac_objext; then
12612 ac_header_compiler=yes
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 ac_header_compiler=no
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12622 echo "${ECHO_T}$ac_header_compiler" >&6; }
12624 # Is the header present?
12625 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12627 cat >conftest.$ac_ext <<_ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 #include <$ac_header>
12635 if { (ac_try="$ac_cpp conftest.$ac_ext"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12643 grep -v '^ *+' conftest.er1 >conftest.err
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } >/dev/null && {
12648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12651 ac_header_preproc=yes
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 ac_header_preproc=no
12659 rm -f conftest.err conftest.$ac_ext
12660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12661 echo "${ECHO_T}$ac_header_preproc" >&6; }
12663 # So? What about this header?
12664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12670 ac_header_preproc=yes
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12686 ## ---------------------------------------- ##
12687 ## Report this to pgsql-bugs@postgresql.org ##
12688 ## ---------------------------------------- ##
12690 ) | sed "s/^/$as_me: WARNING: /" >&2
12693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 eval "$as_ac_Header=\$ac_header_preproc"
12700 ac_res=`eval echo '${'$as_ac_Header'}'`
12701 { echo "$as_me:$LINENO: result: $ac_res" >&5
12702 echo "${ECHO_T}$ac_res" >&6; }
12705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12706 cat >>confdefs.h <<_ACEOF
12707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12711 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12712 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12713 { (exit 1); exit 1; }; }
12726 ## Types, structures, compiler characteristics
12729 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12730 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12731 if test "${ac_cv_c_bigendian+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 # See if sys/param.h defines the BYTE_ORDER macro.
12735 cat >conftest.$ac_ext <<_ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12741 #include <sys/types.h>
12742 #include <sys/param.h>
12747 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12748 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
12749 bogus endian macros
12756 rm -f conftest.$ac_objext
12757 if { (ac_try="$ac_compile"
12758 case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_compile") 2>conftest.er1
12765 grep -v '^ *+' conftest.er1 >conftest.err
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } && {
12770 test -z "$ac_c_werror_flag" ||
12771 test ! -s conftest.err
12772 } && test -s conftest.$ac_objext; then
12773 # It does; now see whether it defined to BIG_ENDIAN or not.
12774 cat >conftest.$ac_ext <<_ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12780 #include <sys/types.h>
12781 #include <sys/param.h>
12786 #if BYTE_ORDER != BIG_ENDIAN
12794 rm -f conftest.$ac_objext
12795 if { (ac_try="$ac_compile"
12796 case "(($ac_try" in
12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_compile") 2>conftest.er1
12803 grep -v '^ *+' conftest.er1 >conftest.err
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } && {
12808 test -z "$ac_c_werror_flag" ||
12809 test ! -s conftest.err
12810 } && test -s conftest.$ac_objext; then
12811 ac_cv_c_bigendian=yes
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12816 ac_cv_c_bigendian=no
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 # It does not; compile a test program.
12825 if test "$cross_compiling" = yes; then
12826 # try to guess the endianness by grepping values into an object file
12827 ac_cv_c_bigendian=unknown
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12835 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12836 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12837 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12838 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12839 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12843 _ascii (); _ebcdic ();
12848 rm -f conftest.$ac_objext
12849 if { (ac_try="$ac_compile"
12850 case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855 (eval "$ac_compile") 2>conftest.er1
12857 grep -v '^ *+' conftest.er1 >conftest.err
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } && {
12862 test -z "$ac_c_werror_flag" ||
12863 test ! -s conftest.err
12864 } && test -s conftest.$ac_objext; then
12865 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12866 ac_cv_c_bigendian=yes
12868 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12869 if test "$ac_cv_c_bigendian" = unknown; then
12870 ac_cv_c_bigendian=no
12872 # finding both strings is unlikely to happen, but who knows?
12873 ac_cv_c_bigendian=unknown
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885 cat >conftest.$ac_ext <<_ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 $ac_includes_default
12896 /* Are we little or big endian? From Harbison&Steele. */
12900 char c[sizeof (long int)];
12903 return u.c[sizeof (long int) - 1] == 1;
12909 rm -f conftest$ac_exeext
12910 if { (ac_try="$ac_link"
12911 case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916 (eval "$ac_link") 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12920 { (case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_try") 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 ac_cv_c_bigendian=no
12931 echo "$as_me: program exited with status $ac_status" >&5
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12935 ( exit $ac_status )
12936 ac_cv_c_bigendian=yes
12938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12947 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
12948 case $ac_cv_c_bigendian in
12951 cat >>confdefs.h <<\_ACEOF
12952 #define WORDS_BIGENDIAN 1
12958 { { echo "$as_me:$LINENO: error: unknown endianness
12959 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12960 echo "$as_me: error: unknown endianness
12961 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12962 { (exit 1); exit 1; }; } ;;
12965 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12966 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12967 if test "${ac_cv_c_const+set}" = set; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 cat >conftest.$ac_ext <<_ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12980 /* FIXME: Include the comments suggested by Paul. */
12981 #ifndef __cplusplus
12982 /* Ultrix mips cc rejects this. */
12983 typedef int charset[2];
12985 /* SunOS 4.1.1 cc rejects this. */
12986 char const *const *pcpcc;
12988 /* NEC SVR4.0.2 mips cc rejects this. */
12989 struct point {int x, y;};
12990 static struct point const zero = {0,0};
12991 /* AIX XL C 1.02.0.0 rejects this.
12992 It does not let you subtract one const X* pointer from another in
12993 an arm of an if-expression whose if-part is not a constant
12995 const char *g = "string";
12996 pcpcc = &g + (g ? g-g : 0);
12997 /* HPUX 7.0 cc rejects these. */
12999 ppc = (char**) pcpcc;
13000 pcpcc = (char const *const *) ppc;
13001 { /* SCO 3.2v4 cc rejects this. */
13003 char const *s = 0 ? (char *) 0 : (char const *) 0;
13008 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13009 int x[] = {25, 17};
13010 const int *foo = &x[0];
13013 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13014 typedef const int *iptr;
13018 { /* AIX XL C 1.02.0.0 rejects this saying
13019 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13020 struct s { int j; const int *ap[3]; };
13021 struct s *b; b->j = 5;
13023 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13024 const int foo = 10;
13025 if (!foo) return 0;
13027 return !cs[0] && !zero.x;
13034 rm -f conftest.$ac_objext
13035 if { (ac_try="$ac_compile"
13036 case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_compile") 2>conftest.er1
13043 grep -v '^ *+' conftest.er1 >conftest.err
13045 cat conftest.err >&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } && {
13048 test -z "$ac_c_werror_flag" ||
13049 test ! -s conftest.err
13050 } && test -s conftest.$ac_objext; then
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13061 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13062 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13063 if test $ac_cv_c_const = no; then
13065 cat >>confdefs.h <<\_ACEOF
13071 { echo "$as_me:$LINENO: checking for inline" >&5
13072 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13073 if test "${ac_cv_c_inline+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 for ac_kw in inline __inline__ __inline; do
13078 cat >conftest.$ac_ext <<_ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 #ifndef __cplusplus
13086 static $ac_kw foo_t static_foo () {return 0; }
13087 $ac_kw foo_t foo () {return 0; }
13091 rm -f conftest.$ac_objext
13092 if { (ac_try="$ac_compile"
13093 case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_compile") 2>conftest.er1
13100 grep -v '^ *+' conftest.er1 >conftest.err
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } && {
13105 test -z "$ac_c_werror_flag" ||
13106 test ! -s conftest.err
13107 } && test -s conftest.$ac_objext; then
13108 ac_cv_c_inline=$ac_kw
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117 test "$ac_cv_c_inline" != no && break
13121 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13122 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13125 case $ac_cv_c_inline in
13128 case $ac_cv_c_inline in
13130 *) ac_val=$ac_cv_c_inline;;
13132 cat >>confdefs.h <<_ACEOF
13133 #ifndef __cplusplus
13134 #define inline $ac_val
13140 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13141 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13142 if test "${ac_cv_c_stringize+set}" = set; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 cat >conftest.$ac_ext <<_ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13153 char *s = x(teststring);
13155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13156 $EGREP "#teststring" >/dev/null 2>&1; then
13157 ac_cv_c_stringize=no
13159 ac_cv_c_stringize=yes
13164 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13165 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13166 if test $ac_cv_c_stringize = yes; then
13168 cat >>confdefs.h <<\_ACEOF
13169 #define HAVE_STRINGIZE 1
13174 { echo "$as_me:$LINENO: checking for signed types" >&5
13175 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13176 if test "${pgac_cv_c_signed+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 cat >conftest.$ac_ext <<_ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13189 signed char c; signed short s; signed int i;
13194 rm -f conftest.$ac_objext
13195 if { (ac_try="$ac_compile"
13196 case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_compile") 2>conftest.er1
13203 grep -v '^ *+' conftest.er1 >conftest.err
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } && {
13208 test -z "$ac_c_werror_flag" ||
13209 test ! -s conftest.err
13210 } && test -s conftest.$ac_objext; then
13211 pgac_cv_c_signed=yes
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13216 pgac_cv_c_signed=no
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13222 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13223 if test x"$pgac_cv_c_signed" = xno ; then
13225 cat >>confdefs.h <<\_ACEOF
13230 { echo "$as_me:$LINENO: checking for working volatile" >&5
13231 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13232 if test "${ac_cv_c_volatile+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 cat >conftest.$ac_ext <<_ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13247 int * volatile y = (int *) 0;
13253 rm -f conftest.$ac_objext
13254 if { (ac_try="$ac_compile"
13255 case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_compile") 2>conftest.er1
13262 grep -v '^ *+' conftest.er1 >conftest.err
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } && {
13267 test -z "$ac_c_werror_flag" ||
13268 test ! -s conftest.err
13269 } && test -s conftest.$ac_objext; then
13270 ac_cv_c_volatile=yes
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13275 ac_cv_c_volatile=no
13278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13281 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13282 if test $ac_cv_c_volatile = no; then
13284 cat >>confdefs.h <<\_ACEOF
13290 { echo "$as_me:$LINENO: checking for __func__" >&5
13291 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13292 if test "${pgac_cv_funcname_func_support+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 cat >conftest.$ac_ext <<_ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13305 printf("%s\n", __func__);
13310 rm -f conftest.$ac_objext
13311 if { (ac_try="$ac_compile"
13312 case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_compile") 2>conftest.er1
13319 grep -v '^ *+' conftest.er1 >conftest.err
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } && {
13324 test -z "$ac_c_werror_flag" ||
13325 test ! -s conftest.err
13326 } && test -s conftest.$ac_objext; then
13327 pgac_cv_funcname_func_support=yes
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13332 pgac_cv_funcname_func_support=no
13335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13338 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13339 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13341 cat >>confdefs.h <<\_ACEOF
13342 #define HAVE_FUNCNAME__FUNC 1
13346 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13347 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13348 if test "${pgac_cv_funcname_function_support+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 cat >conftest.$ac_ext <<_ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13361 printf("%s\n", __FUNCTION__);
13366 rm -f conftest.$ac_objext
13367 if { (ac_try="$ac_compile"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_compile") 2>conftest.er1
13375 grep -v '^ *+' conftest.er1 >conftest.err
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } && {
13380 test -z "$ac_c_werror_flag" ||
13381 test ! -s conftest.err
13382 } && test -s conftest.$ac_objext; then
13383 pgac_cv_funcname_function_support=yes
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13388 pgac_cv_funcname_function_support=no
13391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13394 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13395 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13397 cat >>confdefs.h <<\_ACEOF
13398 #define HAVE_FUNCNAME__FUNCTION 1
13403 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13404 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13405 if test "${ac_cv_struct_tm+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 cat >conftest.$ac_ext <<_ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h. */
13414 #include <sys/types.h>
13421 int *p = &tm.tm_sec;
13427 rm -f conftest.$ac_objext
13428 if { (ac_try="$ac_compile"
13429 case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_compile") 2>conftest.er1
13436 grep -v '^ *+' conftest.er1 >conftest.err
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } && {
13441 test -z "$ac_c_werror_flag" ||
13442 test ! -s conftest.err
13443 } && test -s conftest.$ac_objext; then
13444 ac_cv_struct_tm=time.h
13446 echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13449 ac_cv_struct_tm=sys/time.h
13452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13454 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13455 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13456 if test $ac_cv_struct_tm = sys/time.h; then
13458 cat >>confdefs.h <<\_ACEOF
13459 #define TM_IN_SYS_TIME 1
13464 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13465 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13466 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 cat >conftest.$ac_ext <<_ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 #include <sys/types.h>
13476 #include <$ac_cv_struct_tm>
13482 static struct tm ac_aggr;
13483 if (ac_aggr.tm_zone)
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_compile") 2>conftest.er1
13498 grep -v '^ *+' conftest.er1 >conftest.err
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } && {
13503 test -z "$ac_c_werror_flag" ||
13504 test ! -s conftest.err
13505 } && test -s conftest.$ac_objext; then
13506 ac_cv_member_struct_tm_tm_zone=yes
13508 echo "$as_me: failed program was:" >&5
13509 sed 's/^/| /' conftest.$ac_ext >&5
13511 cat >conftest.$ac_ext <<_ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 #include <sys/types.h>
13518 #include <$ac_cv_struct_tm>
13524 static struct tm ac_aggr;
13525 if (sizeof ac_aggr.tm_zone)
13531 rm -f conftest.$ac_objext
13532 if { (ac_try="$ac_compile"
13533 case "(($ac_try" in
13534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13535 *) ac_try_echo=$ac_try;;
13537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13538 (eval "$ac_compile") 2>conftest.er1
13540 grep -v '^ *+' conftest.er1 >conftest.err
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } && {
13545 test -z "$ac_c_werror_flag" ||
13546 test ! -s conftest.err
13547 } && test -s conftest.$ac_objext; then
13548 ac_cv_member_struct_tm_tm_zone=yes
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13553 ac_cv_member_struct_tm_tm_zone=no
13556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13561 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13562 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13563 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13565 cat >>confdefs.h <<_ACEOF
13566 #define HAVE_STRUCT_TM_TM_ZONE 1
13572 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13574 cat >>confdefs.h <<\_ACEOF
13575 #define HAVE_TM_ZONE 1
13579 { echo "$as_me:$LINENO: checking for tzname" >&5
13580 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13581 if test "${ac_cv_var_tzname+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 cat >conftest.$ac_ext <<_ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h. */
13591 #ifndef tzname /* For SGI. */
13592 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (ac_try="$ac_link"
13605 case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13610 (eval "$ac_link") 2>conftest.er1
13612 grep -v '^ *+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } && {
13617 test -z "$ac_c_werror_flag" ||
13618 test ! -s conftest.err
13619 } && test -s conftest$ac_exeext &&
13620 $as_test_x conftest$ac_exeext; then
13621 ac_cv_var_tzname=yes
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13626 ac_cv_var_tzname=no
13629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13630 conftest$ac_exeext conftest.$ac_ext
13632 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13633 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13634 if test $ac_cv_var_tzname = yes; then
13636 cat >>confdefs.h <<\_ACEOF
13637 #define HAVE_TZNAME 1
13642 { echo "$as_me:$LINENO: checking for union semun" >&5
13643 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13644 if test "${ac_cv_type_union_semun+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13647 cat >conftest.$ac_ext <<_ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13653 #include <sys/types.h>
13654 #include <sys/ipc.h>
13655 #include <sys/sem.h>
13657 typedef union semun ac__type_new_;
13661 if ((ac__type_new_ *) 0)
13663 if (sizeof (ac__type_new_))
13669 rm -f conftest.$ac_objext
13670 if { (ac_try="$ac_compile"
13671 case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673 *) ac_try_echo=$ac_try;;
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676 (eval "$ac_compile") 2>conftest.er1
13678 grep -v '^ *+' conftest.er1 >conftest.err
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } && {
13683 test -z "$ac_c_werror_flag" ||
13684 test ! -s conftest.err
13685 } && test -s conftest.$ac_objext; then
13686 ac_cv_type_union_semun=yes
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 ac_cv_type_union_semun=no
13694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13696 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13697 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13698 if test $ac_cv_type_union_semun = yes; then
13700 cat >>confdefs.h <<_ACEOF
13701 #define HAVE_UNION_SEMUN 1
13707 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13708 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13709 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 cat >conftest.$ac_ext <<_ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 #include <sys/types.h>
13719 #ifdef HAVE_SYS_UN_H
13720 #include <sys/un.h>
13724 typedef struct sockaddr_un ac__type_new_;
13728 if ((ac__type_new_ *) 0)
13730 if (sizeof (ac__type_new_))
13736 rm -f conftest.$ac_objext
13737 if { (ac_try="$ac_compile"
13738 case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_compile") 2>conftest.er1
13745 grep -v '^ *+' conftest.er1 >conftest.err
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } && {
13750 test -z "$ac_c_werror_flag" ||
13751 test ! -s conftest.err
13752 } && test -s conftest.$ac_objext; then
13753 ac_cv_type_struct_sockaddr_un=yes
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ac_cv_type_struct_sockaddr_un=no
13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13764 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
13765 if test $ac_cv_type_struct_sockaddr_un = yes; then
13767 cat >>confdefs.h <<_ACEOF
13768 #define HAVE_STRUCT_SOCKADDR_UN 1
13772 cat >>confdefs.h <<\_ACEOF
13773 #define HAVE_UNIX_SOCKETS 1
13778 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13779 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
13780 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 cat >conftest.$ac_ext <<_ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 #include <sys/types.h>
13790 #ifdef HAVE_SYS_SOCKET_H
13791 #include <sys/socket.h>
13795 typedef struct sockaddr_storage ac__type_new_;
13799 if ((ac__type_new_ *) 0)
13801 if (sizeof (ac__type_new_))
13807 rm -f conftest.$ac_objext
13808 if { (ac_try="$ac_compile"
13809 case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_compile") 2>conftest.er1
13816 grep -v '^ *+' conftest.er1 >conftest.err
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } && {
13821 test -z "$ac_c_werror_flag" ||
13822 test ! -s conftest.err
13823 } && test -s conftest.$ac_objext; then
13824 ac_cv_type_struct_sockaddr_storage=yes
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_cv_type_struct_sockaddr_storage=no
13832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13835 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
13836 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13838 cat >>confdefs.h <<_ACEOF
13839 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13845 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13846 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
13847 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 cat >conftest.$ac_ext <<_ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13856 #include <sys/types.h>
13857 #ifdef HAVE_SYS_SOCKET_H
13858 #include <sys/socket.h>
13865 static struct sockaddr_storage ac_aggr;
13866 if (ac_aggr.ss_family)
13872 rm -f conftest.$ac_objext
13873 if { (ac_try="$ac_compile"
13874 case "(($ac_try" in
13875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876 *) ac_try_echo=$ac_try;;
13878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13879 (eval "$ac_compile") 2>conftest.er1
13881 grep -v '^ *+' conftest.er1 >conftest.err
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } && {
13886 test -z "$ac_c_werror_flag" ||
13887 test ! -s conftest.err
13888 } && test -s conftest.$ac_objext; then
13889 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13891 echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13894 cat >conftest.$ac_ext <<_ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 #include <sys/types.h>
13901 #ifdef HAVE_SYS_SOCKET_H
13902 #include <sys/socket.h>
13909 static struct sockaddr_storage ac_aggr;
13910 if (sizeof ac_aggr.ss_family)
13916 rm -f conftest.$ac_objext
13917 if { (ac_try="$ac_compile"
13918 case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_compile") 2>conftest.er1
13925 grep -v '^ *+' conftest.er1 >conftest.err
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } && {
13930 test -z "$ac_c_werror_flag" ||
13931 test ! -s conftest.err
13932 } && test -s conftest.$ac_objext; then
13933 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13935 echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13938 ac_cv_member_struct_sockaddr_storage_ss_family=no
13941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13946 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13947 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
13948 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13950 cat >>confdefs.h <<_ACEOF
13951 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13956 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13957 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
13958 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 cat >conftest.$ac_ext <<_ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 #include <sys/types.h>
13968 #ifdef HAVE_SYS_SOCKET_H
13969 #include <sys/socket.h>
13976 static struct sockaddr_storage ac_aggr;
13977 if (ac_aggr.__ss_family)
13983 rm -f conftest.$ac_objext
13984 if { (ac_try="$ac_compile"
13985 case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_compile") 2>conftest.er1
13992 grep -v '^ *+' conftest.er1 >conftest.err
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } && {
13997 test -z "$ac_c_werror_flag" ||
13998 test ! -s conftest.err
13999 } && test -s conftest.$ac_objext; then
14000 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 cat >conftest.$ac_ext <<_ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 #include <sys/types.h>
14012 #ifdef HAVE_SYS_SOCKET_H
14013 #include <sys/socket.h>
14020 static struct sockaddr_storage ac_aggr;
14021 if (sizeof ac_aggr.__ss_family)
14027 rm -f conftest.$ac_objext
14028 if { (ac_try="$ac_compile"
14029 case "(($ac_try" in
14030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031 *) ac_try_echo=$ac_try;;
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034 (eval "$ac_compile") 2>conftest.er1
14036 grep -v '^ *+' conftest.er1 >conftest.err
14038 cat conftest.err >&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest.$ac_objext; then
14044 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14046 echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14049 ac_cv_member_struct_sockaddr_storage___ss_family=no
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14058 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14059 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14061 cat >>confdefs.h <<_ACEOF
14062 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14067 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14068 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14069 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 cat >conftest.$ac_ext <<_ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <sys/types.h>
14079 #ifdef HAVE_SYS_SOCKET_H
14080 #include <sys/socket.h>
14087 static struct sockaddr_storage ac_aggr;
14088 if (ac_aggr.ss_len)
14094 rm -f conftest.$ac_objext
14095 if { (ac_try="$ac_compile"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_compile") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest.$ac_objext; then
14111 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 cat >conftest.$ac_ext <<_ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 #include <sys/types.h>
14123 #ifdef HAVE_SYS_SOCKET_H
14124 #include <sys/socket.h>
14131 static struct sockaddr_storage ac_aggr;
14132 if (sizeof ac_aggr.ss_len)
14138 rm -f conftest.$ac_objext
14139 if { (ac_try="$ac_compile"
14140 case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_compile") 2>conftest.er1
14147 grep -v '^ *+' conftest.er1 >conftest.err
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } && {
14152 test -z "$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14154 } && test -s conftest.$ac_objext; then
14155 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14157 echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14160 ac_cv_member_struct_sockaddr_storage_ss_len=no
14163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14169 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14170 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14172 cat >>confdefs.h <<_ACEOF
14173 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14178 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14179 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14180 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14181 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 cat >conftest.$ac_ext <<_ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189 #include <sys/types.h>
14190 #ifdef HAVE_SYS_SOCKET_H
14191 #include <sys/socket.h>
14198 static struct sockaddr_storage ac_aggr;
14199 if (ac_aggr.__ss_len)
14205 rm -f conftest.$ac_objext
14206 if { (ac_try="$ac_compile"
14207 case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_compile") 2>conftest.er1
14214 grep -v '^ *+' conftest.er1 >conftest.err
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest.$ac_objext; then
14222 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14227 cat >conftest.$ac_ext <<_ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 #include <sys/types.h>
14234 #ifdef HAVE_SYS_SOCKET_H
14235 #include <sys/socket.h>
14242 static struct sockaddr_storage ac_aggr;
14243 if (sizeof ac_aggr.__ss_len)
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256 (eval "$ac_compile") 2>conftest.er1
14258 grep -v '^ *+' conftest.er1 >conftest.err
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } && {
14263 test -z "$ac_c_werror_flag" ||
14264 test ! -s conftest.err
14265 } && test -s conftest.$ac_objext; then
14266 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 ac_cv_member_struct_sockaddr_storage___ss_len=no
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14280 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14281 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14283 cat >>confdefs.h <<_ACEOF
14284 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14289 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14290 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14291 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 #include <sys/types.h>
14301 #ifdef HAVE_SYS_SOCKET_H
14302 #include <sys/socket.h>
14309 static struct sockaddr ac_aggr;
14310 if (ac_aggr.sa_len)
14316 rm -f conftest.$ac_objext
14317 if { (ac_try="$ac_compile"
14318 case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_compile") 2>conftest.er1
14325 grep -v '^ *+' conftest.er1 >conftest.err
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest.$ac_objext; then
14333 ac_cv_member_struct_sockaddr_sa_len=yes
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 cat >conftest.$ac_ext <<_ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 #include <sys/types.h>
14345 #ifdef HAVE_SYS_SOCKET_H
14346 #include <sys/socket.h>
14353 static struct sockaddr ac_aggr;
14354 if (sizeof ac_aggr.sa_len)
14360 rm -f conftest.$ac_objext
14361 if { (ac_try="$ac_compile"
14362 case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_compile") 2>conftest.er1
14369 grep -v '^ *+' conftest.er1 >conftest.err
14371 cat conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } && {
14374 test -z "$ac_c_werror_flag" ||
14375 test ! -s conftest.err
14376 } && test -s conftest.$ac_objext; then
14377 ac_cv_member_struct_sockaddr_sa_len=yes
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 ac_cv_member_struct_sockaddr_sa_len=no
14385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14391 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14392 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14394 cat >>confdefs.h <<_ACEOF
14395 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14401 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14402 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14403 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 cat >conftest.$ac_ext <<_ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 #include <sys/types.h>
14413 #include <sys/socket.h>
14417 typedef struct addrinfo ac__type_new_;
14421 if ((ac__type_new_ *) 0)
14423 if (sizeof (ac__type_new_))
14429 rm -f conftest.$ac_objext
14430 if { (ac_try="$ac_compile"
14431 case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_compile") 2>conftest.er1
14438 grep -v '^ *+' conftest.er1 >conftest.err
14440 cat conftest.err >&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } && {
14443 test -z "$ac_c_werror_flag" ||
14444 test ! -s conftest.err
14445 } && test -s conftest.$ac_objext; then
14446 ac_cv_type_struct_addrinfo=yes
14448 echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14451 ac_cv_type_struct_addrinfo=no
14454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14456 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14457 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14458 if test $ac_cv_type_struct_addrinfo = yes; then
14460 cat >>confdefs.h <<_ACEOF
14461 #define HAVE_STRUCT_ADDRINFO 1
14468 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14469 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14470 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 cat >conftest.$ac_ext <<_ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 #include <sys/param.h>
14480 #include <sys/types.h>
14481 #include <sys/socket.h>
14482 #include <sys/ucred.h>
14484 typedef struct cmsgcred ac__type_new_;
14488 if ((ac__type_new_ *) 0)
14490 if (sizeof (ac__type_new_))
14496 rm -f conftest.$ac_objext
14497 if { (ac_try="$ac_compile"
14498 case "(($ac_try" in
14499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500 *) ac_try_echo=$ac_try;;
14502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503 (eval "$ac_compile") 2>conftest.er1
14505 grep -v '^ *+' conftest.er1 >conftest.err
14507 cat conftest.err >&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } && {
14510 test -z "$ac_c_werror_flag" ||
14511 test ! -s conftest.err
14512 } && test -s conftest.$ac_objext; then
14513 ac_cv_type_struct_cmsgcred=yes
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 ac_cv_type_struct_cmsgcred=no
14521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14524 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14525 if test $ac_cv_type_struct_cmsgcred = yes; then
14527 cat >>confdefs.h <<_ACEOF
14528 #define HAVE_STRUCT_CMSGCRED 1
14533 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14534 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14535 if test "${ac_cv_type_struct_fcred+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 #include <sys/param.h>
14545 #include <sys/types.h>
14546 #include <sys/socket.h>
14547 #include <sys/ucred.h>
14549 typedef struct fcred ac__type_new_;
14553 if ((ac__type_new_ *) 0)
14555 if (sizeof (ac__type_new_))
14561 rm -f conftest.$ac_objext
14562 if { (ac_try="$ac_compile"
14563 case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_compile") 2>conftest.er1
14570 grep -v '^ *+' conftest.er1 >conftest.err
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } && {
14575 test -z "$ac_c_werror_flag" ||
14576 test ! -s conftest.err
14577 } && test -s conftest.$ac_objext; then
14578 ac_cv_type_struct_fcred=yes
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 ac_cv_type_struct_fcred=no
14586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14589 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14590 if test $ac_cv_type_struct_fcred = yes; then
14592 cat >>confdefs.h <<_ACEOF
14593 #define HAVE_STRUCT_FCRED 1
14598 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14599 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14600 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14603 cat >conftest.$ac_ext <<_ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 #include <sys/param.h>
14610 #include <sys/types.h>
14611 #include <sys/socket.h>
14612 #include <sys/ucred.h>
14614 typedef struct sockcred ac__type_new_;
14618 if ((ac__type_new_ *) 0)
14620 if (sizeof (ac__type_new_))
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14635 grep -v '^ *+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest.$ac_objext; then
14643 ac_cv_type_struct_sockcred=yes
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 ac_cv_type_struct_sockcred=no
14651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14654 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14655 if test $ac_cv_type_struct_sockcred = yes; then
14657 cat >>confdefs.h <<_ACEOF
14658 #define HAVE_STRUCT_SOCKCRED 1
14665 { echo "$as_me:$LINENO: checking for struct option" >&5
14666 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14667 if test "${ac_cv_type_struct_option+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 cat >conftest.$ac_ext <<_ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 #ifdef HAVE_GETOPT_H
14677 #include <getopt.h>
14680 typedef struct option ac__type_new_;
14684 if ((ac__type_new_ *) 0)
14686 if (sizeof (ac__type_new_))
14692 rm -f conftest.$ac_objext
14693 if { (ac_try="$ac_compile"
14694 case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_compile") 2>conftest.er1
14701 grep -v '^ *+' conftest.er1 >conftest.err
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } && {
14706 test -z "$ac_c_werror_flag" ||
14707 test ! -s conftest.err
14708 } && test -s conftest.$ac_objext; then
14709 ac_cv_type_struct_option=yes
14711 echo "$as_me: failed program was:" >&5
14712 sed 's/^/| /' conftest.$ac_ext >&5
14714 ac_cv_type_struct_option=no
14717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14720 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14721 if test $ac_cv_type_struct_option = yes; then
14723 cat >>confdefs.h <<_ACEOF
14724 #define HAVE_STRUCT_OPTION 1
14731 if test "$with_zlib" = yes; then
14732 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14733 # did not). While we could work around the lack of z_streamp, it
14734 # seems unwise to encourage people to use such old zlib versions...
14735 { echo "$as_me:$LINENO: checking for z_streamp" >&5
14736 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
14737 if test "${ac_cv_type_z_streamp+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 cat >conftest.$ac_ext <<_ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14748 typedef z_streamp ac__type_new_;
14752 if ((ac__type_new_ *) 0)
14754 if (sizeof (ac__type_new_))
14760 rm -f conftest.$ac_objext
14761 if { (ac_try="$ac_compile"
14762 case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_compile") 2>conftest.er1
14769 grep -v '^ *+' conftest.er1 >conftest.err
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } && {
14774 test -z "$ac_c_werror_flag" ||
14775 test ! -s conftest.err
14776 } && test -s conftest.$ac_objext; then
14777 ac_cv_type_z_streamp=yes
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_cv_type_z_streamp=no
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14788 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
14789 if test $ac_cv_type_z_streamp = yes; then
14792 { { echo "$as_me:$LINENO: error: zlib version is too old
14793 Use --without-zlib to disable zlib support." >&5
14794 echo "$as_me: error: zlib version is too old
14795 Use --without-zlib to disable zlib support." >&2;}
14796 { (exit 1); exit 1; }; }
14801 if test "$with_krb5" = yes; then
14802 # Check for differences between MIT and Heimdal (KTH) releases
14803 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14804 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
14805 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 cat >conftest.$ac_ext <<_ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14819 static krb5_ticket ac_aggr;
14820 if (ac_aggr.enc_part2)
14826 rm -f conftest.$ac_objext
14827 if { (ac_try="$ac_compile"
14828 case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_compile") 2>conftest.er1
14835 grep -v '^ *+' conftest.er1 >conftest.err
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_c_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest.$ac_objext; then
14843 ac_cv_member_krb5_ticket_enc_part2=yes
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 cat >conftest.$ac_ext <<_ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h. */
14859 static krb5_ticket ac_aggr;
14860 if (sizeof ac_aggr.enc_part2)
14866 rm -f conftest.$ac_objext
14867 if { (ac_try="$ac_compile"
14868 case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873 (eval "$ac_compile") 2>conftest.er1
14875 grep -v '^ *+' conftest.er1 >conftest.err
14877 cat conftest.err >&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && {
14880 test -z "$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14882 } && test -s conftest.$ac_objext; then
14883 ac_cv_member_krb5_ticket_enc_part2=yes
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14888 ac_cv_member_krb5_ticket_enc_part2=no
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14896 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14897 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
14898 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14900 cat >>confdefs.h <<_ACEOF
14901 #define HAVE_KRB5_TICKET_ENC_PART2 1
14906 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14907 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
14908 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 cat >conftest.$ac_ext <<_ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14922 static krb5_ticket ac_aggr;
14923 if (ac_aggr.client)
14929 rm -f conftest.$ac_objext
14930 if { (ac_try="$ac_compile"
14931 case "(($ac_try" in
14932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933 *) ac_try_echo=$ac_try;;
14935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936 (eval "$ac_compile") 2>conftest.er1
14938 grep -v '^ *+' conftest.er1 >conftest.err
14940 cat conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } && {
14943 test -z "$ac_c_werror_flag" ||
14944 test ! -s conftest.err
14945 } && test -s conftest.$ac_objext; then
14946 ac_cv_member_krb5_ticket_client=yes
14948 echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14951 cat >conftest.$ac_ext <<_ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14962 static krb5_ticket ac_aggr;
14963 if (sizeof ac_aggr.client)
14969 rm -f conftest.$ac_objext
14970 if { (ac_try="$ac_compile"
14971 case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_compile") 2>conftest.er1
14978 grep -v '^ *+' conftest.er1 >conftest.err
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest.$ac_objext; then
14986 ac_cv_member_krb5_ticket_client=yes
14988 echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14991 ac_cv_member_krb5_ticket_client=no
14994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15000 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15001 if test $ac_cv_member_krb5_ticket_client = yes; then
15003 cat >>confdefs.h <<_ACEOF
15004 #define HAVE_KRB5_TICKET_CLIENT 1
15009 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15010 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15011 { (exit 1); exit 1; }; }
15016 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15017 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15018 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15032 static krb5_error ac_aggr;
15033 if (ac_aggr.text.data)
15039 rm -f conftest.$ac_objext
15040 if { (ac_try="$ac_compile"
15041 case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_compile") 2>conftest.er1
15048 grep -v '^ *+' conftest.er1 >conftest.err
15050 cat conftest.err >&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } && {
15053 test -z "$ac_c_werror_flag" ||
15054 test ! -s conftest.err
15055 } && test -s conftest.$ac_objext; then
15056 ac_cv_member_krb5_error_text_data=yes
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15072 static krb5_error ac_aggr;
15073 if (sizeof ac_aggr.text.data)
15079 rm -f conftest.$ac_objext
15080 if { (ac_try="$ac_compile"
15081 case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_compile") 2>conftest.er1
15088 grep -v '^ *+' conftest.er1 >conftest.err
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } && {
15093 test -z "$ac_c_werror_flag" ||
15094 test ! -s conftest.err
15095 } && test -s conftest.$ac_objext; then
15096 ac_cv_member_krb5_error_text_data=yes
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15101 ac_cv_member_krb5_error_text_data=no
15104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15110 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15111 if test $ac_cv_member_krb5_error_text_data = yes; then
15113 cat >>confdefs.h <<_ACEOF
15114 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15119 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15120 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15121 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 cat >conftest.$ac_ext <<_ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15135 static krb5_error ac_aggr;
15136 if (ac_aggr.e_data)
15142 rm -f conftest.$ac_objext
15143 if { (ac_try="$ac_compile"
15144 case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_compile") 2>conftest.er1
15151 grep -v '^ *+' conftest.er1 >conftest.err
15153 cat conftest.err >&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } && {
15156 test -z "$ac_c_werror_flag" ||
15157 test ! -s conftest.err
15158 } && test -s conftest.$ac_objext; then
15159 ac_cv_member_krb5_error_e_data=yes
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15164 cat >conftest.$ac_ext <<_ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15175 static krb5_error ac_aggr;
15176 if (sizeof ac_aggr.e_data)
15182 rm -f conftest.$ac_objext
15183 if { (ac_try="$ac_compile"
15184 case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189 (eval "$ac_compile") 2>conftest.er1
15191 grep -v '^ *+' conftest.er1 >conftest.err
15193 cat conftest.err >&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } && {
15196 test -z "$ac_c_werror_flag" ||
15197 test ! -s conftest.err
15198 } && test -s conftest.$ac_objext; then
15199 ac_cv_member_krb5_error_e_data=yes
15201 echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15204 ac_cv_member_krb5_error_e_data=no
15207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15212 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15213 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15214 if test $ac_cv_member_krb5_error_e_data = yes; then
15216 cat >>confdefs.h <<_ACEOF
15217 #define HAVE_KRB5_ERROR_E_DATA 1
15222 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15223 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15224 { (exit 1); exit 1; }; }
15230 # Win32 requires headers to be loaded for __stdcall, so can't use
15231 # AC_CHECK_FUNCS here.
15232 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15233 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15234 cat >conftest.$ac_ext <<_ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15244 krb5_free_unparsed_name(NULL,NULL);
15249 rm -f conftest.$ac_objext conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_link") 2>conftest.er1
15258 grep -v '^ *+' conftest.er1 >conftest.err
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } && {
15263 test -z "$ac_c_werror_flag" ||
15264 test ! -s conftest.err
15265 } && test -s conftest$ac_exeext &&
15266 $as_test_x conftest$ac_exeext; then
15268 cat >>confdefs.h <<\_ACEOF
15269 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15272 { echo "$as_me:$LINENO: result: yes" >&5
15273 echo "${ECHO_T}yes" >&6; }
15275 echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.$ac_ext >&5
15278 { echo "$as_me:$LINENO: result: no" >&5
15279 echo "${ECHO_T}no" >&6; }
15282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15283 conftest$ac_exeext conftest.$ac_ext
15288 ## Functions, global variables
15291 { echo "$as_me:$LINENO: checking for int timezone" >&5
15292 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15293 if test "${pgac_cv_var_int_timezone+set}" = set; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15308 res = timezone / 60;
15310 res = _timezone / 60;
15316 rm -f conftest.$ac_objext conftest$ac_exeext
15317 if { (ac_try="$ac_link"
15318 case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_link") 2>conftest.er1
15325 grep -v '^ *+' conftest.er1 >conftest.err
15327 cat conftest.err >&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } && {
15330 test -z "$ac_c_werror_flag" ||
15331 test ! -s conftest.err
15332 } && test -s conftest$ac_exeext &&
15333 $as_test_x conftest$ac_exeext; then
15334 pgac_cv_var_int_timezone=yes
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 pgac_cv_var_int_timezone=no
15342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15343 conftest$ac_exeext conftest.$ac_ext
15345 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15346 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15347 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15349 cat >>confdefs.h <<\_ACEOF
15350 #define HAVE_INT_TIMEZONE
15354 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15355 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15356 if test "${ac_cv_func_accept_return+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 if test "${ac_cv_func_accept_arg1+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 if test "${ac_cv_func_accept_arg2+set}" = set; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 if test "${ac_cv_func_accept_arg3+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15369 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15370 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15371 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15372 cat >conftest.$ac_ext <<_ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 #ifdef HAVE_SYS_TYPES_H
15379 #include <sys/types.h>
15381 #ifdef HAVE_SYS_SOCKET_H
15382 #include <sys/socket.h>
15384 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15393 rm -f conftest.$ac_objext
15394 if { (ac_try="$ac_compile"
15395 case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_compile") 2>conftest.er1
15402 grep -v '^ *+' conftest.er1 >conftest.err
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } && {
15407 test -z "$ac_c_werror_flag" ||
15408 test ! -s conftest.err
15409 } && test -s conftest.$ac_objext; then
15410 ac_not_found=no; break 4
15412 echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15423 if test "$ac_not_found" = yes; then
15424 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15425 echo "$as_me: error: could not determine argument types" >&2;}
15426 { (exit 1); exit 1; }; }
15428 if test "$ac_cv_func_accept_arg3" = "void"; then
15429 ac_cv_func_accept_arg3=int
15439 { echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
15440 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15442 cat >>confdefs.h <<_ACEOF
15443 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15447 cat >>confdefs.h <<_ACEOF
15448 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15452 cat >>confdefs.h <<_ACEOF
15453 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15457 cat >>confdefs.h <<_ACEOF
15458 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15462 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15463 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15464 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 cat >conftest.$ac_ext <<_ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h. */
15473 #include <sys/time.h>
15477 struct timeval *tp;
15478 struct timezone *tzp;
15479 gettimeofday(tp,tzp);
15484 rm -f conftest.$ac_objext
15485 if { (ac_try="$ac_compile"
15486 case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_compile") 2>conftest.er1
15493 grep -v '^ *+' conftest.er1 >conftest.err
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } && {
15498 test -z "$ac_c_werror_flag" ||
15499 test ! -s conftest.err
15500 } && test -s conftest.$ac_objext; then
15501 pgac_cv_func_gettimeofday_1arg=no
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15506 pgac_cv_func_gettimeofday_1arg=yes
15509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15512 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15513 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15515 cat >>confdefs.h <<\_ACEOF
15516 #define GETTIMEOFDAY_1ARG
15543 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15559 #define $ac_func innocuous_$ac_func
15561 /* System header to define __stub macros and hopefully few prototypes,
15562 which can conflict with char $ac_func (); below.
15563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15564 <limits.h> exists even on freestanding compilers. */
15567 # include <limits.h>
15569 # include <assert.h>
15574 /* Override any GCC internal prototype to avoid an error.
15575 Use char because int might match the return type of a GCC
15576 builtin and then its argument prototype would still apply. */
15581 /* The GNU C library defines this for functions which it implements
15582 to always fail with ENOSYS. Some functions are actually named
15583 something starting with __ and the normal name is an alias. */
15584 #if defined __stub_$ac_func || defined __stub___$ac_func
15591 return $ac_func ();
15596 rm -f conftest.$ac_objext conftest$ac_exeext
15597 if { (ac_try="$ac_link"
15598 case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_link") 2>conftest.er1
15605 grep -v '^ *+' conftest.er1 >conftest.err
15607 cat conftest.err >&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } && {
15610 test -z "$ac_c_werror_flag" ||
15611 test ! -s conftest.err
15612 } && test -s conftest$ac_exeext &&
15613 $as_test_x conftest$ac_exeext; then
15614 eval "$as_ac_var=yes"
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 eval "$as_ac_var=no"
15622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15623 conftest$ac_exeext conftest.$ac_ext
15625 ac_res=`eval echo '${'$as_ac_var'}'`
15626 { echo "$as_me:$LINENO: result: $ac_res" >&5
15627 echo "${ECHO_T}$ac_res" >&6; }
15628 if test `eval echo '${'$as_ac_var'}'` = yes; then
15629 cat >>confdefs.h <<_ACEOF
15630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15637 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15638 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15639 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 cat >conftest.$ac_ext <<_ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15648 #include <unistd.h>
15661 rm -f conftest.$ac_objext
15662 if { (ac_try="$ac_compile"
15663 case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_compile") 2>conftest.er1
15670 grep -v '^ *+' conftest.er1 >conftest.err
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } && {
15675 test -z "$ac_c_werror_flag" ||
15676 test ! -s conftest.err
15677 } && test -s conftest.$ac_objext; then
15678 ac_cv_have_decl_fdatasync=yes
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 ac_cv_have_decl_fdatasync=no
15686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15689 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15690 if test $ac_cv_have_decl_fdatasync = yes; then
15692 cat >>confdefs.h <<_ACEOF
15693 #define HAVE_DECL_FDATASYNC 1
15698 cat >>confdefs.h <<_ACEOF
15699 #define HAVE_DECL_FDATASYNC 0
15706 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15707 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15708 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 cat >conftest.$ac_ext <<_ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15722 #ifndef posix_fadvise
15723 (void) posix_fadvise;
15730 rm -f conftest.$ac_objext
15731 if { (ac_try="$ac_compile"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_compile") 2>conftest.er1
15739 grep -v '^ *+' conftest.er1 >conftest.err
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && {
15744 test -z "$ac_c_werror_flag" ||
15745 test ! -s conftest.err
15746 } && test -s conftest.$ac_objext; then
15747 ac_cv_have_decl_posix_fadvise=yes
15749 echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15752 ac_cv_have_decl_posix_fadvise=no
15755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15758 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
15759 if test $ac_cv_have_decl_posix_fadvise = yes; then
15761 cat >>confdefs.h <<_ACEOF
15762 #define HAVE_DECL_POSIX_FADVISE 1
15767 cat >>confdefs.h <<_ACEOF
15768 #define HAVE_DECL_POSIX_FADVISE 0
15775 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15776 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
15777 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 cat >conftest.$ac_ext <<_ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 $ac_includes_default
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_compile") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest.$ac_objext; then
15815 ac_cv_have_decl_strlcat=yes
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_cv_have_decl_strlcat=no
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15826 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
15827 if test $ac_cv_have_decl_strlcat = yes; then
15829 cat >>confdefs.h <<_ACEOF
15830 #define HAVE_DECL_STRLCAT 1
15835 cat >>confdefs.h <<_ACEOF
15836 #define HAVE_DECL_STRLCAT 0
15841 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15842 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
15843 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 cat >conftest.$ac_ext <<_ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15852 $ac_includes_default
15864 rm -f conftest.$ac_objext
15865 if { (ac_try="$ac_compile"
15866 case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871 (eval "$ac_compile") 2>conftest.er1
15873 grep -v '^ *+' conftest.er1 >conftest.err
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } && {
15878 test -z "$ac_c_werror_flag" ||
15879 test ! -s conftest.err
15880 } && test -s conftest.$ac_objext; then
15881 ac_cv_have_decl_strlcpy=yes
15883 echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.$ac_ext >&5
15886 ac_cv_have_decl_strlcpy=no
15889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15892 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
15893 if test $ac_cv_have_decl_strlcpy = yes; then
15895 cat >>confdefs.h <<_ACEOF
15896 #define HAVE_DECL_STRLCPY 1
15901 cat >>confdefs.h <<_ACEOF
15902 #define HAVE_DECL_STRLCPY 0
15909 # This is probably only present on Darwin, but may as well check always
15910 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15911 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
15912 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15913 echo $ECHO_N "(cached) $ECHO_C" >&6
15915 cat >conftest.$ac_ext <<_ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15926 #ifndef F_FULLFSYNC
15927 (void) F_FULLFSYNC;
15934 rm -f conftest.$ac_objext
15935 if { (ac_try="$ac_compile"
15936 case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_compile") 2>conftest.er1
15943 grep -v '^ *+' conftest.er1 >conftest.err
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } && {
15948 test -z "$ac_c_werror_flag" ||
15949 test ! -s conftest.err
15950 } && test -s conftest.$ac_objext; then
15951 ac_cv_have_decl_F_FULLFSYNC=yes
15953 echo "$as_me: failed program was:" >&5
15954 sed 's/^/| /' conftest.$ac_ext >&5
15956 ac_cv_have_decl_F_FULLFSYNC=no
15959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15961 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15962 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
15963 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15965 cat >>confdefs.h <<_ACEOF
15966 #define HAVE_DECL_F_FULLFSYNC 1
15971 cat >>confdefs.h <<_ACEOF
15972 #define HAVE_DECL_F_FULLFSYNC 0
15981 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15982 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
15983 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 cat >conftest.$ac_ext <<_ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15992 $ac_includes_default
15993 #include <netinet/in.h>
15995 typedef struct sockaddr_in6 ac__type_new_;
15999 if ((ac__type_new_ *) 0)
16001 if (sizeof (ac__type_new_))
16007 rm -f conftest.$ac_objext
16008 if { (ac_try="$ac_compile"
16009 case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_compile") 2>conftest.er1
16016 grep -v '^ *+' conftest.er1 >conftest.err
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } && {
16021 test -z "$ac_c_werror_flag" ||
16022 test ! -s conftest.err
16023 } && test -s conftest.$ac_objext; then
16024 ac_cv_type_struct_sockaddr_in6=yes
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_cv_type_struct_sockaddr_in6=no
16032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16034 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16035 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16036 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16038 cat >>confdefs.h <<\_ACEOF
16039 #define HAVE_IPV6 1
16047 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16048 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16049 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 cat >conftest.$ac_ext <<_ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16058 #include <machine/vmparam.h>
16059 #include <sys/exec.h>
16064 PS_STRINGS->ps_nargvstr = 1;
16065 PS_STRINGS->ps_argvstr = "foo";
16070 rm -f conftest.$ac_objext conftest$ac_exeext
16071 if { (ac_try="$ac_link"
16072 case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_link") 2>conftest.er1
16079 grep -v '^ *+' conftest.er1 >conftest.err
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } && {
16084 test -z "$ac_c_werror_flag" ||
16085 test ! -s conftest.err
16086 } && test -s conftest$ac_exeext &&
16087 $as_test_x conftest$ac_exeext; then
16088 pgac_cv_var_PS_STRINGS=yes
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 pgac_cv_var_PS_STRINGS=no
16096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16097 conftest$ac_exeext conftest.$ac_ext
16099 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16100 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16101 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16103 cat >>confdefs.h <<\_ACEOF
16104 #define HAVE_PS_STRINGS
16110 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16111 # is missing. Yes, there are machines that have only one. We may
16112 # also decide to use snprintf.c if snprintf() is present but does not
16113 # have all the features we need --- see below.
16115 if test "$PORTNAME" = "win32"; then
16116 # Win32 gets snprintf.c built unconditionally.
16118 # To properly translate all NLS languages strings, we must support the
16119 # *printf() %$ format, which allows *printf() arguments to be selected
16120 # by position in the translated string.
16122 # libintl versions < 0.13 use the native *printf() functions, and Win32
16123 # *printf() doesn't understand %$, so we must use our /port versions,
16124 # which do understand %$. libintl versions >= 0.13 include their own
16125 # *printf versions on Win32. The libintl 0.13 release note text is:
16127 # C format strings with positions, as they arise when a translator
16128 # needs to reorder a sentence, are now supported on all platforms.
16129 # On those few platforms (NetBSD and Woe32) for which the native
16130 # printf()/fprintf()/... functions don't support such format
16131 # strings, replacements are provided through <libintl.h>.
16133 # We could use libintl >= 0.13's *printf() if we were sure that we had
16134 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16135 # to guarantee that, it is best to just use our own, so we are sure to
16136 # get %$ support. In include/port.h we disable the *printf() macros
16137 # that might have been defined by libintl.
16139 # We do this unconditionally whether NLS is used or not so we are sure
16140 # that all Win32 libraries and binaries behave the same.
16141 pgac_need_repl_snprintf=yes
16143 pgac_need_repl_snprintf=no
16145 for ac_func in snprintf
16147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 cat >conftest.$ac_ext <<_ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16161 #define $ac_func innocuous_$ac_func
16163 /* System header to define __stub macros and hopefully few prototypes,
16164 which can conflict with char $ac_func (); below.
16165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16166 <limits.h> exists even on freestanding compilers. */
16169 # include <limits.h>
16171 # include <assert.h>
16176 /* Override any GCC internal prototype to avoid an error.
16177 Use char because int might match the return type of a GCC
16178 builtin and then its argument prototype would still apply. */
16183 /* The GNU C library defines this for functions which it implements
16184 to always fail with ENOSYS. Some functions are actually named
16185 something starting with __ and the normal name is an alias. */
16186 #if defined __stub_$ac_func || defined __stub___$ac_func
16193 return $ac_func ();
16198 rm -f conftest.$ac_objext conftest$ac_exeext
16199 if { (ac_try="$ac_link"
16200 case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_link") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest$ac_exeext &&
16215 $as_test_x conftest$ac_exeext; then
16216 eval "$as_ac_var=yes"
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16221 eval "$as_ac_var=no"
16224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16225 conftest$ac_exeext conftest.$ac_ext
16227 ac_res=`eval echo '${'$as_ac_var'}'`
16228 { echo "$as_me:$LINENO: result: $ac_res" >&5
16229 echo "${ECHO_T}$ac_res" >&6; }
16230 if test `eval echo '${'$as_ac_var'}'` = yes; then
16231 cat >>confdefs.h <<_ACEOF
16232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16236 pgac_need_repl_snprintf=yes
16241 for ac_func in vsnprintf
16243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 cat >conftest.$ac_ext <<_ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16257 #define $ac_func innocuous_$ac_func
16259 /* System header to define __stub macros and hopefully few prototypes,
16260 which can conflict with char $ac_func (); below.
16261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16262 <limits.h> exists even on freestanding compilers. */
16265 # include <limits.h>
16267 # include <assert.h>
16272 /* Override any GCC internal prototype to avoid an error.
16273 Use char because int might match the return type of a GCC
16274 builtin and then its argument prototype would still apply. */
16279 /* The GNU C library defines this for functions which it implements
16280 to always fail with ENOSYS. Some functions are actually named
16281 something starting with __ and the normal name is an alias. */
16282 #if defined __stub_$ac_func || defined __stub___$ac_func
16289 return $ac_func ();
16294 rm -f conftest.$ac_objext conftest$ac_exeext
16295 if { (ac_try="$ac_link"
16296 case "(($ac_try" in
16297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16298 *) ac_try_echo=$ac_try;;
16300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16301 (eval "$ac_link") 2>conftest.er1
16303 grep -v '^ *+' conftest.er1 >conftest.err
16305 cat conftest.err >&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } && {
16308 test -z "$ac_c_werror_flag" ||
16309 test ! -s conftest.err
16310 } && test -s conftest$ac_exeext &&
16311 $as_test_x conftest$ac_exeext; then
16312 eval "$as_ac_var=yes"
16314 echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16317 eval "$as_ac_var=no"
16320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16321 conftest$ac_exeext conftest.$ac_ext
16323 ac_res=`eval echo '${'$as_ac_var'}'`
16324 { echo "$as_me:$LINENO: result: $ac_res" >&5
16325 echo "${ECHO_T}$ac_res" >&6; }
16326 if test `eval echo '${'$as_ac_var'}'` = yes; then
16327 cat >>confdefs.h <<_ACEOF
16328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16332 pgac_need_repl_snprintf=yes
16339 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16340 # include/c.h will provide declarations. Note this is a separate test
16341 # from whether the functions exist in the C library --- there are
16342 # systems that have the functions but don't bother to declare them :-(
16344 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16345 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16346 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 cat >conftest.$ac_ext <<_ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 $ac_includes_default
16367 rm -f conftest.$ac_objext
16368 if { (ac_try="$ac_compile"
16369 case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_compile") 2>conftest.er1
16376 grep -v '^ *+' conftest.er1 >conftest.err
16378 cat conftest.err >&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } && {
16381 test -z "$ac_c_werror_flag" ||
16382 test ! -s conftest.err
16383 } && test -s conftest.$ac_objext; then
16384 ac_cv_have_decl_snprintf=yes
16386 echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16389 ac_cv_have_decl_snprintf=no
16392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16395 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16396 if test $ac_cv_have_decl_snprintf = yes; then
16398 cat >>confdefs.h <<_ACEOF
16399 #define HAVE_DECL_SNPRINTF 1
16404 cat >>confdefs.h <<_ACEOF
16405 #define HAVE_DECL_SNPRINTF 0
16410 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16411 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16412 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 cat >conftest.$ac_ext <<_ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421 $ac_includes_default
16433 rm -f conftest.$ac_objext
16434 if { (ac_try="$ac_compile"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_compile") 2>conftest.er1
16442 grep -v '^ *+' conftest.er1 >conftest.err
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } && {
16447 test -z "$ac_c_werror_flag" ||
16448 test ! -s conftest.err
16449 } && test -s conftest.$ac_objext; then
16450 ac_cv_have_decl_vsnprintf=yes
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16455 ac_cv_have_decl_vsnprintf=no
16458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16460 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16461 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16462 if test $ac_cv_have_decl_vsnprintf = yes; then
16464 cat >>confdefs.h <<_ACEOF
16465 #define HAVE_DECL_VSNPRINTF 1
16470 cat >>confdefs.h <<_ACEOF
16471 #define HAVE_DECL_VSNPRINTF 0
16480 { echo "$as_me:$LINENO: checking for isinf" >&5
16481 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16482 if test "${ac_cv_func_isinf+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 cat >conftest.$ac_ext <<_ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16493 double glob_double;
16498 return isinf(glob_double) ? 0 : 1;
16503 rm -f conftest.$ac_objext conftest$ac_exeext
16504 if { (ac_try="$ac_link"
16505 case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_link") 2>conftest.er1
16512 grep -v '^ *+' conftest.er1 >conftest.err
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } && {
16517 test -z "$ac_c_werror_flag" ||
16518 test ! -s conftest.err
16519 } && test -s conftest$ac_exeext &&
16520 $as_test_x conftest$ac_exeext; then
16521 ac_cv_func_isinf=yes
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16526 ac_cv_func_isinf=no
16529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16530 conftest$ac_exeext conftest.$ac_ext
16532 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16533 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16535 if test $ac_cv_func_isinf = yes ; then
16537 cat >>confdefs.h <<\_ACEOF
16538 #define HAVE_ISINF 1
16542 case " $LIBOBJS " in
16543 *" isinf.$ac_objext "* ) ;;
16544 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16548 # Look for a way to implement a substitute for isinf()
16553 for ac_func in fpclass fp_class fp_class_d class
16555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16561 cat >conftest.$ac_ext <<_ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16569 #define $ac_func innocuous_$ac_func
16571 /* System header to define __stub macros and hopefully few prototypes,
16572 which can conflict with char $ac_func (); below.
16573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16574 <limits.h> exists even on freestanding compilers. */
16577 # include <limits.h>
16579 # include <assert.h>
16584 /* Override any GCC internal prototype to avoid an error.
16585 Use char because int might match the return type of a GCC
16586 builtin and then its argument prototype would still apply. */
16591 /* The GNU C library defines this for functions which it implements
16592 to always fail with ENOSYS. Some functions are actually named
16593 something starting with __ and the normal name is an alias. */
16594 #if defined __stub_$ac_func || defined __stub___$ac_func
16601 return $ac_func ();
16606 rm -f conftest.$ac_objext conftest$ac_exeext
16607 if { (ac_try="$ac_link"
16608 case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_link") 2>conftest.er1
16615 grep -v '^ *+' conftest.er1 >conftest.err
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } && {
16620 test -z "$ac_c_werror_flag" ||
16621 test ! -s conftest.err
16622 } && test -s conftest$ac_exeext &&
16623 $as_test_x conftest$ac_exeext; then
16624 eval "$as_ac_var=yes"
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 eval "$as_ac_var=no"
16632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16633 conftest$ac_exeext conftest.$ac_ext
16635 ac_res=`eval echo '${'$as_ac_var'}'`
16636 { echo "$as_me:$LINENO: result: $ac_res" >&5
16637 echo "${ECHO_T}$ac_res" >&6; }
16638 if test `eval echo '${'$as_ac_var'}'` = yes; then
16639 cat >>confdefs.h <<_ACEOF
16640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16648 # Some versions of libedit contain strlcpy(); so disregard that library while
16649 # checking for these standard libc functions.
16650 pgac_save_LIBS="$LIBS"
16651 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16667 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16675 cat >conftest.$ac_ext <<_ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16683 #define $ac_func innocuous_$ac_func
16685 /* System header to define __stub macros and hopefully few prototypes,
16686 which can conflict with char $ac_func (); below.
16687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16688 <limits.h> exists even on freestanding compilers. */
16691 # include <limits.h>
16693 # include <assert.h>
16698 /* Override any GCC internal prototype to avoid an error.
16699 Use char because int might match the return type of a GCC
16700 builtin and then its argument prototype would still apply. */
16705 /* The GNU C library defines this for functions which it implements
16706 to always fail with ENOSYS. Some functions are actually named
16707 something starting with __ and the normal name is an alias. */
16708 #if defined __stub_$ac_func || defined __stub___$ac_func
16715 return $ac_func ();
16720 rm -f conftest.$ac_objext conftest$ac_exeext
16721 if { (ac_try="$ac_link"
16722 case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_link") 2>conftest.er1
16729 grep -v '^ *+' conftest.er1 >conftest.err
16731 cat conftest.err >&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } && {
16734 test -z "$ac_c_werror_flag" ||
16735 test ! -s conftest.err
16736 } && test -s conftest$ac_exeext &&
16737 $as_test_x conftest$ac_exeext; then
16738 eval "$as_ac_var=yes"
16740 echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16743 eval "$as_ac_var=no"
16746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16747 conftest$ac_exeext conftest.$ac_ext
16749 ac_res=`eval echo '${'$as_ac_var'}'`
16750 { echo "$as_me:$LINENO: result: $ac_res" >&5
16751 echo "${ECHO_T}$ac_res" >&6; }
16752 if test `eval echo '${'$as_ac_var'}'` = yes; then
16753 cat >>confdefs.h <<_ACEOF
16754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16758 case " $LIBOBJS " in
16759 *" $ac_func.$ac_objext "* ) ;;
16760 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16769 LIBS="$pgac_save_LIBS"
16771 # System's version of getaddrinfo(), if any, may be used only if we found
16772 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16773 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16774 # versions of getaddrinfo don't follow normal C call protocol. This is OK
16775 # because we want to use our own getaddrinfo.c on Windows anyway.)
16776 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
16778 for ac_func in getaddrinfo
16780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 cat >conftest.$ac_ext <<_ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16794 #define $ac_func innocuous_$ac_func
16796 /* System header to define __stub macros and hopefully few prototypes,
16797 which can conflict with char $ac_func (); below.
16798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16799 <limits.h> exists even on freestanding compilers. */
16802 # include <limits.h>
16804 # include <assert.h>
16809 /* Override any GCC internal prototype to avoid an error.
16810 Use char because int might match the return type of a GCC
16811 builtin and then its argument prototype would still apply. */
16816 /* The GNU C library defines this for functions which it implements
16817 to always fail with ENOSYS. Some functions are actually named
16818 something starting with __ and the normal name is an alias. */
16819 #if defined __stub_$ac_func || defined __stub___$ac_func
16826 return $ac_func ();
16831 rm -f conftest.$ac_objext conftest$ac_exeext
16832 if { (ac_try="$ac_link"
16833 case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_link") 2>conftest.er1
16840 grep -v '^ *+' conftest.er1 >conftest.err
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } && {
16845 test -z "$ac_c_werror_flag" ||
16846 test ! -s conftest.err
16847 } && test -s conftest$ac_exeext &&
16848 $as_test_x conftest$ac_exeext; then
16849 eval "$as_ac_var=yes"
16851 echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.$ac_ext >&5
16854 eval "$as_ac_var=no"
16857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16858 conftest$ac_exeext conftest.$ac_ext
16860 ac_res=`eval echo '${'$as_ac_var'}'`
16861 { echo "$as_me:$LINENO: result: $ac_res" >&5
16862 echo "${ECHO_T}$ac_res" >&6; }
16863 if test `eval echo '${'$as_ac_var'}'` = yes; then
16864 cat >>confdefs.h <<_ACEOF
16865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16869 case " $LIBOBJS " in
16870 *" $ac_func.$ac_objext "* ) ;;
16871 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16880 case " $LIBOBJS " in
16881 *" getaddrinfo.$ac_objext "* ) ;;
16882 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16888 # Similarly, use system's getopt_long() only if system provides struct option.
16889 # Solaris' getopt() doesn't do what we want for long options, so always use
16890 # our versions on that platform.
16891 if test "$PORTNAME" = "solaris"; then
16892 case " $LIBOBJS " in
16893 *" getopt.$ac_objext "* ) ;;
16894 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
16898 case " $LIBOBJS " in
16899 *" getopt_long.$ac_objext "* ) ;;
16900 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
16904 elif test x"$ac_cv_type_struct_option" = xyes ; then
16906 for ac_func in getopt_long
16908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 cat >conftest.$ac_ext <<_ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16922 #define $ac_func innocuous_$ac_func
16924 /* System header to define __stub macros and hopefully few prototypes,
16925 which can conflict with char $ac_func (); below.
16926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16927 <limits.h> exists even on freestanding compilers. */
16930 # include <limits.h>
16932 # include <assert.h>
16937 /* Override any GCC internal prototype to avoid an error.
16938 Use char because int might match the return type of a GCC
16939 builtin and then its argument prototype would still apply. */
16944 /* The GNU C library defines this for functions which it implements
16945 to always fail with ENOSYS. Some functions are actually named
16946 something starting with __ and the normal name is an alias. */
16947 #if defined __stub_$ac_func || defined __stub___$ac_func
16954 return $ac_func ();
16959 rm -f conftest.$ac_objext conftest$ac_exeext
16960 if { (ac_try="$ac_link"
16961 case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_link") 2>conftest.er1
16968 grep -v '^ *+' conftest.er1 >conftest.err
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } && {
16973 test -z "$ac_c_werror_flag" ||
16974 test ! -s conftest.err
16975 } && test -s conftest$ac_exeext &&
16976 $as_test_x conftest$ac_exeext; then
16977 eval "$as_ac_var=yes"
16979 echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16982 eval "$as_ac_var=no"
16985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16986 conftest$ac_exeext conftest.$ac_ext
16988 ac_res=`eval echo '${'$as_ac_var'}'`
16989 { echo "$as_me:$LINENO: result: $ac_res" >&5
16990 echo "${ECHO_T}$ac_res" >&6; }
16991 if test `eval echo '${'$as_ac_var'}'` = yes; then
16992 cat >>confdefs.h <<_ACEOF
16993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16997 case " $LIBOBJS " in
16998 *" $ac_func.$ac_objext "* ) ;;
16999 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17008 case " $LIBOBJS " in
17009 *" getopt_long.$ac_objext "* ) ;;
17010 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17017 if test "$PORTNAME" = "win32"; then
17019 for ac_func in gettimeofday
17021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17027 cat >conftest.$ac_ext <<_ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17035 #define $ac_func innocuous_$ac_func
17037 /* System header to define __stub macros and hopefully few prototypes,
17038 which can conflict with char $ac_func (); below.
17039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17040 <limits.h> exists even on freestanding compilers. */
17043 # include <limits.h>
17045 # include <assert.h>
17050 /* Override any GCC internal prototype to avoid an error.
17051 Use char because int might match the return type of a GCC
17052 builtin and then its argument prototype would still apply. */
17057 /* The GNU C library defines this for functions which it implements
17058 to always fail with ENOSYS. Some functions are actually named
17059 something starting with __ and the normal name is an alias. */
17060 #if defined __stub_$ac_func || defined __stub___$ac_func
17067 return $ac_func ();
17072 rm -f conftest.$ac_objext conftest$ac_exeext
17073 if { (ac_try="$ac_link"
17074 case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_link") 2>conftest.er1
17081 grep -v '^ *+' conftest.er1 >conftest.err
17083 cat conftest.err >&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } && {
17086 test -z "$ac_c_werror_flag" ||
17087 test ! -s conftest.err
17088 } && test -s conftest$ac_exeext &&
17089 $as_test_x conftest$ac_exeext; then
17090 eval "$as_ac_var=yes"
17092 echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17095 eval "$as_ac_var=no"
17098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17099 conftest$ac_exeext conftest.$ac_ext
17101 ac_res=`eval echo '${'$as_ac_var'}'`
17102 { echo "$as_me:$LINENO: result: $ac_res" >&5
17103 echo "${ECHO_T}$ac_res" >&6; }
17104 if test `eval echo '${'$as_ac_var'}'` = yes; then
17105 cat >>confdefs.h <<_ACEOF
17106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17110 case " $LIBOBJS " in
17111 *" $ac_func.$ac_objext "* ) ;;
17112 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17120 case " $LIBOBJS " in
17121 *" kill.$ac_objext "* ) ;;
17122 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17126 case " $LIBOBJS " in
17127 *" open.$ac_objext "* ) ;;
17128 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17132 case " $LIBOBJS " in
17133 *" rand.$ac_objext "* ) ;;
17134 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17138 case " $LIBOBJS " in
17139 *" win32error.$ac_objext "* ) ;;
17140 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17145 cat >>confdefs.h <<\_ACEOF
17146 #define HAVE_SYMLINK 1
17151 if test "$with_readline" = yes; then
17152 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17153 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17154 cat >conftest.$ac_ext <<_ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17161 #ifdef HAVE_READLINE_READLINE_H
17162 # include <readline/readline.h>
17163 #elif defined(HAVE_READLINE_H)
17164 # include <readline.h>
17170 rl_completion_append_character = 'x';
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17184 grep -v '^ *+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } && {
17189 test -z "$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 } && test -s conftest$ac_exeext &&
17192 $as_test_x conftest$ac_exeext; then
17193 { echo "$as_me:$LINENO: result: yes" >&5
17194 echo "${ECHO_T}yes" >&6; }
17196 cat >>confdefs.h <<\_ACEOF
17197 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 { echo "$as_me:$LINENO: result: no" >&5
17205 echo "${ECHO_T}no" >&6; }
17208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17209 conftest$ac_exeext conftest.$ac_ext
17212 for ac_func in rl_completion_matches rl_filename_completion_function
17214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17220 cat >conftest.$ac_ext <<_ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17228 #define $ac_func innocuous_$ac_func
17230 /* System header to define __stub macros and hopefully few prototypes,
17231 which can conflict with char $ac_func (); below.
17232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233 <limits.h> exists even on freestanding compilers. */
17236 # include <limits.h>
17238 # include <assert.h>
17243 /* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
17250 /* The GNU C library defines this for functions which it implements
17251 to always fail with ENOSYS. Some functions are actually named
17252 something starting with __ and the normal name is an alias. */
17253 #if defined __stub_$ac_func || defined __stub___$ac_func
17260 return $ac_func ();
17265 rm -f conftest.$ac_objext conftest$ac_exeext
17266 if { (ac_try="$ac_link"
17267 case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_link") 2>conftest.er1
17274 grep -v '^ *+' conftest.er1 >conftest.err
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } && {
17279 test -z "$ac_c_werror_flag" ||
17280 test ! -s conftest.err
17281 } && test -s conftest$ac_exeext &&
17282 $as_test_x conftest$ac_exeext; then
17283 eval "$as_ac_var=yes"
17285 echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17288 eval "$as_ac_var=no"
17291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17292 conftest$ac_exeext conftest.$ac_ext
17294 ac_res=`eval echo '${'$as_ac_var'}'`
17295 { echo "$as_me:$LINENO: result: $ac_res" >&5
17296 echo "${ECHO_T}$ac_res" >&6; }
17297 if test `eval echo '${'$as_ac_var'}'` = yes; then
17298 cat >>confdefs.h <<_ACEOF
17299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17306 for ac_func in replace_history_entry
17308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 cat >conftest.$ac_ext <<_ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h. */
17320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17322 #define $ac_func innocuous_$ac_func
17324 /* System header to define __stub macros and hopefully few prototypes,
17325 which can conflict with char $ac_func (); below.
17326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17327 <limits.h> exists even on freestanding compilers. */
17330 # include <limits.h>
17332 # include <assert.h>
17337 /* Override any GCC internal prototype to avoid an error.
17338 Use char because int might match the return type of a GCC
17339 builtin and then its argument prototype would still apply. */
17344 /* The GNU C library defines this for functions which it implements
17345 to always fail with ENOSYS. Some functions are actually named
17346 something starting with __ and the normal name is an alias. */
17347 #if defined __stub_$ac_func || defined __stub___$ac_func
17354 return $ac_func ();
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } && {
17373 test -z "$ac_c_werror_flag" ||
17374 test ! -s conftest.err
17375 } && test -s conftest$ac_exeext &&
17376 $as_test_x conftest$ac_exeext; then
17377 eval "$as_ac_var=yes"
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 eval "$as_ac_var=no"
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386 conftest$ac_exeext conftest.$ac_ext
17388 ac_res=`eval echo '${'$as_ac_var'}'`
17389 { echo "$as_me:$LINENO: result: $ac_res" >&5
17390 echo "${ECHO_T}$ac_res" >&6; }
17391 if test `eval echo '${'$as_ac_var'}'` = yes; then
17392 cat >>confdefs.h <<_ACEOF
17393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17402 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17403 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17404 cat >conftest.$ac_ext <<_ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 #include <setjmp.h>
17414 sigjmp_buf x; sigsetjmp(x, 1);
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
17428 grep -v '^ *+' conftest.er1 >conftest.err
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } && {
17433 test -z "$ac_c_werror_flag" ||
17434 test ! -s conftest.err
17435 } && test -s conftest$ac_exeext &&
17436 $as_test_x conftest$ac_exeext; then
17438 cat >>confdefs.h <<\_ACEOF
17439 #define HAVE_SIGSETJMP 1
17442 { echo "$as_me:$LINENO: result: yes" >&5
17443 echo "${ECHO_T}yes" >&6; }
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17448 { echo "$as_me:$LINENO: result: no" >&5
17449 echo "${ECHO_T}no" >&6; }
17452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17453 conftest$ac_exeext conftest.$ac_ext
17455 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17456 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17457 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17460 cat >conftest.$ac_ext <<_ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17466 #include <signal.h>
17467 /* NetBSD declares sys_siglist in unistd.h. */
17468 #ifdef HAVE_UNISTD_H
17469 # include <unistd.h>
17476 #ifndef sys_siglist
17477 (void) sys_siglist;
17484 rm -f conftest.$ac_objext
17485 if { (ac_try="$ac_compile"
17486 case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_compile") 2>conftest.er1
17493 grep -v '^ *+' conftest.er1 >conftest.err
17495 cat conftest.err >&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } && {
17498 test -z "$ac_c_werror_flag" ||
17499 test ! -s conftest.err
17500 } && test -s conftest.$ac_objext; then
17501 ac_cv_have_decl_sys_siglist=yes
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 ac_cv_have_decl_sys_siglist=no
17509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17511 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17512 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17513 if test $ac_cv_have_decl_sys_siglist = yes; then
17515 cat >>confdefs.h <<_ACEOF
17516 #define HAVE_DECL_SYS_SIGLIST 1
17521 cat >>confdefs.h <<_ACEOF
17522 #define HAVE_DECL_SYS_SIGLIST 0
17531 { echo "$as_me:$LINENO: checking for syslog" >&5
17532 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17533 if test "${ac_cv_func_syslog+set}" = set; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17536 cat >conftest.$ac_ext <<_ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17544 #define syslog innocuous_syslog
17546 /* System header to define __stub macros and hopefully few prototypes,
17547 which can conflict with char syslog (); below.
17548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17549 <limits.h> exists even on freestanding compilers. */
17552 # include <limits.h>
17554 # include <assert.h>
17559 /* Override any GCC internal prototype to avoid an error.
17560 Use char because int might match the return type of a GCC
17561 builtin and then its argument prototype would still apply. */
17566 /* The GNU C library defines this for functions which it implements
17567 to always fail with ENOSYS. Some functions are actually named
17568 something starting with __ and the normal name is an alias. */
17569 #if defined __stub_syslog || defined __stub___syslog
17581 rm -f conftest.$ac_objext conftest$ac_exeext
17582 if { (ac_try="$ac_link"
17583 case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_link") 2>conftest.er1
17590 grep -v '^ *+' conftest.er1 >conftest.err
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } && {
17595 test -z "$ac_c_werror_flag" ||
17596 test ! -s conftest.err
17597 } && test -s conftest$ac_exeext &&
17598 $as_test_x conftest$ac_exeext; then
17599 ac_cv_func_syslog=yes
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17604 ac_cv_func_syslog=no
17607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17608 conftest$ac_exeext conftest.$ac_ext
17610 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17611 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17612 if test $ac_cv_func_syslog = yes; then
17613 if test "${ac_cv_header_syslog_h+set}" = set; then
17614 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17615 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17616 if test "${ac_cv_header_syslog_h+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17619 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17620 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17622 # Is the header compilable?
17623 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17624 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17625 cat >conftest.$ac_ext <<_ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 $ac_includes_default
17632 #include <syslog.h>
17634 rm -f conftest.$ac_objext
17635 if { (ac_try="$ac_compile"
17636 case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_compile") 2>conftest.er1
17643 grep -v '^ *+' conftest.er1 >conftest.err
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } && {
17648 test -z "$ac_c_werror_flag" ||
17649 test ! -s conftest.err
17650 } && test -s conftest.$ac_objext; then
17651 ac_header_compiler=yes
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 ac_header_compiler=no
17659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17661 echo "${ECHO_T}$ac_header_compiler" >&6; }
17663 # Is the header present?
17664 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17665 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17666 cat >conftest.$ac_ext <<_ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 #include <syslog.h>
17674 if { (ac_try="$ac_cpp conftest.$ac_ext"
17675 case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17682 grep -v '^ *+' conftest.er1 >conftest.err
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } >/dev/null && {
17687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17688 test ! -s conftest.err
17690 ac_header_preproc=yes
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_header_preproc=no
17698 rm -f conftest.err conftest.$ac_ext
17699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17700 echo "${ECHO_T}$ac_header_preproc" >&6; }
17702 # So? What about this header?
17703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17705 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17706 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17707 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17708 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17709 ac_header_preproc=yes
17712 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17713 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17714 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17715 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17716 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17717 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17718 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17719 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17720 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17721 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17722 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17723 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17725 ## ---------------------------------------- ##
17726 ## Report this to pgsql-bugs@postgresql.org ##
17727 ## ---------------------------------------- ##
17729 ) | sed "s/^/$as_me: WARNING: /" >&2
17732 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17733 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17734 if test "${ac_cv_header_syslog_h+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 ac_cv_header_syslog_h=$ac_header_preproc
17739 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17740 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17743 if test $ac_cv_header_syslog_h = yes; then
17745 cat >>confdefs.h <<\_ACEOF
17746 #define HAVE_SYSLOG 1
17755 { echo "$as_me:$LINENO: checking for optreset" >&5
17756 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
17757 if test "${pgac_cv_var_int_optreset+set}" = set; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17760 cat >conftest.$ac_ext <<_ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17766 #include <unistd.h>
17770 extern int optreset; optreset = 1;
17775 rm -f conftest.$ac_objext conftest$ac_exeext
17776 if { (ac_try="$ac_link"
17777 case "(($ac_try" in
17778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779 *) ac_try_echo=$ac_try;;
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782 (eval "$ac_link") 2>conftest.er1
17784 grep -v '^ *+' conftest.er1 >conftest.err
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } && {
17789 test -z "$ac_c_werror_flag" ||
17790 test ! -s conftest.err
17791 } && test -s conftest$ac_exeext &&
17792 $as_test_x conftest$ac_exeext; then
17793 pgac_cv_var_int_optreset=yes
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 pgac_cv_var_int_optreset=no
17801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17802 conftest$ac_exeext conftest.$ac_ext
17804 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17805 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
17806 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
17808 cat >>confdefs.h <<\_ACEOF
17809 #define HAVE_INT_OPTRESET 1
17816 for ac_func in strtoll strtoq
17818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17822 echo $ECHO_N "(cached) $ECHO_C" >&6
17824 cat >conftest.$ac_ext <<_ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17832 #define $ac_func innocuous_$ac_func
17834 /* System header to define __stub macros and hopefully few prototypes,
17835 which can conflict with char $ac_func (); below.
17836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17837 <limits.h> exists even on freestanding compilers. */
17840 # include <limits.h>
17842 # include <assert.h>
17847 /* Override any GCC internal prototype to avoid an error.
17848 Use char because int might match the return type of a GCC
17849 builtin and then its argument prototype would still apply. */
17854 /* The GNU C library defines this for functions which it implements
17855 to always fail with ENOSYS. Some functions are actually named
17856 something starting with __ and the normal name is an alias. */
17857 #if defined __stub_$ac_func || defined __stub___$ac_func
17864 return $ac_func ();
17869 rm -f conftest.$ac_objext conftest$ac_exeext
17870 if { (ac_try="$ac_link"
17871 case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_link") 2>conftest.er1
17878 grep -v '^ *+' conftest.er1 >conftest.err
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } && {
17883 test -z "$ac_c_werror_flag" ||
17884 test ! -s conftest.err
17885 } && test -s conftest$ac_exeext &&
17886 $as_test_x conftest$ac_exeext; then
17887 eval "$as_ac_var=yes"
17889 echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17892 eval "$as_ac_var=no"
17895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17896 conftest$ac_exeext conftest.$ac_ext
17898 ac_res=`eval echo '${'$as_ac_var'}'`
17899 { echo "$as_me:$LINENO: result: $ac_res" >&5
17900 echo "${ECHO_T}$ac_res" >&6; }
17901 if test `eval echo '${'$as_ac_var'}'` = yes; then
17902 cat >>confdefs.h <<_ACEOF
17903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17911 for ac_func in strtoull strtouq
17913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 cat >conftest.$ac_ext <<_ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17927 #define $ac_func innocuous_$ac_func
17929 /* System header to define __stub macros and hopefully few prototypes,
17930 which can conflict with char $ac_func (); below.
17931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17932 <limits.h> exists even on freestanding compilers. */
17935 # include <limits.h>
17937 # include <assert.h>
17942 /* Override any GCC internal prototype to avoid an error.
17943 Use char because int might match the return type of a GCC
17944 builtin and then its argument prototype would still apply. */
17949 /* The GNU C library defines this for functions which it implements
17950 to always fail with ENOSYS. Some functions are actually named
17951 something starting with __ and the normal name is an alias. */
17952 #if defined __stub_$ac_func || defined __stub___$ac_func
17959 return $ac_func ();
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_link") 2>conftest.er1
17973 grep -v '^ *+' conftest.er1 >conftest.err
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } && {
17978 test -z "$ac_c_werror_flag" ||
17979 test ! -s conftest.err
17980 } && test -s conftest$ac_exeext &&
17981 $as_test_x conftest$ac_exeext; then
17982 eval "$as_ac_var=yes"
17984 echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17987 eval "$as_ac_var=no"
17990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17991 conftest$ac_exeext conftest.$ac_ext
17993 ac_res=`eval echo '${'$as_ac_var'}'`
17994 { echo "$as_me:$LINENO: result: $ac_res" >&5
17995 echo "${ECHO_T}$ac_res" >&6; }
17996 if test `eval echo '${'$as_ac_var'}'` = yes; then
17997 cat >>confdefs.h <<_ACEOF
17998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18005 # Check for one of atexit() or on_exit()
18007 for ac_func in atexit
18009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 cat >conftest.$ac_ext <<_ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18023 #define $ac_func innocuous_$ac_func
18025 /* System header to define __stub macros and hopefully few prototypes,
18026 which can conflict with char $ac_func (); below.
18027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18028 <limits.h> exists even on freestanding compilers. */
18031 # include <limits.h>
18033 # include <assert.h>
18038 /* Override any GCC internal prototype to avoid an error.
18039 Use char because int might match the return type of a GCC
18040 builtin and then its argument prototype would still apply. */
18045 /* The GNU C library defines this for functions which it implements
18046 to always fail with ENOSYS. Some functions are actually named
18047 something starting with __ and the normal name is an alias. */
18048 #if defined __stub_$ac_func || defined __stub___$ac_func
18055 return $ac_func ();
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (ac_try="$ac_link"
18062 case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_link") 2>conftest.er1
18069 grep -v '^ *+' conftest.er1 >conftest.err
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } && {
18074 test -z "$ac_c_werror_flag" ||
18075 test ! -s conftest.err
18076 } && test -s conftest$ac_exeext &&
18077 $as_test_x conftest$ac_exeext; then
18078 eval "$as_ac_var=yes"
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 eval "$as_ac_var=no"
18086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18087 conftest$ac_exeext conftest.$ac_ext
18089 ac_res=`eval echo '${'$as_ac_var'}'`
18090 { echo "$as_me:$LINENO: result: $ac_res" >&5
18091 echo "${ECHO_T}$ac_res" >&6; }
18092 if test `eval echo '${'$as_ac_var'}'` = yes; then
18093 cat >>confdefs.h <<_ACEOF
18094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18099 for ac_func in on_exit
18101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 cat >conftest.$ac_ext <<_ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18115 #define $ac_func innocuous_$ac_func
18117 /* System header to define __stub macros and hopefully few prototypes,
18118 which can conflict with char $ac_func (); below.
18119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18120 <limits.h> exists even on freestanding compilers. */
18123 # include <limits.h>
18125 # include <assert.h>
18130 /* Override any GCC internal prototype to avoid an error.
18131 Use char because int might match the return type of a GCC
18132 builtin and then its argument prototype would still apply. */
18137 /* The GNU C library defines this for functions which it implements
18138 to always fail with ENOSYS. Some functions are actually named
18139 something starting with __ and the normal name is an alias. */
18140 #if defined __stub_$ac_func || defined __stub___$ac_func
18147 return $ac_func ();
18152 rm -f conftest.$ac_objext conftest$ac_exeext
18153 if { (ac_try="$ac_link"
18154 case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_link") 2>conftest.er1
18161 grep -v '^ *+' conftest.er1 >conftest.err
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } && {
18166 test -z "$ac_c_werror_flag" ||
18167 test ! -s conftest.err
18168 } && test -s conftest$ac_exeext &&
18169 $as_test_x conftest$ac_exeext; then
18170 eval "$as_ac_var=yes"
18172 echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18175 eval "$as_ac_var=no"
18178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18179 conftest$ac_exeext conftest.$ac_ext
18181 ac_res=`eval echo '${'$as_ac_var'}'`
18182 { echo "$as_me:$LINENO: result: $ac_res" >&5
18183 echo "${ECHO_T}$ac_res" >&6; }
18184 if test `eval echo '${'$as_ac_var'}'` = yes; then
18185 cat >>confdefs.h <<_ACEOF
18186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18190 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18191 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18192 { (exit 1); exit 1; }; }
18201 for ac_func in fseeko
18203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18217 #define $ac_func innocuous_$ac_func
18219 /* System header to define __stub macros and hopefully few prototypes,
18220 which can conflict with char $ac_func (); below.
18221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18222 <limits.h> exists even on freestanding compilers. */
18225 # include <limits.h>
18227 # include <assert.h>
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18239 /* The GNU C library defines this for functions which it implements
18240 to always fail with ENOSYS. Some functions are actually named
18241 something starting with __ and the normal name is an alias. */
18242 #if defined __stub_$ac_func || defined __stub___$ac_func
18249 return $ac_func ();
18254 rm -f conftest.$ac_objext conftest$ac_exeext
18255 if { (ac_try="$ac_link"
18256 case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261 (eval "$ac_link") 2>conftest.er1
18263 grep -v '^ *+' conftest.er1 >conftest.err
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } && {
18268 test -z "$ac_c_werror_flag" ||
18269 test ! -s conftest.err
18270 } && test -s conftest$ac_exeext &&
18271 $as_test_x conftest$ac_exeext; then
18272 eval "$as_ac_var=yes"
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 eval "$as_ac_var=no"
18280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18281 conftest$ac_exeext conftest.$ac_ext
18283 ac_res=`eval echo '${'$as_ac_var'}'`
18284 { echo "$as_me:$LINENO: result: $ac_res" >&5
18285 echo "${ECHO_T}$ac_res" >&6; }
18286 if test `eval echo '${'$as_ac_var'}'` = yes; then
18287 cat >>confdefs.h <<_ACEOF
18288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18292 case " $LIBOBJS " in
18293 *" $ac_func.$ac_objext "* ) ;;
18294 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18303 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18306 cat >>confdefs.h <<\_ACEOF
18307 #define HAVE_FSEEKO 1
18310 ac_cv_func_fseeko=yes;;
18312 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18313 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18314 if test "${ac_cv_sys_largefile_source+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 cat >conftest.$ac_ext <<_ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18324 #include <sys/types.h> /* for off_t */
18329 int (*fp) (FILE *, off_t, int) = fseeko;
18330 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (ac_try="$ac_link"
18337 case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_link") 2>conftest.er1
18344 grep -v '^ *+' conftest.er1 >conftest.err
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } && {
18349 test -z "$ac_c_werror_flag" ||
18350 test ! -s conftest.err
18351 } && test -s conftest$ac_exeext &&
18352 $as_test_x conftest$ac_exeext; then
18353 ac_cv_sys_largefile_source=no; break
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18362 conftest$ac_exeext conftest.$ac_ext
18363 cat >conftest.$ac_ext <<_ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18369 #define _LARGEFILE_SOURCE 1
18370 #include <sys/types.h> /* for off_t */
18375 int (*fp) (FILE *, off_t, int) = fseeko;
18376 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18381 rm -f conftest.$ac_objext conftest$ac_exeext
18382 if { (ac_try="$ac_link"
18383 case "(($ac_try" in
18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385 *) ac_try_echo=$ac_try;;
18387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388 (eval "$ac_link") 2>conftest.er1
18390 grep -v '^ *+' conftest.er1 >conftest.err
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } && {
18395 test -z "$ac_c_werror_flag" ||
18396 test ! -s conftest.err
18397 } && test -s conftest$ac_exeext &&
18398 $as_test_x conftest$ac_exeext; then
18399 ac_cv_sys_largefile_source=1; break
18401 echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18408 conftest$ac_exeext conftest.$ac_ext
18409 ac_cv_sys_largefile_source=unknown
18413 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18414 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18415 case $ac_cv_sys_largefile_source in #(
18418 cat >>confdefs.h <<_ACEOF
18419 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18425 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18426 # in glibc 2.1.3, but that breaks too many other things.
18427 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18428 if test $ac_cv_sys_largefile_source != unknown; then
18430 cat >>confdefs.h <<\_ACEOF
18431 #define HAVE_FSEEKO 1
18442 # For each platform, we need to know about any special compile and link
18443 # libraries, and whether the normal C function names are thread-safe.
18444 # See the comment at the top of src/port/thread.c for more information.
18445 # WIN32 doesn't need the pthread tests; it always uses threads
18446 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18451 ac_cpp='$CPP $CPPFLAGS'
18452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18458 # We used to check for pthread.h first, but this fails if pthread.h
18459 # requires special compiler flags (e.g. on True64 or Sequent).
18460 # It gets checked for in the link test anyway.
18462 # First of all, check if the user has set any of the PTHREAD_LIBS,
18463 # etcetera environment variables, and if threads linking works using
18465 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18466 save_CFLAGS="$CFLAGS"
18467 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18469 LIBS="$PTHREAD_LIBS $LIBS"
18470 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18471 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18472 cat >conftest.$ac_ext <<_ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h. */
18479 /* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
18485 char pthread_join ();
18489 return pthread_join ();
18494 rm -f conftest.$ac_objext conftest$ac_exeext
18495 if { (ac_try="$ac_link"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_link") 2>conftest.er1
18503 grep -v '^ *+' conftest.er1 >conftest.err
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } && {
18508 test -z "$ac_c_werror_flag" ||
18509 test ! -s conftest.err
18510 } && test -s conftest$ac_exeext &&
18511 $as_test_x conftest$ac_exeext; then
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18521 conftest$ac_exeext conftest.$ac_ext
18522 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18523 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18524 if test x"$acx_pthread_ok" = xno; then
18529 CFLAGS="$save_CFLAGS"
18532 # We must check for the threads library under a number of different
18533 # names; the ordering is very important because some systems
18534 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18535 # libraries is broken (non-POSIX).
18537 # Create a list of thread flags to try. Items starting with a "-" are
18538 # C compiler flags, and other items are library names, except for "none"
18539 # which indicates that we try without any flags at all, and "pthread-config"
18540 # which is a program returning the flags for the Pth emulation library.
18542 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18544 # The ordering *is* (sometimes) important. Some notes on the
18545 # individual items follow:
18547 # pthreads: AIX (must check this before -lpthread)
18548 # none: in case threads are in libc; should be tried before -Kthread and
18549 # other compiler flags to prevent continual compiler warnings
18550 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18551 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18552 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18553 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18554 # -pthreads: Solaris/gcc
18555 # -mthreads: Mingw32/gcc, Lynx/gcc
18556 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18557 # doesn't hurt to check since this sometimes defines pthreads too;
18558 # also defines -D_REENTRANT)
18559 # pthread: Linux, etcetera
18560 # --thread-safe: KAI C++
18561 # pthread-config: use pthread-config program (for GNU Pth library)
18563 case "${host_cpu}-${host_os}" in
18566 # On Solaris (at least, for some versions), libc contains stubbed
18567 # (non-functional) versions of the pthreads routines, so link-based
18568 # tests will erroneously succeed. (We need to link with -pthread or
18569 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18570 # a function called by this macro, so we could check for that, but
18571 # who knows whether they'll stub that too in a future libc.) So,
18572 # we'll just look for -pthreads and -lpthread first:
18574 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18578 if test x"$acx_pthread_ok" = xno; then
18579 for flag in $acx_pthread_flags; do
18581 tryPTHREAD_CFLAGS=""
18585 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18586 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18590 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18591 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18592 tryPTHREAD_CFLAGS="$flag"
18596 # skip this if we already have flags defined, for PostgreSQL
18597 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18598 # Extract the first word of "pthread-config", so it can be a program name with args.
18599 set dummy pthread-config; ac_word=$2
18600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18602 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18605 if test -n "$acx_pthread_config"; then
18606 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18609 for as_dir in $PATH
18612 test -z "$as_dir" && as_dir=.
18613 for ac_exec_ext in '' $ac_executable_extensions; do
18614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18615 ac_cv_prog_acx_pthread_config="yes"
18616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18623 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18626 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18627 if test -n "$acx_pthread_config"; then
18628 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18629 echo "${ECHO_T}$acx_pthread_config" >&6; }
18631 { echo "$as_me:$LINENO: result: no" >&5
18632 echo "${ECHO_T}no" >&6; }
18636 if test x"$acx_pthread_config" = xno; then continue; fi
18637 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18638 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18642 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18643 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18644 tryPTHREAD_LIBS="-l$flag"
18649 save_CFLAGS="$CFLAGS"
18650 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18651 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18653 # Check for various functions. We must include pthread.h,
18654 # since some functions may be macros. (On the Sequent, we
18655 # need a special flag -Kthread to make this header compile.)
18656 # We check for pthread_join because it is in -lpthread on IRIX
18657 # while pthread_create is in libc. We check for pthread_attr_init
18658 # due to DEC craziness with -lpthreads. We check for
18659 # pthread_cleanup_push because it is one of the few pthread
18660 # functions on Solaris that doesn't have a non-functional libc stub.
18661 # We try pthread_create on general principles.
18662 cat >conftest.$ac_ext <<_ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 #include <pthread.h>
18672 pthread_t th; pthread_join(th, 0);
18673 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18674 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18679 rm -f conftest.$ac_objext conftest$ac_exeext
18680 if { (ac_try="$ac_link"
18681 case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_link") 2>conftest.er1
18688 grep -v '^ *+' conftest.er1 >conftest.err
18690 cat conftest.err >&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } && {
18693 test -z "$ac_c_werror_flag" ||
18694 test ! -s conftest.err
18695 } && test -s conftest$ac_exeext &&
18696 $as_test_x conftest$ac_exeext; then
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18706 conftest$ac_exeext conftest.$ac_ext
18708 if test "x$acx_pthread_ok" = xyes; then
18709 # Don't use options that are ignored by the compiler.
18710 # We find them by checking stderror.
18711 cat >conftest.$ac_ext <<_ACEOF
18713 main (int argc, char **argv)
18720 rm -f conftest.$ac_objext conftest$ac_exeext
18721 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18722 # we continue with more flags because Linux needs -lpthread
18723 # for libpq builds on PostgreSQL. The test above only
18724 # tests for building binaries, not shared libraries.
18725 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18726 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18727 else acx_pthread_ok=no
18732 CFLAGS="$save_CFLAGS"
18734 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18735 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18739 # Various other checks:
18740 if test "x$acx_pthread_ok" = xyes; then
18742 LIBS="$PTHREAD_LIBS $LIBS"
18743 save_CFLAGS="$CFLAGS"
18744 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18746 # Detect AIX lossage: threads are created detached by default
18747 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18748 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18749 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756 #include <pthread.h>
18760 int attr=PTHREAD_CREATE_JOINABLE;
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (ac_try="$ac_link"
18767 case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_link") 2>conftest.er1
18774 grep -v '^ *+' conftest.er1 >conftest.err
18776 cat conftest.err >&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } && {
18779 test -z "$ac_c_werror_flag" ||
18780 test ! -s conftest.err
18781 } && test -s conftest$ac_exeext &&
18782 $as_test_x conftest$ac_exeext; then
18783 ok=PTHREAD_CREATE_JOINABLE
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18792 conftest$ac_exeext conftest.$ac_ext
18793 if test x"$ok" = xunknown; then
18794 cat >conftest.$ac_ext <<_ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18800 #include <pthread.h>
18804 int attr=PTHREAD_CREATE_UNDETACHED;
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (ac_try="$ac_link"
18811 case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_link") 2>conftest.er1
18818 grep -v '^ *+' conftest.er1 >conftest.err
18820 cat conftest.err >&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } && {
18823 test -z "$ac_c_werror_flag" ||
18824 test ! -s conftest.err
18825 } && test -s conftest$ac_exeext &&
18826 $as_test_x conftest$ac_exeext; then
18827 ok=PTHREAD_CREATE_UNDETACHED
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18836 conftest$ac_exeext conftest.$ac_ext
18838 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18840 cat >>confdefs.h <<\_ACEOF
18841 #define PTHREAD_CREATE_JOINABLE $ok
18845 { echo "$as_me:$LINENO: result: ${ok}" >&5
18846 echo "${ECHO_T}${ok}" >&6; }
18847 if test x"$ok" = xunknown; then
18848 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18849 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18852 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18853 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
18855 # We always add these in PostgreSQL
18856 # case "${host_cpu}-${host_os}" in
18857 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18858 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18860 { echo "$as_me:$LINENO: result: ${flag}" >&5
18861 echo "${ECHO_T}${flag}" >&6; }
18862 if test "x$flag" != xno; then
18863 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18867 CFLAGS="$save_CFLAGS"
18869 # Supporting cc_r would require a special CC in all places that
18870 # use libpq, and that is ugly, so we don't do it. Users can still
18871 # define their compiler as cc_r to do thread builds of everything.
18872 # More AIX lossage: must compile with cc_r
18873 # Extract the first word of "cc_r", so it can be a program name with args.
18874 set dummy cc_r; ac_word=$2
18875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18877 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 if test -n "$PTHREAD_CC"; then
18881 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884 for as_dir in $PATH
18887 test -z "$as_dir" && as_dir=.
18888 for ac_exec_ext in '' $ac_executable_extensions; do
18889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18890 ac_cv_prog_PTHREAD_CC="cc_r"
18891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18898 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18901 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18902 if test -n "$PTHREAD_CC"; then
18903 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18904 echo "${ECHO_T}$PTHREAD_CC" >&6; }
18906 { echo "$as_me:$LINENO: result: no" >&5
18907 echo "${ECHO_T}no" >&6; }
18919 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18920 if test x"$acx_pthread_ok" = xyes; then
18922 cat >>confdefs.h <<\_ACEOF
18923 #define HAVE_PTHREAD 1
18932 ac_cpp='$CPP $CPPFLAGS'
18933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18939 # Some platforms use these, so just defineed them. They can't hurt if they
18940 # are not supported.
18941 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18944 # At this point, we don't want to muck with the compiler name for threading.
18945 # Let's see who fails, perhaps AIX. 2004-04-23
18946 if test "$PTHREAD_CC" != "$CC"; then
18947 { { echo "$as_me:$LINENO: error:
18948 PostgreSQL does not support platforms that require a special compiler
18949 for thread safety." >&5
18950 echo "$as_me: error:
18951 PostgreSQL does not support platforms that require a special compiler
18952 for thread safety." >&2;}
18953 { (exit 1); exit 1; }; }
18956 if test "$THREAD_SUPPORT" = no; then
18957 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18958 This platform is known to not support thread-safe programs. For details,
18959 compile and run src/bin/pg_thread_test." >&5
18960 echo "$as_me: error: cannot enable threads on this platform
18961 This platform is known to not support thread-safe programs. For details,
18962 compile and run src/bin/pg_thread_test." >&2;}
18963 { (exit 1); exit 1; }; }
18966 # Check for *_r functions
18969 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18970 LIBS="$LIBS $PTHREAD_LIBS"
18972 if test "$PORTNAME" != "win32"; then
18973 if test "${ac_cv_header_pthread_h+set}" = set; then
18974 { echo "$as_me:$LINENO: checking for pthread.h" >&5
18975 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18976 if test "${ac_cv_header_pthread_h+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18979 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18980 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18982 # Is the header compilable?
18983 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
18984 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
18985 cat >conftest.$ac_ext <<_ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 $ac_includes_default
18992 #include <pthread.h>
18994 rm -f conftest.$ac_objext
18995 if { (ac_try="$ac_compile"
18996 case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
19000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001 (eval "$ac_compile") 2>conftest.er1
19003 grep -v '^ *+' conftest.er1 >conftest.err
19005 cat conftest.err >&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } && {
19008 test -z "$ac_c_werror_flag" ||
19009 test ! -s conftest.err
19010 } && test -s conftest.$ac_objext; then
19011 ac_header_compiler=yes
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19016 ac_header_compiler=no
19019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19021 echo "${ECHO_T}$ac_header_compiler" >&6; }
19023 # Is the header present?
19024 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19025 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19026 cat >conftest.$ac_ext <<_ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h. */
19032 #include <pthread.h>
19034 if { (ac_try="$ac_cpp conftest.$ac_ext"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19042 grep -v '^ *+' conftest.er1 >conftest.err
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } >/dev/null && {
19047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19050 ac_header_preproc=yes
19052 echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19055 ac_header_preproc=no
19058 rm -f conftest.err conftest.$ac_ext
19059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19060 echo "${ECHO_T}$ac_header_preproc" >&6; }
19062 # So? What about this header?
19063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19065 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19066 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19067 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19068 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19069 ac_header_preproc=yes
19072 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19073 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19074 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19075 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19076 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19077 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19078 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19079 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19080 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19081 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19083 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19085 ## ---------------------------------------- ##
19086 ## Report this to pgsql-bugs@postgresql.org ##
19087 ## ---------------------------------------- ##
19089 ) | sed "s/^/$as_me: WARNING: /" >&2
19092 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19093 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19094 if test "${ac_cv_header_pthread_h+set}" = set; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19097 ac_cv_header_pthread_h=$ac_header_preproc
19099 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19100 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19103 if test $ac_cv_header_pthread_h = yes; then
19106 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19107 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19108 { (exit 1); exit 1; }; }
19117 for ac_func in strerror_r getpwuid_r gethostbyname_r
19119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 cat >conftest.$ac_ext <<_ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19133 #define $ac_func innocuous_$ac_func
19135 /* System header to define __stub macros and hopefully few prototypes,
19136 which can conflict with char $ac_func (); below.
19137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19138 <limits.h> exists even on freestanding compilers. */
19141 # include <limits.h>
19143 # include <assert.h>
19148 /* Override any GCC internal prototype to avoid an error.
19149 Use char because int might match the return type of a GCC
19150 builtin and then its argument prototype would still apply. */
19155 /* The GNU C library defines this for functions which it implements
19156 to always fail with ENOSYS. Some functions are actually named
19157 something starting with __ and the normal name is an alias. */
19158 #if defined __stub_$ac_func || defined __stub___$ac_func
19165 return $ac_func ();
19170 rm -f conftest.$ac_objext conftest$ac_exeext
19171 if { (ac_try="$ac_link"
19172 case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_link") 2>conftest.er1
19179 grep -v '^ *+' conftest.er1 >conftest.err
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } && {
19184 test -z "$ac_c_werror_flag" ||
19185 test ! -s conftest.err
19186 } && test -s conftest$ac_exeext &&
19187 $as_test_x conftest$ac_exeext; then
19188 eval "$as_ac_var=yes"
19190 echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19193 eval "$as_ac_var=no"
19196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19197 conftest$ac_exeext conftest.$ac_ext
19199 ac_res=`eval echo '${'$as_ac_var'}'`
19200 { echo "$as_me:$LINENO: result: $ac_res" >&5
19201 echo "${ECHO_T}$ac_res" >&6; }
19202 if test `eval echo '${'$as_ac_var'}'` = yes; then
19203 cat >>confdefs.h <<_ACEOF
19204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19211 # Do test here with the proper thread flags
19212 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19213 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19214 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 cat >conftest.$ac_ext <<_ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223 #include <sys/types.h>
19229 struct passwd *space;
19232 struct passwd **result;
19233 getpwuid_r(uid, space, buf, bufsize, result);
19238 rm -f conftest.$ac_objext
19239 if { (ac_try="$ac_compile"
19240 case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_compile") 2>conftest.er1
19247 grep -v '^ *+' conftest.er1 >conftest.err
19249 cat conftest.err >&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } && {
19252 test -z "$ac_c_werror_flag" ||
19253 test ! -s conftest.err
19254 } && test -s conftest.$ac_objext; then
19255 pgac_cv_func_getpwuid_r_5arg=yes
19257 echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19260 pgac_cv_func_getpwuid_r_5arg=no
19263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19266 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19267 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19269 cat >>confdefs.h <<\_ACEOF
19270 #define GETPWUID_R_5ARG
19275 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19276 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19277 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19280 cat >conftest.$ac_ext <<_ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h. */
19286 #include <string.h>
19291 int strerror_r(int, char *, size_t);
19293 /* Older AIX has 'int' for the third argument so we don't test the args. */
19300 rm -f conftest.$ac_objext
19301 if { (ac_try="$ac_compile"
19302 case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_compile") 2>conftest.er1
19309 grep -v '^ *+' conftest.er1 >conftest.err
19311 cat conftest.err >&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } && {
19314 test -z "$ac_c_werror_flag" ||
19315 test ! -s conftest.err
19316 } && test -s conftest.$ac_objext; then
19317 pgac_cv_func_strerror_r_int=yes
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19322 pgac_cv_func_strerror_r_int=no
19325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19327 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19328 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19329 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
19331 cat >>confdefs.h <<\_ACEOF
19332 #define STRERROR_R_INT
19342 # do not use values from template file
19351 # We can test for libldap_r only after we know PTHREAD_LIBS
19352 if test "$with_ldap" = yes ; then
19354 if test "$PORTNAME" != "win32"; then
19356 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19357 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19358 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 ac_check_lib_save_LIBS=$LIBS
19362 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19370 /* Override any GCC internal prototype to avoid an error.
19371 Use char because int might match the return type of a GCC
19372 builtin and then its argument prototype would still apply. */
19380 return ldap_bind ();
19385 rm -f conftest.$ac_objext conftest$ac_exeext
19386 if { (ac_try="$ac_link"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_link") 2>conftest.er1
19394 grep -v '^ *+' conftest.er1 >conftest.err
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } && {
19399 test -z "$ac_c_werror_flag" ||
19400 test ! -s conftest.err
19401 } && test -s conftest$ac_exeext &&
19402 $as_test_x conftest$ac_exeext; then
19403 ac_cv_lib_ldap_ldap_bind=yes
19405 echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19408 ac_cv_lib_ldap_ldap_bind=no
19411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19412 conftest$ac_exeext conftest.$ac_ext
19413 LIBS=$ac_check_lib_save_LIBS
19415 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19416 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19417 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19418 cat >>confdefs.h <<_ACEOF
19419 #define HAVE_LIBLDAP 1
19422 LIBS="-lldap $LIBS"
19425 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19426 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19427 { (exit 1); exit 1; }; }
19430 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19431 if test "$enable_thread_safety" = yes; then
19432 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19434 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19435 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19436 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19439 ac_check_lib_save_LIBS=$LIBS
19440 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19441 cat >conftest.$ac_ext <<_ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19448 /* Override any GCC internal prototype to avoid an error.
19449 Use char because int might match the return type of a GCC
19450 builtin and then its argument prototype would still apply. */
19454 char ldap_simple_bind ();
19458 return ldap_simple_bind ();
19463 rm -f conftest.$ac_objext conftest$ac_exeext
19464 if { (ac_try="$ac_link"
19465 case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_link") 2>conftest.er1
19472 grep -v '^ *+' conftest.er1 >conftest.err
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } && {
19477 test -z "$ac_c_werror_flag" ||
19478 test ! -s conftest.err
19479 } && test -s conftest$ac_exeext &&
19480 $as_test_x conftest$ac_exeext; then
19481 ac_cv_lib_ldap_r_ldap_simple_bind=yes
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_lib_ldap_r_ldap_simple_bind=no
19489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19490 conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19493 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19494 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19495 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19496 cat >>confdefs.h <<_ACEOF
19497 #define HAVE_LIBLDAP_R 1
19500 LIBS="-lldap_r $LIBS"
19503 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19504 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19505 { (exit 1); exit 1; }; }
19508 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19510 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19514 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19515 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19516 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19517 echo $ECHO_N "(cached) $ECHO_C" >&6
19519 ac_check_lib_save_LIBS=$LIBS
19520 LIBS="-lwldap32 $LIBS"
19521 cat >conftest.$ac_ext <<_ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19528 /* Override any GCC internal prototype to avoid an error.
19529 Use char because int might match the return type of a GCC
19530 builtin and then its argument prototype would still apply. */
19538 return ldap_bind ();
19543 rm -f conftest.$ac_objext conftest$ac_exeext
19544 if { (ac_try="$ac_link"
19545 case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_link") 2>conftest.er1
19552 grep -v '^ *+' conftest.er1 >conftest.err
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } && {
19557 test -z "$ac_c_werror_flag" ||
19558 test ! -s conftest.err
19559 } && test -s conftest$ac_exeext &&
19560 $as_test_x conftest$ac_exeext; then
19561 ac_cv_lib_wldap32_ldap_bind=yes
19563 echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19566 ac_cv_lib_wldap32_ldap_bind=no
19569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19570 conftest$ac_exeext conftest.$ac_ext
19571 LIBS=$ac_check_lib_save_LIBS
19573 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19574 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19575 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19576 cat >>confdefs.h <<_ACEOF
19577 #define HAVE_LIBWLDAP32 1
19580 LIBS="-lwldap32 $LIBS"
19583 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19584 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19585 { (exit 1); exit 1; }; }
19588 LDAP_LIBS_FE="-lwldap32"
19589 LDAP_LIBS_BE="-lwldap32"
19597 # This test makes sure that run tests work at all. Sometimes a shared
19598 # library is found by the linker, but the runtime linker can't find it.
19599 # This check should come after all modifications of compiler or linker
19600 # variables, and before any other run tests.
19601 { echo "$as_me:$LINENO: checking test program" >&5
19602 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19603 if test "$cross_compiling" = yes; then
19604 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19605 echo "${ECHO_T}cross-compiling" >&6; }
19607 cat >conftest.$ac_ext <<_ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19613 int main() { return 0; }
19615 rm -f conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_link") 2>&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19626 { (case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_try") 2>&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
19635 { echo "$as_me:$LINENO: result: ok" >&5
19636 echo "${ECHO_T}ok" >&6; }
19638 echo "$as_me: program exited with status $ac_status" >&5
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19642 ( exit $ac_status )
19643 { echo "$as_me:$LINENO: result: failed" >&5
19644 echo "${ECHO_T}failed" >&6; }
19645 { { echo "$as_me:$LINENO: error:
19646 Could not execute a simple test program. This may be a problem
19647 related to locating shared libraries. Check the file 'config.log'
19648 for the exact reason." >&5
19649 echo "$as_me: error:
19650 Could not execute a simple test program. This may be a problem
19651 related to locating shared libraries. Check the file 'config.log'
19652 for the exact reason." >&2;}
19653 { (exit 1); exit 1; }; }
19655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19660 # --------------------
19661 # Run tests below here
19662 # --------------------
19664 # Force use of our snprintf if system's doesn't do arg control
19665 # See comment above at snprintf test for details.
19666 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19667 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19668 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19669 if test "${pgac_cv_printf_arg_control+set}" = set; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19672 if test "$cross_compiling" = yes; then
19673 pgac_cv_printf_arg_control=cross
19675 cat >conftest.$ac_ext <<_ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h. */
19682 #include <string.h>
19688 /* can it swap arguments? */
19689 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19690 if (strcmp(buf, "4 3") != 0)
19695 rm -f conftest$ac_exeext
19696 if { (ac_try="$ac_link"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_link") 2>&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19706 { (case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_try") 2>&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
19715 pgac_cv_printf_arg_control=yes
19717 echo "$as_me: program exited with status $ac_status" >&5
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ( exit $ac_status )
19722 pgac_cv_printf_arg_control=no
19724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19730 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19731 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19733 if test $pgac_cv_printf_arg_control != yes ; then
19734 pgac_need_repl_snprintf=yes
19740 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19741 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
19742 if test "${pgac_cv_type_long_int_64+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19745 if test "$cross_compiling" = yes; then
19746 # If cross-compiling, check the size reported by the compiler and
19747 # trust that the arithmetic works.
19748 cat >conftest.$ac_ext <<_ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19758 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19765 rm -f conftest.$ac_objext
19766 if { (ac_try="$ac_compile"
19767 case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_compile") 2>conftest.er1
19774 grep -v '^ *+' conftest.er1 >conftest.err
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && {
19779 test -z "$ac_c_werror_flag" ||
19780 test ! -s conftest.err
19781 } && test -s conftest.$ac_objext; then
19782 pgac_cv_type_long_int_64=yes
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 pgac_cv_type_long_int_64=no
19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792 cat >conftest.$ac_ext <<_ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h. */
19798 typedef long int ac_int64;
19801 * These are globals to discourage the compiler from folding all the
19802 * arithmetic tests down to compile-time constants.
19804 ac_int64 a = 20000001;
19805 ac_int64 b = 40000005;
19807 int does_int64_work()
19811 if (sizeof(ac_int64) != 8)
19812 return 0; /* definitely not the right size */
19814 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19822 exit(! does_int64_work());
19825 rm -f conftest$ac_exeext
19826 if { (ac_try="$ac_link"
19827 case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_link") 2>&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19836 { (case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_try") 2>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845 pgac_cv_type_long_int_64=yes
19847 echo "$as_me: program exited with status $ac_status" >&5
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19851 ( exit $ac_status )
19852 pgac_cv_type_long_int_64=no
19854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19859 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19860 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
19862 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
19863 if test x"$pgac_cv_type_long_int_64" = xyes ; then
19865 cat >>confdefs.h <<\_ACEOF
19866 #define HAVE_LONG_INT_64 1
19872 if test x"$HAVE_LONG_INT_64" = x"no" ; then
19873 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19874 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
19875 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19878 if test "$cross_compiling" = yes; then
19879 # If cross-compiling, check the size reported by the compiler and
19880 # trust that the arithmetic works.
19881 cat >conftest.$ac_ext <<_ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19891 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19898 rm -f conftest.$ac_objext
19899 if { (ac_try="$ac_compile"
19900 case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_compile") 2>conftest.er1
19907 grep -v '^ *+' conftest.er1 >conftest.err
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } && {
19912 test -z "$ac_c_werror_flag" ||
19913 test ! -s conftest.err
19914 } && test -s conftest.$ac_objext; then
19915 pgac_cv_type_long_long_int_64=yes
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 pgac_cv_type_long_long_int_64=no
19923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925 cat >conftest.$ac_ext <<_ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 typedef long long int ac_int64;
19934 * These are globals to discourage the compiler from folding all the
19935 * arithmetic tests down to compile-time constants.
19937 ac_int64 a = 20000001;
19938 ac_int64 b = 40000005;
19940 int does_int64_work()
19944 if (sizeof(ac_int64) != 8)
19945 return 0; /* definitely not the right size */
19947 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19955 exit(! does_int64_work());
19958 rm -f conftest$ac_exeext
19959 if { (ac_try="$ac_link"
19960 case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965 (eval "$ac_link") 2>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19969 { (case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_try") 2>&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; }; then
19978 pgac_cv_type_long_long_int_64=yes
19980 echo "$as_me: program exited with status $ac_status" >&5
19981 echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ( exit $ac_status )
19985 pgac_cv_type_long_long_int_64=no
19987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19992 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
19993 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
19995 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
19996 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
19998 cat >>confdefs.h <<\_ACEOF
19999 #define HAVE_LONG_LONG_INT_64 1
20008 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20016 #define INT64CONST(x) x##LL
20017 long long int foo = INT64CONST(0x1234567890123456);
20027 rm -f conftest.$ac_objext
20028 if { (ac_try="$ac_compile"
20029 case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_compile") 2>conftest.er1
20036 grep -v '^ *+' conftest.er1 >conftest.err
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } && {
20041 test -z "$ac_c_werror_flag" ||
20042 test ! -s conftest.err
20043 } && test -s conftest.$ac_objext; then
20045 cat >>confdefs.h <<\_ACEOF
20046 #define HAVE_LL_CONSTANTS 1
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20060 # If we found "long int" is 64 bits, assume snprintf handles it. If
20061 # we found we need to use "long long int", better check. We cope with
20062 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20063 # work, fall back to our own snprintf emulation (which we know uses %lld).
20065 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20066 if test $pgac_need_repl_snprintf = no; then
20067 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20068 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20069 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20072 for pgac_format in '%lld' '%qd' '%I64d'; do
20073 if test "$cross_compiling" = yes; then
20074 pgac_cv_snprintf_long_long_int_format=cross; break
20076 cat >conftest.$ac_ext <<_ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20083 typedef long long int ac_int64;
20084 #define INT64_FORMAT "$pgac_format"
20086 ac_int64 a = 20000001;
20087 ac_int64 b = 40000005;
20089 int does_int64_snprintf_work()
20094 if (sizeof(ac_int64) != 8)
20095 return 0; /* doesn't look like the right size */
20098 snprintf(buf, 100, INT64_FORMAT, c);
20099 if (strcmp(buf, "800000140000005") != 0)
20100 return 0; /* either multiply or snprintf is busted */
20104 exit(! does_int64_snprintf_work());
20107 rm -f conftest$ac_exeext
20108 if { (ac_try="$ac_link"
20109 case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_link") 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20118 { (case "(($ac_try" in
20119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120 *) ac_try_echo=$ac_try;;
20122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20123 (eval "$ac_try") 2>&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; }; then
20127 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20129 echo "$as_me: program exited with status $ac_status" >&5
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20141 LONG_LONG_INT_FORMAT=''
20143 case $pgac_cv_snprintf_long_long_int_format in
20144 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20145 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20146 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20147 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20148 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20149 *) { echo "$as_me:$LINENO: result: none" >&5
20150 echo "${ECHO_T}none" >&6; };;
20152 if test "$LONG_LONG_INT_FORMAT" = ""; then
20153 # Force usage of our own snprintf, since system snprintf is broken
20154 pgac_need_repl_snprintf=yes
20155 LONG_LONG_INT_FORMAT='%lld'
20158 # Here if we previously decided we needed to use our own snprintf
20159 LONG_LONG_INT_FORMAT='%lld'
20161 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20162 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20163 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20165 # Here if we are not using 'long long int' at all
20166 INT64_FORMAT='"%ld"'
20167 UINT64_FORMAT='"%lu"'
20171 cat >>confdefs.h <<_ACEOF
20172 #define INT64_FORMAT $INT64_FORMAT
20177 cat >>confdefs.h <<_ACEOF
20178 #define UINT64_FORMAT $UINT64_FORMAT
20182 # Now we have checked all the reasons to replace snprintf
20183 if test $pgac_need_repl_snprintf = yes; then
20185 cat >>confdefs.h <<\_ACEOF
20186 #define USE_REPL_SNPRINTF 1
20189 case " $LIBOBJS " in
20190 *" snprintf.$ac_objext "* ) ;;
20191 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20197 # Need a #define for the size of Datum (unsigned long)
20198 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20199 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20200 if test "${ac_cv_type_unsigned_long+set}" = set; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 cat >conftest.$ac_ext <<_ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20209 $ac_includes_default
20210 typedef unsigned long ac__type_new_;
20214 if ((ac__type_new_ *) 0)
20216 if (sizeof (ac__type_new_))
20222 rm -f conftest.$ac_objext
20223 if { (ac_try="$ac_compile"
20224 case "(($ac_try" in
20225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226 *) ac_try_echo=$ac_try;;
20228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229 (eval "$ac_compile") 2>conftest.er1
20231 grep -v '^ *+' conftest.er1 >conftest.err
20233 cat conftest.err >&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } && {
20236 test -z "$ac_c_werror_flag" ||
20237 test ! -s conftest.err
20238 } && test -s conftest.$ac_objext; then
20239 ac_cv_type_unsigned_long=yes
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20244 ac_cv_type_unsigned_long=no
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20249 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20250 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20252 # The cast to long int works around a bug in the HP C Compiler
20253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20255 # This bug is HP SR number 8606223364.
20256 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20257 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20258 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 if test "$cross_compiling" = yes; then
20262 # Depending upon the size, compute the lo and hi bounds.
20263 cat >conftest.$ac_ext <<_ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 $ac_includes_default
20270 typedef unsigned long ac__type_sizeof_;
20274 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20281 rm -f conftest.$ac_objext
20282 if { (ac_try="$ac_compile"
20283 case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_compile") 2>conftest.er1
20290 grep -v '^ *+' conftest.er1 >conftest.err
20292 cat conftest.err >&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } && {
20295 test -z "$ac_c_werror_flag" ||
20296 test ! -s conftest.err
20297 } && test -s conftest.$ac_objext; then
20300 cat >conftest.$ac_ext <<_ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20306 $ac_includes_default
20307 typedef unsigned long ac__type_sizeof_;
20311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20318 rm -f conftest.$ac_objext
20319 if { (ac_try="$ac_compile"
20320 case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_compile") 2>conftest.er1
20327 grep -v '^ *+' conftest.er1 >conftest.err
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } && {
20332 test -z "$ac_c_werror_flag" ||
20333 test ! -s conftest.err
20334 } && test -s conftest.$ac_objext; then
20335 ac_hi=$ac_mid; break
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20340 ac_lo=`expr $ac_mid + 1`
20341 if test $ac_lo -le $ac_mid; then
20345 ac_mid=`expr 2 '*' $ac_mid + 1`
20348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 cat >conftest.$ac_ext <<_ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360 $ac_includes_default
20361 typedef unsigned long ac__type_sizeof_;
20365 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20372 rm -f conftest.$ac_objext
20373 if { (ac_try="$ac_compile"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_compile") 2>conftest.er1
20381 grep -v '^ *+' conftest.er1 >conftest.err
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } && {
20386 test -z "$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 } && test -s conftest.$ac_objext; then
20391 cat >conftest.$ac_ext <<_ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20397 $ac_includes_default
20398 typedef unsigned long ac__type_sizeof_;
20402 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20409 rm -f conftest.$ac_objext
20410 if { (ac_try="$ac_compile"
20411 case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_compile") 2>conftest.er1
20418 grep -v '^ *+' conftest.er1 >conftest.err
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } && {
20423 test -z "$ac_c_werror_flag" ||
20424 test ! -s conftest.err
20425 } && test -s conftest.$ac_objext; then
20426 ac_lo=$ac_mid; break
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 ac_hi=`expr '(' $ac_mid ')' - 1`
20432 if test $ac_mid -le $ac_hi; then
20436 ac_mid=`expr 2 '*' $ac_mid`
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20452 # Binary search between lo and hi bounds.
20453 while test "x$ac_lo" != "x$ac_hi"; do
20454 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 $ac_includes_default
20462 typedef unsigned long ac__type_sizeof_;
20466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20473 rm -f conftest.$ac_objext
20474 if { (ac_try="$ac_compile"
20475 case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_compile") 2>conftest.er1
20482 grep -v '^ *+' conftest.er1 >conftest.err
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } && {
20487 test -z "$ac_c_werror_flag" ||
20488 test ! -s conftest.err
20489 } && test -s conftest.$ac_objext; then
20492 echo "$as_me: failed program was:" >&5
20493 sed 's/^/| /' conftest.$ac_ext >&5
20495 ac_lo=`expr '(' $ac_mid ')' + 1`
20498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20502 '') if test "$ac_cv_type_unsigned_long" = yes; then
20503 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20504 See \`config.log' for more details." >&5
20505 echo "$as_me: error: cannot compute sizeof (unsigned long)
20506 See \`config.log' for more details." >&2;}
20507 { (exit 77); exit 77; }; }
20509 ac_cv_sizeof_unsigned_long=0
20513 cat >conftest.$ac_ext <<_ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 $ac_includes_default
20520 typedef unsigned long ac__type_sizeof_;
20521 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20522 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20524 #include <stdlib.h>
20529 FILE *f = fopen ("conftest.val", "w");
20532 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20534 long int i = longval ();
20535 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20537 fprintf (f, "%ld\n", i);
20541 unsigned long int i = ulongval ();
20542 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20544 fprintf (f, "%lu\n", i);
20546 return ferror (f) || fclose (f) != 0;
20552 rm -f conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_link") 2>&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20563 { (case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_try") 2>&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20574 echo "$as_me: program exited with status $ac_status" >&5
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 ( exit $ac_status )
20579 if test "$ac_cv_type_unsigned_long" = yes; then
20580 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20581 See \`config.log' for more details." >&5
20582 echo "$as_me: error: cannot compute sizeof (unsigned long)
20583 See \`config.log' for more details." >&2;}
20584 { (exit 77); exit 77; }; }
20586 ac_cv_sizeof_unsigned_long=0
20589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20593 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20594 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20598 cat >>confdefs.h <<_ACEOF
20599 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20604 # And one for the size of size_t (enables tweaks for > 32bit address space)
20605 { echo "$as_me:$LINENO: checking for size_t" >&5
20606 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20607 if test "${ac_cv_type_size_t+set}" = set; then
20608 echo $ECHO_N "(cached) $ECHO_C" >&6
20610 cat >conftest.$ac_ext <<_ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20616 $ac_includes_default
20617 typedef size_t ac__type_new_;
20621 if ((ac__type_new_ *) 0)
20623 if (sizeof (ac__type_new_))
20629 rm -f conftest.$ac_objext
20630 if { (ac_try="$ac_compile"
20631 case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_compile") 2>conftest.er1
20638 grep -v '^ *+' conftest.er1 >conftest.err
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && {
20643 test -z "$ac_c_werror_flag" ||
20644 test ! -s conftest.err
20645 } && test -s conftest.$ac_objext; then
20646 ac_cv_type_size_t=yes
20648 echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20651 ac_cv_type_size_t=no
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20656 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20657 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20659 # The cast to long int works around a bug in the HP C Compiler
20660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20662 # This bug is HP SR number 8606223364.
20663 { echo "$as_me:$LINENO: checking size of size_t" >&5
20664 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20665 if test "${ac_cv_sizeof_size_t+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 if test "$cross_compiling" = yes; then
20669 # Depending upon the size, compute the lo and hi bounds.
20670 cat >conftest.$ac_ext <<_ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 $ac_includes_default
20677 typedef size_t ac__type_sizeof_;
20681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20688 rm -f conftest.$ac_objext
20689 if { (ac_try="$ac_compile"
20690 case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_compile") 2>conftest.er1
20697 grep -v '^ *+' conftest.er1 >conftest.err
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } && {
20702 test -z "$ac_c_werror_flag" ||
20703 test ! -s conftest.err
20704 } && test -s conftest.$ac_objext; then
20707 cat >conftest.$ac_ext <<_ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20713 $ac_includes_default
20714 typedef size_t ac__type_sizeof_;
20718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20725 rm -f conftest.$ac_objext
20726 if { (ac_try="$ac_compile"
20727 case "(($ac_try" in
20728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729 *) ac_try_echo=$ac_try;;
20731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20732 (eval "$ac_compile") 2>conftest.er1
20734 grep -v '^ *+' conftest.er1 >conftest.err
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } && {
20739 test -z "$ac_c_werror_flag" ||
20740 test ! -s conftest.err
20741 } && test -s conftest.$ac_objext; then
20742 ac_hi=$ac_mid; break
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20747 ac_lo=`expr $ac_mid + 1`
20748 if test $ac_lo -le $ac_mid; then
20752 ac_mid=`expr 2 '*' $ac_mid + 1`
20755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 cat >conftest.$ac_ext <<_ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h. */
20767 $ac_includes_default
20768 typedef size_t ac__type_sizeof_;
20772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_compile") 2>conftest.er1
20788 grep -v '^ *+' conftest.er1 >conftest.err
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } && {
20793 test -z "$ac_c_werror_flag" ||
20794 test ! -s conftest.err
20795 } && test -s conftest.$ac_objext; then
20798 cat >conftest.$ac_ext <<_ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 $ac_includes_default
20805 typedef size_t ac__type_sizeof_;
20809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_compile") 2>conftest.er1
20825 grep -v '^ *+' conftest.er1 >conftest.err
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } && {
20830 test -z "$ac_c_werror_flag" ||
20831 test ! -s conftest.err
20832 } && test -s conftest.$ac_objext; then
20833 ac_lo=$ac_mid; break
20835 echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20838 ac_hi=`expr '(' $ac_mid ')' - 1`
20839 if test $ac_mid -le $ac_hi; then
20843 ac_mid=`expr 2 '*' $ac_mid`
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20859 # Binary search between lo and hi bounds.
20860 while test "x$ac_lo" != "x$ac_hi"; do
20861 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 $ac_includes_default
20869 typedef size_t ac__type_sizeof_;
20873 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20880 rm -f conftest.$ac_objext
20881 if { (ac_try="$ac_compile"
20882 case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_compile") 2>conftest.er1
20889 grep -v '^ *+' conftest.er1 >conftest.err
20891 cat conftest.err >&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } && {
20894 test -z "$ac_c_werror_flag" ||
20895 test ! -s conftest.err
20896 } && test -s conftest.$ac_objext; then
20899 echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902 ac_lo=`expr '(' $ac_mid ')' + 1`
20905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20908 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20909 '') if test "$ac_cv_type_size_t" = yes; then
20910 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20911 See \`config.log' for more details." >&5
20912 echo "$as_me: error: cannot compute sizeof (size_t)
20913 See \`config.log' for more details." >&2;}
20914 { (exit 77); exit 77; }; }
20916 ac_cv_sizeof_size_t=0
20920 cat >conftest.$ac_ext <<_ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20926 $ac_includes_default
20927 typedef size_t ac__type_sizeof_;
20928 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20929 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20931 #include <stdlib.h>
20936 FILE *f = fopen ("conftest.val", "w");
20939 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20941 long int i = longval ();
20942 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20944 fprintf (f, "%ld\n", i);
20948 unsigned long int i = ulongval ();
20949 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20951 fprintf (f, "%lu\n", i);
20953 return ferror (f) || fclose (f) != 0;
20959 rm -f conftest$ac_exeext
20960 if { (ac_try="$ac_link"
20961 case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_link") 2>&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20970 { (case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_try") 2>&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
20979 ac_cv_sizeof_size_t=`cat conftest.val`
20981 echo "$as_me: program exited with status $ac_status" >&5
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20985 ( exit $ac_status )
20986 if test "$ac_cv_type_size_t" = yes; then
20987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20988 See \`config.log' for more details." >&5
20989 echo "$as_me: error: cannot compute sizeof (size_t)
20990 See \`config.log' for more details." >&2;}
20991 { (exit 77); exit 77; }; }
20993 ac_cv_sizeof_size_t=0
20996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21000 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21001 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21005 cat >>confdefs.h <<_ACEOF
21006 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21011 # Decide whether float4 is passed by value: user-selectable, enabled by default
21012 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21013 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21015 pgac_args="$pgac_args enable_float4_byval"
21017 # Check whether --enable-float4-byval was given.
21018 if test "${enable_float4_byval+set}" = set; then
21019 enableval=$enable_float4_byval;
21023 cat >>confdefs.h <<\_ACEOF
21024 #define USE_FLOAT4_BYVAL 1
21027 float4passbyval=true
21030 float4passbyval=false
21033 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21034 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21035 { (exit 1); exit 1; }; }
21040 enable_float4_byval=yes
21042 cat >>confdefs.h <<\_ACEOF
21043 #define USE_FLOAT4_BYVAL 1
21046 float4passbyval=true
21050 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21051 echo "${ECHO_T}$enable_float4_byval" >&6; }
21053 cat >>confdefs.h <<_ACEOF
21054 #define FLOAT4PASSBYVAL $float4passbyval
21058 # Decide whether float8 is passed by value.
21059 # Note: this setting also controls int8 and related types such as timestamp.
21060 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21061 # If not, trying to select it is an error.
21062 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21063 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21064 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21066 pgac_args="$pgac_args enable_float8_byval"
21068 # Check whether --enable-float8-byval was given.
21069 if test "${enable_float8_byval+set}" = set; then
21070 enableval=$enable_float8_byval;
21079 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21080 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21081 { (exit 1); exit 1; }; }
21086 enable_float8_byval=yes
21093 pgac_args="$pgac_args enable_float8_byval"
21095 # Check whether --enable-float8-byval was given.
21096 if test "${enable_float8_byval+set}" = set; then
21097 enableval=$enable_float8_byval;
21106 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21107 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21108 { (exit 1); exit 1; }; }
21113 enable_float8_byval=no
21118 if test "$enable_float8_byval" = yes ; then
21119 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21120 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21121 { (exit 1); exit 1; }; }
21124 if test "$enable_float8_byval" = yes ; then
21126 cat >>confdefs.h <<\_ACEOF
21127 #define USE_FLOAT8_BYVAL 1
21130 float8passbyval=true
21132 float8passbyval=false
21134 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21135 echo "${ECHO_T}$enable_float8_byval" >&6; }
21137 cat >>confdefs.h <<_ACEOF
21138 #define FLOAT8PASSBYVAL $float8passbyval
21142 # Determine memory alignment requirements for the basic C data types.
21144 { echo "$as_me:$LINENO: checking for short" >&5
21145 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21146 if test "${ac_cv_type_short+set}" = set; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21149 cat >conftest.$ac_ext <<_ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h. */
21155 $ac_includes_default
21156 typedef short ac__type_new_;
21160 if ((ac__type_new_ *) 0)
21162 if (sizeof (ac__type_new_))
21168 rm -f conftest.$ac_objext
21169 if { (ac_try="$ac_compile"
21170 case "(($ac_try" in
21171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172 *) ac_try_echo=$ac_try;;
21174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175 (eval "$ac_compile") 2>conftest.er1
21177 grep -v '^ *+' conftest.er1 >conftest.err
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } && {
21182 test -z "$ac_c_werror_flag" ||
21183 test ! -s conftest.err
21184 } && test -s conftest.$ac_objext; then
21185 ac_cv_type_short=yes
21187 echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.$ac_ext >&5
21190 ac_cv_type_short=no
21193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21195 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21196 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21198 # The cast to long int works around a bug in the HP C Compiler,
21199 # see AC_CHECK_SIZEOF for more information.
21200 { echo "$as_me:$LINENO: checking alignment of short" >&5
21201 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21202 if test "${ac_cv_alignof_short+set}" = set; then
21203 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 if test "$cross_compiling" = yes; then
21206 # Depending upon the size, compute the lo and hi bounds.
21207 cat >conftest.$ac_ext <<_ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h. */
21213 $ac_includes_default
21215 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21217 typedef struct { char x; short y; } ac__type_alignof_;
21221 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21228 rm -f conftest.$ac_objext
21229 if { (ac_try="$ac_compile"
21230 case "(($ac_try" in
21231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232 *) ac_try_echo=$ac_try;;
21234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235 (eval "$ac_compile") 2>conftest.er1
21237 grep -v '^ *+' conftest.er1 >conftest.err
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } && {
21242 test -z "$ac_c_werror_flag" ||
21243 test ! -s conftest.err
21244 } && test -s conftest.$ac_objext; then
21247 cat >conftest.$ac_ext <<_ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21253 $ac_includes_default
21255 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21257 typedef struct { char x; short y; } ac__type_alignof_;
21261 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21268 rm -f conftest.$ac_objext
21269 if { (ac_try="$ac_compile"
21270 case "(($ac_try" in
21271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272 *) ac_try_echo=$ac_try;;
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275 (eval "$ac_compile") 2>conftest.er1
21277 grep -v '^ *+' conftest.er1 >conftest.err
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } && {
21282 test -z "$ac_c_werror_flag" ||
21283 test ! -s conftest.err
21284 } && test -s conftest.$ac_objext; then
21285 ac_hi=$ac_mid; break
21287 echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21290 ac_lo=`expr $ac_mid + 1`
21291 if test $ac_lo -le $ac_mid; then
21295 ac_mid=`expr 2 '*' $ac_mid + 1`
21298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21301 echo "$as_me: failed program was:" >&5
21302 sed 's/^/| /' conftest.$ac_ext >&5
21304 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 $ac_includes_default
21312 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21314 typedef struct { char x; short y; } ac__type_alignof_;
21318 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21325 rm -f conftest.$ac_objext
21326 if { (ac_try="$ac_compile"
21327 case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_compile") 2>conftest.er1
21334 grep -v '^ *+' conftest.er1 >conftest.err
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } && {
21339 test -z "$ac_c_werror_flag" ||
21340 test ! -s conftest.err
21341 } && test -s conftest.$ac_objext; then
21344 cat >conftest.$ac_ext <<_ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 $ac_includes_default
21352 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21354 typedef struct { char x; short y; } ac__type_alignof_;
21358 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21365 rm -f conftest.$ac_objext
21366 if { (ac_try="$ac_compile"
21367 case "(($ac_try" in
21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372 (eval "$ac_compile") 2>conftest.er1
21374 grep -v '^ *+' conftest.er1 >conftest.err
21376 cat conftest.err >&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } && {
21379 test -z "$ac_c_werror_flag" ||
21380 test ! -s conftest.err
21381 } && test -s conftest.$ac_objext; then
21382 ac_lo=$ac_mid; break
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21387 ac_hi=`expr '(' $ac_mid ')' - 1`
21388 if test $ac_mid -le $ac_hi; then
21392 ac_mid=`expr 2 '*' $ac_mid`
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398 echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21408 # Binary search between lo and hi bounds.
21409 while test "x$ac_lo" != "x$ac_hi"; do
21410 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21411 cat >conftest.$ac_ext <<_ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21417 $ac_includes_default
21419 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21421 typedef struct { char x; short y; } ac__type_alignof_;
21425 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21432 rm -f conftest.$ac_objext
21433 if { (ac_try="$ac_compile"
21434 case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_compile") 2>conftest.er1
21441 grep -v '^ *+' conftest.er1 >conftest.err
21443 cat conftest.err >&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } && {
21446 test -z "$ac_c_werror_flag" ||
21447 test ! -s conftest.err
21448 } && test -s conftest.$ac_objext; then
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21454 ac_lo=`expr '(' $ac_mid ')' + 1`
21457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21460 ?*) ac_cv_alignof_short=$ac_lo;;
21461 '') if test "$ac_cv_type_short" = yes; then
21462 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21463 See \`config.log' for more details." >&5
21464 echo "$as_me: error: cannot compute alignment of short
21465 See \`config.log' for more details." >&2;}
21466 { (exit 77); exit 77; }; }
21468 ac_cv_alignof_short=0
21472 cat >conftest.$ac_ext <<_ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 $ac_includes_default
21480 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21482 typedef struct { char x; short y; } ac__type_alignof_;
21483 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21484 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21486 #include <stdlib.h>
21491 FILE *f = fopen ("conftest.val", "w");
21494 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21496 long int i = longval ();
21497 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21499 fprintf (f, "%ld\n", i);
21503 unsigned long int i = ulongval ();
21504 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21506 fprintf (f, "%lu\n", i);
21508 return ferror (f) || fclose (f) != 0;
21514 rm -f conftest$ac_exeext
21515 if { (ac_try="$ac_link"
21516 case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_link") 2>&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21525 { (case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_try") 2>&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); }; }; then
21534 ac_cv_alignof_short=`cat conftest.val`
21536 echo "$as_me: program exited with status $ac_status" >&5
21537 echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21540 ( exit $ac_status )
21541 if test "$ac_cv_type_short" = yes; then
21542 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21543 See \`config.log' for more details." >&5
21544 echo "$as_me: error: cannot compute alignment of short
21545 See \`config.log' for more details." >&2;}
21546 { (exit 77); exit 77; }; }
21548 ac_cv_alignof_short=0
21551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21555 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21556 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21560 cat >>confdefs.h <<_ACEOF
21561 #define ALIGNOF_SHORT $ac_cv_alignof_short
21565 { echo "$as_me:$LINENO: checking for int" >&5
21566 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21567 if test "${ac_cv_type_int+set}" = set; then
21568 echo $ECHO_N "(cached) $ECHO_C" >&6
21570 cat >conftest.$ac_ext <<_ACEOF
21573 cat confdefs.h >>conftest.$ac_ext
21574 cat >>conftest.$ac_ext <<_ACEOF
21575 /* end confdefs.h. */
21576 $ac_includes_default
21577 typedef int ac__type_new_;
21581 if ((ac__type_new_ *) 0)
21583 if (sizeof (ac__type_new_))
21589 rm -f conftest.$ac_objext
21590 if { (ac_try="$ac_compile"
21591 case "(($ac_try" in
21592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593 *) ac_try_echo=$ac_try;;
21595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21596 (eval "$ac_compile") 2>conftest.er1
21598 grep -v '^ *+' conftest.er1 >conftest.err
21600 cat conftest.err >&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); } && {
21603 test -z "$ac_c_werror_flag" ||
21604 test ! -s conftest.err
21605 } && test -s conftest.$ac_objext; then
21608 echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21617 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21619 # The cast to long int works around a bug in the HP C Compiler,
21620 # see AC_CHECK_SIZEOF for more information.
21621 { echo "$as_me:$LINENO: checking alignment of int" >&5
21622 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21623 if test "${ac_cv_alignof_int+set}" = set; then
21624 echo $ECHO_N "(cached) $ECHO_C" >&6
21626 if test "$cross_compiling" = yes; then
21627 # Depending upon the size, compute the lo and hi bounds.
21628 cat >conftest.$ac_ext <<_ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h. */
21634 $ac_includes_default
21636 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21638 typedef struct { char x; int y; } ac__type_alignof_;
21642 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21649 rm -f conftest.$ac_objext
21650 if { (ac_try="$ac_compile"
21651 case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_compile") 2>conftest.er1
21658 grep -v '^ *+' conftest.er1 >conftest.err
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } && {
21663 test -z "$ac_c_werror_flag" ||
21664 test ! -s conftest.err
21665 } && test -s conftest.$ac_objext; then
21668 cat >conftest.$ac_ext <<_ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 $ac_includes_default
21676 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21678 typedef struct { char x; int y; } ac__type_alignof_;
21682 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21689 rm -f conftest.$ac_objext
21690 if { (ac_try="$ac_compile"
21691 case "(($ac_try" in
21692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693 *) ac_try_echo=$ac_try;;
21695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21696 (eval "$ac_compile") 2>conftest.er1
21698 grep -v '^ *+' conftest.er1 >conftest.err
21700 cat conftest.err >&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } && {
21703 test -z "$ac_c_werror_flag" ||
21704 test ! -s conftest.err
21705 } && test -s conftest.$ac_objext; then
21706 ac_hi=$ac_mid; break
21708 echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21711 ac_lo=`expr $ac_mid + 1`
21712 if test $ac_lo -le $ac_mid; then
21716 ac_mid=`expr 2 '*' $ac_mid + 1`
21719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21722 echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21725 cat >conftest.$ac_ext <<_ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 $ac_includes_default
21733 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21735 typedef struct { char x; int y; } ac__type_alignof_;
21739 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21746 rm -f conftest.$ac_objext
21747 if { (ac_try="$ac_compile"
21748 case "(($ac_try" in
21749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750 *) ac_try_echo=$ac_try;;
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753 (eval "$ac_compile") 2>conftest.er1
21755 grep -v '^ *+' conftest.er1 >conftest.err
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } && {
21760 test -z "$ac_c_werror_flag" ||
21761 test ! -s conftest.err
21762 } && test -s conftest.$ac_objext; then
21765 cat >conftest.$ac_ext <<_ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 $ac_includes_default
21773 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21775 typedef struct { char x; int y; } ac__type_alignof_;
21779 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21786 rm -f conftest.$ac_objext
21787 if { (ac_try="$ac_compile"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_compile") 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } && {
21800 test -z "$ac_c_werror_flag" ||
21801 test ! -s conftest.err
21802 } && test -s conftest.$ac_objext; then
21803 ac_lo=$ac_mid; break
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 ac_hi=`expr '(' $ac_mid ')' - 1`
21809 if test $ac_mid -le $ac_hi; then
21813 ac_mid=`expr 2 '*' $ac_mid`
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829 # Binary search between lo and hi bounds.
21830 while test "x$ac_lo" != "x$ac_hi"; do
21831 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21832 cat >conftest.$ac_ext <<_ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h. */
21838 $ac_includes_default
21840 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21842 typedef struct { char x; int y; } ac__type_alignof_;
21846 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21853 rm -f conftest.$ac_objext
21854 if { (ac_try="$ac_compile"
21855 case "(($ac_try" in
21856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21857 *) ac_try_echo=$ac_try;;
21859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21860 (eval "$ac_compile") 2>conftest.er1
21862 grep -v '^ *+' conftest.er1 >conftest.err
21864 cat conftest.err >&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); } && {
21867 test -z "$ac_c_werror_flag" ||
21868 test ! -s conftest.err
21869 } && test -s conftest.$ac_objext; then
21872 echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21875 ac_lo=`expr '(' $ac_mid ')' + 1`
21878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 ?*) ac_cv_alignof_int=$ac_lo;;
21882 '') if test "$ac_cv_type_int" = yes; then
21883 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21884 See \`config.log' for more details." >&5
21885 echo "$as_me: error: cannot compute alignment of int
21886 See \`config.log' for more details." >&2;}
21887 { (exit 77); exit 77; }; }
21889 ac_cv_alignof_int=0
21893 cat >conftest.$ac_ext <<_ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21899 $ac_includes_default
21901 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21903 typedef struct { char x; int y; } ac__type_alignof_;
21904 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21905 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21907 #include <stdlib.h>
21912 FILE *f = fopen ("conftest.val", "w");
21915 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21917 long int i = longval ();
21918 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21920 fprintf (f, "%ld\n", i);
21924 unsigned long int i = ulongval ();
21925 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21927 fprintf (f, "%lu\n", i);
21929 return ferror (f) || fclose (f) != 0;
21935 rm -f conftest$ac_exeext
21936 if { (ac_try="$ac_link"
21937 case "(($ac_try" in
21938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21939 *) ac_try_echo=$ac_try;;
21941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21942 (eval "$ac_link") 2>&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21946 { (case "(($ac_try" in
21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948 *) ac_try_echo=$ac_try;;
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951 (eval "$ac_try") 2>&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; }; then
21955 ac_cv_alignof_int=`cat conftest.val`
21957 echo "$as_me: program exited with status $ac_status" >&5
21958 echo "$as_me: failed program was:" >&5
21959 sed 's/^/| /' conftest.$ac_ext >&5
21961 ( exit $ac_status )
21962 if test "$ac_cv_type_int" = yes; then
21963 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21964 See \`config.log' for more details." >&5
21965 echo "$as_me: error: cannot compute alignment of int
21966 See \`config.log' for more details." >&2;}
21967 { (exit 77); exit 77; }; }
21969 ac_cv_alignof_int=0
21972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21976 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
21977 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
21981 cat >>confdefs.h <<_ACEOF
21982 #define ALIGNOF_INT $ac_cv_alignof_int
21986 { echo "$as_me:$LINENO: checking for long" >&5
21987 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21988 if test "${ac_cv_type_long+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21991 cat >conftest.$ac_ext <<_ACEOF
21994 cat confdefs.h >>conftest.$ac_ext
21995 cat >>conftest.$ac_ext <<_ACEOF
21996 /* end confdefs.h. */
21997 $ac_includes_default
21998 typedef long ac__type_new_;
22002 if ((ac__type_new_ *) 0)
22004 if (sizeof (ac__type_new_))
22010 rm -f conftest.$ac_objext
22011 if { (ac_try="$ac_compile"
22012 case "(($ac_try" in
22013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014 *) ac_try_echo=$ac_try;;
22016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22017 (eval "$ac_compile") 2>conftest.er1
22019 grep -v '^ *+' conftest.er1 >conftest.err
22021 cat conftest.err >&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } && {
22024 test -z "$ac_c_werror_flag" ||
22025 test ! -s conftest.err
22026 } && test -s conftest.$ac_objext; then
22027 ac_cv_type_long=yes
22029 echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22037 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22038 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22040 # The cast to long int works around a bug in the HP C Compiler,
22041 # see AC_CHECK_SIZEOF for more information.
22042 { echo "$as_me:$LINENO: checking alignment of long" >&5
22043 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22044 if test "${ac_cv_alignof_long+set}" = set; then
22045 echo $ECHO_N "(cached) $ECHO_C" >&6
22047 if test "$cross_compiling" = yes; then
22048 # Depending upon the size, compute the lo and hi bounds.
22049 cat >conftest.$ac_ext <<_ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 $ac_includes_default
22057 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22059 typedef struct { char x; long y; } ac__type_alignof_;
22063 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074 *) ac_try_echo=$ac_try;;
22076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22077 (eval "$ac_compile") 2>conftest.er1
22079 grep -v '^ *+' conftest.er1 >conftest.err
22081 cat conftest.err >&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } && {
22084 test -z "$ac_c_werror_flag" ||
22085 test ! -s conftest.err
22086 } && test -s conftest.$ac_objext; then
22089 cat >conftest.$ac_ext <<_ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h. */
22095 $ac_includes_default
22097 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22099 typedef struct { char x; long y; } ac__type_alignof_;
22103 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22110 rm -f conftest.$ac_objext
22111 if { (ac_try="$ac_compile"
22112 case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_compile") 2>conftest.er1
22119 grep -v '^ *+' conftest.er1 >conftest.err
22121 cat conftest.err >&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); } && {
22124 test -z "$ac_c_werror_flag" ||
22125 test ! -s conftest.err
22126 } && test -s conftest.$ac_objext; then
22127 ac_hi=$ac_mid; break
22129 echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22132 ac_lo=`expr $ac_mid + 1`
22133 if test $ac_lo -le $ac_mid; then
22137 ac_mid=`expr 2 '*' $ac_mid + 1`
22140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143 echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22146 cat >conftest.$ac_ext <<_ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 $ac_includes_default
22154 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22156 typedef struct { char x; long y; } ac__type_alignof_;
22160 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22167 rm -f conftest.$ac_objext
22168 if { (ac_try="$ac_compile"
22169 case "(($ac_try" in
22170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22171 *) ac_try_echo=$ac_try;;
22173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22174 (eval "$ac_compile") 2>conftest.er1
22176 grep -v '^ *+' conftest.er1 >conftest.err
22178 cat conftest.err >&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } && {
22181 test -z "$ac_c_werror_flag" ||
22182 test ! -s conftest.err
22183 } && test -s conftest.$ac_objext; then
22186 cat >conftest.$ac_ext <<_ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h. */
22192 $ac_includes_default
22194 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22196 typedef struct { char x; long y; } ac__type_alignof_;
22200 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22207 rm -f conftest.$ac_objext
22208 if { (ac_try="$ac_compile"
22209 case "(($ac_try" in
22210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_compile") 2>conftest.er1
22216 grep -v '^ *+' conftest.er1 >conftest.err
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } && {
22221 test -z "$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22223 } && test -s conftest.$ac_objext; then
22224 ac_lo=$ac_mid; break
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229 ac_hi=`expr '(' $ac_mid ')' - 1`
22230 if test $ac_mid -le $ac_hi; then
22234 ac_mid=`expr 2 '*' $ac_mid`
22237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22240 echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250 # Binary search between lo and hi bounds.
22251 while test "x$ac_lo" != "x$ac_hi"; do
22252 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22253 cat >conftest.$ac_ext <<_ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 $ac_includes_default
22261 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22263 typedef struct { char x; long y; } ac__type_alignof_;
22267 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281 (eval "$ac_compile") 2>conftest.er1
22283 grep -v '^ *+' conftest.er1 >conftest.err
22285 cat conftest.err >&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); } && {
22288 test -z "$ac_c_werror_flag" ||
22289 test ! -s conftest.err
22290 } && test -s conftest.$ac_objext; then
22293 echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22296 ac_lo=`expr '(' $ac_mid ')' + 1`
22299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 ?*) ac_cv_alignof_long=$ac_lo;;
22303 '') if test "$ac_cv_type_long" = yes; then
22304 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22305 See \`config.log' for more details." >&5
22306 echo "$as_me: error: cannot compute alignment of long
22307 See \`config.log' for more details." >&2;}
22308 { (exit 77); exit 77; }; }
22310 ac_cv_alignof_long=0
22314 cat >conftest.$ac_ext <<_ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 $ac_includes_default
22322 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22324 typedef struct { char x; long y; } ac__type_alignof_;
22325 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22326 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22328 #include <stdlib.h>
22333 FILE *f = fopen ("conftest.val", "w");
22336 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22338 long int i = longval ();
22339 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22341 fprintf (f, "%ld\n", i);
22345 unsigned long int i = ulongval ();
22346 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22348 fprintf (f, "%lu\n", i);
22350 return ferror (f) || fclose (f) != 0;
22356 rm -f conftest$ac_exeext
22357 if { (ac_try="$ac_link"
22358 case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_link") 2>&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22367 { (case "(($ac_try" in
22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369 *) ac_try_echo=$ac_try;;
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372 (eval "$ac_try") 2>&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); }; }; then
22376 ac_cv_alignof_long=`cat conftest.val`
22378 echo "$as_me: program exited with status $ac_status" >&5
22379 echo "$as_me: failed program was:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22382 ( exit $ac_status )
22383 if test "$ac_cv_type_long" = yes; then
22384 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22385 See \`config.log' for more details." >&5
22386 echo "$as_me: error: cannot compute alignment of long
22387 See \`config.log' for more details." >&2;}
22388 { (exit 77); exit 77; }; }
22390 ac_cv_alignof_long=0
22393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22397 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22398 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22402 cat >>confdefs.h <<_ACEOF
22403 #define ALIGNOF_LONG $ac_cv_alignof_long
22407 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22408 { echo "$as_me:$LINENO: checking for long long int" >&5
22409 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22410 if test "${ac_cv_type_long_long_int+set}" = set; then
22411 echo $ECHO_N "(cached) $ECHO_C" >&6
22413 cat >conftest.$ac_ext <<_ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22419 $ac_includes_default
22420 typedef long long int ac__type_new_;
22424 if ((ac__type_new_ *) 0)
22426 if (sizeof (ac__type_new_))
22432 rm -f conftest.$ac_objext
22433 if { (ac_try="$ac_compile"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_compile") 2>conftest.er1
22441 grep -v '^ *+' conftest.er1 >conftest.err
22443 cat conftest.err >&5
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); } && {
22446 test -z "$ac_c_werror_flag" ||
22447 test ! -s conftest.err
22448 } && test -s conftest.$ac_objext; then
22449 ac_cv_type_long_long_int=yes
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22454 ac_cv_type_long_long_int=no
22457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22459 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22460 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22462 # The cast to long int works around a bug in the HP C Compiler,
22463 # see AC_CHECK_SIZEOF for more information.
22464 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22465 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22466 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22469 if test "$cross_compiling" = yes; then
22470 # Depending upon the size, compute the lo and hi bounds.
22471 cat >conftest.$ac_ext <<_ACEOF
22474 cat confdefs.h >>conftest.$ac_ext
22475 cat >>conftest.$ac_ext <<_ACEOF
22476 /* end confdefs.h. */
22477 $ac_includes_default
22479 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22481 typedef struct { char x; long long int y; } ac__type_alignof_;
22485 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22492 rm -f conftest.$ac_objext
22493 if { (ac_try="$ac_compile"
22494 case "(($ac_try" in
22495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496 *) ac_try_echo=$ac_try;;
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499 (eval "$ac_compile") 2>conftest.er1
22501 grep -v '^ *+' conftest.er1 >conftest.err
22503 cat conftest.err >&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } && {
22506 test -z "$ac_c_werror_flag" ||
22507 test ! -s conftest.err
22508 } && test -s conftest.$ac_objext; then
22511 cat >conftest.$ac_ext <<_ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h. */
22517 $ac_includes_default
22519 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22521 typedef struct { char x; long long int y; } ac__type_alignof_;
22525 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22532 rm -f conftest.$ac_objext
22533 if { (ac_try="$ac_compile"
22534 case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_compile") 2>conftest.er1
22541 grep -v '^ *+' conftest.er1 >conftest.err
22543 cat conftest.err >&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } && {
22546 test -z "$ac_c_werror_flag" ||
22547 test ! -s conftest.err
22548 } && test -s conftest.$ac_objext; then
22549 ac_hi=$ac_mid; break
22551 echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22554 ac_lo=`expr $ac_mid + 1`
22555 if test $ac_lo -le $ac_mid; then
22559 ac_mid=`expr 2 '*' $ac_mid + 1`
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22568 cat >conftest.$ac_ext <<_ACEOF
22571 cat confdefs.h >>conftest.$ac_ext
22572 cat >>conftest.$ac_ext <<_ACEOF
22573 /* end confdefs.h. */
22574 $ac_includes_default
22576 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22578 typedef struct { char x; long long int y; } ac__type_alignof_;
22582 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22589 rm -f conftest.$ac_objext
22590 if { (ac_try="$ac_compile"
22591 case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_compile") 2>conftest.er1
22598 grep -v '^ *+' conftest.er1 >conftest.err
22600 cat conftest.err >&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && {
22603 test -z "$ac_c_werror_flag" ||
22604 test ! -s conftest.err
22605 } && test -s conftest.$ac_objext; then
22608 cat >conftest.$ac_ext <<_ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h. */
22614 $ac_includes_default
22616 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22618 typedef struct { char x; long long int y; } ac__type_alignof_;
22622 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22629 rm -f conftest.$ac_objext
22630 if { (ac_try="$ac_compile"
22631 case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636 (eval "$ac_compile") 2>conftest.er1
22638 grep -v '^ *+' conftest.er1 >conftest.err
22640 cat conftest.err >&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } && {
22643 test -z "$ac_c_werror_flag" ||
22644 test ! -s conftest.err
22645 } && test -s conftest.$ac_objext; then
22646 ac_lo=$ac_mid; break
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22651 ac_hi=`expr '(' $ac_mid ')' - 1`
22652 if test $ac_mid -le $ac_hi; then
22656 ac_mid=`expr 2 '*' $ac_mid`
22659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22662 echo "$as_me: failed program was:" >&5
22663 sed 's/^/| /' conftest.$ac_ext >&5
22668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22672 # Binary search between lo and hi bounds.
22673 while test "x$ac_lo" != "x$ac_hi"; do
22674 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22675 cat >conftest.$ac_ext <<_ACEOF
22678 cat confdefs.h >>conftest.$ac_ext
22679 cat >>conftest.$ac_ext <<_ACEOF
22680 /* end confdefs.h. */
22681 $ac_includes_default
22683 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22685 typedef struct { char x; long long int y; } ac__type_alignof_;
22689 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22696 rm -f conftest.$ac_objext
22697 if { (ac_try="$ac_compile"
22698 case "(($ac_try" in
22699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700 *) ac_try_echo=$ac_try;;
22702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703 (eval "$ac_compile") 2>conftest.er1
22705 grep -v '^ *+' conftest.er1 >conftest.err
22707 cat conftest.err >&5
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } && {
22710 test -z "$ac_c_werror_flag" ||
22711 test ! -s conftest.err
22712 } && test -s conftest.$ac_objext; then
22715 echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22718 ac_lo=`expr '(' $ac_mid ')' + 1`
22721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22725 '') if test "$ac_cv_type_long_long_int" = yes; then
22726 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22727 See \`config.log' for more details." >&5
22728 echo "$as_me: error: cannot compute alignment of long long int
22729 See \`config.log' for more details." >&2;}
22730 { (exit 77); exit 77; }; }
22732 ac_cv_alignof_long_long_int=0
22736 cat >conftest.$ac_ext <<_ACEOF
22739 cat confdefs.h >>conftest.$ac_ext
22740 cat >>conftest.$ac_ext <<_ACEOF
22741 /* end confdefs.h. */
22742 $ac_includes_default
22744 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22746 typedef struct { char x; long long int y; } ac__type_alignof_;
22747 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22748 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22750 #include <stdlib.h>
22755 FILE *f = fopen ("conftest.val", "w");
22758 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22760 long int i = longval ();
22761 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22763 fprintf (f, "%ld\n", i);
22767 unsigned long int i = ulongval ();
22768 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22770 fprintf (f, "%lu\n", i);
22772 return ferror (f) || fclose (f) != 0;
22778 rm -f conftest$ac_exeext
22779 if { (ac_try="$ac_link"
22780 case "(($ac_try" in
22781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22782 *) ac_try_echo=$ac_try;;
22784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22785 (eval "$ac_link") 2>&5
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22789 { (case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_try") 2>&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
22798 ac_cv_alignof_long_long_int=`cat conftest.val`
22800 echo "$as_me: program exited with status $ac_status" >&5
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22804 ( exit $ac_status )
22805 if test "$ac_cv_type_long_long_int" = yes; then
22806 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22807 See \`config.log' for more details." >&5
22808 echo "$as_me: error: cannot compute alignment of long long int
22809 See \`config.log' for more details." >&2;}
22810 { (exit 77); exit 77; }; }
22812 ac_cv_alignof_long_long_int=0
22815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22819 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
22820 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
22824 cat >>confdefs.h <<_ACEOF
22825 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
22830 { echo "$as_me:$LINENO: checking for double" >&5
22831 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
22832 if test "${ac_cv_type_double+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22835 cat >conftest.$ac_ext <<_ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h. */
22841 $ac_includes_default
22842 typedef double ac__type_new_;
22846 if ((ac__type_new_ *) 0)
22848 if (sizeof (ac__type_new_))
22854 rm -f conftest.$ac_objext
22855 if { (ac_try="$ac_compile"
22856 case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_compile") 2>conftest.er1
22863 grep -v '^ *+' conftest.er1 >conftest.err
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } && {
22868 test -z "$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 } && test -s conftest.$ac_objext; then
22871 ac_cv_type_double=yes
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22876 ac_cv_type_double=no
22879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22881 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22882 echo "${ECHO_T}$ac_cv_type_double" >&6; }
22884 # The cast to long int works around a bug in the HP C Compiler,
22885 # see AC_CHECK_SIZEOF for more information.
22886 { echo "$as_me:$LINENO: checking alignment of double" >&5
22887 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
22888 if test "${ac_cv_alignof_double+set}" = set; then
22889 echo $ECHO_N "(cached) $ECHO_C" >&6
22891 if test "$cross_compiling" = yes; then
22892 # Depending upon the size, compute the lo and hi bounds.
22893 cat >conftest.$ac_ext <<_ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 $ac_includes_default
22901 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22903 typedef struct { char x; double y; } ac__type_alignof_;
22907 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22914 rm -f conftest.$ac_objext
22915 if { (ac_try="$ac_compile"
22916 case "(($ac_try" in
22917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918 *) ac_try_echo=$ac_try;;
22920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22921 (eval "$ac_compile") 2>conftest.er1
22923 grep -v '^ *+' conftest.er1 >conftest.err
22925 cat conftest.err >&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); } && {
22928 test -z "$ac_c_werror_flag" ||
22929 test ! -s conftest.err
22930 } && test -s conftest.$ac_objext; then
22933 cat >conftest.$ac_ext <<_ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h. */
22939 $ac_includes_default
22941 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22943 typedef struct { char x; double y; } ac__type_alignof_;
22947 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22954 rm -f conftest.$ac_objext
22955 if { (ac_try="$ac_compile"
22956 case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961 (eval "$ac_compile") 2>conftest.er1
22963 grep -v '^ *+' conftest.er1 >conftest.err
22965 cat conftest.err >&5
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); } && {
22968 test -z "$ac_c_werror_flag" ||
22969 test ! -s conftest.err
22970 } && test -s conftest.$ac_objext; then
22971 ac_hi=$ac_mid; break
22973 echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22976 ac_lo=`expr $ac_mid + 1`
22977 if test $ac_lo -le $ac_mid; then
22981 ac_mid=`expr 2 '*' $ac_mid + 1`
22984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22987 echo "$as_me: failed program was:" >&5
22988 sed 's/^/| /' conftest.$ac_ext >&5
22990 cat >conftest.$ac_ext <<_ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22996 $ac_includes_default
22998 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23000 typedef struct { char x; double y; } ac__type_alignof_;
23004 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23011 rm -f conftest.$ac_objext
23012 if { (ac_try="$ac_compile"
23013 case "(($ac_try" in
23014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23015 *) ac_try_echo=$ac_try;;
23017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23018 (eval "$ac_compile") 2>conftest.er1
23020 grep -v '^ *+' conftest.er1 >conftest.err
23022 cat conftest.err >&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } && {
23025 test -z "$ac_c_werror_flag" ||
23026 test ! -s conftest.err
23027 } && test -s conftest.$ac_objext; then
23030 cat >conftest.$ac_ext <<_ACEOF
23033 cat confdefs.h >>conftest.$ac_ext
23034 cat >>conftest.$ac_ext <<_ACEOF
23035 /* end confdefs.h. */
23036 $ac_includes_default
23038 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23040 typedef struct { char x; double y; } ac__type_alignof_;
23044 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23051 rm -f conftest.$ac_objext
23052 if { (ac_try="$ac_compile"
23053 case "(($ac_try" in
23054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058 (eval "$ac_compile") 2>conftest.er1
23060 grep -v '^ *+' conftest.er1 >conftest.err
23062 cat conftest.err >&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } && {
23065 test -z "$ac_c_werror_flag" ||
23066 test ! -s conftest.err
23067 } && test -s conftest.$ac_objext; then
23068 ac_lo=$ac_mid; break
23070 echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23073 ac_hi=`expr '(' $ac_mid ')' - 1`
23074 if test $ac_mid -le $ac_hi; then
23078 ac_mid=`expr 2 '*' $ac_mid`
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084 echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23094 # Binary search between lo and hi bounds.
23095 while test "x$ac_lo" != "x$ac_hi"; do
23096 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23097 cat >conftest.$ac_ext <<_ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23103 $ac_includes_default
23105 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23107 typedef struct { char x; double y; } ac__type_alignof_;
23111 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23118 rm -f conftest.$ac_objext
23119 if { (ac_try="$ac_compile"
23120 case "(($ac_try" in
23121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122 *) ac_try_echo=$ac_try;;
23124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23125 (eval "$ac_compile") 2>conftest.er1
23127 grep -v '^ *+' conftest.er1 >conftest.err
23129 cat conftest.err >&5
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } && {
23132 test -z "$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 } && test -s conftest.$ac_objext; then
23137 echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23140 ac_lo=`expr '(' $ac_mid ')' + 1`
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146 ?*) ac_cv_alignof_double=$ac_lo;;
23147 '') if test "$ac_cv_type_double" = yes; then
23148 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23149 See \`config.log' for more details." >&5
23150 echo "$as_me: error: cannot compute alignment of double
23151 See \`config.log' for more details." >&2;}
23152 { (exit 77); exit 77; }; }
23154 ac_cv_alignof_double=0
23158 cat >conftest.$ac_ext <<_ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h. */
23164 $ac_includes_default
23166 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23168 typedef struct { char x; double y; } ac__type_alignof_;
23169 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23170 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23172 #include <stdlib.h>
23177 FILE *f = fopen ("conftest.val", "w");
23180 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23182 long int i = longval ();
23183 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23185 fprintf (f, "%ld\n", i);
23189 unsigned long int i = ulongval ();
23190 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23192 fprintf (f, "%lu\n", i);
23194 return ferror (f) || fclose (f) != 0;
23200 rm -f conftest$ac_exeext
23201 if { (ac_try="$ac_link"
23202 case "(($ac_try" in
23203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_link") 2>&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23211 { (case "(($ac_try" in
23212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213 *) ac_try_echo=$ac_try;;
23215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23216 (eval "$ac_try") 2>&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); }; }; then
23220 ac_cv_alignof_double=`cat conftest.val`
23222 echo "$as_me: program exited with status $ac_status" >&5
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 ( exit $ac_status )
23227 if test "$ac_cv_type_double" = yes; then
23228 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23229 See \`config.log' for more details." >&5
23230 echo "$as_me: error: cannot compute alignment of double
23231 See \`config.log' for more details." >&2;}
23232 { (exit 77); exit 77; }; }
23234 ac_cv_alignof_double=0
23237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23241 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23242 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23246 cat >>confdefs.h <<_ACEOF
23247 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23252 # Compute maximum alignment of any basic type.
23253 # We assume long's alignment is at least as strong as char, short, or int;
23254 # but we must check long long (if it exists) and double.
23256 MAX_ALIGNOF=$ac_cv_alignof_long
23257 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23258 MAX_ALIGNOF=$ac_cv_alignof_double
23260 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23261 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23264 cat >>confdefs.h <<_ACEOF
23265 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23270 # Some platforms predefine the types int8, int16, etc. Only check
23271 # a (hopefully) representative subset.
23272 { echo "$as_me:$LINENO: checking for int8" >&5
23273 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23274 if test "${ac_cv_type_int8+set}" = set; then
23275 echo $ECHO_N "(cached) $ECHO_C" >&6
23277 cat >conftest.$ac_ext <<_ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h. */
23284 #ifdef HAVE_SUPPORTDEFS_H
23285 #include <SupportDefs.h>
23288 typedef int8 ac__type_new_;
23292 if ((ac__type_new_ *) 0)
23294 if (sizeof (ac__type_new_))
23300 rm -f conftest.$ac_objext
23301 if { (ac_try="$ac_compile"
23302 case "(($ac_try" in
23303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23304 *) ac_try_echo=$ac_try;;
23306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23307 (eval "$ac_compile") 2>conftest.er1
23309 grep -v '^ *+' conftest.er1 >conftest.err
23311 cat conftest.err >&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } && {
23314 test -z "$ac_c_werror_flag" ||
23315 test ! -s conftest.err
23316 } && test -s conftest.$ac_objext; then
23317 ac_cv_type_int8=yes
23319 echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23327 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23328 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23329 if test $ac_cv_type_int8 = yes; then
23331 cat >>confdefs.h <<_ACEOF
23332 #define HAVE_INT8 1
23337 { echo "$as_me:$LINENO: checking for uint8" >&5
23338 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23339 if test "${ac_cv_type_uint8+set}" = set; then
23340 echo $ECHO_N "(cached) $ECHO_C" >&6
23342 cat >conftest.$ac_ext <<_ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h. */
23349 #ifdef HAVE_SUPPORTDEFS_H
23350 #include <SupportDefs.h>
23353 typedef uint8 ac__type_new_;
23357 if ((ac__type_new_ *) 0)
23359 if (sizeof (ac__type_new_))
23365 rm -f conftest.$ac_objext
23366 if { (ac_try="$ac_compile"
23367 case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_compile") 2>conftest.er1
23374 grep -v '^ *+' conftest.er1 >conftest.err
23376 cat conftest.err >&5
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); } && {
23379 test -z "$ac_c_werror_flag" ||
23380 test ! -s conftest.err
23381 } && test -s conftest.$ac_objext; then
23382 ac_cv_type_uint8=yes
23384 echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23387 ac_cv_type_uint8=no
23390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23393 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23394 if test $ac_cv_type_uint8 = yes; then
23396 cat >>confdefs.h <<_ACEOF
23397 #define HAVE_UINT8 1
23402 { echo "$as_me:$LINENO: checking for int64" >&5
23403 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
23404 if test "${ac_cv_type_int64+set}" = set; then
23405 echo $ECHO_N "(cached) $ECHO_C" >&6
23407 cat >conftest.$ac_ext <<_ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h. */
23414 #ifdef HAVE_SUPPORTDEFS_H
23415 #include <SupportDefs.h>
23418 typedef int64 ac__type_new_;
23422 if ((ac__type_new_ *) 0)
23424 if (sizeof (ac__type_new_))
23430 rm -f conftest.$ac_objext
23431 if { (ac_try="$ac_compile"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_compile") 2>conftest.er1
23439 grep -v '^ *+' conftest.er1 >conftest.err
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } && {
23444 test -z "$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 } && test -s conftest.$ac_objext; then
23447 ac_cv_type_int64=yes
23449 echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23452 ac_cv_type_int64=no
23455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23457 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23458 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23459 if test $ac_cv_type_int64 = yes; then
23461 cat >>confdefs.h <<_ACEOF
23462 #define HAVE_INT64 1
23467 { echo "$as_me:$LINENO: checking for uint64" >&5
23468 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
23469 if test "${ac_cv_type_uint64+set}" = set; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23472 cat >conftest.$ac_ext <<_ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23479 #ifdef HAVE_SUPPORTDEFS_H
23480 #include <SupportDefs.h>
23483 typedef uint64 ac__type_new_;
23487 if ((ac__type_new_ *) 0)
23489 if (sizeof (ac__type_new_))
23495 rm -f conftest.$ac_objext
23496 if { (ac_try="$ac_compile"
23497 case "(($ac_try" in
23498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499 *) ac_try_echo=$ac_try;;
23501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23502 (eval "$ac_compile") 2>conftest.er1
23504 grep -v '^ *+' conftest.er1 >conftest.err
23506 cat conftest.err >&5
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); } && {
23509 test -z "$ac_c_werror_flag" ||
23510 test ! -s conftest.err
23511 } && test -s conftest.$ac_objext; then
23512 ac_cv_type_uint64=yes
23514 echo "$as_me: failed program was:" >&5
23515 sed 's/^/| /' conftest.$ac_ext >&5
23517 ac_cv_type_uint64=no
23520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23523 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23524 if test $ac_cv_type_uint64 = yes; then
23526 cat >>confdefs.h <<_ACEOF
23527 #define HAVE_UINT64 1
23534 # We also check for sig_atomic_t, which *should* be defined per ANSI
23535 # C, but is missing on some old platforms.
23536 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23537 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23538 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23539 echo $ECHO_N "(cached) $ECHO_C" >&6
23541 cat >conftest.$ac_ext <<_ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h. */
23547 #include <signal.h>
23549 typedef sig_atomic_t ac__type_new_;
23553 if ((ac__type_new_ *) 0)
23555 if (sizeof (ac__type_new_))
23561 rm -f conftest.$ac_objext
23562 if { (ac_try="$ac_compile"
23563 case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568 (eval "$ac_compile") 2>conftest.er1
23570 grep -v '^ *+' conftest.er1 >conftest.err
23572 cat conftest.err >&5
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); } && {
23575 test -z "$ac_c_werror_flag" ||
23576 test ! -s conftest.err
23577 } && test -s conftest.$ac_objext; then
23578 ac_cv_type_sig_atomic_t=yes
23580 echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23583 ac_cv_type_sig_atomic_t=no
23586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23588 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23589 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23590 if test $ac_cv_type_sig_atomic_t = yes; then
23592 cat >>confdefs.h <<_ACEOF
23593 #define HAVE_SIG_ATOMIC_T 1
23601 # If the user did not disable integer datetimes, check that
23602 # there is a working 64-bit integral type to use.
23603 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23604 test x"$HAVE_LONG_INT_64" = x"no" &&
23605 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
23606 test x"$HAVE_INT64" = x"no" ; then
23607 { { echo "$as_me:$LINENO: error:
23608 Integer-based datetime support requires a 64-bit integer type,
23609 but no such type could be found. The --disable-integer-datetimes
23610 configure option can be used to disable integer-based storage
23611 of datetime values." >&5
23612 echo "$as_me: error:
23613 Integer-based datetime support requires a 64-bit integer type,
23614 but no such type could be found. The --disable-integer-datetimes
23615 configure option can be used to disable integer-based storage
23616 of datetime values." >&2;}
23617 { (exit 1); exit 1; }; }
23621 if test "$PORTNAME" != "win32"
23623 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23624 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23625 if test "${pgac_cv_func_posix_signals+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
23628 cat >conftest.$ac_ext <<_ACEOF
23631 cat confdefs.h >>conftest.$ac_ext
23632 cat >>conftest.$ac_ext <<_ACEOF
23633 /* end confdefs.h. */
23634 #include <signal.h>
23639 struct sigaction act, oact;
23640 sigemptyset(&act.sa_mask);
23641 act.sa_flags = SA_RESTART;
23642 sigaction(0, &act, &oact);
23647 rm -f conftest.$ac_objext conftest$ac_exeext
23648 if { (ac_try="$ac_link"
23649 case "(($ac_try" in
23650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651 *) ac_try_echo=$ac_try;;
23653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23654 (eval "$ac_link") 2>conftest.er1
23656 grep -v '^ *+' conftest.er1 >conftest.err
23658 cat conftest.err >&5
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); } && {
23661 test -z "$ac_c_werror_flag" ||
23662 test ! -s conftest.err
23663 } && test -s conftest$ac_exeext &&
23664 $as_test_x conftest$ac_exeext; then
23665 pgac_cv_func_posix_signals=yes
23667 echo "$as_me: failed program was:" >&5
23668 sed 's/^/| /' conftest.$ac_ext >&5
23670 pgac_cv_func_posix_signals=no
23673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23674 conftest$ac_exeext conftest.$ac_ext
23676 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23677 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23678 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23680 cat >>confdefs.h <<\_ACEOF
23681 #define HAVE_POSIX_SIGNALS
23685 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23687 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23688 { { echo "$as_me:$LINENO: error:
23689 Thread-safety requires POSIX signals, which are not supported by this
23690 operating system." >&5
23691 echo "$as_me: error:
23692 Thread-safety requires POSIX signals, which are not supported by this
23693 operating system." >&2;}
23694 { (exit 1); exit 1; }; }
23698 if test $ac_cv_func_fseeko = yes; then
23699 # Check whether --enable-largefile was given.
23700 if test "${enable_largefile+set}" = set; then
23701 enableval=$enable_largefile;
23704 if test "$enable_largefile" != no; then
23706 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23707 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23708 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23709 echo $ECHO_N "(cached) $ECHO_C" >&6
23711 ac_cv_sys_largefile_CC=no
23712 if test "$GCC" != yes; then
23715 # IRIX 6.2 and later do not support large files by default,
23716 # so use the C compiler's -n32 option if that helps.
23717 cat >conftest.$ac_ext <<_ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23723 #include <sys/types.h>
23724 /* Check that off_t can represent 2**63 - 1 correctly.
23725 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23726 since some C++ compilers masquerading as C compilers
23727 incorrectly reject 9223372036854775807. */
23728 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23730 && LARGE_OFF_T % 2147483647 == 1)
23740 rm -f conftest.$ac_objext
23741 if { (ac_try="$ac_compile"
23742 case "(($ac_try" in
23743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744 *) ac_try_echo=$ac_try;;
23746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23747 (eval "$ac_compile") 2>conftest.er1
23749 grep -v '^ *+' conftest.er1 >conftest.err
23751 cat conftest.err >&5
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); } && {
23754 test -z "$ac_c_werror_flag" ||
23755 test ! -s conftest.err
23756 } && test -s conftest.$ac_objext; then
23759 echo "$as_me: failed program was:" >&5
23760 sed 's/^/| /' conftest.$ac_ext >&5
23765 rm -f core conftest.err conftest.$ac_objext
23767 rm -f conftest.$ac_objext
23768 if { (ac_try="$ac_compile"
23769 case "(($ac_try" in
23770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23771 *) ac_try_echo=$ac_try;;
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774 (eval "$ac_compile") 2>conftest.er1
23776 grep -v '^ *+' conftest.er1 >conftest.err
23778 cat conftest.err >&5
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); } && {
23781 test -z "$ac_c_werror_flag" ||
23782 test ! -s conftest.err
23783 } && test -s conftest.$ac_objext; then
23784 ac_cv_sys_largefile_CC=' -n32'; break
23786 echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23792 rm -f core conftest.err conftest.$ac_objext
23796 rm -f conftest.$ac_ext
23799 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23800 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
23801 if test "$ac_cv_sys_largefile_CC" != no; then
23802 CC=$CC$ac_cv_sys_largefile_CC
23805 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23806 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23807 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23808 echo $ECHO_N "(cached) $ECHO_C" >&6
23811 cat >conftest.$ac_ext <<_ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h. */
23817 #include <sys/types.h>
23818 /* Check that off_t can represent 2**63 - 1 correctly.
23819 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23820 since some C++ compilers masquerading as C compilers
23821 incorrectly reject 9223372036854775807. */
23822 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23824 && LARGE_OFF_T % 2147483647 == 1)
23834 rm -f conftest.$ac_objext
23835 if { (ac_try="$ac_compile"
23836 case "(($ac_try" in
23837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841 (eval "$ac_compile") 2>conftest.er1
23843 grep -v '^ *+' conftest.er1 >conftest.err
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } && {
23848 test -z "$ac_c_werror_flag" ||
23849 test ! -s conftest.err
23850 } && test -s conftest.$ac_objext; then
23851 ac_cv_sys_file_offset_bits=no; break
23853 echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23860 cat >conftest.$ac_ext <<_ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h. */
23866 #define _FILE_OFFSET_BITS 64
23867 #include <sys/types.h>
23868 /* Check that off_t can represent 2**63 - 1 correctly.
23869 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23870 since some C++ compilers masquerading as C compilers
23871 incorrectly reject 9223372036854775807. */
23872 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23874 && LARGE_OFF_T % 2147483647 == 1)
23884 rm -f conftest.$ac_objext
23885 if { (ac_try="$ac_compile"
23886 case "(($ac_try" in
23887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888 *) ac_try_echo=$ac_try;;
23890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891 (eval "$ac_compile") 2>conftest.er1
23893 grep -v '^ *+' conftest.er1 >conftest.err
23895 cat conftest.err >&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } && {
23898 test -z "$ac_c_werror_flag" ||
23899 test ! -s conftest.err
23900 } && test -s conftest.$ac_objext; then
23901 ac_cv_sys_file_offset_bits=64; break
23903 echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23910 ac_cv_sys_file_offset_bits=unknown
23914 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23915 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23916 case $ac_cv_sys_file_offset_bits in #(
23919 cat >>confdefs.h <<_ACEOF
23920 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23925 if test $ac_cv_sys_file_offset_bits = unknown; then
23926 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23927 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23928 if test "${ac_cv_sys_large_files+set}" = set; then
23929 echo $ECHO_N "(cached) $ECHO_C" >&6
23932 cat >conftest.$ac_ext <<_ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h. */
23938 #include <sys/types.h>
23939 /* Check that off_t can represent 2**63 - 1 correctly.
23940 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23941 since some C++ compilers masquerading as C compilers
23942 incorrectly reject 9223372036854775807. */
23943 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23944 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23945 && LARGE_OFF_T % 2147483647 == 1)
23955 rm -f conftest.$ac_objext
23956 if { (ac_try="$ac_compile"
23957 case "(($ac_try" in
23958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23959 *) ac_try_echo=$ac_try;;
23961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23962 (eval "$ac_compile") 2>conftest.er1
23964 grep -v '^ *+' conftest.er1 >conftest.err
23966 cat conftest.err >&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } && {
23969 test -z "$ac_c_werror_flag" ||
23970 test ! -s conftest.err
23971 } && test -s conftest.$ac_objext; then
23972 ac_cv_sys_large_files=no; break
23974 echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.$ac_ext >&5
23980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23981 cat >conftest.$ac_ext <<_ACEOF
23984 cat confdefs.h >>conftest.$ac_ext
23985 cat >>conftest.$ac_ext <<_ACEOF
23986 /* end confdefs.h. */
23987 #define _LARGE_FILES 1
23988 #include <sys/types.h>
23989 /* Check that off_t can represent 2**63 - 1 correctly.
23990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23991 since some C++ compilers masquerading as C compilers
23992 incorrectly reject 9223372036854775807. */
23993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23995 && LARGE_OFF_T % 2147483647 == 1)
24005 rm -f conftest.$ac_objext
24006 if { (ac_try="$ac_compile"
24007 case "(($ac_try" in
24008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24009 *) ac_try_echo=$ac_try;;
24011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24012 (eval "$ac_compile") 2>conftest.er1
24014 grep -v '^ *+' conftest.er1 >conftest.err
24016 cat conftest.err >&5
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); } && {
24019 test -z "$ac_c_werror_flag" ||
24020 test ! -s conftest.err
24021 } && test -s conftest.$ac_objext; then
24022 ac_cv_sys_large_files=1; break
24024 echo "$as_me: failed program was:" >&5
24025 sed 's/^/| /' conftest.$ac_ext >&5
24030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24031 ac_cv_sys_large_files=unknown
24035 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24036 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24037 case $ac_cv_sys_large_files in #(
24040 cat >>confdefs.h <<_ACEOF
24041 #define _LARGE_FILES $ac_cv_sys_large_files
24051 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24052 { echo "$as_me:$LINENO: checking for off_t" >&5
24053 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24054 if test "${ac_cv_type_off_t+set}" = set; then
24055 echo $ECHO_N "(cached) $ECHO_C" >&6
24057 cat >conftest.$ac_ext <<_ACEOF
24060 cat confdefs.h >>conftest.$ac_ext
24061 cat >>conftest.$ac_ext <<_ACEOF
24062 /* end confdefs.h. */
24063 $ac_includes_default
24064 typedef off_t ac__type_new_;
24068 if ((ac__type_new_ *) 0)
24070 if (sizeof (ac__type_new_))
24076 rm -f conftest.$ac_objext
24077 if { (ac_try="$ac_compile"
24078 case "(($ac_try" in
24079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24080 *) ac_try_echo=$ac_try;;
24082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24083 (eval "$ac_compile") 2>conftest.er1
24085 grep -v '^ *+' conftest.er1 >conftest.err
24087 cat conftest.err >&5
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); } && {
24090 test -z "$ac_c_werror_flag" ||
24091 test ! -s conftest.err
24092 } && test -s conftest.$ac_objext; then
24093 ac_cv_type_off_t=yes
24095 echo "$as_me: failed program was:" >&5
24096 sed 's/^/| /' conftest.$ac_ext >&5
24098 ac_cv_type_off_t=no
24101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24103 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24104 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24106 # The cast to long int works around a bug in the HP C Compiler
24107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24109 # This bug is HP SR number 8606223364.
24110 { echo "$as_me:$LINENO: checking size of off_t" >&5
24111 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24112 if test "${ac_cv_sizeof_off_t+set}" = set; then
24113 echo $ECHO_N "(cached) $ECHO_C" >&6
24115 if test "$cross_compiling" = yes; then
24116 # Depending upon the size, compute the lo and hi bounds.
24117 cat >conftest.$ac_ext <<_ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h. */
24123 $ac_includes_default
24124 typedef off_t ac__type_sizeof_;
24128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24135 rm -f conftest.$ac_objext
24136 if { (ac_try="$ac_compile"
24137 case "(($ac_try" in
24138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139 *) ac_try_echo=$ac_try;;
24141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24142 (eval "$ac_compile") 2>conftest.er1
24144 grep -v '^ *+' conftest.er1 >conftest.err
24146 cat conftest.err >&5
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); } && {
24149 test -z "$ac_c_werror_flag" ||
24150 test ! -s conftest.err
24151 } && test -s conftest.$ac_objext; then
24154 cat >conftest.$ac_ext <<_ACEOF
24157 cat confdefs.h >>conftest.$ac_ext
24158 cat >>conftest.$ac_ext <<_ACEOF
24159 /* end confdefs.h. */
24160 $ac_includes_default
24161 typedef off_t ac__type_sizeof_;
24165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24172 rm -f conftest.$ac_objext
24173 if { (ac_try="$ac_compile"
24174 case "(($ac_try" in
24175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176 *) ac_try_echo=$ac_try;;
24178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24179 (eval "$ac_compile") 2>conftest.er1
24181 grep -v '^ *+' conftest.er1 >conftest.err
24183 cat conftest.err >&5
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); } && {
24186 test -z "$ac_c_werror_flag" ||
24187 test ! -s conftest.err
24188 } && test -s conftest.$ac_objext; then
24189 ac_hi=$ac_mid; break
24191 echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.$ac_ext >&5
24194 ac_lo=`expr $ac_mid + 1`
24195 if test $ac_lo -le $ac_mid; then
24199 ac_mid=`expr 2 '*' $ac_mid + 1`
24202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24205 echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24208 cat >conftest.$ac_ext <<_ACEOF
24211 cat confdefs.h >>conftest.$ac_ext
24212 cat >>conftest.$ac_ext <<_ACEOF
24213 /* end confdefs.h. */
24214 $ac_includes_default
24215 typedef off_t ac__type_sizeof_;
24219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24226 rm -f conftest.$ac_objext
24227 if { (ac_try="$ac_compile"
24228 case "(($ac_try" in
24229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24230 *) ac_try_echo=$ac_try;;
24232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24233 (eval "$ac_compile") 2>conftest.er1
24235 grep -v '^ *+' conftest.er1 >conftest.err
24237 cat conftest.err >&5
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); } && {
24240 test -z "$ac_c_werror_flag" ||
24241 test ! -s conftest.err
24242 } && test -s conftest.$ac_objext; then
24245 cat >conftest.$ac_ext <<_ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h. */
24251 $ac_includes_default
24252 typedef off_t ac__type_sizeof_;
24256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24263 rm -f conftest.$ac_objext
24264 if { (ac_try="$ac_compile"
24265 case "(($ac_try" in
24266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267 *) ac_try_echo=$ac_try;;
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270 (eval "$ac_compile") 2>conftest.er1
24272 grep -v '^ *+' conftest.er1 >conftest.err
24274 cat conftest.err >&5
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); } && {
24277 test -z "$ac_c_werror_flag" ||
24278 test ! -s conftest.err
24279 } && test -s conftest.$ac_objext; then
24280 ac_lo=$ac_mid; break
24282 echo "$as_me: failed program was:" >&5
24283 sed 's/^/| /' conftest.$ac_ext >&5
24285 ac_hi=`expr '(' $ac_mid ')' - 1`
24286 if test $ac_mid -le $ac_hi; then
24290 ac_mid=`expr 2 '*' $ac_mid`
24293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24296 echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24306 # Binary search between lo and hi bounds.
24307 while test "x$ac_lo" != "x$ac_hi"; do
24308 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24309 cat >conftest.$ac_ext <<_ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h. */
24315 $ac_includes_default
24316 typedef off_t ac__type_sizeof_;
24320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24327 rm -f conftest.$ac_objext
24328 if { (ac_try="$ac_compile"
24329 case "(($ac_try" in
24330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331 *) ac_try_echo=$ac_try;;
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334 (eval "$ac_compile") 2>conftest.er1
24336 grep -v '^ *+' conftest.er1 >conftest.err
24338 cat conftest.err >&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); } && {
24341 test -z "$ac_c_werror_flag" ||
24342 test ! -s conftest.err
24343 } && test -s conftest.$ac_objext; then
24346 echo "$as_me: failed program was:" >&5
24347 sed 's/^/| /' conftest.$ac_ext >&5
24349 ac_lo=`expr '(' $ac_mid ')' + 1`
24352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24355 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24356 '') if test "$ac_cv_type_off_t" = yes; then
24357 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24358 See \`config.log' for more details." >&5
24359 echo "$as_me: error: cannot compute sizeof (off_t)
24360 See \`config.log' for more details." >&2;}
24361 { (exit 77); exit 77; }; }
24363 ac_cv_sizeof_off_t=0
24367 cat >conftest.$ac_ext <<_ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h. */
24373 $ac_includes_default
24374 typedef off_t ac__type_sizeof_;
24375 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24376 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24378 #include <stdlib.h>
24383 FILE *f = fopen ("conftest.val", "w");
24386 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24388 long int i = longval ();
24389 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24391 fprintf (f, "%ld\n", i);
24395 unsigned long int i = ulongval ();
24396 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24398 fprintf (f, "%lu\n", i);
24400 return ferror (f) || fclose (f) != 0;
24406 rm -f conftest$ac_exeext
24407 if { (ac_try="$ac_link"
24408 case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_link") 2>&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24417 { (case "(($ac_try" in
24418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419 *) ac_try_echo=$ac_try;;
24421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24422 (eval "$ac_try") 2>&5
24424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425 (exit $ac_status); }; }; then
24426 ac_cv_sizeof_off_t=`cat conftest.val`
24428 echo "$as_me: program exited with status $ac_status" >&5
24429 echo "$as_me: failed program was:" >&5
24430 sed 's/^/| /' conftest.$ac_ext >&5
24432 ( exit $ac_status )
24433 if test "$ac_cv_type_off_t" = yes; then
24434 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24435 See \`config.log' for more details." >&5
24436 echo "$as_me: error: cannot compute sizeof (off_t)
24437 See \`config.log' for more details." >&2;}
24438 { (exit 77); exit 77; }; }
24440 ac_cv_sizeof_off_t=0
24443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24447 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24448 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24452 cat >>confdefs.h <<_ACEOF
24453 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24458 # If we don't have largefile support, can't handle segsize >= 2GB.
24459 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24460 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24461 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24462 { (exit 1); exit 1; }; }
24465 # SunOS doesn't handle negative byte comparisons properly with +/- return
24466 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24467 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24468 if test "${ac_cv_func_memcmp_working+set}" = set; then
24469 echo $ECHO_N "(cached) $ECHO_C" >&6
24471 if test "$cross_compiling" = yes; then
24472 ac_cv_func_memcmp_working=no
24474 cat >conftest.$ac_ext <<_ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h. */
24480 $ac_includes_default
24485 /* Some versions of memcmp are not 8-bit clean. */
24486 char c0 = '\100', c1 = '\200', c2 = '\201';
24487 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24490 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24491 or more and with at least one buffer not starting on a 4-byte boundary.
24492 William Lewis provided this test program. */
24497 for (i = 0; i < 4; i++)
24501 strcpy (a, "--------01111111");
24502 strcpy (b, "--------10000000");
24503 if (memcmp (a, b, 16) >= 0)
24513 rm -f conftest$ac_exeext
24514 if { (ac_try="$ac_link"
24515 case "(($ac_try" in
24516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24517 *) ac_try_echo=$ac_try;;
24519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24520 (eval "$ac_link") 2>&5
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24524 { (case "(($ac_try" in
24525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24526 *) ac_try_echo=$ac_try;;
24528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24529 (eval "$ac_try") 2>&5
24531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); }; }; then
24533 ac_cv_func_memcmp_working=yes
24535 echo "$as_me: program exited with status $ac_status" >&5
24536 echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24539 ( exit $ac_status )
24540 ac_cv_func_memcmp_working=no
24542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24547 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24548 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24549 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24550 *" memcmp.$ac_objext "* ) ;;
24551 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24558 # Select semaphore implementation type.
24559 if test "$PORTNAME" != "win32"; then
24560 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24562 cat >>confdefs.h <<\_ACEOF
24563 #define USE_NAMED_POSIX_SEMAPHORES 1
24566 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24568 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24570 cat >>confdefs.h <<\_ACEOF
24571 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24574 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24577 cat >>confdefs.h <<\_ACEOF
24578 #define USE_SYSV_SEMAPHORES 1
24581 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24586 cat >>confdefs.h <<\_ACEOF
24587 #define USE_WIN32_SEMAPHORES 1
24590 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24594 # Select shared-memory implementation type.
24595 if test "$PORTNAME" != "win32"; then
24597 cat >>confdefs.h <<\_ACEOF
24598 #define USE_SYSV_SHARED_MEMORY 1
24601 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24604 cat >>confdefs.h <<\_ACEOF
24605 #define USE_WIN32_SHARED_MEMORY 1
24608 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24611 # If not set in template file, set bytes to use libc memset()
24612 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24613 MEMSET_LOOP_LIMIT=1024
24616 cat >>confdefs.h <<_ACEOF
24617 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24622 if test "$enable_nls" = yes ; then
24624 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24625 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24626 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24627 echo $ECHO_N "(cached) $ECHO_C" >&6
24629 ac_func_search_save_LIBS=$LIBS
24630 cat >conftest.$ac_ext <<_ACEOF
24633 cat confdefs.h >>conftest.$ac_ext
24634 cat >>conftest.$ac_ext <<_ACEOF
24635 /* end confdefs.h. */
24637 /* Override any GCC internal prototype to avoid an error.
24638 Use char because int might match the return type of a GCC
24639 builtin and then its argument prototype would still apply. */
24643 char bind_textdomain_codeset ();
24647 return bind_textdomain_codeset ();
24652 for ac_lib in '' intl; do
24653 if test -z "$ac_lib"; then
24654 ac_res="none required"
24657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24659 rm -f conftest.$ac_objext conftest$ac_exeext
24660 if { (ac_try="$ac_link"
24661 case "(($ac_try" in
24662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663 *) ac_try_echo=$ac_try;;
24665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24666 (eval "$ac_link") 2>conftest.er1
24668 grep -v '^ *+' conftest.er1 >conftest.err
24670 cat conftest.err >&5
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); } && {
24673 test -z "$ac_c_werror_flag" ||
24674 test ! -s conftest.err
24675 } && test -s conftest$ac_exeext &&
24676 $as_test_x conftest$ac_exeext; then
24677 ac_cv_search_bind_textdomain_codeset=$ac_res
24679 echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24687 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24691 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24694 ac_cv_search_bind_textdomain_codeset=no
24696 rm conftest.$ac_ext
24697 LIBS=$ac_func_search_save_LIBS
24699 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
24700 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
24701 ac_res=$ac_cv_search_bind_textdomain_codeset
24702 if test "$ac_res" != no; then
24703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24706 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24707 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24708 { (exit 1); exit 1; }; }
24711 if test "${ac_cv_header_libintl_h+set}" = set; then
24712 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24713 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24714 if test "${ac_cv_header_libintl_h+set}" = set; then
24715 echo $ECHO_N "(cached) $ECHO_C" >&6
24717 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24718 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24720 # Is the header compilable?
24721 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24722 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24723 cat >conftest.$ac_ext <<_ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24729 $ac_includes_default
24730 #include <libintl.h>
24732 rm -f conftest.$ac_objext
24733 if { (ac_try="$ac_compile"
24734 case "(($ac_try" in
24735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24736 *) ac_try_echo=$ac_try;;
24738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24739 (eval "$ac_compile") 2>conftest.er1
24741 grep -v '^ *+' conftest.er1 >conftest.err
24743 cat conftest.err >&5
24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); } && {
24746 test -z "$ac_c_werror_flag" ||
24747 test ! -s conftest.err
24748 } && test -s conftest.$ac_objext; then
24749 ac_header_compiler=yes
24751 echo "$as_me: failed program was:" >&5
24752 sed 's/^/| /' conftest.$ac_ext >&5
24754 ac_header_compiler=no
24757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24759 echo "${ECHO_T}$ac_header_compiler" >&6; }
24761 # Is the header present?
24762 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
24763 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
24764 cat >conftest.$ac_ext <<_ACEOF
24767 cat confdefs.h >>conftest.$ac_ext
24768 cat >>conftest.$ac_ext <<_ACEOF
24769 /* end confdefs.h. */
24770 #include <libintl.h>
24772 if { (ac_try="$ac_cpp conftest.$ac_ext"
24773 case "(($ac_try" in
24774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775 *) ac_try_echo=$ac_try;;
24777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24780 grep -v '^ *+' conftest.er1 >conftest.err
24782 cat conftest.err >&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); } >/dev/null && {
24785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24786 test ! -s conftest.err
24788 ac_header_preproc=yes
24790 echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24793 ac_header_preproc=no
24796 rm -f conftest.err conftest.$ac_ext
24797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24798 echo "${ECHO_T}$ac_header_preproc" >&6; }
24800 # So? What about this header?
24801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24803 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24804 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24805 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
24806 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
24807 ac_header_preproc=yes
24810 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
24811 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
24812 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
24813 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
24814 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
24815 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
24816 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
24817 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24818 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
24819 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
24820 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
24821 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
24823 ## ---------------------------------------- ##
24824 ## Report this to pgsql-bugs@postgresql.org ##
24825 ## ---------------------------------------- ##
24827 ) | sed "s/^/$as_me: WARNING: /" >&2
24830 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24831 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24832 if test "${ac_cv_header_libintl_h+set}" = set; then
24833 echo $ECHO_N "(cached) $ECHO_C" >&6
24835 ac_cv_header_libintl_h=$ac_header_preproc
24837 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24838 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24841 if test $ac_cv_header_libintl_h = yes; then
24844 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
24845 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
24846 { (exit 1); exit 1; }; }
24850 for ac_prog in msgfmt
24852 # Extract the first word of "$ac_prog", so it can be a program name with args.
24853 set dummy $ac_prog; ac_word=$2
24854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24856 if test "${ac_cv_prog_MSGFMT+set}" = set; then
24857 echo $ECHO_N "(cached) $ECHO_C" >&6
24859 if test -n "$MSGFMT"; then
24860 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
24862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24863 for as_dir in $PATH
24866 test -z "$as_dir" && as_dir=.
24867 for ac_exec_ext in '' $ac_executable_extensions; do
24868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24869 ac_cv_prog_MSGFMT="$ac_prog"
24870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24879 MSGFMT=$ac_cv_prog_MSGFMT
24880 if test -n "$MSGFMT"; then
24881 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
24882 echo "${ECHO_T}$MSGFMT" >&6; }
24884 { echo "$as_me:$LINENO: result: no" >&5
24885 echo "${ECHO_T}no" >&6; }
24889 test -n "$MSGFMT" && break
24892 if test -z "$MSGFMT"; then
24893 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
24894 echo "$as_me: error: msgfmt is required for NLS" >&2;}
24895 { (exit 1); exit 1; }; }
24897 for ac_prog in msgmerge
24899 # Extract the first word of "$ac_prog", so it can be a program name with args.
24900 set dummy $ac_prog; ac_word=$2
24901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24903 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24906 if test -n "$MSGMERGE"; then
24907 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
24909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24910 for as_dir in $PATH
24913 test -z "$as_dir" && as_dir=.
24914 for ac_exec_ext in '' $ac_executable_extensions; do
24915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24916 ac_cv_prog_MSGMERGE="$ac_prog"
24917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24926 MSGMERGE=$ac_cv_prog_MSGMERGE
24927 if test -n "$MSGMERGE"; then
24928 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24929 echo "${ECHO_T}$MSGMERGE" >&6; }
24931 { echo "$as_me:$LINENO: result: no" >&5
24932 echo "${ECHO_T}no" >&6; }
24936 test -n "$MSGMERGE" && break
24939 for ac_prog in xgettext
24941 # Extract the first word of "$ac_prog", so it can be a program name with args.
24942 set dummy $ac_prog; ac_word=$2
24943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24945 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24948 if test -n "$XGETTEXT"; then
24949 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
24951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24952 for as_dir in $PATH
24955 test -z "$as_dir" && as_dir=.
24956 for ac_exec_ext in '' $ac_executable_extensions; do
24957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24958 ac_cv_prog_XGETTEXT="$ac_prog"
24959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24968 XGETTEXT=$ac_cv_prog_XGETTEXT
24969 if test -n "$XGETTEXT"; then
24970 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24971 echo "${ECHO_T}$XGETTEXT" >&6; }
24973 { echo "$as_me:$LINENO: result: no" >&5
24974 echo "${ECHO_T}no" >&6; }
24978 test -n "$XGETTEXT" && break
24984 # Check for Tcl configuration script tclConfig.sh
24985 if test "$with_tcl" = yes; then
24986 for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
24988 # Extract the first word of "$ac_prog", so it can be a program name with args.
24989 set dummy $ac_prog; ac_word=$2
24990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24992 if test "${ac_cv_path_TCLSH+set}" = set; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24997 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25001 for as_dir in $PATH
25004 test -z "$as_dir" && as_dir=.
25005 for ac_exec_ext in '' $ac_executable_extensions; do
25006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25007 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25018 TCLSH=$ac_cv_path_TCLSH
25019 if test -n "$TCLSH"; then
25020 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25021 echo "${ECHO_T}$TCLSH" >&6; }
25023 { echo "$as_me:$LINENO: result: no" >&5
25024 echo "${ECHO_T}no" >&6; }
25028 test -n "$TCLSH" && break
25031 if test x"$TCLSH" = x""; then
25032 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25033 echo "$as_me: error: Tcl shell not found" >&2;}
25034 { (exit 1); exit 1; }; }
25037 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25038 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25039 # Let user override test
25040 if test -z "$TCL_CONFIG_SH"; then
25041 pgac_test_dirs="$with_tclconfig"
25043 set X $pgac_test_dirs; shift
25044 if test $# -eq 0; then
25045 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25046 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25047 { (exit 1); exit 1; }; }
25048 set X `echo 'puts $auto_path' | $TCLSH`; shift
25052 if test -r "$pgac_dir/tclConfig.sh"; then
25053 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25059 if test -z "$TCL_CONFIG_SH"; then
25060 { echo "$as_me:$LINENO: result: no" >&5
25061 echo "${ECHO_T}no" >&6; }
25062 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25063 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25064 { (exit 1); exit 1; }; }
25066 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25067 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25073 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25074 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25075 eval TCL_LIBS=\"$TCL_LIBS\"
25076 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25077 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25079 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25080 ac_save_CPPFLAGS=$CPPFLAGS
25081 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25082 if test "${ac_cv_header_tcl_h+set}" = set; then
25083 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25084 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25085 if test "${ac_cv_header_tcl_h+set}" = set; then
25086 echo $ECHO_N "(cached) $ECHO_C" >&6
25088 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25089 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25091 # Is the header compilable?
25092 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25093 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25094 cat >conftest.$ac_ext <<_ACEOF
25097 cat confdefs.h >>conftest.$ac_ext
25098 cat >>conftest.$ac_ext <<_ACEOF
25099 /* end confdefs.h. */
25100 $ac_includes_default
25103 rm -f conftest.$ac_objext
25104 if { (ac_try="$ac_compile"
25105 case "(($ac_try" in
25106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25107 *) ac_try_echo=$ac_try;;
25109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25110 (eval "$ac_compile") 2>conftest.er1
25112 grep -v '^ *+' conftest.er1 >conftest.err
25114 cat conftest.err >&5
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); } && {
25117 test -z "$ac_c_werror_flag" ||
25118 test ! -s conftest.err
25119 } && test -s conftest.$ac_objext; then
25120 ac_header_compiler=yes
25122 echo "$as_me: failed program was:" >&5
25123 sed 's/^/| /' conftest.$ac_ext >&5
25125 ac_header_compiler=no
25128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25130 echo "${ECHO_T}$ac_header_compiler" >&6; }
25132 # Is the header present?
25133 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25134 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25135 cat >conftest.$ac_ext <<_ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h. */
25143 if { (ac_try="$ac_cpp conftest.$ac_ext"
25144 case "(($ac_try" in
25145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25146 *) ac_try_echo=$ac_try;;
25148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25151 grep -v '^ *+' conftest.er1 >conftest.err
25153 cat conftest.err >&5
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); } >/dev/null && {
25156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25157 test ! -s conftest.err
25159 ac_header_preproc=yes
25161 echo "$as_me: failed program was:" >&5
25162 sed 's/^/| /' conftest.$ac_ext >&5
25164 ac_header_preproc=no
25167 rm -f conftest.err conftest.$ac_ext
25168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25169 echo "${ECHO_T}$ac_header_preproc" >&6; }
25171 # So? What about this header?
25172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25174 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25175 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25176 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25177 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25178 ac_header_preproc=yes
25181 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25182 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25183 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25184 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25185 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25186 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25187 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25188 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25189 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25190 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25191 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25192 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25194 ## ---------------------------------------- ##
25195 ## Report this to pgsql-bugs@postgresql.org ##
25196 ## ---------------------------------------- ##
25198 ) | sed "s/^/$as_me: WARNING: /" >&2
25201 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25202 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25203 if test "${ac_cv_header_tcl_h+set}" = set; then
25204 echo $ECHO_N "(cached) $ECHO_C" >&6
25206 ac_cv_header_tcl_h=$ac_header_preproc
25208 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25209 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25212 if test $ac_cv_header_tcl_h = yes; then
25215 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25216 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25217 { (exit 1); exit 1; }; }
25221 CPPFLAGS=$ac_save_CPPFLAGS
25225 # Check for DocBook and tools
25227 for ac_prog in onsgmls nsgmls
25229 # Extract the first word of "$ac_prog", so it can be a program name with args.
25230 set dummy $ac_prog; ac_word=$2
25231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25233 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25236 if test -n "$NSGMLS"; then
25237 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25240 for as_dir in $PATH
25243 test -z "$as_dir" && as_dir=.
25244 for ac_exec_ext in '' $ac_executable_extensions; do
25245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25246 ac_cv_prog_NSGMLS="$ac_prog"
25247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25256 NSGMLS=$ac_cv_prog_NSGMLS
25257 if test -n "$NSGMLS"; then
25258 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25259 echo "${ECHO_T}$NSGMLS" >&6; }
25261 { echo "$as_me:$LINENO: result: no" >&5
25262 echo "${ECHO_T}no" >&6; }
25266 test -n "$NSGMLS" && break
25269 for ac_prog in openjade jade
25271 # Extract the first word of "$ac_prog", so it can be a program name with args.
25272 set dummy $ac_prog; ac_word=$2
25273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25275 if test "${ac_cv_prog_JADE+set}" = set; then
25276 echo $ECHO_N "(cached) $ECHO_C" >&6
25278 if test -n "$JADE"; then
25279 ac_cv_prog_JADE="$JADE" # Let the user override the test.
25281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25282 for as_dir in $PATH
25285 test -z "$as_dir" && as_dir=.
25286 for ac_exec_ext in '' $ac_executable_extensions; do
25287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25288 ac_cv_prog_JADE="$ac_prog"
25289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25298 JADE=$ac_cv_prog_JADE
25299 if test -n "$JADE"; then
25300 { echo "$as_me:$LINENO: result: $JADE" >&5
25301 echo "${ECHO_T}$JADE" >&6; }
25303 { echo "$as_me:$LINENO: result: no" >&5
25304 echo "${ECHO_T}no" >&6; }
25308 test -n "$JADE" && break
25312 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25313 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25314 if test "${pgac_cv_check_docbook+set}" = set; then
25315 echo $ECHO_N "(cached) $ECHO_C" >&6
25317 cat >conftest.sgml <<EOF
25318 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25320 <title>test</title>
25322 <title>random</title>
25324 <title>testsect</title>
25331 pgac_cv_check_docbook=no
25333 if test -n "$NSGMLS"; then
25334 $NSGMLS -s conftest.sgml 1>&5 2>&1
25335 if test $? -eq 0; then
25336 pgac_cv_check_docbook=yes
25339 rm -f conftest.sgml
25341 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25342 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25344 have_docbook=$pgac_cv_check_docbook
25347 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25348 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25349 if test "${pgac_cv_path_stylesheets+set}" = set; then
25350 echo $ECHO_N "(cached) $ECHO_C" >&6
25352 if test -n "$DOCBOOKSTYLE"; then
25353 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
25355 for pgac_prefix in /usr /usr/local /opt; do
25356 for pgac_infix in share lib; do
25357 for pgac_postfix in \
25358 sgml/stylesheets/nwalsh-modular \
25359 sgml/stylesheets/docbook \
25360 sgml/stylesheets/dsssl/docbook \
25361 sgml/docbook-dsssl \
25362 sgml/docbook/dsssl/modular \
25363 sgml/docbook/stylesheet/dsssl/modular \
25364 sgml/docbook/dsssl-stylesheets
25366 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
25367 if test -r "$pgac_candidate/html/docbook.dsl" \
25368 && test -r "$pgac_candidate/print/docbook.dsl"
25370 pgac_cv_path_stylesheets=$pgac_candidate
25379 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
25381 if test -n "$DOCBOOKSTYLE"; then
25382 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25383 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25385 { echo "$as_me:$LINENO: result: no" >&5
25386 echo "${ECHO_T}no" >&6; }
25388 if test -n "$DOCBOOKSTYLE"; then
25389 for ac_prog in collateindex.pl
25391 # Extract the first word of "$ac_prog", so it can be a program name with args.
25392 set dummy $ac_prog; ac_word=$2
25393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25395 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25396 echo $ECHO_N "(cached) $ECHO_C" >&6
25398 case $COLLATEINDEX in
25400 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25404 for as_dir in $DOCBOOKSTYLE/bin $PATH
25407 test -z "$as_dir" && as_dir=.
25408 for ac_exec_ext in '' $ac_executable_extensions; do
25409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25410 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25421 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25422 if test -n "$COLLATEINDEX"; then
25423 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25424 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25426 { echo "$as_me:$LINENO: result: no" >&5
25427 echo "${ECHO_T}no" >&6; }
25431 test -n "$COLLATEINDEX" && break
25435 for ac_prog in collateindex.pl
25437 # Extract the first word of "$ac_prog", so it can be a program name with args.
25438 set dummy $ac_prog; ac_word=$2
25439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25441 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25442 echo $ECHO_N "(cached) $ECHO_C" >&6
25444 case $COLLATEINDEX in
25446 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25450 for as_dir in $PATH
25453 test -z "$as_dir" && as_dir=.
25454 for ac_exec_ext in '' $ac_executable_extensions; do
25455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25456 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25467 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25468 if test -n "$COLLATEINDEX"; then
25469 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25470 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25472 { echo "$as_me:$LINENO: result: no" >&5
25473 echo "${ECHO_T}no" >&6; }
25477 test -n "$COLLATEINDEX" && break
25481 for ac_prog in sgmlspl
25483 # Extract the first word of "$ac_prog", so it can be a program name with args.
25484 set dummy $ac_prog; ac_word=$2
25485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25487 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25488 echo $ECHO_N "(cached) $ECHO_C" >&6
25490 if test -n "$SGMLSPL"; then
25491 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25494 for as_dir in $PATH
25497 test -z "$as_dir" && as_dir=.
25498 for ac_exec_ext in '' $ac_executable_extensions; do
25499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25500 ac_cv_prog_SGMLSPL="$ac_prog"
25501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25510 SGMLSPL=$ac_cv_prog_SGMLSPL
25511 if test -n "$SGMLSPL"; then
25512 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25513 echo "${ECHO_T}$SGMLSPL" >&6; }
25515 { echo "$as_me:$LINENO: result: no" >&5
25516 echo "${ECHO_T}no" >&6; }
25520 test -n "$SGMLSPL" && break
25526 # We have to run the thread test near the end so we have all our symbols
25527 # defined. Cross compiling throws a warning.
25529 if test "$enable_thread_safety_force" = yes; then
25530 if test "$PORTNAME" != "win32"
25532 { echo "$as_me:$LINENO: WARNING:
25533 *** Skipping thread test program. --enable-thread-safety-force was used.
25534 *** Run the program in src/test/thread on the your machine and add proper
25535 *** locking function calls to your applications to guarantee thread safety.
25537 echo "$as_me: WARNING:
25538 *** Skipping thread test program. --enable-thread-safety-force was used.
25539 *** Run the program in src/test/thread on the your machine and add proper
25540 *** locking function calls to your applications to guarantee thread safety.
25543 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25544 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25546 elif test "$enable_thread_safety" = yes; then
25547 if test "$PORTNAME" != "win32"
25549 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25550 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25554 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25555 LIBS="$LIBS $PTHREAD_LIBS"
25556 if test "$cross_compiling" = yes; then
25557 { echo "$as_me:$LINENO: result: maybe" >&5
25558 echo "${ECHO_T}maybe" >&6; }
25559 { echo "$as_me:$LINENO: WARNING:
25560 *** Skipping thread test program because of cross-compile build.
25561 *** Run the program in src/test/thread on the target machine.
25563 echo "$as_me: WARNING:
25564 *** Skipping thread test program because of cross-compile build.
25565 *** Run the program in src/test/thread on the target machine.
25568 cat >conftest.$ac_ext <<_ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25574 #include "$srcdir/src/test/thread/thread_test.c"
25576 rm -f conftest$ac_exeext
25577 if { (ac_try="$ac_link"
25578 case "(($ac_try" in
25579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25580 *) ac_try_echo=$ac_try;;
25582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25583 (eval "$ac_link") 2>&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25587 { (case "(($ac_try" in
25588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25589 *) ac_try_echo=$ac_try;;
25591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25592 (eval "$ac_try") 2>&5
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; }; then
25596 { echo "$as_me:$LINENO: result: yes" >&5
25597 echo "${ECHO_T}yes" >&6; }
25599 echo "$as_me: program exited with status $ac_status" >&5
25600 echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25603 ( exit $ac_status )
25604 { echo "$as_me:$LINENO: result: no" >&5
25605 echo "${ECHO_T}no" >&6; }
25606 { { echo "$as_me:$LINENO: error: thread test program failed
25607 This platform is not thread-safe. Check the file 'config.log'for the
25610 You can use the configure option --enable-thread-safety-force to force
25611 threads to be enabled. But you must then run the program in
25612 src/test/thread and add locking function calls to your applications to
25613 guarantee thread safety." >&5
25614 echo "$as_me: error: thread test program failed
25615 This platform is not thread-safe. Check the file 'config.log'for the
25618 You can use the configure option --enable-thread-safety-force to force
25619 threads to be enabled. But you must then run the program in
25620 src/test/thread and add locking function calls to your applications to
25621 guarantee thread safety." >&2;}
25622 { (exit 1); exit 1; }; }
25624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25631 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25632 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25636 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
25637 # This is much easier than trying to filter LIBS to the minimum for each
25638 # executable. (Note that shared library links won't use this switch, though.)
25639 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
25640 # libreadline; therefore we postpone testing it until we know what library
25641 # dependencies readline has. The test code will try to link with $LIBS.
25642 if test "$with_readline" = yes; then
25643 link_test_func=readline
25645 link_test_func=exit
25647 if test "$PORTNAME" != "darwin"; then
25648 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
25649 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
25650 pgac_save_LDFLAGS=$LDFLAGS
25651 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
25652 if test "$cross_compiling" = yes; then
25653 LDFLAGS="$pgac_save_LDFLAGS"
25654 { echo "$as_me:$LINENO: result: assuming no" >&5
25655 echo "${ECHO_T}assuming no" >&6; }
25657 cat >conftest.$ac_ext <<_ACEOF
25660 cat confdefs.h >>conftest.$ac_ext
25661 cat >>conftest.$ac_ext <<_ACEOF
25662 /* end confdefs.h. */
25663 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25672 rm -f conftest$ac_exeext
25673 if { (ac_try="$ac_link"
25674 case "(($ac_try" in
25675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676 *) ac_try_echo=$ac_try;;
25678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25679 (eval "$ac_link") 2>&5
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25683 { (case "(($ac_try" in
25684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685 *) ac_try_echo=$ac_try;;
25687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25688 (eval "$ac_try") 2>&5
25690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691 (exit $ac_status); }; }; then
25692 { echo "$as_me:$LINENO: result: yes" >&5
25693 echo "${ECHO_T}yes" >&6; }
25695 echo "$as_me: program exited with status $ac_status" >&5
25696 echo "$as_me: failed program was:" >&5
25697 sed 's/^/| /' conftest.$ac_ext >&5
25699 ( exit $ac_status )
25700 LDFLAGS="$pgac_save_LDFLAGS"
25701 { echo "$as_me:$LINENO: result: no" >&5
25702 echo "${ECHO_T}no" >&6; }
25704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25710 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
25711 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
25712 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
25713 pgac_save_LDFLAGS=$LDFLAGS
25714 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
25715 if test "$cross_compiling" = yes; then
25716 LDFLAGS="$pgac_save_LDFLAGS"
25717 { echo "$as_me:$LINENO: result: assuming no" >&5
25718 echo "${ECHO_T}assuming no" >&6; }
25720 cat >conftest.$ac_ext <<_ACEOF
25723 cat confdefs.h >>conftest.$ac_ext
25724 cat >>conftest.$ac_ext <<_ACEOF
25725 /* end confdefs.h. */
25726 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25735 rm -f conftest$ac_exeext
25736 if { (ac_try="$ac_link"
25737 case "(($ac_try" in
25738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25739 *) ac_try_echo=$ac_try;;
25741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25742 (eval "$ac_link") 2>&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25746 { (case "(($ac_try" in
25747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25748 *) ac_try_echo=$ac_try;;
25750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25751 (eval "$ac_try") 2>&5
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); }; }; then
25755 { echo "$as_me:$LINENO: result: yes" >&5
25756 echo "${ECHO_T}yes" >&6; }
25758 echo "$as_me: program exited with status $ac_status" >&5
25759 echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25762 ( exit $ac_status )
25763 LDFLAGS="$pgac_save_LDFLAGS"
25764 { echo "$as_me:$LINENO: result: no" >&5
25765 echo "${ECHO_T}no" >&6; }
25767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25775 # Begin output steps
25777 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
25778 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
25779 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
25780 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
25781 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
25782 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
25784 # prepare build tree if outside source tree
25785 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
25786 # Note 2: /bin/pwd might be better than shell's built-in at getting
25787 # a symlink-free name.
25788 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
25792 if test "$no_create" != yes; then
25793 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
25794 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
25795 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
25796 || { { echo "$as_me:$LINENO: error: failed" >&5
25797 echo "$as_me: error: failed" >&2;}
25798 { (exit 1); exit 1; }; }
25799 { echo "$as_me:$LINENO: result: done" >&5
25800 echo "${ECHO_T}done" >&6; }
25806 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
25809 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
25812 if test "$PORTNAME" = "win32"; then
25813 ac_config_commands="$ac_config_commands check_win32_symlinks"
25817 ac_config_headers="$ac_config_headers src/include/pg_config.h"
25820 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
25823 cat >confcache <<\_ACEOF
25824 # This file is a shell script that caches the results of configure
25825 # tests run on this system so they can be shared between configure
25826 # scripts and configure runs, see configure's option --config-cache.
25827 # It is not useful on other systems. If it contains results you don't
25828 # want to keep, you may remove or edit it.
25830 # config.status only pays attention to the cache file if you give it
25831 # the --recheck option to rerun configure.
25833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25835 # following values.
25839 # The following way of writing the cache mishandles newlines in values,
25840 # but we know of no workaround that is simple, portable, and efficient.
25841 # So, we kill variables containing newlines.
25842 # Ultrix sh set writes to stderr and can't be redirected directly,
25843 # and sets the high bit in the cache file unless we assign to the vars.
25845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25846 eval ac_val=\$$ac_var
25850 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25851 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25854 _ | IFS | as_nl) ;; #(
25855 *) $as_unset $ac_var ;;
25861 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25862 *${as_nl}ac_space=\ *)
25863 # `set' does not quote correctly, so add quotes (double-quote
25864 # substitution turns \\\\ into \\, and sed turns \\ into \).
25867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25870 # `set' quotes correctly as required by POSIX, so do not add quotes.
25871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25882 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25884 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25885 if test -w "$cache_file"; then
25886 test "x$cache_file" != "x/dev/null" &&
25887 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25888 echo "$as_me: updating cache $cache_file" >&6;}
25889 cat confcache >$cache_file
25891 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25892 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25897 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25898 # Let make expand exec_prefix.
25899 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25901 DEFS=-DHAVE_CONFIG_H
25905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25906 # 1. Remove the extension, and $U if already installed.
25907 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25908 ac_i=`echo "$ac_i" | sed "$ac_script"`
25909 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25910 # will be set to the directory where LIBOBJS objects are built.
25911 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25912 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25914 LIBOBJS=$ac_libobjs
25916 LTLIBOBJS=$ac_ltlibobjs
25920 : ${CONFIG_STATUS=./config.status}
25921 ac_clean_files_save=$ac_clean_files
25922 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25923 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25924 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25925 cat >$CONFIG_STATUS <<_ACEOF
25927 # Generated by $as_me.
25928 # Run this file to recreate the current configuration.
25929 # Compiler output produced by configure, useful for debugging
25930 # configure, is in config.log if it exists.
25933 ac_cs_recheck=false
25935 SHELL=\${CONFIG_SHELL-$SHELL}
25938 cat >>$CONFIG_STATUS <<\_ACEOF
25939 ## --------------------- ##
25940 ## M4sh Initialization. ##
25941 ## --------------------- ##
25943 # Be more Bourne compatible
25944 DUALCASE=1; export DUALCASE # for MKS sh
25945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25948 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25949 # is contrary to our usage. Disable this feature.
25950 alias -g '${1+"$@"}'='"$@"'
25951 setopt NO_GLOB_SUBST
25953 case `(set -o) 2>/dev/null` in
25954 *posix*) set -o posix ;;
25963 # Avoid depending upon Character Ranges.
25964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25967 as_cr_digits='0123456789'
25968 as_cr_alnum=$as_cr_Letters$as_cr_digits
25970 # The user is always right.
25971 if test "${PATH_SEPARATOR+set}" != set; then
25972 echo "#! /bin/sh" >conf$$.sh
25973 echo "exit 0" >>conf$$.sh
25975 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25983 # Support unset when possible.
25984 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25992 # We need space, tab and new line, in precisely that order. Quoting is
25993 # there to prevent editors from complaining about space-tab.
25994 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25995 # splitting by setting IFS to empty value.)
26000 # Find who we are. Look in the path if we contain no directory separator.
26002 *[\\/]* ) as_myself=$0 ;;
26003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26004 for as_dir in $PATH
26007 test -z "$as_dir" && as_dir=.
26008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26014 # We did not find ourselves, most probably we were run as `sh COMMAND'
26015 # in which case we are not to be found in the path.
26016 if test "x$as_myself" = x; then
26019 if test ! -f "$as_myself"; then
26020 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26021 { (exit 1); exit 1; }
26024 # Work around bugs in pre-3.0 UWIN ksh.
26025 for as_var in ENV MAIL MAILPATH
26026 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26034 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26035 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26036 LC_TELEPHONE LC_TIME
26038 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26039 eval $as_var=C; export $as_var
26041 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26045 # Required to use basename.
26046 if expr a : '\(a\)' >/dev/null 2>&1 &&
26047 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26053 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26054 as_basename=basename
26060 # Name of the executable.
26061 as_me=`$as_basename -- "$0" ||
26062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26063 X"$0" : 'X\(//\)$' \| \
26064 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26066 sed '/^.*\/\([^/][^/]*\)\/*$/{
26085 as_lineno_1=$LINENO
26086 as_lineno_2=$LINENO
26087 test "x$as_lineno_1" != "x$as_lineno_2" &&
26088 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26090 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26091 # uniformly replaced by the line number. The first 'sed' inserts a
26092 # line-number line after each line using $LINENO; the second 'sed'
26093 # does the real work. The second script uses 'N' to pair each
26094 # line-number line with the line containing $LINENO, and appends
26095 # trailing '-' during substitution so that $LINENO is not a special
26096 # case at line end.
26097 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26098 # scripts with optimization help from Paolo Bonzini. Blame Lee
26099 # E. McMahon (1931-1989) for sed's syntax. :-)
26111 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26114 ' >$as_me.lineno &&
26115 chmod +x "$as_me.lineno" ||
26116 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26117 { (exit 1); exit 1; }; }
26119 # Don't try to exec as it changes $[0], causing all sort of problems
26120 # (the dirname of $[0] is not the place where we might find the
26121 # original and so on. Autoconf is especially sensitive to this).
26122 . "./$as_me.lineno"
26123 # Exit status is that of the last command.
26128 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26134 ECHO_C= ECHO_N= ECHO_T=
26135 case `echo -n x` in
26137 case `echo 'x\c'` in
26138 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26145 if expr a : '\(a\)' >/dev/null 2>&1 &&
26146 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26152 rm -f conf$$ conf$$.exe conf$$.file
26153 if test -d conf$$.dir; then
26154 rm -f conf$$.dir/conf$$.file
26160 if ln -s conf$$.file conf$$ 2>/dev/null; then
26162 # ... but there are two gotchas:
26163 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26164 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26165 # In both cases, we have to default to `cp -p'.
26166 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26168 elif ln conf$$.file conf$$ 2>/dev/null; then
26173 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26174 rmdir conf$$.dir 2>/dev/null
26176 if mkdir -p . 2>/dev/null; then
26179 test -d ./-p && rmdir ./-p
26183 if test -x / >/dev/null 2>&1; then
26184 as_test_x='test -x'
26186 if ls -dL / >/dev/null 2>&1; then
26193 if test -d "$1"; then
26199 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26200 ???[sx]*):;;*)false;;esac;fi
26204 as_executable_p=$as_test_x
26206 # Sed expression to map a string onto a valid CPP name.
26207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26209 # Sed expression to map a string onto a valid variable name.
26210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26215 # Save the log message, to keep $[0] and so on meaningful, and to
26216 # report actual input values of CONFIG_FILES etc. instead of their
26217 # values after options handling.
26219 This file was extended by PostgreSQL $as_me 8.4devel, which was
26220 generated by GNU Autoconf 2.61. Invocation command line was
26222 CONFIG_FILES = $CONFIG_FILES
26223 CONFIG_HEADERS = $CONFIG_HEADERS
26224 CONFIG_LINKS = $CONFIG_LINKS
26225 CONFIG_COMMANDS = $CONFIG_COMMANDS
26228 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26233 cat >>$CONFIG_STATUS <<_ACEOF
26234 # Files that config.status was made for.
26235 config_files="$ac_config_files"
26236 config_headers="$ac_config_headers"
26237 config_links="$ac_config_links"
26238 config_commands="$ac_config_commands"
26242 cat >>$CONFIG_STATUS <<\_ACEOF
26244 \`$as_me' instantiates files from templates according to the
26245 current configuration.
26247 Usage: $0 [OPTIONS] [FILE]...
26249 -h, --help print this help, then exit
26250 -V, --version print version number and configuration settings, then exit
26251 -q, --quiet do not print progress messages
26252 -d, --debug don't remove temporary files
26253 --recheck update $as_me by reconfiguring in the same conditions
26254 --file=FILE[:TEMPLATE]
26255 instantiate the configuration file FILE
26256 --header=FILE[:TEMPLATE]
26257 instantiate the configuration header FILE
26259 Configuration files:
26262 Configuration headers:
26265 Configuration links:
26268 Configuration commands:
26271 Report bugs to <bug-autoconf@gnu.org>."
26274 cat >>$CONFIG_STATUS <<_ACEOF
26276 PostgreSQL config.status 8.4devel
26277 configured by $0, generated by GNU Autoconf 2.61,
26278 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26280 Copyright (C) 2006 Free Software Foundation, Inc.
26281 This config.status script is free software; the Free Software Foundation
26282 gives unlimited permission to copy, distribute and modify it."
26288 cat >>$CONFIG_STATUS <<\_ACEOF
26289 # If no file are specified by the user, then we need to provide default
26290 # value. By we need to know if files were specified by the user.
26296 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26297 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26308 # Handling of the options.
26309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26311 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26312 echo "$ac_cs_version"; exit ;;
26313 --debug | --debu | --deb | --de | --d | -d )
26315 --file | --fil | --fi | --f )
26317 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26318 ac_need_defaults=false;;
26319 --header | --heade | --head | --hea )
26321 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26322 ac_need_defaults=false;;
26324 # Conflict between --help and --header
26325 { echo "$as_me: error: ambiguous option: $1
26326 Try \`$0 --help' for more information." >&2
26327 { (exit 1); exit 1; }; };;
26328 --help | --hel | -h )
26329 echo "$ac_cs_usage"; exit ;;
26330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26334 # This is an error.
26335 -*) { echo "$as_me: error: unrecognized option: $1
26336 Try \`$0 --help' for more information." >&2
26337 { (exit 1); exit 1; }; } ;;
26339 *) ac_config_targets="$ac_config_targets $1"
26340 ac_need_defaults=false ;;
26346 ac_configure_extra_args=
26348 if $ac_cs_silent; then
26350 ac_configure_extra_args="$ac_configure_extra_args --silent"
26354 cat >>$CONFIG_STATUS <<_ACEOF
26355 if \$ac_cs_recheck; then
26356 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26357 CONFIG_SHELL=$SHELL
26358 export CONFIG_SHELL
26359 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26363 cat >>$CONFIG_STATUS <<\_ACEOF
26367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26368 ## Running $as_me. ##
26374 cat >>$CONFIG_STATUS <<_ACEOF
26377 cat >>$CONFIG_STATUS <<\_ACEOF
26379 # Handling of arguments.
26380 for ac_config_target in $ac_config_targets
26382 case $ac_config_target in
26383 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26384 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
26385 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
26386 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26387 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26388 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26389 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26390 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26391 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26392 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
26393 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
26394 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26396 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26397 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26398 { (exit 1); exit 1; }; };;
26403 # If the user did not use the arguments to specify the items to instantiate,
26404 # then the envvar interface is used. Set only those that are not.
26405 # We use the long form for the default assignment because of an extremely
26406 # bizarre bug on SunOS 4.1.3.
26407 if $ac_need_defaults; then
26408 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26409 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26410 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26411 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26414 # Have a temporary directory for convenience. Make it in the build tree
26415 # simply because there is no reason against having it here, and in addition,
26416 # creating and moving files from /tmp can sometimes cause problems.
26417 # Hook for its removal unless debugging.
26418 # Note that there is a small window in which the directory will not be cleaned:
26419 # after its creation but before its name has been assigned to `$tmp'.
26423 trap 'exit_status=$?
26424 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26426 trap '{ (exit 1); exit 1; }' 1 2 13 15
26428 # Create a (secure) tmp directory for tmp files.
26431 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26432 test -n "$tmp" && test -d "$tmp"
26435 tmp=./conf$$-$RANDOM
26436 (umask 077 && mkdir "$tmp")
26439 echo "$me: cannot create a temporary directory in ." >&2
26440 { (exit 1); exit 1; }
26444 # Set up the sed scripts for CONFIG_FILES section.
26447 # No need to generate the scripts if there are no CONFIG_FILES.
26448 # This happens for instance when ./config.status config.h
26449 if test -n "$CONFIG_FILES"; then
26456 for ac_last_try in false false false false false :; do
26457 cat >conf$$subs.sed <<_ACEOF
26458 SHELL!$SHELL$ac_delim
26459 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26460 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26461 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26462 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26463 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26464 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26465 exec_prefix!$exec_prefix$ac_delim
26466 prefix!$prefix$ac_delim
26467 program_transform_name!$program_transform_name$ac_delim
26468 bindir!$bindir$ac_delim
26469 sbindir!$sbindir$ac_delim
26470 libexecdir!$libexecdir$ac_delim
26471 datarootdir!$datarootdir$ac_delim
26472 datadir!$datadir$ac_delim
26473 sysconfdir!$sysconfdir$ac_delim
26474 sharedstatedir!$sharedstatedir$ac_delim
26475 localstatedir!$localstatedir$ac_delim
26476 includedir!$includedir$ac_delim
26477 oldincludedir!$oldincludedir$ac_delim
26478 docdir!$docdir$ac_delim
26479 infodir!$infodir$ac_delim
26480 htmldir!$htmldir$ac_delim
26481 dvidir!$dvidir$ac_delim
26482 pdfdir!$pdfdir$ac_delim
26483 psdir!$psdir$ac_delim
26484 libdir!$libdir$ac_delim
26485 localedir!$localedir$ac_delim
26486 mandir!$mandir$ac_delim
26487 DEFS!$DEFS$ac_delim
26488 ECHO_C!$ECHO_C$ac_delim
26489 ECHO_N!$ECHO_N$ac_delim
26490 ECHO_T!$ECHO_T$ac_delim
26491 LIBS!$LIBS$ac_delim
26492 build_alias!$build_alias$ac_delim
26493 host_alias!$host_alias$ac_delim
26494 target_alias!$target_alias$ac_delim
26495 configure_args!$configure_args$ac_delim
26496 build!$build$ac_delim
26497 build_cpu!$build_cpu$ac_delim
26498 build_vendor!$build_vendor$ac_delim
26499 build_os!$build_os$ac_delim
26500 host!$host$ac_delim
26501 host_cpu!$host_cpu$ac_delim
26502 host_vendor!$host_vendor$ac_delim
26503 host_os!$host_os$ac_delim
26504 PORTNAME!$PORTNAME$ac_delim
26505 enable_nls!$enable_nls$ac_delim
26506 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26507 default_port!$default_port$ac_delim
26508 enable_shared!$enable_shared$ac_delim
26509 enable_rpath!$enable_rpath$ac_delim
26510 enable_debug!$enable_debug$ac_delim
26511 enable_profiling!$enable_profiling$ac_delim
26512 DTRACE!$DTRACE$ac_delim
26513 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26514 enable_dtrace!$enable_dtrace$ac_delim
26516 CFLAGS!$CFLAGS$ac_delim
26517 LDFLAGS!$LDFLAGS$ac_delim
26518 CPPFLAGS!$CPPFLAGS$ac_delim
26519 ac_ct_CC!$ac_ct_CC$ac_delim
26520 EXEEXT!$EXEEXT$ac_delim
26521 OBJEXT!$OBJEXT$ac_delim
26525 autodepend!$autodepend$ac_delim
26526 INCLUDES!$INCLUDES$ac_delim
26527 enable_thread_safety!$enable_thread_safety$ac_delim
26528 with_tcl!$with_tcl$ac_delim
26529 with_perl!$with_perl$ac_delim
26530 with_python!$with_python$ac_delim
26531 with_gssapi!$with_gssapi$ac_delim
26532 with_krb5!$with_krb5$ac_delim
26533 krb_srvtab!$krb_srvtab$ac_delim
26534 with_pam!$with_pam$ac_delim
26535 with_ldap!$with_ldap$ac_delim
26536 with_bonjour!$with_bonjour$ac_delim
26537 with_openssl!$with_openssl$ac_delim
26538 with_ossp_uuid!$with_ossp_uuid$ac_delim
26539 XML2_CONFIG!$XML2_CONFIG$ac_delim
26540 with_libxml!$with_libxml$ac_delim
26541 with_libxslt!$with_libxslt$ac_delim
26542 with_system_tzdata!$with_system_tzdata$ac_delim
26543 with_zlib!$with_zlib$ac_delim
26544 GREP!$GREP$ac_delim
26545 EGREP!$EGREP$ac_delim
26546 ELF_SYS!$ELF_SYS$ac_delim
26547 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26549 with_gnu_ld!$with_gnu_ld$ac_delim
26550 ld_R_works!$ld_R_works$ac_delim
26551 RANLIB!$RANLIB$ac_delim
26552 STRIP!$STRIP$ac_delim
26553 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26554 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26557 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26559 elif $ac_last_try; then
26560 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26561 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26562 { (exit 1); exit 1; }; }
26564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26568 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26569 if test -n "$ac_eof"; then
26570 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26571 ac_eof=`expr $ac_eof + 1`
26574 cat >>$CONFIG_STATUS <<_ACEOF
26575 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26579 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26580 s/^/s,@/; s/!/@,|#_!!_#|/
26583 s/'"$ac_delim"'$/,g/; t
26585 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26586 ' >>$CONFIG_STATUS <conf$$subs.sed
26587 rm -f conf$$subs.sed
26588 cat >>$CONFIG_STATUS <<_ACEOF
26594 for ac_last_try in false false false false false :; do
26595 cat >conf$$subs.sed <<_ACEOF
26597 LN_S!$LN_S$ac_delim
26599 BISON!$BISON$ac_delim
26600 BISONFLAGS!$BISONFLAGS$ac_delim
26601 FLEX!$FLEX$ac_delim
26602 FLEXFLAGS!$FLEXFLAGS$ac_delim
26603 PERL!$PERL$ac_delim
26604 perl_archlibexp!$perl_archlibexp$ac_delim
26605 perl_privlibexp!$perl_privlibexp$ac_delim
26606 perl_useshrplib!$perl_useshrplib$ac_delim
26607 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26608 PYTHON!$PYTHON$ac_delim
26609 python_version!$python_version$ac_delim
26610 python_configdir!$python_configdir$ac_delim
26611 python_includespec!$python_includespec$ac_delim
26612 python_libdir!$python_libdir$ac_delim
26613 python_libspec!$python_libspec$ac_delim
26614 python_additional_libs!$python_additional_libs$ac_delim
26615 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26616 HAVE_IPV6!$HAVE_IPV6$ac_delim
26617 LIBOBJS!$LIBOBJS$ac_delim
26618 acx_pthread_config!$acx_pthread_config$ac_delim
26619 PTHREAD_CC!$PTHREAD_CC$ac_delim
26620 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26621 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26622 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26623 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26624 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26625 MSGFMT!$MSGFMT$ac_delim
26626 MSGMERGE!$MSGMERGE$ac_delim
26627 XGETTEXT!$XGETTEXT$ac_delim
26628 TCLSH!$TCLSH$ac_delim
26629 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26630 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26631 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26632 TCL_LIBS!$TCL_LIBS$ac_delim
26633 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26634 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26635 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26636 NSGMLS!$NSGMLS$ac_delim
26637 JADE!$JADE$ac_delim
26638 have_docbook!$have_docbook$ac_delim
26639 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26640 COLLATEINDEX!$COLLATEINDEX$ac_delim
26641 SGMLSPL!$SGMLSPL$ac_delim
26642 vpath_build!$vpath_build$ac_delim
26643 LTLIBOBJS!$LTLIBOBJS$ac_delim
26646 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
26648 elif $ac_last_try; then
26649 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26650 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26651 { (exit 1); exit 1; }; }
26653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26657 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26658 if test -n "$ac_eof"; then
26659 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26660 ac_eof=`expr $ac_eof + 1`
26663 cat >>$CONFIG_STATUS <<_ACEOF
26664 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26668 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26669 s/^/s,@/; s/!/@,|#_!!_#|/
26672 s/'"$ac_delim"'$/,g/; t
26674 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26675 ' >>$CONFIG_STATUS <conf$$subs.sed
26676 rm -f conf$$subs.sed
26677 cat >>$CONFIG_STATUS <<_ACEOF
26684 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26685 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26686 # trailing colons and then remove the whole line if VPATH becomes empty
26687 # (actually we leave an empty line to preserve line numbers).
26688 if test "x$srcdir" = x.; then
26689 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26690 s/:*\$(srcdir):*/:/
26691 s/:*\${srcdir}:*/:/
26693 s/^\([^=]*=[ ]*\):*/\1/
26699 cat >>$CONFIG_STATUS <<\_ACEOF
26700 fi # test -n "$CONFIG_FILES"
26703 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
26706 :[FHLC]) ac_mode=$ac_tag; continue;;
26708 case $ac_mode$ac_tag in
26710 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26711 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26712 { (exit 1); exit 1; }; };;
26713 :[FH]-) ac_tag=-:-;;
26714 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26731 -) ac_f="$tmp/stdin";;
26732 *) # Look for the file first in the build tree, then in the source tree
26733 # (if the path is not absolute). The absolute path cannot be DOS-style,
26734 # because $ac_f cannot contain `:'.
26738 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26740 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26741 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26742 { (exit 1); exit 1; }; };;
26744 ac_file_inputs="$ac_file_inputs $ac_f"
26747 # Let's still pretend it is `configure' which instantiates (i.e., don't
26748 # use $as_me), people would be surprised to read:
26749 # /* config.h. Generated by config.status. */
26750 configure_input="Generated from "`IFS=:
26751 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26752 if test x"$ac_file" != x-; then
26753 configure_input="$ac_file. $configure_input"
26754 { echo "$as_me:$LINENO: creating $ac_file" >&5
26755 echo "$as_me: creating $ac_file" >&6;}
26759 *:-:* | *:-) cat >"$tmp/stdin";;
26764 ac_dir=`$as_dirname -- "$ac_file" ||
26765 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26766 X"$ac_file" : 'X\(//\)[^/]' \| \
26767 X"$ac_file" : 'X\(//\)$' \| \
26768 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26774 /^X\(\/\/\)[^/].*/{
26789 -*) as_dir=./$as_dir;;
26791 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26795 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26796 *) as_qdir=$as_dir;;
26798 as_dirs="'$as_qdir' $as_dirs"
26799 as_dir=`$as_dirname -- "$as_dir" ||
26800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26801 X"$as_dir" : 'X\(//\)[^/]' \| \
26802 X"$as_dir" : 'X\(//\)$' \| \
26803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26809 /^X\(\/\/\)[^/].*/{
26822 test -d "$as_dir" && break
26824 test -z "$as_dirs" || eval "mkdir $as_dirs"
26825 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26826 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26827 { (exit 1); exit 1; }; }; }
26831 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26833 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26834 # A ".." for each directory in $ac_dir_suffix.
26835 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26836 case $ac_top_builddir_sub in
26837 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26838 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26841 ac_abs_top_builddir=$ac_pwd
26842 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26843 # for backward compatibility:
26844 ac_top_builddir=$ac_top_build_prefix
26847 .) # We are building in place.
26849 ac_top_srcdir=$ac_top_builddir_sub
26850 ac_abs_top_srcdir=$ac_pwd ;;
26851 [\\/]* | ?:[\\/]* ) # Absolute name.
26852 ac_srcdir=$srcdir$ac_dir_suffix;
26853 ac_top_srcdir=$srcdir
26854 ac_abs_top_srcdir=$srcdir ;;
26855 *) # Relative name.
26856 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26857 ac_top_srcdir=$ac_top_build_prefix$srcdir
26858 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26860 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26871 cat >>$CONFIG_STATUS <<\_ACEOF
26872 # If the template does not know about datarootdir, expand it.
26873 # FIXME: This hack should be removed a few years after 2.60.
26874 ac_datarootdir_hack=; ac_datarootdir_seen=
26876 case `sed -n '/datarootdir/ {
26885 ' $ac_file_inputs` in
26886 *datarootdir*) ac_datarootdir_seen=yes;;
26887 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26888 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26889 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26891 cat >>$CONFIG_STATUS <<_ACEOF
26892 ac_datarootdir_hack='
26893 s&@datadir@&$datadir&g
26894 s&@docdir@&$docdir&g
26895 s&@infodir@&$infodir&g
26896 s&@localedir@&$localedir&g
26897 s&@mandir@&$mandir&g
26898 s&\\\${datarootdir}&$datarootdir&g' ;;
26902 # Neutralize VPATH when `$srcdir' = `.'.
26903 # Shell code in configure.ac might set extrasub.
26904 # FIXME: do we really want to maintain this feature?
26905 cat >>$CONFIG_STATUS <<_ACEOF
26909 cat >>$CONFIG_STATUS <<\_ACEOF
26911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26912 s&@configure_input@&$configure_input&;t t
26913 s&@top_builddir@&$ac_top_builddir_sub&;t t
26914 s&@srcdir@&$ac_srcdir&;t t
26915 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26916 s&@top_srcdir@&$ac_top_srcdir&;t t
26917 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26918 s&@builddir@&$ac_builddir&;t t
26919 s&@abs_builddir@&$ac_abs_builddir&;t t
26920 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26921 $ac_datarootdir_hack
26922 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26924 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26925 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26926 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26927 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26928 which seems to be undefined. Please make sure it is defined." >&5
26929 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26930 which seems to be undefined. Please make sure it is defined." >&2;}
26934 -) cat "$tmp/out"; rm -f "$tmp/out";;
26935 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26944 # Transform confdefs.h into a sed script `conftest.defines', that
26945 # substitutes the proper values into config.h.in to produce config.h.
26946 rm -f conftest.defines conftest.tail
26947 # First, append a space to every undef/define line, to ease matching.
26948 echo 's/$/ /' >conftest.defines
26949 # Then, protect against being on the right side of a sed subst, or in
26950 # an unquoted here document, in config.status. If some macros were
26951 # called several times there might be several #defines for the same
26952 # symbol, which is useless. But do not sort them, since the last
26953 # AC_DEFINE must be honored.
26954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26955 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26956 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26957 # PARAMS is the parameter list in the macro definition--in most cases, it's
26958 # just an empty string.
26959 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26960 ac_dB='\\)[ (].*,\\1define\\2'
26968 s/^[ ]*#[ ]*define[ ][ ]*//
26973 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26974 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26975 ' >>conftest.defines
26977 # Remove the space that was appended to ease matching.
26978 # Then replace #undef with comments. This is necessary, for
26979 # example, in the case of _POSIX_SOURCE, which is predefined and required
26980 # on some systems where configure will not decide to define it.
26981 # (The regexp can be short, since the line contains either #define or #undef.)
26983 s,^[ #]*u.*,/* & */,' >>conftest.defines
26985 # Break up conftest.defines:
26986 ac_max_sed_lines=50
26988 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26989 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26990 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26992 ac_in='$ac_file_inputs'
26993 ac_out='"$tmp/out1"'
26994 ac_nxt='"$tmp/out2"'
26998 # Write a here document:
26999 cat >>$CONFIG_STATUS <<_ACEOF
27000 # First, check the format of the line:
27001 cat >"\$tmp/defines.sed" <<\\CEOF
27002 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27003 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27007 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27009 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27010 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27011 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27012 grep . conftest.tail >/dev/null || break
27013 rm -f conftest.defines
27014 mv conftest.tail conftest.defines
27016 rm -f conftest.defines conftest.tail
27018 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27019 cat >>$CONFIG_STATUS <<\_ACEOF
27020 if test x"$ac_file" != x-; then
27021 echo "/* $configure_input */" >"$tmp/config.h"
27022 cat "$ac_result" >>"$tmp/config.h"
27023 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27024 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27025 echo "$as_me: $ac_file is unchanged" >&6;}
27028 mv "$tmp/config.h" $ac_file
27031 echo "/* $configure_input */"
27041 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27042 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27044 if test ! -r "$srcdir/$ac_source"; then
27045 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27046 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27047 { (exit 1); exit 1; }; }
27051 # Try a relative symlink, then a hard link, then a copy.
27053 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27054 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
27056 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27057 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
27058 cp -p "$srcdir/$ac_source" "$ac_file" ||
27059 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27060 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27061 { (exit 1); exit 1; }; }
27063 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27064 echo "$as_me: executing $ac_file commands" >&6;}
27069 case $ac_file$ac_mode in
27070 "check_win32_symlinks":C)
27071 # Links sometimes fail undetected on Mingw -
27072 # so here we detect it and warn the user
27073 for FILE in $CONFIG_LINKS
27075 # test -e works for symlinks in the MinGW console
27076 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27077 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27080 "src/include/pg_config.h":H)
27081 # Update timestamp for pg_config.h (see Makefile.global)
27082 echo >src/include/stamp-h
27089 { (exit 0); exit 0; }
27091 chmod +x $CONFIG_STATUS
27092 ac_clean_files=$ac_clean_files_save
27095 # configure is writing to config.log, and then calls config.status.
27096 # config.status does its own redirection, appending to config.log.
27097 # Unfortunately, on DOS this fails, as config.log is still kept open
27098 # by configure, so config.status won't be able to write to it; its
27099 # output is simply discarded. So we exec the FD to /dev/null,
27100 # effectively closing config.log, so it can be properly (re)opened and
27101 # appended to by config.status. When coming back to configure, we
27102 # need to make the FD available again.
27103 if test "$no_create" != yes; then
27105 ac_config_status_args=
27106 test "$silent" = yes &&
27107 ac_config_status_args="$ac_config_status_args --quiet"
27109 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27111 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27112 # would make configure fail if this is the last instruction.
27113 $ac_cs_success || { (exit 1); exit 1; }
27117 # Warn about unknown options
27118 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27119 for pgac_arg in $pgac_args with_gnu_ld; do
27120 if test "$pgac_var" = "$pgac_arg"; then
27124 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
27125 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27126 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}