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 -Winline"
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 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3981 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3983 # We already have this in Makefile.win32, but configure needs it too
3984 if test "$PORTNAME" = "win32"; then
3985 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3988 # Check if the compiler still works with the template settings
3989 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3990 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
3991 cat >conftest.$ac_ext <<_ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
4006 rm -f conftest.$ac_objext conftest$ac_exeext
4007 if { (ac_try="$ac_link"
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_link") 2>conftest.er1
4015 grep -v '^ *+' conftest.er1 >conftest.err
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } && {
4020 test -z "$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4022 } && test -s conftest$ac_exeext &&
4023 $as_test_x conftest$ac_exeext; then
4024 { echo "$as_me:$LINENO: result: yes" >&5
4025 echo "${ECHO_T}yes" >&6; }
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 { echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6; }
4032 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4033 echo "$as_me: error: cannot proceed" >&2;}
4034 { (exit 1); exit 1; }; }
4037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4038 conftest$ac_exeext conftest.$ac_ext
4040 # Defend against gcc -ffast-math
4041 if test "$GCC" = yes; then
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4052 #ifdef __FAST_MATH__
4059 rm -f conftest.$ac_objext
4060 if { (ac_try="$ac_compile"
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_compile") 2>conftest.er1
4068 grep -v '^ *+' conftest.er1 >conftest.err
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } && {
4073 test -z "$ac_c_werror_flag" ||
4074 test ! -s conftest.err
4075 } && test -s conftest.$ac_objext; then
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4082 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4083 { (exit 1); exit 1; }; }
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4095 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4096 # On Suns, sometimes $CPP names a directory.
4097 if test -n "$CPP" && test -d "$CPP"; then
4100 if test -z "$CPP"; then
4101 if test "${ac_cv_prog_CPP+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 # Double quotes because CPP needs to be expanded
4105 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4108 for ac_c_preproc_warn_flag in '' yes
4110 # Use a header file that comes with gcc, so configuring glibc
4111 # with a fresh cross-compiler works.
4112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113 # <limits.h> exists even on freestanding compilers.
4114 # On the NeXT, cc -E runs the code through the compiler's parser,
4115 # not just through cpp. "Syntax error" is here to catch this case.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4123 # include <limits.h>
4125 # include <assert.h>
4129 if { (ac_try="$ac_cpp conftest.$ac_ext"
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4137 grep -v '^ *+' conftest.er1 >conftest.err
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } >/dev/null && {
4142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4143 test ! -s conftest.err
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 # Broken: fails on valid input.
4154 rm -f conftest.err conftest.$ac_ext
4156 # OK, works on sane cases. Now check whether nonexistent headers
4157 # can be detected and how.
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4164 #include <ac_nonexistent.h>
4166 if { (ac_try="$ac_cpp conftest.$ac_ext"
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4174 grep -v '^ *+' conftest.er1 >conftest.err
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } >/dev/null && {
4179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4180 test ! -s conftest.err
4182 # Broken: success on invalid input.
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 # Passes both tests.
4193 rm -f conftest.err conftest.$ac_ext
4196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4197 rm -f conftest.err conftest.$ac_ext
4198 if $ac_preproc_ok; then
4210 { echo "$as_me:$LINENO: result: $CPP" >&5
4211 echo "${ECHO_T}$CPP" >&6; }
4213 for ac_c_preproc_warn_flag in '' yes
4215 # Use a header file that comes with gcc, so configuring glibc
4216 # with a fresh cross-compiler works.
4217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218 # <limits.h> exists even on freestanding compilers.
4219 # On the NeXT, cc -E runs the code through the compiler's parser,
4220 # not just through cpp. "Syntax error" is here to catch this case.
4221 cat >conftest.$ac_ext <<_ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4228 # include <limits.h>
4230 # include <assert.h>
4234 if { (ac_try="$ac_cpp conftest.$ac_ext"
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4242 grep -v '^ *+' conftest.er1 >conftest.err
4244 cat conftest.err >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } >/dev/null && {
4247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4248 test ! -s conftest.err
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 # Broken: fails on valid input.
4259 rm -f conftest.err conftest.$ac_ext
4261 # OK, works on sane cases. Now check whether nonexistent headers
4262 # can be detected and how.
4263 cat >conftest.$ac_ext <<_ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #include <ac_nonexistent.h>
4271 if { (ac_try="$ac_cpp conftest.$ac_ext"
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4279 grep -v '^ *+' conftest.er1 >conftest.err
4281 cat conftest.err >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } >/dev/null && {
4284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4285 test ! -s conftest.err
4287 # Broken: success on invalid input.
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 # Passes both tests.
4298 rm -f conftest.err conftest.$ac_ext
4301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4302 rm -f conftest.err conftest.$ac_ext
4303 if $ac_preproc_ok; then
4306 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4307 See \`config.log' for more details." >&5
4308 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4309 See \`config.log' for more details." >&2;}
4310 { (exit 1); exit 1; }; }
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321 # Create compiler version string
4322 if test x"$GCC" = x"yes" ; then
4323 cc_string="GCC `${CC} --version | sed q`"
4328 cat >>confdefs.h <<_ACEOF
4329 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4335 # Set up TAS assembly code if needed; the template file has now had its
4336 # chance to request this.
4338 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4341 if test "$need_tas" = yes ; then
4350 # Automatic dependency tracking
4353 pgac_args="$pgac_args enable_depend"
4355 # Check whether --enable-depend was given.
4356 if test "${enable_depend+set}" = set; then
4357 enableval=$enable_depend;
4366 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4367 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4368 { (exit 1); exit 1; }; }
4382 # Enable assert checks
4385 pgac_args="$pgac_args enable_cassert"
4387 # Check whether --enable-cassert was given.
4388 if test "${enable_cassert+set}" = set; then
4389 enableval=$enable_cassert;
4393 cat >>confdefs.h <<\_ACEOF
4394 #define USE_ASSERT_CHECKING 1
4402 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4403 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4404 { (exit 1); exit 1; }; }
4417 # Include directories
4420 IFS="${IFS}${PATH_SEPARATOR}"
4421 # SRCH_INC comes from the template file
4422 for dir in $with_includes $SRCH_INC; do
4423 if test -d "$dir"; then
4424 INCLUDES="$INCLUDES -I$dir"
4426 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4427 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4435 # Library directories
4438 IFS="${IFS}${PATH_SEPARATOR}"
4439 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4440 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4441 if test -d "$dir"; then
4442 LIBDIRS="$LIBDIRS -L$dir"
4444 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4445 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4451 # Enable thread-safe client libraries
4453 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4454 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4455 if test "$PORTNAME" != "win32"; then
4457 pgac_args="$pgac_args enable_thread_safety"
4459 # Check whether --enable-thread-safety was given.
4460 if test "${enable_thread_safety+set}" = set; then
4461 enableval=$enable_thread_safety;
4470 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4471 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4472 { (exit 1); exit 1; }; }
4477 enable_thread_safety=no
4483 # Win32 should always use threads
4485 pgac_args="$pgac_args enable_thread_safety"
4487 # Check whether --enable-thread-safety was given.
4488 if test "${enable_thread_safety+set}" = set; then
4489 enableval=$enable_thread_safety;
4498 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4499 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4500 { (exit 1); exit 1; }; }
4505 enable_thread_safety=yes
4513 pgac_args="$pgac_args enable_thread_safety_force"
4515 # Check whether --enable-thread-safety-force was given.
4516 if test "${enable_thread_safety_force+set}" = set; then
4517 enableval=$enable_thread_safety_force;
4526 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4527 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4528 { (exit 1); exit 1; }; }
4533 enable_thread_safety_force=no
4538 if test "$enable_thread_safety" = yes -o \
4539 "$enable_thread_safety_force" = yes; then
4540 enable_thread_safety="yes" # for 'force'
4542 cat >>confdefs.h <<\_ACEOF
4543 #define ENABLE_THREAD_SAFETY 1
4547 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4548 echo "${ECHO_T}$enable_thread_safety" >&6; }
4552 # Optionally build Tcl modules (PL/Tcl)
4554 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4555 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4557 pgac_args="$pgac_args with_tcl"
4560 # Check whether --with-tcl was given.
4561 if test "${with_tcl+set}" = set; then
4571 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4572 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4573 { (exit 1); exit 1; }; }
4583 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4584 echo "${ECHO_T}$with_tcl" >&6; }
4587 # We see if the path to the Tcl/Tk configuration scripts is specified.
4588 # This will override the use of tclsh to find the paths to search.
4591 pgac_args="$pgac_args with_tclconfig"
4594 # Check whether --with-tclconfig was given.
4595 if test "${with_tclconfig+set}" = set; then
4596 withval=$with_tclconfig;
4599 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4600 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4601 { (exit 1); exit 1; }; }
4604 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4605 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4606 { (exit 1); exit 1; }; }
4618 # Optionally build Perl modules (PL/Perl)
4620 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4621 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4623 pgac_args="$pgac_args with_perl"
4626 # Check whether --with-perl was given.
4627 if test "${with_perl+set}" = set; then
4637 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4638 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4639 { (exit 1); exit 1; }; }
4649 { echo "$as_me:$LINENO: result: $with_perl" >&5
4650 echo "${ECHO_T}$with_perl" >&6; }
4654 # Optionally build Python modules (PL/Python)
4656 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4657 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4659 pgac_args="$pgac_args with_python"
4662 # Check whether --with-python was given.
4663 if test "${with_python+set}" = set; then
4664 withval=$with_python;
4673 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4674 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4675 { (exit 1); exit 1; }; }
4685 { echo "$as_me:$LINENO: result: $with_python" >&5
4686 echo "${ECHO_T}$with_python" >&6; }
4692 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4693 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4695 pgac_args="$pgac_args with_gssapi"
4698 # Check whether --with-gssapi was given.
4699 if test "${with_gssapi+set}" = set; then
4700 withval=$with_gssapi;
4705 cat >>confdefs.h <<\_ACEOF
4706 #define ENABLE_GSS 1
4709 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4716 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4717 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4718 { (exit 1); exit 1; }; }
4728 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4729 echo "${ECHO_T}$with_gssapi" >&6; }
4735 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4736 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4738 pgac_args="$pgac_args with_krb5"
4741 # Check whether --with-krb5 was given.
4742 if test "${with_krb5+set}" = set; then
4748 cat >>confdefs.h <<\_ACEOF
4752 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4759 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4760 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4761 { (exit 1); exit 1; }; }
4771 { echo "$as_me:$LINENO: result: $with_krb5" >&5
4772 echo "${ECHO_T}$with_krb5" >&6; }
4780 # Kerberos configuration parameters
4783 pgac_args="$pgac_args with_krb_srvnam"
4786 # Check whether --with-krb-srvnam was given.
4787 if test "${with_krb_srvnam+set}" = set; then
4788 withval=$with_krb_srvnam;
4791 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4792 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4793 { (exit 1); exit 1; }; }
4796 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4797 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4798 { (exit 1); exit 1; }; }
4806 with_krb_srvnam="postgres"
4811 cat >>confdefs.h <<_ACEOF
4812 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4820 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4821 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
4823 pgac_args="$pgac_args with_pam"
4826 # Check whether --with-pam was given.
4827 if test "${with_pam+set}" = set; then
4832 cat >>confdefs.h <<\_ACEOF
4841 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4842 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4843 { (exit 1); exit 1; }; }
4853 { echo "$as_me:$LINENO: result: $with_pam" >&5
4854 echo "${ECHO_T}$with_pam" >&6; }
4861 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4862 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
4864 pgac_args="$pgac_args with_ldap"
4867 # Check whether --with-ldap was given.
4868 if test "${with_ldap+set}" = set; then
4873 cat >>confdefs.h <<\_ACEOF
4882 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4883 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4884 { (exit 1); exit 1; }; }
4894 { echo "$as_me:$LINENO: result: $with_ldap" >&5
4895 echo "${ECHO_T}$with_ldap" >&6; }
4902 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4903 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
4905 pgac_args="$pgac_args with_bonjour"
4908 # Check whether --with-bonjour was given.
4909 if test "${with_bonjour+set}" = set; then
4910 withval=$with_bonjour;
4914 cat >>confdefs.h <<\_ACEOF
4915 #define USE_BONJOUR 1
4923 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4924 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4925 { (exit 1); exit 1; }; }
4935 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
4936 echo "${ECHO_T}$with_bonjour" >&6; }
4943 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4944 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
4946 pgac_args="$pgac_args with_openssl"
4949 # Check whether --with-openssl was given.
4950 if test "${with_openssl+set}" = set; then
4951 withval=$with_openssl;
4955 cat >>confdefs.h <<\_ACEOF
4964 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4965 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4966 { (exit 1); exit 1; }; }
4976 { echo "$as_me:$LINENO: result: $with_openssl" >&5
4977 echo "${ECHO_T}$with_openssl" >&6; }
4985 pgac_args="$pgac_args with_readline"
4988 # Check whether --with-readline was given.
4989 if test "${with_readline+set}" = set; then
4990 withval=$with_readline;
4999 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5000 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5001 { (exit 1); exit 1; }; }
5011 # readline on MinGW has problems with backslashes in psql and other bugs.
5012 # This is particularly a problem with non-US code pages.
5013 # Therefore disable its use until we understand the cause. 2004-07-20
5014 if test "$PORTNAME" = "win32"; then
5015 if test "$with_readline" = yes; then
5016 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5017 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5027 pgac_args="$pgac_args with_libedit_preferred"
5030 # Check whether --with-libedit-preferred was given.
5031 if test "${with_libedit_preferred+set}" = set; then
5032 withval=$with_libedit_preferred;
5041 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5042 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5043 { (exit 1); exit 1; }; }
5048 with_libedit_preferred=no
5059 pgac_args="$pgac_args with_ossp_uuid"
5062 # Check whether --with-ossp-uuid was given.
5063 if test "${with_ossp_uuid+set}" = set; then
5064 withval=$with_ossp_uuid;
5073 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5074 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5075 { (exit 1); exit 1; }; }
5092 pgac_args="$pgac_args with_libxml"
5095 # Check whether --with-libxml was given.
5096 if test "${with_libxml+set}" = set; then
5097 withval=$with_libxml;
5101 cat >>confdefs.h <<\_ACEOF
5102 #define USE_LIBXML 1
5110 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5111 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5112 { (exit 1); exit 1; }; }
5123 if test "$with_libxml" = yes ; then
5124 for ac_prog in xml2-config
5126 # Extract the first word of "$ac_prog", so it can be a program name with args.
5127 set dummy $ac_prog; ac_word=$2
5128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5130 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 if test -n "$XML2_CONFIG"; then
5134 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_prog_XML2_CONFIG="$ac_prog"
5144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5154 if test -n "$XML2_CONFIG"; then
5155 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5156 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5158 { echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6; }
5163 test -n "$XML2_CONFIG" && break
5166 if test -n "$XML2_CONFIG"; then
5167 for pgac_option in `$XML2_CONFIG --cflags`; do
5168 case $pgac_option in
5169 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5172 for pgac_option in `$XML2_CONFIG --libs`; do
5173 case $pgac_option in
5174 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5186 pgac_args="$pgac_args with_libxslt"
5189 # Check whether --with-libxslt was given.
5190 if test "${with_libxslt+set}" = set; then
5191 withval=$with_libxslt;
5195 cat >>confdefs.h <<\_ACEOF
5196 #define USE_LIBXSLT 1
5204 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5205 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5206 { (exit 1); exit 1; }; }
5224 pgac_args="$pgac_args with_system_tzdata"
5227 # Check whether --with-system-tzdata was given.
5228 if test "${with_system_tzdata+set}" = set; then
5229 withval=$with_system_tzdata;
5232 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5233 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5234 { (exit 1); exit 1; }; }
5237 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5238 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5239 { (exit 1); exit 1; }; }
5255 pgac_args="$pgac_args with_zlib"
5258 # Check whether --with-zlib was given.
5259 if test "${with_zlib+set}" = set; then
5269 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5270 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5271 { (exit 1); exit 1; }; }
5287 # Assume system is ELF if it predefines __ELF__ as 1,
5288 # otherwise believe host_os based default.
5290 freebsd1*|freebsd2*) elf=no;;
5291 freebsd3*|freebsd4*) elf=yes;;
5295 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5296 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5297 if test "${ac_cv_path_GREP+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 # Extract the first word of "grep ggrep" to use in msg output
5301 if test -z "$GREP"; then
5302 set dummy grep ggrep; ac_prog_name=$2
5303 if test "${ac_cv_path_GREP+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 ac_path_GREP_found=false
5307 # Loop through the user's path and test for each of PROGNAME-LIST
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5312 test -z "$as_dir" && as_dir=.
5313 for ac_prog in grep ggrep; do
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5316 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5317 # Check for GNU ac_path_GREP and select it if it is found.
5318 # Check for GNU $ac_path_GREP
5319 case `"$ac_path_GREP" --version 2>&1` in
5321 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5324 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5327 cat "conftest.in" "conftest.in" >"conftest.tmp"
5328 mv "conftest.tmp" "conftest.in"
5329 cp "conftest.in" "conftest.nl"
5330 echo 'GREP' >> "conftest.nl"
5331 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5333 ac_count=`expr $ac_count + 1`
5334 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5335 # Best one so far, save it but keep looking for a better one
5336 ac_cv_path_GREP="$ac_path_GREP"
5337 ac_path_GREP_max=$ac_count
5339 # 10*(2^10) chars as input seems more than enough
5340 test $ac_count -gt 10 && break
5342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5346 $ac_path_GREP_found && break 3
5356 GREP="$ac_cv_path_GREP"
5357 if test -z "$GREP"; then
5358 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5359 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5360 { (exit 1); exit 1; }; }
5364 ac_cv_path_GREP=$GREP
5369 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5370 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5371 GREP="$ac_cv_path_GREP"
5374 { echo "$as_me:$LINENO: checking for egrep" >&5
5375 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5376 if test "${ac_cv_path_EGREP+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5380 then ac_cv_path_EGREP="$GREP -E"
5382 # Extract the first word of "egrep" to use in msg output
5383 if test -z "$EGREP"; then
5384 set dummy egrep; ac_prog_name=$2
5385 if test "${ac_cv_path_EGREP+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 ac_path_EGREP_found=false
5389 # Loop through the user's path and test for each of PROGNAME-LIST
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5394 test -z "$as_dir" && as_dir=.
5395 for ac_prog in egrep; do
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5398 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5399 # Check for GNU ac_path_EGREP and select it if it is found.
5400 # Check for GNU $ac_path_EGREP
5401 case `"$ac_path_EGREP" --version 2>&1` in
5403 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5406 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5409 cat "conftest.in" "conftest.in" >"conftest.tmp"
5410 mv "conftest.tmp" "conftest.in"
5411 cp "conftest.in" "conftest.nl"
5412 echo 'EGREP' >> "conftest.nl"
5413 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5415 ac_count=`expr $ac_count + 1`
5416 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5417 # Best one so far, save it but keep looking for a better one
5418 ac_cv_path_EGREP="$ac_path_EGREP"
5419 ac_path_EGREP_max=$ac_count
5421 # 10*(2^10) chars as input seems more than enough
5422 test $ac_count -gt 10 && break
5424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5428 $ac_path_EGREP_found && break 3
5438 EGREP="$ac_cv_path_EGREP"
5439 if test -z "$EGREP"; then
5440 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5441 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5442 { (exit 1); exit 1; }; }
5446 ac_cv_path_EGREP=$EGREP
5452 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5453 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5454 EGREP="$ac_cv_path_EGREP"
5457 cat >conftest.$ac_ext <<_ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5469 $EGREP "yes" >/dev/null 2>&1; then
5472 if test "X$elf" = "Xyes" ; then
5486 CPPFLAGS="$CPPFLAGS $INCLUDES"
5487 LDFLAGS="$LDFLAGS $LIBDIRS"
5489 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
5490 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
5491 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
5492 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
5497 # Check whether --with-gnu-ld was given.
5498 if test "${with_gnu_ld+set}" = set; then
5499 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5505 if test "$GCC" = yes; then
5506 # Check if gcc -print-prog-name=ld gives a path.
5507 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5508 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5511 # gcc leaves a trailing carriage return which upsets mingw
5512 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5514 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5517 # Accept absolute paths.
5518 [\\/]* | [A-Za-z]:[\\/]*)
5519 re_direlt='/[^/][^/]*/\.\./'
5520 # Canonicalize the path of ld
5521 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5522 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5523 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5525 test -z "$LD" && LD="$ac_prog"
5528 # If it fails, then pretend we aren't using GCC.
5532 # If it is relative, then search for the first ld in PATH.
5536 elif test "$with_gnu_ld" = yes; then
5537 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5538 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5540 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5541 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5543 if test "${ac_cv_path_LD+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 if test -z "$LD"; then
5547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5548 for ac_dir in $PATH; do
5549 test -z "$ac_dir" && ac_dir=.
5550 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5551 ac_cv_path_LD="$ac_dir/$ac_prog"
5552 # Check to see if the program is GNU ld. I'd rather use --version,
5553 # but apparently some GNU ld's only accept -v.
5554 # Break only if it was the GNU/non-GNU ld that we prefer.
5555 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5556 test "$with_gnu_ld" != no && break
5558 test "$with_gnu_ld" != yes && break
5564 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5569 if test -n "$LD"; then
5570 { echo "$as_me:$LINENO: result: $LD" >&5
5571 echo "${ECHO_T}$LD" >&6; }
5573 { echo "$as_me:$LINENO: result: no" >&5
5574 echo "${ECHO_T}no" >&6; }
5576 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5577 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5578 { (exit 1); exit 1; }; }
5579 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5580 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5581 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5585 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5586 ac_cv_prog_gnu_ld=yes
5588 ac_cv_prog_gnu_ld=no
5591 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5592 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5593 with_gnu_ld=$ac_cv_prog_gnu_ld
5598 case $host_os in sysv5*)
5599 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5600 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5601 if test "${pgac_cv_prog_ld_R+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5606 cat >conftest.$ac_ext <<_ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5621 rm -f conftest.$ac_objext conftest$ac_exeext
5622 if { (ac_try="$ac_link"
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_link") 2>conftest.er1
5630 grep -v '^ *+' conftest.er1 >conftest.err
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && {
5635 test -z "$ac_c_werror_flag" ||
5636 test ! -s conftest.err
5637 } && test -s conftest$ac_exeext &&
5638 $as_test_x conftest$ac_exeext; then
5639 pgac_cv_prog_ld_R=yes
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5644 pgac_cv_prog_ld_R=no
5647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5648 conftest$ac_exeext conftest.$ac_ext
5649 LDFLAGS=$pgac_save_LDFLAGS
5652 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5653 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5654 ld_R_works=$pgac_cv_prog_ld_R
5657 if test -n "$ac_tool_prefix"; then
5658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5662 if test "${ac_cv_prog_RANLIB+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 if test -n "$RANLIB"; then
5666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 RANLIB=$ac_cv_prog_RANLIB
5686 if test -n "$RANLIB"; then
5687 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5688 echo "${ECHO_T}$RANLIB" >&6; }
5690 { echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6; }
5696 if test -z "$ac_cv_prog_RANLIB"; then
5697 ac_ct_RANLIB=$RANLIB
5698 # Extract the first word of "ranlib", so it can be a program name with args.
5699 set dummy ranlib; ac_word=$2
5700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5702 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 if test -n "$ac_ct_RANLIB"; then
5706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_prog_ac_ct_RANLIB="ranlib"
5716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5726 if test -n "$ac_ct_RANLIB"; then
5727 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5728 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5730 { echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6; }
5734 if test "x$ac_ct_RANLIB" = x; then
5737 case $cross_compiling:$ac_tool_warned in
5739 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5740 whose name does not start with the host triplet. If you think this
5741 configuration is useful to you, please write to autoconf@gnu.org." >&5
5742 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5743 whose name does not start with the host triplet. If you think this
5744 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5745 ac_tool_warned=yes ;;
5747 RANLIB=$ac_ct_RANLIB
5750 RANLIB="$ac_cv_prog_RANLIB"
5754 if test -n "$ac_tool_prefix"; then
5755 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5756 set dummy ${ac_tool_prefix}strip; ac_word=$2
5757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5759 if test "${ac_cv_prog_STRIP+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 if test -n "$STRIP"; then
5763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 STRIP=$ac_cv_prog_STRIP
5783 if test -n "$STRIP"; then
5784 { echo "$as_me:$LINENO: result: $STRIP" >&5
5785 echo "${ECHO_T}$STRIP" >&6; }
5787 { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5793 if test -z "$ac_cv_prog_STRIP"; then
5795 # Extract the first word of "strip", so it can be a program name with args.
5796 set dummy strip; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 if test -n "$ac_ct_STRIP"; then
5803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_prog_ac_ct_STRIP="strip"
5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5823 if test -n "$ac_ct_STRIP"; then
5824 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5825 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5827 { echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6; }
5831 if test "x$ac_ct_STRIP" = x; then
5834 case $cross_compiling:$ac_tool_warned in
5836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5837 whose name does not start with the host triplet. If you think this
5838 configuration is useful to you, please write to autoconf@gnu.org." >&5
5839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5840 whose name does not start with the host triplet. If you think this
5841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5842 ac_tool_warned=yes ;;
5847 STRIP="$ac_cv_prog_STRIP"
5851 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
5852 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
5853 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
5854 STRIP_STATIC_LIB="$STRIP -x"
5855 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
5856 { echo "$as_me:$LINENO: result: yes" >&5
5857 echo "${ECHO_T}yes" >&6; }
5861 { echo "$as_me:$LINENO: result: no" >&5
5862 echo "${ECHO_T}no" >&6; }
5868 # Extract the first word of "tar", so it can be a program name with args.
5869 set dummy tar; ac_word=$2
5870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872 if test "${ac_cv_path_TAR+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5887 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 if test -n "$TAR"; then
5900 { echo "$as_me:$LINENO: result: $TAR" >&5
5901 echo "${ECHO_T}$TAR" >&6; }
5903 { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5908 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5909 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5911 if test "$LN_S" = "ln -s"; then
5912 { echo "$as_me:$LINENO: result: yes" >&5
5913 echo "${ECHO_T}yes" >&6; }
5915 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5916 echo "${ECHO_T}no, using $LN_S" >&6; }
5919 for ac_prog in gawk mawk nawk awk
5921 # Extract the first word of "$ac_prog", so it can be a program name with args.
5922 set dummy $ac_prog; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_prog_AWK+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 if test -n "$AWK"; then
5929 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_AWK="$ac_prog"
5939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 if test -n "$AWK"; then
5950 { echo "$as_me:$LINENO: result: $AWK" >&5
5951 echo "${ECHO_T}$AWK" >&6; }
5953 { echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6; }
5958 test -n "$AWK" && break
5962 # Let the user override the search
5963 if test -z "$YACC"; then
5964 for ac_prog in 'bison -y'
5966 # Extract the first word of "$ac_prog", so it can be a program name with args.
5967 set dummy $ac_prog; ac_word=$2
5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970 if test "${ac_cv_prog_YACC+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 if test -n "$YACC"; then
5974 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983 ac_cv_prog_YACC="$ac_prog"
5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 YACC=$ac_cv_prog_YACC
5994 if test -n "$YACC"; then
5995 { echo "$as_me:$LINENO: result: $YACC" >&5
5996 echo "${ECHO_T}$YACC" >&6; }
5998 { echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6; }
6003 test -n "$YACC" && break
6008 if test "$YACC"; then
6009 pgac_yacc_version=`$YACC --version 2>/dev/null | sed q`
6010 { echo "$as_me:$LINENO: using $pgac_yacc_version" >&5
6011 echo "$as_me: using $pgac_yacc_version" >&6;}
6012 if echo "$pgac_yacc_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6014 { echo "$as_me:$LINENO: WARNING:
6015 *** The installed version of Bison is too old to use with PostgreSQL.
6016 *** Bison version 1.875 or later is required." >&5
6017 echo "$as_me: WARNING:
6018 *** The installed version of Bison is too old to use with PostgreSQL.
6019 *** Bison version 1.875 or later is required." >&2;}
6024 if test -z "$YACC"; then
6025 { echo "$as_me:$LINENO: WARNING:
6026 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6027 *** change any of the parser definition files. You can obtain Bison from
6028 *** a GNU mirror site. (If you are using the official distribution of
6029 *** PostgreSQL then you do not need to worry about this, because the Bison
6030 *** output is pre-generated.) To use a different yacc program (possible,
6031 *** but not recommended), set the environment variable YACC before running
6032 *** 'configure'." >&5
6033 echo "$as_me: WARNING:
6034 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6035 *** change any of the parser definition files. You can obtain Bison from
6036 *** a GNU mirror site. (If you are using the official distribution of
6037 *** PostgreSQL then you do not need to worry about this, because the Bison
6038 *** output is pre-generated.) To use a different yacc program (possible,
6039 *** but not recommended), set the environment variable YACC before running
6040 *** 'configure'." >&2;}
6042 # We don't need AC_SUBST(YACC) because AC_PATH_PROG did it
6045 { echo "$as_me:$LINENO: checking for flex" >&5
6046 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6047 if test "${pgac_cv_path_flex+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 # Let the user override the test
6051 if test -n "$FLEX"; then
6052 pgac_cv_path_flex=$FLEX
6056 for pgac_dir in $PATH; do
6058 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6061 for pgac_prog in flex lex; do
6062 pgac_candidate="$pgac_dir/$pgac_prog"
6063 if test -f "$pgac_candidate" \
6064 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6066 echo '%%' > conftest.l
6067 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6068 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6069 pgac_broken_flex=$pgac_candidate
6073 pgac_cv_path_flex=$pgac_candidate
6079 rm -f conftest.l lex.yy.c
6080 : ${pgac_cv_path_flex=no}
6084 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6085 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6086 if test x"$pgac_cv_path_flex" = x"no"; then
6087 if test -n "$pgac_broken_flex"; then
6088 { echo "$as_me:$LINENO: WARNING:
6089 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6090 *** should get version 2.5.4 or later." >&5
6091 echo "$as_me: WARNING:
6092 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6093 *** should get version 2.5.4 or later." >&2;}
6096 { echo "$as_me:$LINENO: WARNING:
6097 *** Without Flex you will not be able to build PostgreSQL from CVS or
6098 *** change any of the scanner definition files. You can obtain Flex from
6099 *** a GNU mirror site. (If you are using the official distribution of
6100 *** PostgreSQL then you do not need to worry about this because the Flex
6101 *** output is pre-generated.)" >&5
6102 echo "$as_me: WARNING:
6103 *** Without Flex you will not be able to build PostgreSQL from CVS or
6104 *** change any of the scanner definition files. You can obtain Flex from
6105 *** a GNU mirror site. (If you are using the official distribution of
6106 *** PostgreSQL then you do not need to worry about this because the Flex
6107 *** output is pre-generated.)" >&2;}
6111 FLEX=$pgac_cv_path_flex
6112 pgac_flex_version=`$FLEX -V 2>/dev/null`
6113 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6114 echo "$as_me: using $pgac_flex_version" >&6;}
6121 # Extract the first word of "perl", so it can be a program name with args.
6122 set dummy perl; ac_word=$2
6123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6125 if test "${ac_cv_path_PERL+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6140 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 PERL=$ac_cv_path_PERL
6152 if test -n "$PERL"; then
6153 { echo "$as_me:$LINENO: result: $PERL" >&5
6154 echo "${ECHO_T}$PERL" >&6; }
6156 { echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6; }
6161 if test "$with_perl" = yes; then
6163 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6164 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6165 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6166 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6167 echo "${ECHO_T}$perl_archlibexp" >&6; }
6168 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6169 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6170 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6171 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6172 echo "${ECHO_T}$perl_privlibexp" >&6; }
6173 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6174 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6175 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6176 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6177 echo "${ECHO_T}$perl_useshrplib" >&6; }
6179 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6180 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6181 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6182 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6183 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6184 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6185 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6188 if test "$with_python" = yes; then
6189 # Extract the first word of "python", so it can be a program name with args.
6190 set dummy python; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_path_PYTHON+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 PYTHON=$ac_cv_path_PYTHON
6220 if test -n "$PYTHON"; then
6221 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6222 echo "${ECHO_T}$PYTHON" >&6; }
6224 { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6229 if test x"$PYTHON" = x""; then
6230 { { echo "$as_me:$LINENO: error: Python not found" >&5
6231 echo "$as_me: error: Python not found" >&2;}
6232 { (exit 1); exit 1; }; }
6236 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6237 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6238 if "${PYTHON}" 2>&- -c 'import distutils'
6240 { echo "$as_me:$LINENO: result: yes" >&5
6241 echo "${ECHO_T}yes" >&6; }
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6245 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6246 echo "$as_me: error: distutils module not found" >&2;}
6247 { (exit 1); exit 1; }; }
6249 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6250 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6251 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6252 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')"`
6253 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6255 # This should be enough of a message.
6256 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6257 echo "${ECHO_T}$python_configdir" >&6; }
6260 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6261 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6263 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6264 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6265 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6266 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6268 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6270 # New way: use the official shared library
6271 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6272 python_libspec="-L${python_libdir} -l${ldlibrary}"
6274 # Old way: use libpython from python_configdir
6275 python_libdir="${python_configdir}"
6276 python_libspec="-L${python_libdir} -lpython${python_version}"
6279 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6281 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6282 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6285 # threaded python is not supported on bsd's
6286 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6287 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6288 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6289 if test "$pythreads" = "1"; then
6290 { echo "$as_me:$LINENO: result: yes" >&5
6291 echo "${ECHO_T}yes" >&6; }
6294 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6295 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6296 { (exit 1); exit 1; }; }
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6307 # Supply a numeric version string for use by 3rd party add-ons
6308 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6309 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6311 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6313 cat >>confdefs.h <<_ACEOF
6314 #define PG_VERSION_NUM $PG_VERSION_NUM
6321 ## Most libraries are included only if they demonstrably provide a function
6322 ## we need, but libm is an exception: always include it, because there are
6323 ## too many compilers that play cute optimization games that will break
6324 ## probes for standard functions such as pow().
6328 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6329 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6330 if test "${ac_cv_lib_m_main+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 ac_check_lib_save_LIBS=$LIBS
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (ac_try="$ac_link"
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_link") 2>conftest.er1
6360 grep -v '^ *+' conftest.er1 >conftest.err
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest$ac_exeext &&
6368 $as_test_x conftest$ac_exeext; then
6369 ac_cv_lib_m_main=yes
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6378 conftest$ac_exeext conftest.$ac_ext
6379 LIBS=$ac_check_lib_save_LIBS
6381 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6382 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6383 if test $ac_cv_lib_m_main = yes; then
6384 cat >>confdefs.h <<_ACEOF
6392 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6393 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6394 if test "${ac_cv_search_setproctitle+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 ac_func_search_save_LIBS=$LIBS
6398 cat >conftest.$ac_ext <<_ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6405 /* Override any GCC internal prototype to avoid an error.
6406 Use char because int might match the return type of a GCC
6407 builtin and then its argument prototype would still apply. */
6411 char setproctitle ();
6415 return setproctitle ();
6420 for ac_lib in '' util; do
6421 if test -z "$ac_lib"; then
6422 ac_res="none required"
6425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (ac_try="$ac_link"
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_link") 2>conftest.er1
6436 grep -v '^ *+' conftest.er1 >conftest.err
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest$ac_exeext &&
6444 $as_test_x conftest$ac_exeext; then
6445 ac_cv_search_setproctitle=$ac_res
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6455 if test "${ac_cv_search_setproctitle+set}" = set; then
6459 if test "${ac_cv_search_setproctitle+set}" = set; then
6462 ac_cv_search_setproctitle=no
6465 LIBS=$ac_func_search_save_LIBS
6467 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6468 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6469 ac_res=$ac_cv_search_setproctitle
6470 if test "$ac_res" != no; then
6471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6475 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6476 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6477 if test "${ac_cv_search_dlopen+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 ac_func_search_save_LIBS=$LIBS
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6488 /* Override any GCC internal prototype to avoid an error.
6489 Use char because int might match the return type of a GCC
6490 builtin and then its argument prototype would still apply. */
6503 for ac_lib in '' dl; do
6504 if test -z "$ac_lib"; then
6505 ac_res="none required"
6508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6510 rm -f conftest.$ac_objext conftest$ac_exeext
6511 if { (ac_try="$ac_link"
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_link") 2>conftest.er1
6519 grep -v '^ *+' conftest.er1 >conftest.err
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } && {
6524 test -z "$ac_c_werror_flag" ||
6525 test ! -s conftest.err
6526 } && test -s conftest$ac_exeext &&
6527 $as_test_x conftest$ac_exeext; then
6528 ac_cv_search_dlopen=$ac_res
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6538 if test "${ac_cv_search_dlopen+set}" = set; then
6542 if test "${ac_cv_search_dlopen+set}" = set; then
6545 ac_cv_search_dlopen=no
6548 LIBS=$ac_func_search_save_LIBS
6550 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6551 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6552 ac_res=$ac_cv_search_dlopen
6553 if test "$ac_res" != no; then
6554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6558 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6559 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6560 if test "${ac_cv_search_socket+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 ac_func_search_save_LIBS=$LIBS
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6571 /* Override any GCC internal prototype to avoid an error.
6572 Use char because int might match the return type of a GCC
6573 builtin and then its argument prototype would still apply. */
6586 for ac_lib in '' socket wsock32; do
6587 if test -z "$ac_lib"; then
6588 ac_res="none required"
6591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6593 rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (ac_try="$ac_link"
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600 (eval "$ac_link") 2>conftest.er1
6602 grep -v '^ *+' conftest.er1 >conftest.err
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && {
6607 test -z "$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6609 } && test -s conftest$ac_exeext &&
6610 $as_test_x conftest$ac_exeext; then
6611 ac_cv_search_socket=$ac_res
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6621 if test "${ac_cv_search_socket+set}" = set; then
6625 if test "${ac_cv_search_socket+set}" = set; then
6628 ac_cv_search_socket=no
6631 LIBS=$ac_func_search_save_LIBS
6633 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6634 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6635 ac_res=$ac_cv_search_socket
6636 if test "$ac_res" != no; then
6637 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6641 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6642 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6643 if test "${ac_cv_search_shl_load+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 ac_func_search_save_LIBS=$LIBS
6647 cat >conftest.$ac_ext <<_ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6654 /* Override any GCC internal prototype to avoid an error.
6655 Use char because int might match the return type of a GCC
6656 builtin and then its argument prototype would still apply. */
6669 for ac_lib in '' dld; do
6670 if test -z "$ac_lib"; then
6671 ac_res="none required"
6674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6676 rm -f conftest.$ac_objext conftest$ac_exeext
6677 if { (ac_try="$ac_link"
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_link") 2>conftest.er1
6685 grep -v '^ *+' conftest.er1 >conftest.err
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && {
6690 test -z "$ac_c_werror_flag" ||
6691 test ! -s conftest.err
6692 } && test -s conftest$ac_exeext &&
6693 $as_test_x conftest$ac_exeext; then
6694 ac_cv_search_shl_load=$ac_res
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6704 if test "${ac_cv_search_shl_load+set}" = set; then
6708 if test "${ac_cv_search_shl_load+set}" = set; then
6711 ac_cv_search_shl_load=no
6714 LIBS=$ac_func_search_save_LIBS
6716 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6717 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6718 ac_res=$ac_cv_search_shl_load
6719 if test "$ac_res" != no; then
6720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6724 # We only use libld in port/dynloader/aix.c
6727 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6728 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6729 if test "${ac_cv_search_ldopen+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 ac_func_search_save_LIBS=$LIBS
6733 cat >conftest.$ac_ext <<_ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6740 /* Override any GCC internal prototype to avoid an error.
6741 Use char because int might match the return type of a GCC
6742 builtin and then its argument prototype would still apply. */
6755 for ac_lib in '' ld; do
6756 if test -z "$ac_lib"; then
6757 ac_res="none required"
6760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6762 rm -f conftest.$ac_objext conftest$ac_exeext
6763 if { (ac_try="$ac_link"
6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769 (eval "$ac_link") 2>conftest.er1
6771 grep -v '^ *+' conftest.er1 >conftest.err
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest$ac_exeext &&
6779 $as_test_x conftest$ac_exeext; then
6780 ac_cv_search_ldopen=$ac_res
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6790 if test "${ac_cv_search_ldopen+set}" = set; then
6794 if test "${ac_cv_search_ldopen+set}" = set; then
6797 ac_cv_search_ldopen=no
6800 LIBS=$ac_func_search_save_LIBS
6802 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6803 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
6804 ac_res=$ac_cv_search_ldopen
6805 if test "$ac_res" != no; then
6806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6812 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6813 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
6814 if test "${ac_cv_search_getopt_long+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 ac_func_search_save_LIBS=$LIBS
6818 cat >conftest.$ac_ext <<_ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6825 /* Override any GCC internal prototype to avoid an error.
6826 Use char because int might match the return type of a GCC
6827 builtin and then its argument prototype would still apply. */
6831 char getopt_long ();
6835 return getopt_long ();
6840 for ac_lib in '' getopt gnugetopt; do
6841 if test -z "$ac_lib"; then
6842 ac_res="none required"
6845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6847 rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (ac_try="$ac_link"
6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6854 (eval "$ac_link") 2>conftest.er1
6856 grep -v '^ *+' conftest.er1 >conftest.err
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } && {
6861 test -z "$ac_c_werror_flag" ||
6862 test ! -s conftest.err
6863 } && test -s conftest$ac_exeext &&
6864 $as_test_x conftest$ac_exeext; then
6865 ac_cv_search_getopt_long=$ac_res
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6875 if test "${ac_cv_search_getopt_long+set}" = set; then
6879 if test "${ac_cv_search_getopt_long+set}" = set; then
6882 ac_cv_search_getopt_long=no
6885 LIBS=$ac_func_search_save_LIBS
6887 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6888 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
6889 ac_res=$ac_cv_search_getopt_long
6890 if test "$ac_res" != no; then
6891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6895 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
6896 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
6897 if test "${ac_cv_search_crypt+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 ac_func_search_save_LIBS=$LIBS
6901 cat >conftest.$ac_ext <<_ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6908 /* Override any GCC internal prototype to avoid an error.
6909 Use char because int might match the return type of a GCC
6910 builtin and then its argument prototype would still apply. */
6923 for ac_lib in '' crypt; do
6924 if test -z "$ac_lib"; then
6925 ac_res="none required"
6928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (ac_try="$ac_link"
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937 (eval "$ac_link") 2>conftest.er1
6939 grep -v '^ *+' conftest.er1 >conftest.err
6941 cat conftest.err >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && {
6944 test -z "$ac_c_werror_flag" ||
6945 test ! -s conftest.err
6946 } && test -s conftest$ac_exeext &&
6947 $as_test_x conftest$ac_exeext; then
6948 ac_cv_search_crypt=$ac_res
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6958 if test "${ac_cv_search_crypt+set}" = set; then
6962 if test "${ac_cv_search_crypt+set}" = set; then
6965 ac_cv_search_crypt=no
6968 LIBS=$ac_func_search_save_LIBS
6970 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6971 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
6972 ac_res=$ac_cv_search_crypt
6973 if test "$ac_res" != no; then
6974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6979 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6980 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
6981 if test "${ac_cv_search_fdatasync+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 ac_func_search_save_LIBS=$LIBS
6985 cat >conftest.$ac_ext <<_ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6992 /* Override any GCC internal prototype to avoid an error.
6993 Use char because int might match the return type of a GCC
6994 builtin and then its argument prototype would still apply. */
7002 return fdatasync ();
7007 for ac_lib in '' rt posix4; do
7008 if test -z "$ac_lib"; then
7009 ac_res="none required"
7012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7014 rm -f conftest.$ac_objext conftest$ac_exeext
7015 if { (ac_try="$ac_link"
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021 (eval "$ac_link") 2>conftest.er1
7023 grep -v '^ *+' conftest.er1 >conftest.err
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } && {
7028 test -z "$ac_c_werror_flag" ||
7029 test ! -s conftest.err
7030 } && test -s conftest$ac_exeext &&
7031 $as_test_x conftest$ac_exeext; then
7032 ac_cv_search_fdatasync=$ac_res
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7042 if test "${ac_cv_search_fdatasync+set}" = set; then
7046 if test "${ac_cv_search_fdatasync+set}" = set; then
7049 ac_cv_search_fdatasync=no
7052 LIBS=$ac_func_search_save_LIBS
7054 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7055 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7056 ac_res=$ac_cv_search_fdatasync
7057 if test "$ac_res" != no; then
7058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7063 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7064 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7065 if test "${ac_cv_search_shmget+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 ac_func_search_save_LIBS=$LIBS
7069 cat >conftest.$ac_ext <<_ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7076 /* Override any GCC internal prototype to avoid an error.
7077 Use char because int might match the return type of a GCC
7078 builtin and then its argument prototype would still apply. */
7091 for ac_lib in '' cygipc; do
7092 if test -z "$ac_lib"; then
7093 ac_res="none required"
7096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7098 rm -f conftest.$ac_objext conftest$ac_exeext
7099 if { (ac_try="$ac_link"
7101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7102 *) ac_try_echo=$ac_try;;
7104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7105 (eval "$ac_link") 2>conftest.er1
7107 grep -v '^ *+' conftest.er1 >conftest.err
7109 cat conftest.err >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } && {
7112 test -z "$ac_c_werror_flag" ||
7113 test ! -s conftest.err
7114 } && test -s conftest$ac_exeext &&
7115 $as_test_x conftest$ac_exeext; then
7116 ac_cv_search_shmget=$ac_res
7118 echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7126 if test "${ac_cv_search_shmget+set}" = set; then
7130 if test "${ac_cv_search_shmget+set}" = set; then
7133 ac_cv_search_shmget=no
7136 LIBS=$ac_func_search_save_LIBS
7138 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7139 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7140 ac_res=$ac_cv_search_shmget
7141 if test "$ac_res" != no; then
7142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7147 if test "$with_readline" = yes; then
7150 if test "${pgac_cv_check_readline+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 pgac_cv_check_readline=no
7154 pgac_save_LIBS=$LIBS
7155 if test x"$with_libedit_preferred" != x"yes"
7156 then READLINE_ORDER="-lreadline -ledit"
7157 else READLINE_ORDER="-ledit -lreadline"
7159 for pgac_rllib in $READLINE_ORDER ; do
7160 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7161 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7162 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7163 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7164 cat >conftest.$ac_ext <<_ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7171 /* Override any GCC internal prototype to avoid an error.
7172 Use char because int might match the return type of a GCC
7173 builtin and then its argument prototype would still apply. */
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (ac_try="$ac_link"
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_link") 2>conftest.er1
7195 grep -v '^ *+' conftest.er1 >conftest.err
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest$ac_exeext &&
7203 $as_test_x conftest$ac_exeext; then
7205 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7206 # recognize dependent libraries; assume curses is needed if we didn't
7207 # find any dependency.
7209 netbsd* | openbsd* | irix*)
7210 if test x"$pgac_lib" = x"" ; then
7211 pgac_lib=" -lcurses"
7215 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7226 conftest$ac_exeext conftest.$ac_ext
7228 if test "$pgac_cv_check_readline" != no ; then
7229 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7230 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7233 { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7237 LIBS=$pgac_save_LIBS
7241 if test "$pgac_cv_check_readline" != no ; then
7242 LIBS="$pgac_cv_check_readline $LIBS"
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_LIBREADLINE 1
7251 if test x"$pgac_cv_check_readline" = x"no"; then
7252 { { echo "$as_me:$LINENO: error: readline library not found
7253 If you have readline already installed, see config.log for details on the
7254 failure. It is possible the compiler isn't looking in the proper directory.
7255 Use --without-readline to disable readline support." >&5
7256 echo "$as_me: error: readline library not found
7257 If you have readline already installed, see config.log for details on the
7258 failure. It is possible the compiler isn't looking in the proper directory.
7259 Use --without-readline to disable readline support." >&2;}
7260 { (exit 1); exit 1; }; }
7264 if test "$with_zlib" = yes; then
7266 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7267 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7268 if test "${ac_cv_lib_z_inflate+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 ac_check_lib_save_LIBS=$LIBS
7273 cat >conftest.$ac_ext <<_ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7280 /* Override any GCC internal prototype to avoid an error.
7281 Use char because int might match the return type of a GCC
7282 builtin and then its argument prototype would still apply. */
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (ac_try="$ac_link"
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_link") 2>conftest.er1
7304 grep -v '^ *+' conftest.er1 >conftest.err
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest$ac_exeext &&
7312 $as_test_x conftest$ac_exeext; then
7313 ac_cv_lib_z_inflate=yes
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7318 ac_cv_lib_z_inflate=no
7321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7322 conftest$ac_exeext conftest.$ac_ext
7323 LIBS=$ac_check_lib_save_LIBS
7325 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7326 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7327 if test $ac_cv_lib_z_inflate = yes; then
7328 cat >>confdefs.h <<_ACEOF
7335 { { echo "$as_me:$LINENO: error: zlib library not found
7336 If you have zlib already installed, see config.log for details on the
7337 failure. It is possible the compiler isn't looking in the proper directory.
7338 Use --without-zlib to disable zlib support." >&5
7339 echo "$as_me: error: zlib library not found
7340 If you have zlib already installed, see config.log for details on the
7341 failure. It is possible the compiler isn't looking in the proper directory.
7342 Use --without-zlib to disable zlib support." >&2;}
7343 { (exit 1); exit 1; }; }
7348 if test "$enable_spinlocks" = yes; then
7350 cat >>confdefs.h <<\_ACEOF
7351 #define HAVE_SPINLOCKS 1
7355 { echo "$as_me:$LINENO: WARNING:
7356 *** Not using spinlocks will cause poor performance." >&5
7357 echo "$as_me: WARNING:
7358 *** Not using spinlocks will cause poor performance." >&2;}
7361 if test "$with_gssapi" = yes ; then
7362 if test "$PORTNAME" != "win32"; then
7363 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7364 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7365 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 ac_func_search_save_LIBS=$LIBS
7369 cat >conftest.$ac_ext <<_ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h. */
7376 /* Override any GCC internal prototype to avoid an error.
7377 Use char because int might match the return type of a GCC
7378 builtin and then its argument prototype would still apply. */
7382 char gss_init_sec_context ();
7386 return gss_init_sec_context ();
7391 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7392 if test -z "$ac_lib"; then
7393 ac_res="none required"
7396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7398 rm -f conftest.$ac_objext conftest$ac_exeext
7399 if { (ac_try="$ac_link"
7401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402 *) ac_try_echo=$ac_try;;
7404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7405 (eval "$ac_link") 2>conftest.er1
7407 grep -v '^ *+' conftest.er1 >conftest.err
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } && {
7412 test -z "$ac_c_werror_flag" ||
7413 test ! -s conftest.err
7414 } && test -s conftest$ac_exeext &&
7415 $as_test_x conftest$ac_exeext; then
7416 ac_cv_search_gss_init_sec_context=$ac_res
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7426 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7430 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7433 ac_cv_search_gss_init_sec_context=no
7436 LIBS=$ac_func_search_save_LIBS
7438 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7439 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7440 ac_res=$ac_cv_search_gss_init_sec_context
7441 if test "$ac_res" != no; then
7442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7445 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7446 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7447 { (exit 1); exit 1; }; }
7451 LIBS="$LIBS -lgssapi32"
7455 if test "$with_krb5" = yes ; then
7456 if test "$PORTNAME" != "win32"; then
7457 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7458 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7459 if test "${ac_cv_search_com_err+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 ac_func_search_save_LIBS=$LIBS
7463 cat >conftest.$ac_ext <<_ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7470 /* Override any GCC internal prototype to avoid an error.
7471 Use char because int might match the return type of a GCC
7472 builtin and then its argument prototype would still apply. */
7485 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7486 if test -z "$ac_lib"; then
7487 ac_res="none required"
7490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7492 rm -f conftest.$ac_objext conftest$ac_exeext
7493 if { (ac_try="$ac_link"
7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496 *) ac_try_echo=$ac_try;;
7498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499 (eval "$ac_link") 2>conftest.er1
7501 grep -v '^ *+' conftest.er1 >conftest.err
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } && {
7506 test -z "$ac_c_werror_flag" ||
7507 test ! -s conftest.err
7508 } && test -s conftest$ac_exeext &&
7509 $as_test_x conftest$ac_exeext; then
7510 ac_cv_search_com_err=$ac_res
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7520 if test "${ac_cv_search_com_err+set}" = set; then
7524 if test "${ac_cv_search_com_err+set}" = set; then
7527 ac_cv_search_com_err=no
7530 LIBS=$ac_func_search_save_LIBS
7532 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7533 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7534 ac_res=$ac_cv_search_com_err
7535 if test "$ac_res" != no; then
7536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7539 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7540 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7541 { (exit 1); exit 1; }; }
7544 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7545 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7546 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 ac_func_search_save_LIBS=$LIBS
7550 cat >conftest.$ac_ext <<_ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7557 /* Override any GCC internal prototype to avoid an error.
7558 Use char because int might match the return type of a GCC
7559 builtin and then its argument prototype would still apply. */
7563 char krb5_sendauth ();
7567 return krb5_sendauth ();
7572 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7573 if test -z "$ac_lib"; then
7574 ac_res="none required"
7577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7579 rm -f conftest.$ac_objext conftest$ac_exeext
7580 if { (ac_try="$ac_link"
7582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7583 *) ac_try_echo=$ac_try;;
7585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586 (eval "$ac_link") 2>conftest.er1
7588 grep -v '^ *+' conftest.er1 >conftest.err
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } && {
7593 test -z "$ac_c_werror_flag" ||
7594 test ! -s conftest.err
7595 } && test -s conftest$ac_exeext &&
7596 $as_test_x conftest$ac_exeext; then
7597 ac_cv_search_krb5_sendauth=$ac_res
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7607 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7611 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7614 ac_cv_search_krb5_sendauth=no
7617 LIBS=$ac_func_search_save_LIBS
7619 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7620 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7621 ac_res=$ac_cv_search_krb5_sendauth
7622 if test "$ac_res" != no; then
7623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7626 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7627 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7628 { (exit 1); exit 1; }; }
7632 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7633 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7634 if test "${ac_cv_search_com_err+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 ac_func_search_save_LIBS=$LIBS
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7645 /* Override any GCC internal prototype to avoid an error.
7646 Use char because int might match the return type of a GCC
7647 builtin and then its argument prototype would still apply. */
7660 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7661 if test -z "$ac_lib"; then
7662 ac_res="none required"
7665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (ac_try="$ac_link"
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_link") 2>conftest.er1
7676 grep -v '^ *+' conftest.er1 >conftest.err
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } && {
7681 test -z "$ac_c_werror_flag" ||
7682 test ! -s conftest.err
7683 } && test -s conftest$ac_exeext &&
7684 $as_test_x conftest$ac_exeext; then
7685 ac_cv_search_com_err=$ac_res
7687 echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7695 if test "${ac_cv_search_com_err+set}" = set; then
7699 if test "${ac_cv_search_com_err+set}" = set; then
7702 ac_cv_search_com_err=no
7705 LIBS=$ac_func_search_save_LIBS
7707 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7708 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7709 ac_res=$ac_cv_search_com_err
7710 if test "$ac_res" != no; then
7711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7714 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7715 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7716 { (exit 1); exit 1; }; }
7722 if test "$with_openssl" = yes ; then
7723 if test "$PORTNAME" != "win32"; then
7725 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7726 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7727 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 ac_check_lib_save_LIBS=$LIBS
7731 LIBS="-lcrypto $LIBS"
7732 cat >conftest.$ac_ext <<_ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7739 /* Override any GCC internal prototype to avoid an error.
7740 Use char because int might match the return type of a GCC
7741 builtin and then its argument prototype would still apply. */
7745 char CRYPTO_new_ex_data ();
7749 return CRYPTO_new_ex_data ();
7754 rm -f conftest.$ac_objext conftest$ac_exeext
7755 if { (ac_try="$ac_link"
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_link") 2>conftest.er1
7763 grep -v '^ *+' conftest.er1 >conftest.err
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest$ac_exeext &&
7771 $as_test_x conftest$ac_exeext; then
7772 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7777 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7781 conftest$ac_exeext conftest.$ac_ext
7782 LIBS=$ac_check_lib_save_LIBS
7784 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7785 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
7786 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7787 cat >>confdefs.h <<_ACEOF
7788 #define HAVE_LIBCRYPTO 1
7791 LIBS="-lcrypto $LIBS"
7794 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7795 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7796 { (exit 1); exit 1; }; }
7800 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7801 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
7802 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 ac_check_lib_save_LIBS=$LIBS
7807 cat >conftest.$ac_ext <<_ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7814 /* Override any GCC internal prototype to avoid an error.
7815 Use char because int might match the return type of a GCC
7816 builtin and then its argument prototype would still apply. */
7820 char SSL_library_init ();
7824 return SSL_library_init ();
7829 rm -f conftest.$ac_objext conftest$ac_exeext
7830 if { (ac_try="$ac_link"
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_link") 2>conftest.er1
7838 grep -v '^ *+' conftest.er1 >conftest.err
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && {
7843 test -z "$ac_c_werror_flag" ||
7844 test ! -s conftest.err
7845 } && test -s conftest$ac_exeext &&
7846 $as_test_x conftest$ac_exeext; then
7847 ac_cv_lib_ssl_SSL_library_init=yes
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7852 ac_cv_lib_ssl_SSL_library_init=no
7855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7856 conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7859 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7860 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
7861 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7862 cat >>confdefs.h <<_ACEOF
7863 #define HAVE_LIBSSL 1
7869 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7870 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7871 { (exit 1); exit 1; }; }
7876 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7877 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
7878 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 ac_check_lib_save_LIBS=$LIBS
7882 LIBS="-leay32 $LIBS"
7883 cat >conftest.$ac_ext <<_ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7890 /* Override any GCC internal prototype to avoid an error.
7891 Use char because int might match the return type of a GCC
7892 builtin and then its argument prototype would still apply. */
7896 char CRYPTO_new_ex_data ();
7900 return CRYPTO_new_ex_data ();
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (ac_try="$ac_link"
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912 (eval "$ac_link") 2>conftest.er1
7914 grep -v '^ *+' conftest.er1 >conftest.err
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } && {
7919 test -z "$ac_c_werror_flag" ||
7920 test ! -s conftest.err
7921 } && test -s conftest$ac_exeext &&
7922 $as_test_x conftest$ac_exeext; then
7923 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7932 conftest$ac_exeext conftest.$ac_ext
7933 LIBS=$ac_check_lib_save_LIBS
7935 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7936 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
7937 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7938 cat >>confdefs.h <<_ACEOF
7939 #define HAVE_LIBEAY32 1
7942 LIBS="-leay32 $LIBS"
7945 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7946 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7947 { (exit 1); exit 1; }; }
7951 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7952 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
7953 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 ac_check_lib_save_LIBS=$LIBS
7957 LIBS="-lssleay32 $LIBS"
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7965 /* Override any GCC internal prototype to avoid an error.
7966 Use char because int might match the return type of a GCC
7967 builtin and then its argument prototype would still apply. */
7971 char SSL_library_init ();
7975 return SSL_library_init ();
7980 rm -f conftest.$ac_objext conftest$ac_exeext
7981 if { (ac_try="$ac_link"
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_link") 2>conftest.er1
7989 grep -v '^ *+' conftest.er1 >conftest.err
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } && {
7994 test -z "$ac_c_werror_flag" ||
7995 test ! -s conftest.err
7996 } && test -s conftest$ac_exeext &&
7997 $as_test_x conftest$ac_exeext; then
7998 ac_cv_lib_ssleay32_SSL_library_init=yes
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8003 ac_cv_lib_ssleay32_SSL_library_init=no
8006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8007 conftest$ac_exeext conftest.$ac_ext
8008 LIBS=$ac_check_lib_save_LIBS
8010 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8011 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8012 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8013 cat >>confdefs.h <<_ACEOF
8014 #define HAVE_LIBSSLEAY32 1
8017 LIBS="-lssleay32 $LIBS"
8020 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8021 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8022 { (exit 1); exit 1; }; }
8028 if test "$with_pam" = yes ; then
8030 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8031 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8032 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 ac_check_lib_save_LIBS=$LIBS
8037 cat >conftest.$ac_ext <<_ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8044 /* Override any GCC internal prototype to avoid an error.
8045 Use char because int might match the return type of a GCC
8046 builtin and then its argument prototype would still apply. */
8054 return pam_start ();
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (ac_try="$ac_link"
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_link") 2>conftest.er1
8068 grep -v '^ *+' conftest.er1 >conftest.err
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } && {
8073 test -z "$ac_c_werror_flag" ||
8074 test ! -s conftest.err
8075 } && test -s conftest$ac_exeext &&
8076 $as_test_x conftest$ac_exeext; then
8077 ac_cv_lib_pam_pam_start=yes
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8082 ac_cv_lib_pam_pam_start=no
8085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8086 conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8089 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8090 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8091 if test $ac_cv_lib_pam_pam_start = yes; then
8092 cat >>confdefs.h <<_ACEOF
8093 #define HAVE_LIBPAM 1
8099 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8100 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8101 { (exit 1); exit 1; }; }
8106 if test "$with_libxml" = yes ; then
8108 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8109 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8110 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 ac_check_lib_save_LIBS=$LIBS
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8122 /* Override any GCC internal prototype to avoid an error.
8123 Use char because int might match the return type of a GCC
8124 builtin and then its argument prototype would still apply. */
8128 char xmlSaveToBuffer ();
8132 return xmlSaveToBuffer ();
8137 rm -f conftest.$ac_objext conftest$ac_exeext
8138 if { (ac_try="$ac_link"
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_link") 2>conftest.er1
8146 grep -v '^ *+' conftest.er1 >conftest.err
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && {
8151 test -z "$ac_c_werror_flag" ||
8152 test ! -s conftest.err
8153 } && test -s conftest$ac_exeext &&
8154 $as_test_x conftest$ac_exeext; then
8155 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 ac_cv_lib_xml2_xmlSaveToBuffer=no
8163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8164 conftest$ac_exeext conftest.$ac_ext
8165 LIBS=$ac_check_lib_save_LIBS
8167 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8168 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8169 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8170 cat >>confdefs.h <<_ACEOF
8171 #define HAVE_LIBXML2 1
8177 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8178 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8179 { (exit 1); exit 1; }; }
8184 if test "$with_libxslt" = yes ; then
8186 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8187 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8188 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 ac_check_lib_save_LIBS=$LIBS
8193 cat >conftest.$ac_ext <<_ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8200 /* Override any GCC internal prototype to avoid an error.
8201 Use char because int might match the return type of a GCC
8202 builtin and then its argument prototype would still apply. */
8206 char xsltCleanupGlobals ();
8210 return xsltCleanupGlobals ();
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (ac_try="$ac_link"
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_link") 2>conftest.er1
8224 grep -v '^ *+' conftest.er1 >conftest.err
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } && {
8229 test -z "$ac_c_werror_flag" ||
8230 test ! -s conftest.err
8231 } && test -s conftest$ac_exeext &&
8232 $as_test_x conftest$ac_exeext; then
8233 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 ac_cv_lib_xslt_xsltCleanupGlobals=no
8241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8242 conftest$ac_exeext conftest.$ac_ext
8243 LIBS=$ac_check_lib_save_LIBS
8245 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8246 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8247 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8248 cat >>confdefs.h <<_ACEOF
8249 #define HAVE_LIBXSLT 1
8255 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8256 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8257 { (exit 1); exit 1; }; }
8262 # for contrib/uuid-ossp
8263 if test "$with_ossp_uuid" = yes ; then
8264 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8265 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8266 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 ac_check_lib_save_LIBS=$LIBS
8270 LIBS="-lossp-uuid $LIBS"
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8278 /* Override any GCC internal prototype to avoid an error.
8279 Use char because int might match the return type of a GCC
8280 builtin and then its argument prototype would still apply. */
8284 char uuid_export ();
8288 return uuid_export ();
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (ac_try="$ac_link"
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_link") 2>conftest.er1
8302 grep -v '^ *+' conftest.er1 >conftest.err
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest$ac_exeext &&
8310 $as_test_x conftest$ac_exeext; then
8311 ac_cv_lib_ossp_uuid_uuid_export=yes
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 ac_cv_lib_ossp_uuid_uuid_export=no
8319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8320 conftest$ac_exeext conftest.$ac_ext
8321 LIBS=$ac_check_lib_save_LIBS
8323 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8324 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8325 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8326 OSSP_UUID_LIBS="-lossp-uuid"
8328 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8329 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8330 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 ac_check_lib_save_LIBS=$LIBS
8335 cat >conftest.$ac_ext <<_ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8342 /* Override any GCC internal prototype to avoid an error.
8343 Use char because int might match the return type of a GCC
8344 builtin and then its argument prototype would still apply. */
8348 char uuid_export ();
8352 return uuid_export ();
8357 rm -f conftest.$ac_objext conftest$ac_exeext
8358 if { (ac_try="$ac_link"
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_link") 2>conftest.er1
8366 grep -v '^ *+' conftest.er1 >conftest.err
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest$ac_exeext &&
8374 $as_test_x conftest$ac_exeext; then
8375 ac_cv_lib_uuid_uuid_export=yes
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8380 ac_cv_lib_uuid_uuid_export=no
8383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8384 conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8387 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8388 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8389 if test $ac_cv_lib_uuid_uuid_export = yes; then
8390 OSSP_UUID_LIBS="-luuid"
8392 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8393 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8394 { (exit 1); exit 1; }; }
8407 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8408 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8409 if test "${ac_cv_header_stdc+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 cat >conftest.$ac_ext <<_ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8431 rm -f conftest.$ac_objext
8432 if { (ac_try="$ac_compile"
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_compile") 2>conftest.er1
8440 grep -v '^ *+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && {
8445 test -z "$ac_c_werror_flag" ||
8446 test ! -s conftest.err
8447 } && test -s conftest.$ac_objext; then
8448 ac_cv_header_stdc=yes
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 ac_cv_header_stdc=no
8456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458 if test $ac_cv_header_stdc = yes; then
8459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8460 cat >conftest.$ac_ext <<_ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8470 $EGREP "memchr" >/dev/null 2>&1; then
8473 ac_cv_header_stdc=no
8479 if test $ac_cv_header_stdc = yes; then
8480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8481 cat >conftest.$ac_ext <<_ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8491 $EGREP "free" >/dev/null 2>&1; then
8494 ac_cv_header_stdc=no
8500 if test $ac_cv_header_stdc = yes; then
8501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8502 if test "$cross_compiling" = yes; then
8505 cat >conftest.$ac_ext <<_ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8513 #if ((' ' & 0x0FF) == 0x020)
8514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8517 # define ISLOWER(c) \
8518 (('a' <= (c) && (c) <= 'i') \
8519 || ('j' <= (c) && (c) <= 'r') \
8520 || ('s' <= (c) && (c) <= 'z'))
8521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8529 for (i = 0; i < 256; i++)
8530 if (XOR (islower (i), ISLOWER (i))
8531 || toupper (i) != TOUPPER (i))
8536 rm -f conftest$ac_exeext
8537 if { (ac_try="$ac_link"
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_link") 2>&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8547 { (case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_try") 2>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8558 echo "$as_me: program exited with status $ac_status" >&5
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8563 ac_cv_header_stdc=no
8565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8571 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8572 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8573 if test $ac_cv_header_stdc = yes; then
8575 cat >>confdefs.h <<\_ACEOF
8576 #define STDC_HEADERS 1
8581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8591 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8592 inttypes.h stdint.h unistd.h
8594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 cat >conftest.$ac_ext <<_ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8606 $ac_includes_default
8608 #include <$ac_header>
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_compile") 2>conftest.er1
8619 grep -v '^ *+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && {
8624 test -z "$ac_c_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest.$ac_objext; then
8627 eval "$as_ac_Header=yes"
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 eval "$as_ac_Header=no"
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 ac_res=`eval echo '${'$as_ac_Header'}'`
8638 { echo "$as_me:$LINENO: result: $ac_res" >&5
8639 echo "${ECHO_T}$ac_res" >&6; }
8640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8641 cat >>confdefs.h <<_ACEOF
8642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8676 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
8678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 ac_res=`eval echo '${'$as_ac_Header'}'`
8686 { echo "$as_me:$LINENO: result: $ac_res" >&5
8687 echo "${ECHO_T}$ac_res" >&6; }
8689 # Is the header compilable?
8690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8692 cat >conftest.$ac_ext <<_ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 $ac_includes_default
8699 #include <$ac_header>
8701 rm -f conftest.$ac_objext
8702 if { (ac_try="$ac_compile"
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_compile") 2>conftest.er1
8710 grep -v '^ *+' conftest.er1 >conftest.err
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } && {
8715 test -z "$ac_c_werror_flag" ||
8716 test ! -s conftest.err
8717 } && test -s conftest.$ac_objext; then
8718 ac_header_compiler=yes
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 ac_header_compiler=no
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8728 echo "${ECHO_T}$ac_header_compiler" >&6; }
8730 # Is the header present?
8731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 #include <$ac_header>
8741 if { (ac_try="$ac_cpp conftest.$ac_ext"
8743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8749 grep -v '^ *+' conftest.er1 >conftest.err
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } >/dev/null && {
8754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8755 test ! -s conftest.err
8757 ac_header_preproc=yes
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8762 ac_header_preproc=no
8765 rm -f conftest.err conftest.$ac_ext
8766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8767 echo "${ECHO_T}$ac_header_preproc" >&6; }
8769 # So? What about this header?
8770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8776 ac_header_preproc=yes
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8786 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8792 ## ---------------------------------------- ##
8793 ## Report this to pgsql-bugs@postgresql.org ##
8794 ## ---------------------------------------- ##
8796 ) | sed "s/^/$as_me: WARNING: /" >&2
8799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 eval "$as_ac_Header=\$ac_header_preproc"
8806 ac_res=`eval echo '${'$as_ac_Header'}'`
8807 { echo "$as_me:$LINENO: result: $ac_res" >&5
8808 echo "${ECHO_T}$ac_res" >&6; }
8811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8812 cat >>confdefs.h <<_ACEOF
8813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8821 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8822 # netinet/in.h is included first.
8824 for ac_header in netinet/in.h
8826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 ac_res=`eval echo '${'$as_ac_Header'}'`
8834 { echo "$as_me:$LINENO: result: $ac_res" >&5
8835 echo "${ECHO_T}$ac_res" >&6; }
8837 # Is the header compilable?
8838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8840 cat >conftest.$ac_ext <<_ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 $ac_includes_default
8847 #include <$ac_header>
8849 rm -f conftest.$ac_objext
8850 if { (ac_try="$ac_compile"
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856 (eval "$ac_compile") 2>conftest.er1
8858 grep -v '^ *+' conftest.er1 >conftest.err
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } && {
8863 test -z "$ac_c_werror_flag" ||
8864 test ! -s conftest.err
8865 } && test -s conftest.$ac_objext; then
8866 ac_header_compiler=yes
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8871 ac_header_compiler=no
8874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8876 echo "${ECHO_T}$ac_header_compiler" >&6; }
8878 # Is the header present?
8879 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8881 cat >conftest.$ac_ext <<_ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h. */
8887 #include <$ac_header>
8889 if { (ac_try="$ac_cpp conftest.$ac_ext"
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8897 grep -v '^ *+' conftest.er1 >conftest.err
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } >/dev/null && {
8902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8903 test ! -s conftest.err
8905 ac_header_preproc=yes
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8910 ac_header_preproc=no
8913 rm -f conftest.err conftest.$ac_ext
8914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8915 echo "${ECHO_T}$ac_header_preproc" >&6; }
8917 # So? What about this header?
8918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8924 ac_header_preproc=yes
8927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8940 ## ---------------------------------------- ##
8941 ## Report this to pgsql-bugs@postgresql.org ##
8942 ## ---------------------------------------- ##
8944 ) | sed "s/^/$as_me: WARNING: /" >&2
8947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 eval "$as_ac_Header=\$ac_header_preproc"
8954 ac_res=`eval echo '${'$as_ac_Header'}'`
8955 { echo "$as_me:$LINENO: result: $ac_res" >&5
8956 echo "${ECHO_T}$ac_res" >&6; }
8959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8960 cat >>confdefs.h <<_ACEOF
8961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8969 for ac_header in netinet/tcp.h
8971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 cat >conftest.$ac_ext <<_ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8983 $ac_includes_default
8984 #ifdef HAVE_NETINET_IN_H
8985 #include <netinet/in.h>
8989 #include <$ac_header>
8991 rm -f conftest.$ac_objext
8992 if { (ac_try="$ac_compile"
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 (eval "$ac_compile") 2>conftest.er1
9000 grep -v '^ *+' conftest.er1 >conftest.err
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && {
9005 test -z "$ac_c_werror_flag" ||
9006 test ! -s conftest.err
9007 } && test -s conftest.$ac_objext; then
9008 eval "$as_ac_Header=yes"
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9013 eval "$as_ac_Header=no"
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018 ac_res=`eval echo '${'$as_ac_Header'}'`
9019 { echo "$as_me:$LINENO: result: $ac_res" >&5
9020 echo "${ECHO_T}$ac_res" >&6; }
9021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9022 cat >>confdefs.h <<_ACEOF
9023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9031 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9033 for ac_header in readline/readline.h
9035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 ac_res=`eval echo '${'$as_ac_Header'}'`
9043 { echo "$as_me:$LINENO: result: $ac_res" >&5
9044 echo "${ECHO_T}$ac_res" >&6; }
9046 # Is the header compilable?
9047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9049 cat >conftest.$ac_ext <<_ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9055 $ac_includes_default
9056 #include <$ac_header>
9058 rm -f conftest.$ac_objext
9059 if { (ac_try="$ac_compile"
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_compile") 2>conftest.er1
9067 grep -v '^ *+' conftest.er1 >conftest.err
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } && {
9072 test -z "$ac_c_werror_flag" ||
9073 test ! -s conftest.err
9074 } && test -s conftest.$ac_objext; then
9075 ac_header_compiler=yes
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 ac_header_compiler=no
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9085 echo "${ECHO_T}$ac_header_compiler" >&6; }
9087 # Is the header present?
9088 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9090 cat >conftest.$ac_ext <<_ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h. */
9096 #include <$ac_header>
9098 if { (ac_try="$ac_cpp conftest.$ac_ext"
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9106 grep -v '^ *+' conftest.er1 >conftest.err
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } >/dev/null && {
9111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9112 test ! -s conftest.err
9114 ac_header_preproc=yes
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9119 ac_header_preproc=no
9122 rm -f conftest.err conftest.$ac_ext
9123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9124 echo "${ECHO_T}$ac_header_preproc" >&6; }
9126 # So? What about this header?
9127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9133 ac_header_preproc=yes
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9149 ## ---------------------------------------- ##
9150 ## Report this to pgsql-bugs@postgresql.org ##
9151 ## ---------------------------------------- ##
9153 ) | sed "s/^/$as_me: WARNING: /" >&2
9156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 eval "$as_ac_Header=\$ac_header_preproc"
9163 ac_res=`eval echo '${'$as_ac_Header'}'`
9164 { echo "$as_me:$LINENO: result: $ac_res" >&5
9165 echo "${ECHO_T}$ac_res" >&6; }
9168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9169 cat >>confdefs.h <<_ACEOF
9170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9175 for ac_header in readline.h
9177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 ac_res=`eval echo '${'$as_ac_Header'}'`
9185 { echo "$as_me:$LINENO: result: $ac_res" >&5
9186 echo "${ECHO_T}$ac_res" >&6; }
9188 # Is the header compilable?
9189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9191 cat >conftest.$ac_ext <<_ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 $ac_includes_default
9198 #include <$ac_header>
9200 rm -f conftest.$ac_objext
9201 if { (ac_try="$ac_compile"
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_compile") 2>conftest.er1
9209 grep -v '^ *+' conftest.er1 >conftest.err
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest.$ac_objext; then
9217 ac_header_compiler=yes
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 ac_header_compiler=no
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9227 echo "${ECHO_T}$ac_header_compiler" >&6; }
9229 # Is the header present?
9230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9232 cat >conftest.$ac_ext <<_ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238 #include <$ac_header>
9240 if { (ac_try="$ac_cpp conftest.$ac_ext"
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9248 grep -v '^ *+' conftest.er1 >conftest.err
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } >/dev/null && {
9253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9256 ac_header_preproc=yes
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 ac_header_preproc=no
9264 rm -f conftest.err conftest.$ac_ext
9265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9266 echo "${ECHO_T}$ac_header_preproc" >&6; }
9268 # So? What about this header?
9269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9275 ac_header_preproc=yes
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9291 ## ---------------------------------------- ##
9292 ## Report this to pgsql-bugs@postgresql.org ##
9293 ## ---------------------------------------- ##
9295 ) | sed "s/^/$as_me: WARNING: /" >&2
9298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 eval "$as_ac_Header=\$ac_header_preproc"
9305 ac_res=`eval echo '${'$as_ac_Header'}'`
9306 { echo "$as_me:$LINENO: result: $ac_res" >&5
9307 echo "${ECHO_T}$ac_res" >&6; }
9310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9311 cat >>confdefs.h <<_ACEOF
9312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9316 { { echo "$as_me:$LINENO: error: readline header not found
9317 If you have readline already installed, see config.log for details on the
9318 failure. It is possible the compiler isn't looking in the proper directory.
9319 Use --without-readline to disable readline support." >&5
9320 echo "$as_me: error: readline header not found
9321 If you have readline already installed, see config.log for details on the
9322 failure. It is possible the compiler isn't looking in the proper directory.
9323 Use --without-readline to disable readline support." >&2;}
9324 { (exit 1); exit 1; }; }
9334 for ac_header in readline/history.h
9336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 ac_res=`eval echo '${'$as_ac_Header'}'`
9344 { echo "$as_me:$LINENO: result: $ac_res" >&5
9345 echo "${ECHO_T}$ac_res" >&6; }
9347 # Is the header compilable?
9348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9350 cat >conftest.$ac_ext <<_ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 $ac_includes_default
9357 #include <$ac_header>
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9368 grep -v '^ *+' conftest.er1 >conftest.err
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.$ac_objext; then
9376 ac_header_compiler=yes
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ac_header_compiler=no
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9386 echo "${ECHO_T}$ac_header_compiler" >&6; }
9388 # Is the header present?
9389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9391 cat >conftest.$ac_ext <<_ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9397 #include <$ac_header>
9399 if { (ac_try="$ac_cpp conftest.$ac_ext"
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9407 grep -v '^ *+' conftest.er1 >conftest.err
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } >/dev/null && {
9412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9415 ac_header_preproc=yes
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9420 ac_header_preproc=no
9423 rm -f conftest.err conftest.$ac_ext
9424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9425 echo "${ECHO_T}$ac_header_preproc" >&6; }
9427 # So? What about this header?
9428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9434 ac_header_preproc=yes
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9450 ## ---------------------------------------- ##
9451 ## Report this to pgsql-bugs@postgresql.org ##
9452 ## ---------------------------------------- ##
9454 ) | sed "s/^/$as_me: WARNING: /" >&2
9457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 eval "$as_ac_Header=\$ac_header_preproc"
9464 ac_res=`eval echo '${'$as_ac_Header'}'`
9465 { echo "$as_me:$LINENO: result: $ac_res" >&5
9466 echo "${ECHO_T}$ac_res" >&6; }
9469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9470 cat >>confdefs.h <<_ACEOF
9471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9476 for ac_header in history.h
9478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 ac_res=`eval echo '${'$as_ac_Header'}'`
9486 { echo "$as_me:$LINENO: result: $ac_res" >&5
9487 echo "${ECHO_T}$ac_res" >&6; }
9489 # Is the header compilable?
9490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9492 cat >conftest.$ac_ext <<_ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 $ac_includes_default
9499 #include <$ac_header>
9501 rm -f conftest.$ac_objext
9502 if { (ac_try="$ac_compile"
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_compile") 2>conftest.er1
9510 grep -v '^ *+' conftest.er1 >conftest.err
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest.$ac_objext; then
9518 ac_header_compiler=yes
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 ac_header_compiler=no
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9528 echo "${ECHO_T}$ac_header_compiler" >&6; }
9530 # Is the header present?
9531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9533 cat >conftest.$ac_ext <<_ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9539 #include <$ac_header>
9541 if { (ac_try="$ac_cpp conftest.$ac_ext"
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9549 grep -v '^ *+' conftest.er1 >conftest.err
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } >/dev/null && {
9554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9557 ac_header_preproc=yes
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_header_preproc=no
9565 rm -f conftest.err conftest.$ac_ext
9566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9567 echo "${ECHO_T}$ac_header_preproc" >&6; }
9569 # So? What about this header?
9570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9576 ac_header_preproc=yes
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9592 ## ---------------------------------------- ##
9593 ## Report this to pgsql-bugs@postgresql.org ##
9594 ## ---------------------------------------- ##
9596 ) | sed "s/^/$as_me: WARNING: /" >&2
9599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 eval "$as_ac_Header=\$ac_header_preproc"
9606 ac_res=`eval echo '${'$as_ac_Header'}'`
9607 { echo "$as_me:$LINENO: result: $ac_res" >&5
9608 echo "${ECHO_T}$ac_res" >&6; }
9611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9612 cat >>confdefs.h <<_ACEOF
9613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9617 { { echo "$as_me:$LINENO: error: history header not found
9618 If you have readline already installed, see config.log for details on the
9619 failure. It is possible the compiler isn't looking in the proper directory.
9620 Use --without-readline to disable readline support." >&5
9621 echo "$as_me: error: history header not found
9622 If you have readline already installed, see config.log for details on the
9623 failure. It is possible the compiler isn't looking in the proper directory.
9624 Use --without-readline to disable readline support." >&2;}
9625 { (exit 1); exit 1; }; }
9636 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9637 # Some installations of libedit usurp /usr/include/readline/, which seems
9638 # bad practice, since in combined installations readline will have its headers
9639 # there. We might have to resort to AC_EGREP checks to make sure we found
9640 # the proper header...
9642 for ac_header in editline/readline.h
9644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 ac_res=`eval echo '${'$as_ac_Header'}'`
9652 { echo "$as_me:$LINENO: result: $ac_res" >&5
9653 echo "${ECHO_T}$ac_res" >&6; }
9655 # Is the header compilable?
9656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9658 cat >conftest.$ac_ext <<_ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 $ac_includes_default
9665 #include <$ac_header>
9667 rm -f conftest.$ac_objext
9668 if { (ac_try="$ac_compile"
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_compile") 2>conftest.er1
9676 grep -v '^ *+' conftest.er1 >conftest.err
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } && {
9681 test -z "$ac_c_werror_flag" ||
9682 test ! -s conftest.err
9683 } && test -s conftest.$ac_objext; then
9684 ac_header_compiler=yes
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 ac_header_compiler=no
9692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9694 echo "${ECHO_T}$ac_header_compiler" >&6; }
9696 # Is the header present?
9697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 #include <$ac_header>
9707 if { (ac_try="$ac_cpp conftest.$ac_ext"
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9715 grep -v '^ *+' conftest.er1 >conftest.err
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } >/dev/null && {
9720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9721 test ! -s conftest.err
9723 ac_header_preproc=yes
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_header_preproc=no
9731 rm -f conftest.err conftest.$ac_ext
9732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9733 echo "${ECHO_T}$ac_header_preproc" >&6; }
9735 # So? What about this header?
9736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9742 ac_header_preproc=yes
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9758 ## ---------------------------------------- ##
9759 ## Report this to pgsql-bugs@postgresql.org ##
9760 ## ---------------------------------------- ##
9762 ) | sed "s/^/$as_me: WARNING: /" >&2
9765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 eval "$as_ac_Header=\$ac_header_preproc"
9772 ac_res=`eval echo '${'$as_ac_Header'}'`
9773 { echo "$as_me:$LINENO: result: $ac_res" >&5
9774 echo "${ECHO_T}$ac_res" >&6; }
9777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9778 cat >>confdefs.h <<_ACEOF
9779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9784 for ac_header in readline.h
9786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 ac_res=`eval echo '${'$as_ac_Header'}'`
9794 { echo "$as_me:$LINENO: result: $ac_res" >&5
9795 echo "${ECHO_T}$ac_res" >&6; }
9797 # Is the header compilable?
9798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9800 cat >conftest.$ac_ext <<_ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9806 $ac_includes_default
9807 #include <$ac_header>
9809 rm -f conftest.$ac_objext
9810 if { (ac_try="$ac_compile"
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_compile") 2>conftest.er1
9818 grep -v '^ *+' conftest.er1 >conftest.err
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && {
9823 test -z "$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 } && test -s conftest.$ac_objext; then
9826 ac_header_compiler=yes
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9831 ac_header_compiler=no
9834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9836 echo "${ECHO_T}$ac_header_compiler" >&6; }
9838 # Is the header present?
9839 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9841 cat >conftest.$ac_ext <<_ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 #include <$ac_header>
9849 if { (ac_try="$ac_cpp conftest.$ac_ext"
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } >/dev/null && {
9862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9865 ac_header_preproc=yes
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_header_preproc=no
9873 rm -f conftest.err conftest.$ac_ext
9874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9875 echo "${ECHO_T}$ac_header_preproc" >&6; }
9877 # So? What about this header?
9878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9884 ac_header_preproc=yes
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9900 ## ---------------------------------------- ##
9901 ## Report this to pgsql-bugs@postgresql.org ##
9902 ## ---------------------------------------- ##
9904 ) | sed "s/^/$as_me: WARNING: /" >&2
9907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 eval "$as_ac_Header=\$ac_header_preproc"
9914 ac_res=`eval echo '${'$as_ac_Header'}'`
9915 { echo "$as_me:$LINENO: result: $ac_res" >&5
9916 echo "${ECHO_T}$ac_res" >&6; }
9919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9920 cat >>confdefs.h <<_ACEOF
9921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9926 for ac_header in readline/readline.h
9928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 ac_res=`eval echo '${'$as_ac_Header'}'`
9936 { echo "$as_me:$LINENO: result: $ac_res" >&5
9937 echo "${ECHO_T}$ac_res" >&6; }
9939 # Is the header compilable?
9940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9942 cat >conftest.$ac_ext <<_ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9948 $ac_includes_default
9949 #include <$ac_header>
9951 rm -f conftest.$ac_objext
9952 if { (ac_try="$ac_compile"
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_compile") 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } && {
9965 test -z "$ac_c_werror_flag" ||
9966 test ! -s conftest.err
9967 } && test -s conftest.$ac_objext; then
9968 ac_header_compiler=yes
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_header_compiler=no
9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9978 echo "${ECHO_T}$ac_header_compiler" >&6; }
9980 # Is the header present?
9981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9983 cat >conftest.$ac_ext <<_ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 #include <$ac_header>
9991 if { (ac_try="$ac_cpp conftest.$ac_ext"
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9999 grep -v '^ *+' conftest.er1 >conftest.err
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } >/dev/null && {
10004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10005 test ! -s conftest.err
10007 ac_header_preproc=yes
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_header_preproc=no
10015 rm -f conftest.err conftest.$ac_ext
10016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10017 echo "${ECHO_T}$ac_header_preproc" >&6; }
10019 # So? What about this header?
10020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10026 ac_header_preproc=yes
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10042 ## ---------------------------------------- ##
10043 ## Report this to pgsql-bugs@postgresql.org ##
10044 ## ---------------------------------------- ##
10046 ) | sed "s/^/$as_me: WARNING: /" >&2
10049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 eval "$as_ac_Header=\$ac_header_preproc"
10056 ac_res=`eval echo '${'$as_ac_Header'}'`
10057 { echo "$as_me:$LINENO: result: $ac_res" >&5
10058 echo "${ECHO_T}$ac_res" >&6; }
10061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10062 cat >>confdefs.h <<_ACEOF
10063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10067 { { echo "$as_me:$LINENO: error: readline header not found
10068 If you have libedit already installed, see config.log for details on the
10069 failure. It is possible the compiler isn't looking in the proper directory.
10070 Use --without-readline to disable libedit support." >&5
10071 echo "$as_me: error: readline header not found
10072 If you have libedit already installed, see config.log for details on the
10073 failure. It is possible the compiler isn't looking in the proper directory.
10074 Use --without-readline to disable libedit support." >&2;}
10075 { (exit 1); exit 1; }; }
10088 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10089 # not be there at all. Hence, don't complain if not found. We must check
10090 # though, since in yet other versions it is an independent header.
10092 for ac_header in editline/history.h
10094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 ac_res=`eval echo '${'$as_ac_Header'}'`
10102 { echo "$as_me:$LINENO: result: $ac_res" >&5
10103 echo "${ECHO_T}$ac_res" >&6; }
10105 # Is the header compilable?
10106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10108 cat >conftest.$ac_ext <<_ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 $ac_includes_default
10115 #include <$ac_header>
10117 rm -f conftest.$ac_objext
10118 if { (ac_try="$ac_compile"
10119 case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_compile") 2>conftest.er1
10126 grep -v '^ *+' conftest.er1 >conftest.err
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } && {
10131 test -z "$ac_c_werror_flag" ||
10132 test ! -s conftest.err
10133 } && test -s conftest.$ac_objext; then
10134 ac_header_compiler=yes
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10139 ac_header_compiler=no
10142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10144 echo "${ECHO_T}$ac_header_compiler" >&6; }
10146 # Is the header present?
10147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10149 cat >conftest.$ac_ext <<_ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10155 #include <$ac_header>
10157 if { (ac_try="$ac_cpp conftest.$ac_ext"
10158 case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10165 grep -v '^ *+' conftest.er1 >conftest.err
10167 cat conftest.err >&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } >/dev/null && {
10170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10171 test ! -s conftest.err
10173 ac_header_preproc=yes
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 ac_header_preproc=no
10181 rm -f conftest.err conftest.$ac_ext
10182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10183 echo "${ECHO_T}$ac_header_preproc" >&6; }
10185 # So? What about this header?
10186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10192 ac_header_preproc=yes
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10208 ## ---------------------------------------- ##
10209 ## Report this to pgsql-bugs@postgresql.org ##
10210 ## ---------------------------------------- ##
10212 ) | sed "s/^/$as_me: WARNING: /" >&2
10215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 eval "$as_ac_Header=\$ac_header_preproc"
10222 ac_res=`eval echo '${'$as_ac_Header'}'`
10223 { echo "$as_me:$LINENO: result: $ac_res" >&5
10224 echo "${ECHO_T}$ac_res" >&6; }
10227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10228 cat >>confdefs.h <<_ACEOF
10229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10234 for ac_header in history.h
10236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 ac_res=`eval echo '${'$as_ac_Header'}'`
10244 { echo "$as_me:$LINENO: result: $ac_res" >&5
10245 echo "${ECHO_T}$ac_res" >&6; }
10247 # Is the header compilable?
10248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10250 cat >conftest.$ac_ext <<_ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 $ac_includes_default
10257 #include <$ac_header>
10259 rm -f conftest.$ac_objext
10260 if { (ac_try="$ac_compile"
10261 case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_compile") 2>conftest.er1
10268 grep -v '^ *+' conftest.er1 >conftest.err
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } && {
10273 test -z "$ac_c_werror_flag" ||
10274 test ! -s conftest.err
10275 } && test -s conftest.$ac_objext; then
10276 ac_header_compiler=yes
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 ac_header_compiler=no
10284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10286 echo "${ECHO_T}$ac_header_compiler" >&6; }
10288 # Is the header present?
10289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10291 cat >conftest.$ac_ext <<_ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 #include <$ac_header>
10299 if { (ac_try="$ac_cpp conftest.$ac_ext"
10300 case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10307 grep -v '^ *+' conftest.er1 >conftest.err
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } >/dev/null && {
10312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10313 test ! -s conftest.err
10315 ac_header_preproc=yes
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 ac_header_preproc=no
10323 rm -f conftest.err conftest.$ac_ext
10324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10325 echo "${ECHO_T}$ac_header_preproc" >&6; }
10327 # So? What about this header?
10328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10334 ac_header_preproc=yes
10337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10350 ## ---------------------------------------- ##
10351 ## Report this to pgsql-bugs@postgresql.org ##
10352 ## ---------------------------------------- ##
10354 ) | sed "s/^/$as_me: WARNING: /" >&2
10357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 eval "$as_ac_Header=\$ac_header_preproc"
10364 ac_res=`eval echo '${'$as_ac_Header'}'`
10365 { echo "$as_me:$LINENO: result: $ac_res" >&5
10366 echo "${ECHO_T}$ac_res" >&6; }
10369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10370 cat >>confdefs.h <<_ACEOF
10371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10376 for ac_header in readline/history.h
10378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 ac_res=`eval echo '${'$as_ac_Header'}'`
10386 { echo "$as_me:$LINENO: result: $ac_res" >&5
10387 echo "${ECHO_T}$ac_res" >&6; }
10389 # Is the header compilable?
10390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10392 cat >conftest.$ac_ext <<_ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 $ac_includes_default
10399 #include <$ac_header>
10401 rm -f conftest.$ac_objext
10402 if { (ac_try="$ac_compile"
10403 case "(($ac_try" in
10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408 (eval "$ac_compile") 2>conftest.er1
10410 grep -v '^ *+' conftest.er1 >conftest.err
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } && {
10415 test -z "$ac_c_werror_flag" ||
10416 test ! -s conftest.err
10417 } && test -s conftest.$ac_objext; then
10418 ac_header_compiler=yes
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ac_header_compiler=no
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10428 echo "${ECHO_T}$ac_header_compiler" >&6; }
10430 # Is the header present?
10431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 #include <$ac_header>
10441 if { (ac_try="$ac_cpp conftest.$ac_ext"
10442 case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10449 grep -v '^ *+' conftest.er1 >conftest.err
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } >/dev/null && {
10454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10457 ac_header_preproc=yes
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462 ac_header_preproc=no
10465 rm -f conftest.err conftest.$ac_ext
10466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10467 echo "${ECHO_T}$ac_header_preproc" >&6; }
10469 # So? What about this header?
10470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10476 ac_header_preproc=yes
10479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10492 ## ---------------------------------------- ##
10493 ## Report this to pgsql-bugs@postgresql.org ##
10494 ## ---------------------------------------- ##
10496 ) | sed "s/^/$as_me: WARNING: /" >&2
10499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 eval "$as_ac_Header=\$ac_header_preproc"
10506 ac_res=`eval echo '${'$as_ac_Header'}'`
10507 { echo "$as_me:$LINENO: result: $ac_res" >&5
10508 echo "${ECHO_T}$ac_res" >&6; }
10511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10512 cat >>confdefs.h <<_ACEOF
10513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10530 if test "$with_zlib" = yes; then
10531 if test "${ac_cv_header_zlib_h+set}" = set; then
10532 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10533 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10534 if test "${ac_cv_header_zlib_h+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10538 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10540 # Is the header compilable?
10541 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10542 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10543 cat >conftest.$ac_ext <<_ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 $ac_includes_default
10552 rm -f conftest.$ac_objext
10553 if { (ac_try="$ac_compile"
10554 case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_compile") 2>conftest.er1
10561 grep -v '^ *+' conftest.er1 >conftest.err
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } && {
10566 test -z "$ac_c_werror_flag" ||
10567 test ! -s conftest.err
10568 } && test -s conftest.$ac_objext; then
10569 ac_header_compiler=yes
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 ac_header_compiler=no
10577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10579 echo "${ECHO_T}$ac_header_compiler" >&6; }
10581 # Is the header present?
10582 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10583 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10592 if { (ac_try="$ac_cpp conftest.$ac_ext"
10593 case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10600 grep -v '^ *+' conftest.er1 >conftest.err
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } >/dev/null && {
10605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10608 ac_header_preproc=yes
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10613 ac_header_preproc=no
10616 rm -f conftest.err conftest.$ac_ext
10617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10618 echo "${ECHO_T}$ac_header_preproc" >&6; }
10620 # So? What about this header?
10621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10623 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10624 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10625 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10626 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10627 ac_header_preproc=yes
10630 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10631 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10633 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10634 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10635 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10636 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10637 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10638 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10639 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10640 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10641 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10643 ## ---------------------------------------- ##
10644 ## Report this to pgsql-bugs@postgresql.org ##
10645 ## ---------------------------------------- ##
10647 ) | sed "s/^/$as_me: WARNING: /" >&2
10650 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10651 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10652 if test "${ac_cv_header_zlib_h+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 ac_cv_header_zlib_h=$ac_header_preproc
10657 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10658 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10661 if test $ac_cv_header_zlib_h = yes; then
10664 { { echo "$as_me:$LINENO: error: zlib header not found
10665 If you have zlib already installed, see config.log for details on the
10666 failure. It is possible the compiler isn't looking in the proper directory.
10667 Use --without-zlib to disable zlib support." >&5
10668 echo "$as_me: error: zlib header not found
10669 If you have zlib already installed, see config.log for details on the
10670 failure. It is possible the compiler isn't looking in the proper directory.
10671 Use --without-zlib to disable zlib support." >&2;}
10672 { (exit 1); exit 1; }; }
10678 if test "$with_gssapi" = yes ; then
10680 for ac_header in gssapi/gssapi.h
10682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 ac_res=`eval echo '${'$as_ac_Header'}'`
10690 { echo "$as_me:$LINENO: result: $ac_res" >&5
10691 echo "${ECHO_T}$ac_res" >&6; }
10693 # Is the header compilable?
10694 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10696 cat >conftest.$ac_ext <<_ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 $ac_includes_default
10703 #include <$ac_header>
10705 rm -f conftest.$ac_objext
10706 if { (ac_try="$ac_compile"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_compile") 2>conftest.er1
10714 grep -v '^ *+' conftest.er1 >conftest.err
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } && {
10719 test -z "$ac_c_werror_flag" ||
10720 test ! -s conftest.err
10721 } && test -s conftest.$ac_objext; then
10722 ac_header_compiler=yes
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 ac_header_compiler=no
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10732 echo "${ECHO_T}$ac_header_compiler" >&6; }
10734 # Is the header present?
10735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 #include <$ac_header>
10745 if { (ac_try="$ac_cpp conftest.$ac_ext"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10753 grep -v '^ *+' conftest.er1 >conftest.err
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } >/dev/null && {
10758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10761 ac_header_preproc=yes
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10766 ac_header_preproc=no
10769 rm -f conftest.err conftest.$ac_ext
10770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10771 echo "${ECHO_T}$ac_header_preproc" >&6; }
10773 # So? What about this header?
10774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10780 ac_header_preproc=yes
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10790 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10796 ## ---------------------------------------- ##
10797 ## Report this to pgsql-bugs@postgresql.org ##
10798 ## ---------------------------------------- ##
10800 ) | sed "s/^/$as_me: WARNING: /" >&2
10803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 eval "$as_ac_Header=\$ac_header_preproc"
10810 ac_res=`eval echo '${'$as_ac_Header'}'`
10811 { echo "$as_me:$LINENO: result: $ac_res" >&5
10812 echo "${ECHO_T}$ac_res" >&6; }
10815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10816 cat >>confdefs.h <<_ACEOF
10817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10822 for ac_header in gssapi.h
10824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 ac_res=`eval echo '${'$as_ac_Header'}'`
10832 { echo "$as_me:$LINENO: result: $ac_res" >&5
10833 echo "${ECHO_T}$ac_res" >&6; }
10835 # Is the header compilable?
10836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10838 cat >conftest.$ac_ext <<_ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 $ac_includes_default
10845 #include <$ac_header>
10847 rm -f conftest.$ac_objext
10848 if { (ac_try="$ac_compile"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_compile") 2>conftest.er1
10856 grep -v '^ *+' conftest.er1 >conftest.err
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && {
10861 test -z "$ac_c_werror_flag" ||
10862 test ! -s conftest.err
10863 } && test -s conftest.$ac_objext; then
10864 ac_header_compiler=yes
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ac_header_compiler=no
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10874 echo "${ECHO_T}$ac_header_compiler" >&6; }
10876 # Is the header present?
10877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 #include <$ac_header>
10887 if { (ac_try="$ac_cpp conftest.$ac_ext"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10895 grep -v '^ *+' conftest.er1 >conftest.err
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } >/dev/null && {
10900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10901 test ! -s conftest.err
10903 ac_header_preproc=yes
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 ac_header_preproc=no
10911 rm -f conftest.err conftest.$ac_ext
10912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10913 echo "${ECHO_T}$ac_header_preproc" >&6; }
10915 # So? What about this header?
10916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10922 ac_header_preproc=yes
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10938 ## ---------------------------------------- ##
10939 ## Report this to pgsql-bugs@postgresql.org ##
10940 ## ---------------------------------------- ##
10942 ) | sed "s/^/$as_me: WARNING: /" >&2
10945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 eval "$as_ac_Header=\$ac_header_preproc"
10952 ac_res=`eval echo '${'$as_ac_Header'}'`
10953 { echo "$as_me:$LINENO: result: $ac_res" >&5
10954 echo "${ECHO_T}$ac_res" >&6; }
10957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10958 cat >>confdefs.h <<_ACEOF
10959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10963 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10964 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10965 { (exit 1); exit 1; }; }
10976 if test "$with_krb5" = yes ; then
10977 if test "${ac_cv_header_krb5_h+set}" = set; then
10978 { echo "$as_me:$LINENO: checking for krb5.h" >&5
10979 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10980 if test "${ac_cv_header_krb5_h+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10984 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10986 # Is the header compilable?
10987 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
10988 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
10989 cat >conftest.$ac_ext <<_ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 $ac_includes_default
10998 rm -f conftest.$ac_objext
10999 if { (ac_try="$ac_compile"
11000 case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_compile") 2>conftest.er1
11007 grep -v '^ *+' conftest.er1 >conftest.err
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } && {
11012 test -z "$ac_c_werror_flag" ||
11013 test ! -s conftest.err
11014 } && test -s conftest.$ac_objext; then
11015 ac_header_compiler=yes
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 ac_header_compiler=no
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11025 echo "${ECHO_T}$ac_header_compiler" >&6; }
11027 # Is the header present?
11028 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11029 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11030 cat >conftest.$ac_ext <<_ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11038 if { (ac_try="$ac_cpp conftest.$ac_ext"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } >/dev/null && {
11051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11054 ac_header_preproc=yes
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ac_header_preproc=no
11062 rm -f conftest.err conftest.$ac_ext
11063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11064 echo "${ECHO_T}$ac_header_preproc" >&6; }
11066 # So? What about this header?
11067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11069 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11070 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11071 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11072 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11073 ac_header_preproc=yes
11076 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11077 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11079 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11080 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11081 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11082 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11083 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11084 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11085 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11086 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11087 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11089 ## ---------------------------------------- ##
11090 ## Report this to pgsql-bugs@postgresql.org ##
11091 ## ---------------------------------------- ##
11093 ) | sed "s/^/$as_me: WARNING: /" >&2
11096 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11097 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11098 if test "${ac_cv_header_krb5_h+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 ac_cv_header_krb5_h=$ac_header_preproc
11103 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11104 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11107 if test $ac_cv_header_krb5_h = yes; then
11110 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11111 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11112 { (exit 1); exit 1; }; }
11118 if test "$with_openssl" = yes ; then
11119 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11120 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11121 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11122 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11126 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11128 # Is the header compilable?
11129 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11130 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 $ac_includes_default
11138 #include <openssl/ssl.h>
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_compile") 2>conftest.er1
11149 grep -v '^ *+' conftest.er1 >conftest.err
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest.$ac_objext; then
11157 ac_header_compiler=yes
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11162 ac_header_compiler=no
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11167 echo "${ECHO_T}$ac_header_compiler" >&6; }
11169 # Is the header present?
11170 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11171 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11172 cat >conftest.$ac_ext <<_ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 #include <openssl/ssl.h>
11180 if { (ac_try="$ac_cpp conftest.$ac_ext"
11181 case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11188 grep -v '^ *+' conftest.er1 >conftest.err
11190 cat conftest.err >&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } >/dev/null && {
11193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11194 test ! -s conftest.err
11196 ac_header_preproc=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_header_preproc=no
11204 rm -f conftest.err conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6; }
11208 # So? What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11215 ac_header_preproc=yes
11218 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11231 ## ---------------------------------------- ##
11232 ## Report this to pgsql-bugs@postgresql.org ##
11233 ## ---------------------------------------- ##
11235 ) | sed "s/^/$as_me: WARNING: /" >&2
11238 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11239 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11240 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11245 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11246 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11249 if test $ac_cv_header_openssl_ssl_h = yes; then
11252 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11253 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11254 { (exit 1); exit 1; }; }
11258 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11259 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11260 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11261 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11264 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11265 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11267 # Is the header compilable?
11268 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11269 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11270 cat >conftest.$ac_ext <<_ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11276 $ac_includes_default
11277 #include <openssl/err.h>
11279 rm -f conftest.$ac_objext
11280 if { (ac_try="$ac_compile"
11281 case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_compile") 2>conftest.er1
11288 grep -v '^ *+' conftest.er1 >conftest.err
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && {
11293 test -z "$ac_c_werror_flag" ||
11294 test ! -s conftest.err
11295 } && test -s conftest.$ac_objext; then
11296 ac_header_compiler=yes
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 ac_header_compiler=no
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11306 echo "${ECHO_T}$ac_header_compiler" >&6; }
11308 # Is the header present?
11309 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11310 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11311 cat >conftest.$ac_ext <<_ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 #include <openssl/err.h>
11319 if { (ac_try="$ac_cpp conftest.$ac_ext"
11320 case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11327 grep -v '^ *+' conftest.er1 >conftest.err
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } >/dev/null && {
11332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11333 test ! -s conftest.err
11335 ac_header_preproc=yes
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_preproc=no
11343 rm -f conftest.err conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6; }
11347 # So? What about this header?
11348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11350 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11353 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11354 ac_header_preproc=yes
11357 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11358 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11360 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11362 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11364 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11366 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11368 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11370 ## ---------------------------------------- ##
11371 ## Report this to pgsql-bugs@postgresql.org ##
11372 ## ---------------------------------------- ##
11374 ) | sed "s/^/$as_me: WARNING: /" >&2
11377 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11378 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11379 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 ac_cv_header_openssl_err_h=$ac_header_preproc
11384 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11385 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11388 if test $ac_cv_header_openssl_err_h = yes; then
11391 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11392 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11393 { (exit 1); exit 1; }; }
11398 for ac_func in ERR_set_mark
11400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 cat >conftest.$ac_ext <<_ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11414 #define $ac_func innocuous_$ac_func
11416 /* System header to define __stub macros and hopefully few prototypes,
11417 which can conflict with char $ac_func (); below.
11418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11419 <limits.h> exists even on freestanding compilers. */
11422 # include <limits.h>
11424 # include <assert.h>
11429 /* Override any GCC internal prototype to avoid an error.
11430 Use char because int might match the return type of a GCC
11431 builtin and then its argument prototype would still apply. */
11436 /* The GNU C library defines this for functions which it implements
11437 to always fail with ENOSYS. Some functions are actually named
11438 something starting with __ and the normal name is an alias. */
11439 #if defined __stub_$ac_func || defined __stub___$ac_func
11446 return $ac_func ();
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (ac_try="$ac_link"
11453 case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_link") 2>conftest.er1
11460 grep -v '^ *+' conftest.er1 >conftest.err
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && {
11465 test -z "$ac_c_werror_flag" ||
11466 test ! -s conftest.err
11467 } && test -s conftest$ac_exeext &&
11468 $as_test_x conftest$ac_exeext; then
11469 eval "$as_ac_var=yes"
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 eval "$as_ac_var=no"
11477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478 conftest$ac_exeext conftest.$ac_ext
11480 ac_res=`eval echo '${'$as_ac_var'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11483 if test `eval echo '${'$as_ac_var'}'` = yes; then
11484 cat >>confdefs.h <<_ACEOF
11485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11493 if test "$with_pam" = yes ; then
11495 for ac_header in security/pam_appl.h
11497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 ac_res=`eval echo '${'$as_ac_Header'}'`
11505 { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11508 # Is the header compilable?
11509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 $ac_includes_default
11518 #include <$ac_header>
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527 (eval "$ac_compile") 2>conftest.er1
11529 grep -v '^ *+' conftest.er1 >conftest.err
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } && {
11534 test -z "$ac_c_werror_flag" ||
11535 test ! -s conftest.err
11536 } && test -s conftest.$ac_objext; then
11537 ac_header_compiler=yes
11539 echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11542 ac_header_compiler=no
11545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11547 echo "${ECHO_T}$ac_header_compiler" >&6; }
11549 # Is the header present?
11550 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11552 cat >conftest.$ac_ext <<_ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11558 #include <$ac_header>
11560 if { (ac_try="$ac_cpp conftest.$ac_ext"
11561 case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11568 grep -v '^ *+' conftest.er1 >conftest.err
11570 cat conftest.err >&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } >/dev/null && {
11573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11574 test ! -s conftest.err
11576 ac_header_preproc=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 ac_header_preproc=no
11584 rm -f conftest.err conftest.$ac_ext
11585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11586 echo "${ECHO_T}$ac_header_preproc" >&6; }
11588 # So? What about this header?
11589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11595 ac_header_preproc=yes
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11611 ## ---------------------------------------- ##
11612 ## Report this to pgsql-bugs@postgresql.org ##
11613 ## ---------------------------------------- ##
11615 ) | sed "s/^/$as_me: WARNING: /" >&2
11618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 eval "$as_ac_Header=\$ac_header_preproc"
11625 ac_res=`eval echo '${'$as_ac_Header'}'`
11626 { echo "$as_me:$LINENO: result: $ac_res" >&5
11627 echo "${ECHO_T}$ac_res" >&6; }
11630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11631 cat >>confdefs.h <<_ACEOF
11632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11637 for ac_header in pam/pam_appl.h
11639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 ac_res=`eval echo '${'$as_ac_Header'}'`
11647 { echo "$as_me:$LINENO: result: $ac_res" >&5
11648 echo "${ECHO_T}$ac_res" >&6; }
11650 # Is the header compilable?
11651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 $ac_includes_default
11660 #include <$ac_header>
11662 rm -f conftest.$ac_objext
11663 if { (ac_try="$ac_compile"
11664 case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_compile") 2>conftest.er1
11671 grep -v '^ *+' conftest.er1 >conftest.err
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } && {
11676 test -z "$ac_c_werror_flag" ||
11677 test ! -s conftest.err
11678 } && test -s conftest.$ac_objext; then
11679 ac_header_compiler=yes
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 ac_header_compiler=no
11687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11689 echo "${ECHO_T}$ac_header_compiler" >&6; }
11691 # Is the header present?
11692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11694 cat >conftest.$ac_ext <<_ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 #include <$ac_header>
11702 if { (ac_try="$ac_cpp conftest.$ac_ext"
11703 case "(($ac_try" in
11704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705 *) ac_try_echo=$ac_try;;
11707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11710 grep -v '^ *+' conftest.er1 >conftest.err
11712 cat conftest.err >&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } >/dev/null && {
11715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11716 test ! -s conftest.err
11718 ac_header_preproc=yes
11720 echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11723 ac_header_preproc=no
11726 rm -f conftest.err conftest.$ac_ext
11727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11728 echo "${ECHO_T}$ac_header_preproc" >&6; }
11730 # So? What about this header?
11731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11737 ac_header_preproc=yes
11740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11753 ## ---------------------------------------- ##
11754 ## Report this to pgsql-bugs@postgresql.org ##
11755 ## ---------------------------------------- ##
11757 ) | sed "s/^/$as_me: WARNING: /" >&2
11760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 eval "$as_ac_Header=\$ac_header_preproc"
11767 ac_res=`eval echo '${'$as_ac_Header'}'`
11768 { echo "$as_me:$LINENO: result: $ac_res" >&5
11769 echo "${ECHO_T}$ac_res" >&6; }
11772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11773 cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11778 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11779 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11780 { (exit 1); exit 1; }; }
11791 if test "$with_libxml" = yes ; then
11792 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11793 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11794 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11795 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11799 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11801 # Is the header compilable?
11802 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11803 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 $ac_includes_default
11811 #include <libxml/parser.h>
11813 rm -f conftest.$ac_objext
11814 if { (ac_try="$ac_compile"
11815 case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_compile") 2>conftest.er1
11822 grep -v '^ *+' conftest.er1 >conftest.err
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } && {
11827 test -z "$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 } && test -s conftest.$ac_objext; then
11830 ac_header_compiler=yes
11832 echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11835 ac_header_compiler=no
11838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11840 echo "${ECHO_T}$ac_header_compiler" >&6; }
11842 # Is the header present?
11843 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11844 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
11845 cat >conftest.$ac_ext <<_ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 #include <libxml/parser.h>
11853 if { (ac_try="$ac_cpp conftest.$ac_ext"
11854 case "(($ac_try" in
11855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856 *) ac_try_echo=$ac_try;;
11858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11861 grep -v '^ *+' conftest.er1 >conftest.err
11863 cat conftest.err >&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } >/dev/null && {
11866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11867 test ! -s conftest.err
11869 ac_header_preproc=yes
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 ac_header_preproc=no
11877 rm -f conftest.err conftest.$ac_ext
11878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11879 echo "${ECHO_T}$ac_header_preproc" >&6; }
11881 # So? What about this header?
11882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11884 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11885 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11887 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11888 ac_header_preproc=yes
11891 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11892 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
11894 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11896 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
11898 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11900 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11902 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11904 ## ---------------------------------------- ##
11905 ## Report this to pgsql-bugs@postgresql.org ##
11906 ## ---------------------------------------- ##
11908 ) | sed "s/^/$as_me: WARNING: /" >&2
11911 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11912 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11913 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 ac_cv_header_libxml_parser_h=$ac_header_preproc
11918 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11919 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11922 if test $ac_cv_header_libxml_parser_h = yes; then
11925 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11926 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11927 { (exit 1); exit 1; }; }
11933 if test "$with_libxslt" = yes ; then
11934 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11935 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11936 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11937 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11941 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11943 # Is the header compilable?
11944 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11945 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 $ac_includes_default
11953 #include <libxslt/xslt.h>
11955 rm -f conftest.$ac_objext
11956 if { (ac_try="$ac_compile"
11957 case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_compile") 2>conftest.er1
11964 grep -v '^ *+' conftest.er1 >conftest.err
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } && {
11969 test -z "$ac_c_werror_flag" ||
11970 test ! -s conftest.err
11971 } && test -s conftest.$ac_objext; then
11972 ac_header_compiler=yes
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11977 ac_header_compiler=no
11980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11982 echo "${ECHO_T}$ac_header_compiler" >&6; }
11984 # Is the header present?
11985 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11986 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
11987 cat >conftest.$ac_ext <<_ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 #include <libxslt/xslt.h>
11995 if { (ac_try="$ac_cpp conftest.$ac_ext"
11996 case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12003 grep -v '^ *+' conftest.er1 >conftest.err
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } >/dev/null && {
12008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12011 ac_header_preproc=yes
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 ac_header_preproc=no
12019 rm -f conftest.err conftest.$ac_ext
12020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12021 echo "${ECHO_T}$ac_header_preproc" >&6; }
12023 # So? What about this header?
12024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12026 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12027 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12028 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12029 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12030 ac_header_preproc=yes
12033 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12034 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12036 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12038 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12040 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12041 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12042 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12044 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12046 ## ---------------------------------------- ##
12047 ## Report this to pgsql-bugs@postgresql.org ##
12048 ## ---------------------------------------- ##
12050 ) | sed "s/^/$as_me: WARNING: /" >&2
12053 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12054 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12055 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12060 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12061 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12064 if test $ac_cv_header_libxslt_xslt_h = yes; then
12067 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12068 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12069 { (exit 1); exit 1; }; }
12075 if test "$with_ldap" = yes ; then
12076 if test "$PORTNAME" != "win32"; then
12078 for ac_header in ldap.h
12080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 ac_res=`eval echo '${'$as_ac_Header'}'`
12088 { echo "$as_me:$LINENO: result: $ac_res" >&5
12089 echo "${ECHO_T}$ac_res" >&6; }
12091 # Is the header compilable?
12092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12094 cat >conftest.$ac_ext <<_ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 $ac_includes_default
12101 #include <$ac_header>
12103 rm -f conftest.$ac_objext
12104 if { (ac_try="$ac_compile"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_compile") 2>conftest.er1
12112 grep -v '^ *+' conftest.er1 >conftest.err
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } && {
12117 test -z "$ac_c_werror_flag" ||
12118 test ! -s conftest.err
12119 } && test -s conftest.$ac_objext; then
12120 ac_header_compiler=yes
12122 echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12125 ac_header_compiler=no
12128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12130 echo "${ECHO_T}$ac_header_compiler" >&6; }
12132 # Is the header present?
12133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12135 cat >conftest.$ac_ext <<_ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 #include <$ac_header>
12143 if { (ac_try="$ac_cpp conftest.$ac_ext"
12144 case "(($ac_try" in
12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12151 grep -v '^ *+' conftest.er1 >conftest.err
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } >/dev/null && {
12156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12157 test ! -s conftest.err
12159 ac_header_preproc=yes
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12164 ac_header_preproc=no
12167 rm -f conftest.err conftest.$ac_ext
12168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12169 echo "${ECHO_T}$ac_header_preproc" >&6; }
12171 # So? What about this header?
12172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12178 ac_header_preproc=yes
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12194 ## ---------------------------------------- ##
12195 ## Report this to pgsql-bugs@postgresql.org ##
12196 ## ---------------------------------------- ##
12198 ) | sed "s/^/$as_me: WARNING: /" >&2
12201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 eval "$as_ac_Header=\$ac_header_preproc"
12208 ac_res=`eval echo '${'$as_ac_Header'}'`
12209 { echo "$as_me:$LINENO: result: $ac_res" >&5
12210 echo "${ECHO_T}$ac_res" >&6; }
12213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12214 cat >>confdefs.h <<_ACEOF
12215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12219 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12220 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12221 { (exit 1); exit 1; }; }
12228 for ac_header in winldap.h
12230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 cat >conftest.$ac_ext <<_ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12243 #include <windows.h>
12246 #include <$ac_header>
12248 rm -f conftest.$ac_objext
12249 if { (ac_try="$ac_compile"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_compile") 2>conftest.er1
12257 grep -v '^ *+' conftest.er1 >conftest.err
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } && {
12262 test -z "$ac_c_werror_flag" ||
12263 test ! -s conftest.err
12264 } && test -s conftest.$ac_objext; then
12265 eval "$as_ac_Header=yes"
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 eval "$as_ac_Header=no"
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275 ac_res=`eval echo '${'$as_ac_Header'}'`
12276 { echo "$as_me:$LINENO: result: $ac_res" >&5
12277 echo "${ECHO_T}$ac_res" >&6; }
12278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12284 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12285 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12286 { (exit 1); exit 1; }; }
12294 if test "$with_bonjour" = yes ; then
12295 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12296 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12297 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12298 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12302 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12304 # Is the header compilable?
12305 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12306 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12307 cat >conftest.$ac_ext <<_ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12313 $ac_includes_default
12314 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12316 rm -f conftest.$ac_objext
12317 if { (ac_try="$ac_compile"
12318 case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_compile") 2>conftest.er1
12325 grep -v '^ *+' conftest.er1 >conftest.err
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } && {
12330 test -z "$ac_c_werror_flag" ||
12331 test ! -s conftest.err
12332 } && test -s conftest.$ac_objext; then
12333 ac_header_compiler=yes
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12338 ac_header_compiler=no
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12343 echo "${ECHO_T}$ac_header_compiler" >&6; }
12345 # Is the header present?
12346 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12347 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12348 cat >conftest.$ac_ext <<_ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12356 if { (ac_try="$ac_cpp conftest.$ac_ext"
12357 case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12364 grep -v '^ *+' conftest.er1 >conftest.err
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } >/dev/null && {
12369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12370 test ! -s conftest.err
12372 ac_header_preproc=yes
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12377 ac_header_preproc=no
12380 rm -f conftest.err conftest.$ac_ext
12381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12382 echo "${ECHO_T}$ac_header_preproc" >&6; }
12384 # So? What about this header?
12385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12387 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12388 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12390 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12391 ac_header_preproc=yes
12394 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12395 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12397 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12399 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12400 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12401 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12402 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12403 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12404 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12405 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12407 ## ---------------------------------------- ##
12408 ## Report this to pgsql-bugs@postgresql.org ##
12409 ## ---------------------------------------- ##
12411 ) | sed "s/^/$as_me: WARNING: /" >&2
12414 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12415 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12416 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12421 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12422 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12425 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12428 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12429 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12430 { (exit 1); exit 1; }; }
12436 # for contrib/uuid-ossp
12437 if test "$with_ossp_uuid" = yes ; then
12439 for ac_header in ossp/uuid.h
12441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 ac_res=`eval echo '${'$as_ac_Header'}'`
12449 { echo "$as_me:$LINENO: result: $ac_res" >&5
12450 echo "${ECHO_T}$ac_res" >&6; }
12452 # Is the header compilable?
12453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12455 cat >conftest.$ac_ext <<_ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h. */
12461 $ac_includes_default
12462 #include <$ac_header>
12464 rm -f conftest.$ac_objext
12465 if { (ac_try="$ac_compile"
12466 case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_compile") 2>conftest.er1
12473 grep -v '^ *+' conftest.er1 >conftest.err
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } && {
12478 test -z "$ac_c_werror_flag" ||
12479 test ! -s conftest.err
12480 } && test -s conftest.$ac_objext; then
12481 ac_header_compiler=yes
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12486 ac_header_compiler=no
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12491 echo "${ECHO_T}$ac_header_compiler" >&6; }
12493 # Is the header present?
12494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12502 #include <$ac_header>
12504 if { (ac_try="$ac_cpp conftest.$ac_ext"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12512 grep -v '^ *+' conftest.er1 >conftest.err
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } >/dev/null && {
12517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12520 ac_header_preproc=yes
12522 echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12525 ac_header_preproc=no
12528 rm -f conftest.err conftest.$ac_ext
12529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12530 echo "${ECHO_T}$ac_header_preproc" >&6; }
12532 # So? What about this header?
12533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12539 ac_header_preproc=yes
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12549 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12555 ## ---------------------------------------- ##
12556 ## Report this to pgsql-bugs@postgresql.org ##
12557 ## ---------------------------------------- ##
12559 ) | sed "s/^/$as_me: WARNING: /" >&2
12562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 eval "$as_ac_Header=\$ac_header_preproc"
12569 ac_res=`eval echo '${'$as_ac_Header'}'`
12570 { echo "$as_me:$LINENO: result: $ac_res" >&5
12571 echo "${ECHO_T}$ac_res" >&6; }
12574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12575 cat >>confdefs.h <<_ACEOF
12576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12582 for ac_header in uuid.h
12584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 ac_res=`eval echo '${'$as_ac_Header'}'`
12592 { echo "$as_me:$LINENO: result: $ac_res" >&5
12593 echo "${ECHO_T}$ac_res" >&6; }
12595 # Is the header compilable?
12596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 $ac_includes_default
12605 #include <$ac_header>
12607 rm -f conftest.$ac_objext
12608 if { (ac_try="$ac_compile"
12609 case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_compile") 2>conftest.er1
12616 grep -v '^ *+' conftest.er1 >conftest.err
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && {
12621 test -z "$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 } && test -s conftest.$ac_objext; then
12624 ac_header_compiler=yes
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_header_compiler=no
12632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12634 echo "${ECHO_T}$ac_header_compiler" >&6; }
12636 # Is the header present?
12637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12645 #include <$ac_header>
12647 if { (ac_try="$ac_cpp conftest.$ac_ext"
12648 case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } >/dev/null && {
12660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12663 ac_header_preproc=yes
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12668 ac_header_preproc=no
12671 rm -f conftest.err conftest.$ac_ext
12672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12673 echo "${ECHO_T}$ac_header_preproc" >&6; }
12675 # So? What about this header?
12676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12682 ac_header_preproc=yes
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12698 ## ---------------------------------------- ##
12699 ## Report this to pgsql-bugs@postgresql.org ##
12700 ## ---------------------------------------- ##
12702 ) | sed "s/^/$as_me: WARNING: /" >&2
12705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 eval "$as_ac_Header=\$ac_header_preproc"
12712 ac_res=`eval echo '${'$as_ac_Header'}'`
12713 { echo "$as_me:$LINENO: result: $ac_res" >&5
12714 echo "${ECHO_T}$ac_res" >&6; }
12717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12718 cat >>confdefs.h <<_ACEOF
12719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12723 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12724 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12725 { (exit 1); exit 1; }; }
12738 ## Types, structures, compiler characteristics
12741 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12742 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12743 if test "${ac_cv_c_bigendian+set}" = set; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
12746 # See if sys/param.h defines the BYTE_ORDER macro.
12747 cat >conftest.$ac_ext <<_ACEOF
12750 cat confdefs.h >>conftest.$ac_ext
12751 cat >>conftest.$ac_ext <<_ACEOF
12752 /* end confdefs.h. */
12753 #include <sys/types.h>
12754 #include <sys/param.h>
12759 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12760 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
12761 bogus endian macros
12768 rm -f conftest.$ac_objext
12769 if { (ac_try="$ac_compile"
12770 case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_compile") 2>conftest.er1
12777 grep -v '^ *+' conftest.er1 >conftest.err
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } && {
12782 test -z "$ac_c_werror_flag" ||
12783 test ! -s conftest.err
12784 } && test -s conftest.$ac_objext; then
12785 # It does; now see whether it defined to BIG_ENDIAN or not.
12786 cat >conftest.$ac_ext <<_ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792 #include <sys/types.h>
12793 #include <sys/param.h>
12798 #if BYTE_ORDER != BIG_ENDIAN
12806 rm -f conftest.$ac_objext
12807 if { (ac_try="$ac_compile"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_compile") 2>conftest.er1
12815 grep -v '^ *+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } && {
12820 test -z "$ac_c_werror_flag" ||
12821 test ! -s conftest.err
12822 } && test -s conftest.$ac_objext; then
12823 ac_cv_c_bigendian=yes
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 ac_cv_c_bigendian=no
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12836 # It does not; compile a test program.
12837 if test "$cross_compiling" = yes; then
12838 # try to guess the endianness by grepping values into an object file
12839 ac_cv_c_bigendian=unknown
12840 cat >conftest.$ac_ext <<_ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12846 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12847 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12848 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12849 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12850 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12851 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12855 _ascii (); _ebcdic ();
12860 rm -f conftest.$ac_objext
12861 if { (ac_try="$ac_compile"
12862 case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_compile") 2>conftest.er1
12869 grep -v '^ *+' conftest.er1 >conftest.err
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } && {
12874 test -z "$ac_c_werror_flag" ||
12875 test ! -s conftest.err
12876 } && test -s conftest.$ac_objext; then
12877 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12878 ac_cv_c_bigendian=yes
12880 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12881 if test "$ac_cv_c_bigendian" = unknown; then
12882 ac_cv_c_bigendian=no
12884 # finding both strings is unlikely to happen, but who knows?
12885 ac_cv_c_bigendian=unknown
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897 cat >conftest.$ac_ext <<_ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12903 $ac_includes_default
12908 /* Are we little or big endian? From Harbison&Steele. */
12912 char c[sizeof (long int)];
12915 return u.c[sizeof (long int) - 1] == 1;
12921 rm -f conftest$ac_exeext
12922 if { (ac_try="$ac_link"
12923 case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_link") 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12932 { (case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_try") 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 ac_cv_c_bigendian=no
12943 echo "$as_me: program exited with status $ac_status" >&5
12944 echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12947 ( exit $ac_status )
12948 ac_cv_c_bigendian=yes
12950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12958 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12959 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
12960 case $ac_cv_c_bigendian in
12963 cat >>confdefs.h <<\_ACEOF
12964 #define WORDS_BIGENDIAN 1
12970 { { echo "$as_me:$LINENO: error: unknown endianness
12971 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12972 echo "$as_me: error: unknown endianness
12973 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12974 { (exit 1); exit 1; }; } ;;
12977 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12978 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12979 if test "${ac_cv_c_const+set}" = set; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 cat >conftest.$ac_ext <<_ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12992 /* FIXME: Include the comments suggested by Paul. */
12993 #ifndef __cplusplus
12994 /* Ultrix mips cc rejects this. */
12995 typedef int charset[2];
12997 /* SunOS 4.1.1 cc rejects this. */
12998 char const *const *pcpcc;
13000 /* NEC SVR4.0.2 mips cc rejects this. */
13001 struct point {int x, y;};
13002 static struct point const zero = {0,0};
13003 /* AIX XL C 1.02.0.0 rejects this.
13004 It does not let you subtract one const X* pointer from another in
13005 an arm of an if-expression whose if-part is not a constant
13007 const char *g = "string";
13008 pcpcc = &g + (g ? g-g : 0);
13009 /* HPUX 7.0 cc rejects these. */
13011 ppc = (char**) pcpcc;
13012 pcpcc = (char const *const *) ppc;
13013 { /* SCO 3.2v4 cc rejects this. */
13015 char const *s = 0 ? (char *) 0 : (char const *) 0;
13020 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13021 int x[] = {25, 17};
13022 const int *foo = &x[0];
13025 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13026 typedef const int *iptr;
13030 { /* AIX XL C 1.02.0.0 rejects this saying
13031 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13032 struct s { int j; const int *ap[3]; };
13033 struct s *b; b->j = 5;
13035 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13036 const int foo = 10;
13037 if (!foo) return 0;
13039 return !cs[0] && !zero.x;
13046 rm -f conftest.$ac_objext
13047 if { (ac_try="$ac_compile"
13048 case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_compile") 2>conftest.er1
13055 grep -v '^ *+' conftest.er1 >conftest.err
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } && {
13060 test -z "$ac_c_werror_flag" ||
13061 test ! -s conftest.err
13062 } && test -s conftest.$ac_objext; then
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13074 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13075 if test $ac_cv_c_const = no; then
13077 cat >>confdefs.h <<\_ACEOF
13083 { echo "$as_me:$LINENO: checking for inline" >&5
13084 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13085 if test "${ac_cv_c_inline+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 for ac_kw in inline __inline__ __inline; do
13090 cat >conftest.$ac_ext <<_ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 #ifndef __cplusplus
13098 static $ac_kw foo_t static_foo () {return 0; }
13099 $ac_kw foo_t foo () {return 0; }
13103 rm -f conftest.$ac_objext
13104 if { (ac_try="$ac_compile"
13105 case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_compile") 2>conftest.er1
13112 grep -v '^ *+' conftest.er1 >conftest.err
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } && {
13117 test -z "$ac_c_werror_flag" ||
13118 test ! -s conftest.err
13119 } && test -s conftest.$ac_objext; then
13120 ac_cv_c_inline=$ac_kw
13122 echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.$ac_ext >&5
13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13129 test "$ac_cv_c_inline" != no && break
13133 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13134 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13137 case $ac_cv_c_inline in
13140 case $ac_cv_c_inline in
13142 *) ac_val=$ac_cv_c_inline;;
13144 cat >>confdefs.h <<_ACEOF
13145 #ifndef __cplusplus
13146 #define inline $ac_val
13152 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13153 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13154 if test "${ac_cv_c_stringize+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 cat >conftest.$ac_ext <<_ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13165 char *s = x(teststring);
13167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13168 $EGREP "#teststring" >/dev/null 2>&1; then
13169 ac_cv_c_stringize=no
13171 ac_cv_c_stringize=yes
13176 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13177 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13178 if test $ac_cv_c_stringize = yes; then
13180 cat >>confdefs.h <<\_ACEOF
13181 #define HAVE_STRINGIZE 1
13186 { echo "$as_me:$LINENO: checking for signed types" >&5
13187 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13188 if test "${pgac_cv_c_signed+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 cat >conftest.$ac_ext <<_ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13201 signed char c; signed short s; signed int i;
13206 rm -f conftest.$ac_objext
13207 if { (ac_try="$ac_compile"
13208 case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_compile") 2>conftest.er1
13215 grep -v '^ *+' conftest.er1 >conftest.err
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } && {
13220 test -z "$ac_c_werror_flag" ||
13221 test ! -s conftest.err
13222 } && test -s conftest.$ac_objext; then
13223 pgac_cv_c_signed=yes
13225 echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13228 pgac_cv_c_signed=no
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13234 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13235 if test x"$pgac_cv_c_signed" = xno ; then
13237 cat >>confdefs.h <<\_ACEOF
13242 { echo "$as_me:$LINENO: checking for working volatile" >&5
13243 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13244 if test "${ac_cv_c_volatile+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 cat >conftest.$ac_ext <<_ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13259 int * volatile y = (int *) 0;
13265 rm -f conftest.$ac_objext
13266 if { (ac_try="$ac_compile"
13267 case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_compile") 2>conftest.er1
13274 grep -v '^ *+' conftest.er1 >conftest.err
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } && {
13279 test -z "$ac_c_werror_flag" ||
13280 test ! -s conftest.err
13281 } && test -s conftest.$ac_objext; then
13282 ac_cv_c_volatile=yes
13284 echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13287 ac_cv_c_volatile=no
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13293 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13294 if test $ac_cv_c_volatile = no; then
13296 cat >>confdefs.h <<\_ACEOF
13302 { echo "$as_me:$LINENO: checking for __func__" >&5
13303 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13304 if test "${pgac_cv_funcname_func_support+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 cat >conftest.$ac_ext <<_ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13317 printf("%s\n", __func__);
13322 rm -f conftest.$ac_objext
13323 if { (ac_try="$ac_compile"
13324 case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_compile") 2>conftest.er1
13331 grep -v '^ *+' conftest.er1 >conftest.err
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } && {
13336 test -z "$ac_c_werror_flag" ||
13337 test ! -s conftest.err
13338 } && test -s conftest.$ac_objext; then
13339 pgac_cv_funcname_func_support=yes
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13344 pgac_cv_funcname_func_support=no
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13350 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13351 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13353 cat >>confdefs.h <<\_ACEOF
13354 #define HAVE_FUNCNAME__FUNC 1
13358 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13359 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13360 if test "${pgac_cv_funcname_function_support+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 cat >conftest.$ac_ext <<_ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13373 printf("%s\n", __FUNCTION__);
13378 rm -f conftest.$ac_objext
13379 if { (ac_try="$ac_compile"
13380 case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_compile") 2>conftest.er1
13387 grep -v '^ *+' conftest.er1 >conftest.err
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } && {
13392 test -z "$ac_c_werror_flag" ||
13393 test ! -s conftest.err
13394 } && test -s conftest.$ac_objext; then
13395 pgac_cv_funcname_function_support=yes
13397 echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13400 pgac_cv_funcname_function_support=no
13403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13406 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13407 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13409 cat >>confdefs.h <<\_ACEOF
13410 #define HAVE_FUNCNAME__FUNCTION 1
13415 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13416 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13417 if test "${ac_cv_struct_tm+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 cat >conftest.$ac_ext <<_ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 #include <sys/types.h>
13433 int *p = &tm.tm_sec;
13439 rm -f conftest.$ac_objext
13440 if { (ac_try="$ac_compile"
13441 case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_compile") 2>conftest.er1
13448 grep -v '^ *+' conftest.er1 >conftest.err
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } && {
13453 test -z "$ac_c_werror_flag" ||
13454 test ! -s conftest.err
13455 } && test -s conftest.$ac_objext; then
13456 ac_cv_struct_tm=time.h
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13461 ac_cv_struct_tm=sys/time.h
13464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13466 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13467 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13468 if test $ac_cv_struct_tm = sys/time.h; then
13470 cat >>confdefs.h <<\_ACEOF
13471 #define TM_IN_SYS_TIME 1
13476 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13477 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13478 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 cat >conftest.$ac_ext <<_ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 #include <sys/types.h>
13488 #include <$ac_cv_struct_tm>
13494 static struct tm ac_aggr;
13495 if (ac_aggr.tm_zone)
13501 rm -f conftest.$ac_objext
13502 if { (ac_try="$ac_compile"
13503 case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_compile") 2>conftest.er1
13510 grep -v '^ *+' conftest.er1 >conftest.err
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } && {
13515 test -z "$ac_c_werror_flag" ||
13516 test ! -s conftest.err
13517 } && test -s conftest.$ac_objext; then
13518 ac_cv_member_struct_tm_tm_zone=yes
13520 echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13523 cat >conftest.$ac_ext <<_ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h. */
13529 #include <sys/types.h>
13530 #include <$ac_cv_struct_tm>
13536 static struct tm ac_aggr;
13537 if (sizeof ac_aggr.tm_zone)
13543 rm -f conftest.$ac_objext
13544 if { (ac_try="$ac_compile"
13545 case "(($ac_try" in
13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547 *) ac_try_echo=$ac_try;;
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550 (eval "$ac_compile") 2>conftest.er1
13552 grep -v '^ *+' conftest.er1 >conftest.err
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } && {
13557 test -z "$ac_c_werror_flag" ||
13558 test ! -s conftest.err
13559 } && test -s conftest.$ac_objext; then
13560 ac_cv_member_struct_tm_tm_zone=yes
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13565 ac_cv_member_struct_tm_tm_zone=no
13568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13574 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13575 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13577 cat >>confdefs.h <<_ACEOF
13578 #define HAVE_STRUCT_TM_TM_ZONE 1
13584 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13586 cat >>confdefs.h <<\_ACEOF
13587 #define HAVE_TM_ZONE 1
13591 { echo "$as_me:$LINENO: checking for tzname" >&5
13592 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13593 if test "${ac_cv_var_tzname+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13596 cat >conftest.$ac_ext <<_ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13603 #ifndef tzname /* For SGI. */
13604 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13615 rm -f conftest.$ac_objext conftest$ac_exeext
13616 if { (ac_try="$ac_link"
13617 case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_link") 2>conftest.er1
13624 grep -v '^ *+' conftest.er1 >conftest.err
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } && {
13629 test -z "$ac_c_werror_flag" ||
13630 test ! -s conftest.err
13631 } && test -s conftest$ac_exeext &&
13632 $as_test_x conftest$ac_exeext; then
13633 ac_cv_var_tzname=yes
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 ac_cv_var_tzname=no
13641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13642 conftest$ac_exeext conftest.$ac_ext
13644 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13645 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13646 if test $ac_cv_var_tzname = yes; then
13648 cat >>confdefs.h <<\_ACEOF
13649 #define HAVE_TZNAME 1
13654 { echo "$as_me:$LINENO: checking for union semun" >&5
13655 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13656 if test "${ac_cv_type_union_semun+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 #include <sys/types.h>
13666 #include <sys/ipc.h>
13667 #include <sys/sem.h>
13669 typedef union semun ac__type_new_;
13673 if ((ac__type_new_ *) 0)
13675 if (sizeof (ac__type_new_))
13681 rm -f conftest.$ac_objext
13682 if { (ac_try="$ac_compile"
13683 case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688 (eval "$ac_compile") 2>conftest.er1
13690 grep -v '^ *+' conftest.er1 >conftest.err
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && {
13695 test -z "$ac_c_werror_flag" ||
13696 test ! -s conftest.err
13697 } && test -s conftest.$ac_objext; then
13698 ac_cv_type_union_semun=yes
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13703 ac_cv_type_union_semun=no
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13709 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13710 if test $ac_cv_type_union_semun = yes; then
13712 cat >>confdefs.h <<_ACEOF
13713 #define HAVE_UNION_SEMUN 1
13719 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13720 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13721 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 cat >conftest.$ac_ext <<_ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 #include <sys/types.h>
13731 #ifdef HAVE_SYS_UN_H
13732 #include <sys/un.h>
13736 typedef struct sockaddr_un ac__type_new_;
13740 if ((ac__type_new_ *) 0)
13742 if (sizeof (ac__type_new_))
13748 rm -f conftest.$ac_objext
13749 if { (ac_try="$ac_compile"
13750 case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_compile") 2>conftest.er1
13757 grep -v '^ *+' conftest.er1 >conftest.err
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } && {
13762 test -z "$ac_c_werror_flag" ||
13763 test ! -s conftest.err
13764 } && test -s conftest.$ac_objext; then
13765 ac_cv_type_struct_sockaddr_un=yes
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13770 ac_cv_type_struct_sockaddr_un=no
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13776 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
13777 if test $ac_cv_type_struct_sockaddr_un = yes; then
13779 cat >>confdefs.h <<_ACEOF
13780 #define HAVE_STRUCT_SOCKADDR_UN 1
13784 cat >>confdefs.h <<\_ACEOF
13785 #define HAVE_UNIX_SOCKETS 1
13790 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13791 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
13792 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 cat >conftest.$ac_ext <<_ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13801 #include <sys/types.h>
13802 #ifdef HAVE_SYS_SOCKET_H
13803 #include <sys/socket.h>
13807 typedef struct sockaddr_storage ac__type_new_;
13811 if ((ac__type_new_ *) 0)
13813 if (sizeof (ac__type_new_))
13819 rm -f conftest.$ac_objext
13820 if { (ac_try="$ac_compile"
13821 case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_compile") 2>conftest.er1
13828 grep -v '^ *+' conftest.er1 >conftest.err
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } && {
13833 test -z "$ac_c_werror_flag" ||
13834 test ! -s conftest.err
13835 } && test -s conftest.$ac_objext; then
13836 ac_cv_type_struct_sockaddr_storage=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_type_struct_sockaddr_storage=no
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13847 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
13848 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13850 cat >>confdefs.h <<_ACEOF
13851 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13857 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13858 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
13859 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 #include <sys/types.h>
13869 #ifdef HAVE_SYS_SOCKET_H
13870 #include <sys/socket.h>
13877 static struct sockaddr_storage ac_aggr;
13878 if (ac_aggr.ss_family)
13884 rm -f conftest.$ac_objext
13885 if { (ac_try="$ac_compile"
13886 case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_compile") 2>conftest.er1
13893 grep -v '^ *+' conftest.er1 >conftest.err
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && {
13898 test -z "$ac_c_werror_flag" ||
13899 test ! -s conftest.err
13900 } && test -s conftest.$ac_objext; then
13901 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 #include <sys/types.h>
13913 #ifdef HAVE_SYS_SOCKET_H
13914 #include <sys/socket.h>
13921 static struct sockaddr_storage ac_aggr;
13922 if (sizeof ac_aggr.ss_family)
13928 rm -f conftest.$ac_objext
13929 if { (ac_try="$ac_compile"
13930 case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_compile") 2>conftest.er1
13937 grep -v '^ *+' conftest.er1 >conftest.err
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } && {
13942 test -z "$ac_c_werror_flag" ||
13943 test ! -s conftest.err
13944 } && test -s conftest.$ac_objext; then
13945 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_cv_member_struct_sockaddr_storage_ss_family=no
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13959 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
13960 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13962 cat >>confdefs.h <<_ACEOF
13963 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13968 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13969 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
13970 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 cat >conftest.$ac_ext <<_ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 #include <sys/types.h>
13980 #ifdef HAVE_SYS_SOCKET_H
13981 #include <sys/socket.h>
13988 static struct sockaddr_storage ac_aggr;
13989 if (ac_aggr.__ss_family)
13995 rm -f conftest.$ac_objext
13996 if { (ac_try="$ac_compile"
13997 case "(($ac_try" in
13998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999 *) ac_try_echo=$ac_try;;
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002 (eval "$ac_compile") 2>conftest.er1
14004 grep -v '^ *+' conftest.er1 >conftest.err
14006 cat conftest.err >&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } && {
14009 test -z "$ac_c_werror_flag" ||
14010 test ! -s conftest.err
14011 } && test -s conftest.$ac_objext; then
14012 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14017 cat >conftest.$ac_ext <<_ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 #include <sys/types.h>
14024 #ifdef HAVE_SYS_SOCKET_H
14025 #include <sys/socket.h>
14032 static struct sockaddr_storage ac_aggr;
14033 if (sizeof ac_aggr.__ss_family)
14039 rm -f conftest.$ac_objext
14040 if { (ac_try="$ac_compile"
14041 case "(($ac_try" in
14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046 (eval "$ac_compile") 2>conftest.er1
14048 grep -v '^ *+' conftest.er1 >conftest.err
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } && {
14053 test -z "$ac_c_werror_flag" ||
14054 test ! -s conftest.err
14055 } && test -s conftest.$ac_objext; then
14056 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14061 ac_cv_member_struct_sockaddr_storage___ss_family=no
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14070 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14071 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14073 cat >>confdefs.h <<_ACEOF
14074 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14079 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14080 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14081 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 cat >conftest.$ac_ext <<_ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14090 #include <sys/types.h>
14091 #ifdef HAVE_SYS_SOCKET_H
14092 #include <sys/socket.h>
14099 static struct sockaddr_storage ac_aggr;
14100 if (ac_aggr.ss_len)
14106 rm -f conftest.$ac_objext
14107 if { (ac_try="$ac_compile"
14108 case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_compile") 2>conftest.er1
14115 grep -v '^ *+' conftest.er1 >conftest.err
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } && {
14120 test -z "$ac_c_werror_flag" ||
14121 test ! -s conftest.err
14122 } && test -s conftest.$ac_objext; then
14123 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 cat >conftest.$ac_ext <<_ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h. */
14134 #include <sys/types.h>
14135 #ifdef HAVE_SYS_SOCKET_H
14136 #include <sys/socket.h>
14143 static struct sockaddr_storage ac_aggr;
14144 if (sizeof ac_aggr.ss_len)
14150 rm -f conftest.$ac_objext
14151 if { (ac_try="$ac_compile"
14152 case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_compile") 2>conftest.er1
14159 grep -v '^ *+' conftest.er1 >conftest.err
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } && {
14164 test -z "$ac_c_werror_flag" ||
14165 test ! -s conftest.err
14166 } && test -s conftest.$ac_objext; then
14167 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 ac_cv_member_struct_sockaddr_storage_ss_len=no
14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14181 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14182 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14184 cat >>confdefs.h <<_ACEOF
14185 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14190 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14191 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14192 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
14195 cat >conftest.$ac_ext <<_ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 #include <sys/types.h>
14202 #ifdef HAVE_SYS_SOCKET_H
14203 #include <sys/socket.h>
14210 static struct sockaddr_storage ac_aggr;
14211 if (ac_aggr.__ss_len)
14217 rm -f conftest.$ac_objext
14218 if { (ac_try="$ac_compile"
14219 case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_compile") 2>conftest.er1
14226 grep -v '^ *+' conftest.er1 >conftest.err
14228 cat conftest.err >&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } && {
14231 test -z "$ac_c_werror_flag" ||
14232 test ! -s conftest.err
14233 } && test -s conftest.$ac_objext; then
14234 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 cat >conftest.$ac_ext <<_ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14245 #include <sys/types.h>
14246 #ifdef HAVE_SYS_SOCKET_H
14247 #include <sys/socket.h>
14254 static struct sockaddr_storage ac_aggr;
14255 if (sizeof ac_aggr.__ss_len)
14261 rm -f conftest.$ac_objext
14262 if { (ac_try="$ac_compile"
14263 case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14268 (eval "$ac_compile") 2>conftest.er1
14270 grep -v '^ *+' conftest.er1 >conftest.err
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } && {
14275 test -z "$ac_c_werror_flag" ||
14276 test ! -s conftest.err
14277 } && test -s conftest.$ac_objext; then
14278 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14283 ac_cv_member_struct_sockaddr_storage___ss_len=no
14286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14291 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14292 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14293 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14295 cat >>confdefs.h <<_ACEOF
14296 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14301 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14302 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14303 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 cat >conftest.$ac_ext <<_ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 #include <sys/types.h>
14313 #ifdef HAVE_SYS_SOCKET_H
14314 #include <sys/socket.h>
14321 static struct sockaddr ac_aggr;
14322 if (ac_aggr.sa_len)
14328 rm -f conftest.$ac_objext
14329 if { (ac_try="$ac_compile"
14330 case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_compile") 2>conftest.er1
14337 grep -v '^ *+' conftest.er1 >conftest.err
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && {
14342 test -z "$ac_c_werror_flag" ||
14343 test ! -s conftest.err
14344 } && test -s conftest.$ac_objext; then
14345 ac_cv_member_struct_sockaddr_sa_len=yes
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 cat >conftest.$ac_ext <<_ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 #include <sys/types.h>
14357 #ifdef HAVE_SYS_SOCKET_H
14358 #include <sys/socket.h>
14365 static struct sockaddr ac_aggr;
14366 if (sizeof ac_aggr.sa_len)
14372 rm -f conftest.$ac_objext
14373 if { (ac_try="$ac_compile"
14374 case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_compile") 2>conftest.er1
14381 grep -v '^ *+' conftest.er1 >conftest.err
14383 cat conftest.err >&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } && {
14386 test -z "$ac_c_werror_flag" ||
14387 test ! -s conftest.err
14388 } && test -s conftest.$ac_objext; then
14389 ac_cv_member_struct_sockaddr_sa_len=yes
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ac_cv_member_struct_sockaddr_sa_len=no
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14403 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14404 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14406 cat >>confdefs.h <<_ACEOF
14407 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14413 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14414 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14415 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 cat >conftest.$ac_ext <<_ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 #include <sys/types.h>
14425 #include <sys/socket.h>
14429 typedef struct addrinfo ac__type_new_;
14433 if ((ac__type_new_ *) 0)
14435 if (sizeof (ac__type_new_))
14441 rm -f conftest.$ac_objext
14442 if { (ac_try="$ac_compile"
14443 case "(($ac_try" in
14444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14445 *) ac_try_echo=$ac_try;;
14447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14448 (eval "$ac_compile") 2>conftest.er1
14450 grep -v '^ *+' conftest.er1 >conftest.err
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } && {
14455 test -z "$ac_c_werror_flag" ||
14456 test ! -s conftest.err
14457 } && test -s conftest.$ac_objext; then
14458 ac_cv_type_struct_addrinfo=yes
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 ac_cv_type_struct_addrinfo=no
14466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14469 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14470 if test $ac_cv_type_struct_addrinfo = yes; then
14472 cat >>confdefs.h <<_ACEOF
14473 #define HAVE_STRUCT_ADDRINFO 1
14480 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14481 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14482 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 cat >conftest.$ac_ext <<_ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 #include <sys/param.h>
14492 #include <sys/types.h>
14493 #include <sys/socket.h>
14494 #include <sys/ucred.h>
14496 typedef struct cmsgcred ac__type_new_;
14500 if ((ac__type_new_ *) 0)
14502 if (sizeof (ac__type_new_))
14508 rm -f conftest.$ac_objext
14509 if { (ac_try="$ac_compile"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_compile") 2>conftest.er1
14517 grep -v '^ *+' conftest.er1 >conftest.err
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } && {
14522 test -z "$ac_c_werror_flag" ||
14523 test ! -s conftest.err
14524 } && test -s conftest.$ac_objext; then
14525 ac_cv_type_struct_cmsgcred=yes
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 ac_cv_type_struct_cmsgcred=no
14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14536 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14537 if test $ac_cv_type_struct_cmsgcred = yes; then
14539 cat >>confdefs.h <<_ACEOF
14540 #define HAVE_STRUCT_CMSGCRED 1
14545 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14546 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14547 if test "${ac_cv_type_struct_fcred+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 cat >conftest.$ac_ext <<_ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 #include <sys/param.h>
14557 #include <sys/types.h>
14558 #include <sys/socket.h>
14559 #include <sys/ucred.h>
14561 typedef struct fcred ac__type_new_;
14565 if ((ac__type_new_ *) 0)
14567 if (sizeof (ac__type_new_))
14573 rm -f conftest.$ac_objext
14574 if { (ac_try="$ac_compile"
14575 case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_compile") 2>conftest.er1
14582 grep -v '^ *+' conftest.er1 >conftest.err
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } && {
14587 test -z "$ac_c_werror_flag" ||
14588 test ! -s conftest.err
14589 } && test -s conftest.$ac_objext; then
14590 ac_cv_type_struct_fcred=yes
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ac_cv_type_struct_fcred=no
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14601 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14602 if test $ac_cv_type_struct_fcred = yes; then
14604 cat >>confdefs.h <<_ACEOF
14605 #define HAVE_STRUCT_FCRED 1
14610 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14611 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14612 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 cat >conftest.$ac_ext <<_ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 #include <sys/param.h>
14622 #include <sys/types.h>
14623 #include <sys/socket.h>
14624 #include <sys/ucred.h>
14626 typedef struct sockcred ac__type_new_;
14630 if ((ac__type_new_ *) 0)
14632 if (sizeof (ac__type_new_))
14638 rm -f conftest.$ac_objext
14639 if { (ac_try="$ac_compile"
14640 case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_compile") 2>conftest.er1
14647 grep -v '^ *+' conftest.er1 >conftest.err
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } && {
14652 test -z "$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14654 } && test -s conftest.$ac_objext; then
14655 ac_cv_type_struct_sockcred=yes
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 ac_cv_type_struct_sockcred=no
14663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14666 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14667 if test $ac_cv_type_struct_sockcred = yes; then
14669 cat >>confdefs.h <<_ACEOF
14670 #define HAVE_STRUCT_SOCKCRED 1
14677 { echo "$as_me:$LINENO: checking for struct option" >&5
14678 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14679 if test "${ac_cv_type_struct_option+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 cat >conftest.$ac_ext <<_ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h. */
14688 #ifdef HAVE_GETOPT_H
14689 #include <getopt.h>
14692 typedef struct option ac__type_new_;
14696 if ((ac__type_new_ *) 0)
14698 if (sizeof (ac__type_new_))
14704 rm -f conftest.$ac_objext
14705 if { (ac_try="$ac_compile"
14706 case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_compile") 2>conftest.er1
14713 grep -v '^ *+' conftest.er1 >conftest.err
14715 cat conftest.err >&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } && {
14718 test -z "$ac_c_werror_flag" ||
14719 test ! -s conftest.err
14720 } && test -s conftest.$ac_objext; then
14721 ac_cv_type_struct_option=yes
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14726 ac_cv_type_struct_option=no
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14731 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14732 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14733 if test $ac_cv_type_struct_option = yes; then
14735 cat >>confdefs.h <<_ACEOF
14736 #define HAVE_STRUCT_OPTION 1
14743 if test "$with_zlib" = yes; then
14744 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14745 # did not). While we could work around the lack of z_streamp, it
14746 # seems unwise to encourage people to use such old zlib versions...
14747 { echo "$as_me:$LINENO: checking for z_streamp" >&5
14748 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
14749 if test "${ac_cv_type_z_streamp+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 cat >conftest.$ac_ext <<_ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14760 typedef z_streamp ac__type_new_;
14764 if ((ac__type_new_ *) 0)
14766 if (sizeof (ac__type_new_))
14772 rm -f conftest.$ac_objext
14773 if { (ac_try="$ac_compile"
14774 case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_compile") 2>conftest.er1
14781 grep -v '^ *+' conftest.er1 >conftest.err
14783 cat conftest.err >&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } && {
14786 test -z "$ac_c_werror_flag" ||
14787 test ! -s conftest.err
14788 } && test -s conftest.$ac_objext; then
14789 ac_cv_type_z_streamp=yes
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 ac_cv_type_z_streamp=no
14797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14799 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14800 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
14801 if test $ac_cv_type_z_streamp = yes; then
14804 { { echo "$as_me:$LINENO: error: zlib version is too old
14805 Use --without-zlib to disable zlib support." >&5
14806 echo "$as_me: error: zlib version is too old
14807 Use --without-zlib to disable zlib support." >&2;}
14808 { (exit 1); exit 1; }; }
14813 if test "$with_krb5" = yes; then
14814 # Check for differences between MIT and Heimdal (KTH) releases
14815 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14816 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
14817 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 cat >conftest.$ac_ext <<_ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14831 static krb5_ticket ac_aggr;
14832 if (ac_aggr.enc_part2)
14838 rm -f conftest.$ac_objext
14839 if { (ac_try="$ac_compile"
14840 case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_compile") 2>conftest.er1
14847 grep -v '^ *+' conftest.er1 >conftest.err
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest.$ac_objext; then
14855 ac_cv_member_krb5_ticket_enc_part2=yes
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 cat >conftest.$ac_ext <<_ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14871 static krb5_ticket ac_aggr;
14872 if (sizeof ac_aggr.enc_part2)
14878 rm -f conftest.$ac_objext
14879 if { (ac_try="$ac_compile"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_compile") 2>conftest.er1
14887 grep -v '^ *+' conftest.er1 >conftest.err
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } && {
14892 test -z "$ac_c_werror_flag" ||
14893 test ! -s conftest.err
14894 } && test -s conftest.$ac_objext; then
14895 ac_cv_member_krb5_ticket_enc_part2=yes
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14900 ac_cv_member_krb5_ticket_enc_part2=no
14903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14909 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
14910 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14912 cat >>confdefs.h <<_ACEOF
14913 #define HAVE_KRB5_TICKET_ENC_PART2 1
14918 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14919 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
14920 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 cat >conftest.$ac_ext <<_ACEOF
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h. */
14934 static krb5_ticket ac_aggr;
14935 if (ac_aggr.client)
14941 rm -f conftest.$ac_objext
14942 if { (ac_try="$ac_compile"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_compile") 2>conftest.er1
14950 grep -v '^ *+' conftest.er1 >conftest.err
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } && {
14955 test -z "$ac_c_werror_flag" ||
14956 test ! -s conftest.err
14957 } && test -s conftest.$ac_objext; then
14958 ac_cv_member_krb5_ticket_client=yes
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14963 cat >conftest.$ac_ext <<_ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14974 static krb5_ticket ac_aggr;
14975 if (sizeof ac_aggr.client)
14981 rm -f conftest.$ac_objext
14982 if { (ac_try="$ac_compile"
14983 case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_compile") 2>conftest.er1
14990 grep -v '^ *+' conftest.er1 >conftest.err
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } && {
14995 test -z "$ac_c_werror_flag" ||
14996 test ! -s conftest.err
14997 } && test -s conftest.$ac_objext; then
14998 ac_cv_member_krb5_ticket_client=yes
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15003 ac_cv_member_krb5_ticket_client=no
15006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15012 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15013 if test $ac_cv_member_krb5_ticket_client = yes; then
15015 cat >>confdefs.h <<_ACEOF
15016 #define HAVE_KRB5_TICKET_CLIENT 1
15021 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15022 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15023 { (exit 1); exit 1; }; }
15028 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15029 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15030 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 cat >conftest.$ac_ext <<_ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15044 static krb5_error ac_aggr;
15045 if (ac_aggr.text.data)
15051 rm -f conftest.$ac_objext
15052 if { (ac_try="$ac_compile"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_compile") 2>conftest.er1
15060 grep -v '^ *+' conftest.er1 >conftest.err
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest.$ac_objext; then
15068 ac_cv_member_krb5_error_text_data=yes
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 cat >conftest.$ac_ext <<_ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15084 static krb5_error ac_aggr;
15085 if (sizeof ac_aggr.text.data)
15091 rm -f conftest.$ac_objext
15092 if { (ac_try="$ac_compile"
15093 case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_compile") 2>conftest.er1
15100 grep -v '^ *+' conftest.er1 >conftest.err
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } && {
15105 test -z "$ac_c_werror_flag" ||
15106 test ! -s conftest.err
15107 } && test -s conftest.$ac_objext; then
15108 ac_cv_member_krb5_error_text_data=yes
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 ac_cv_member_krb5_error_text_data=no
15116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15122 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15123 if test $ac_cv_member_krb5_error_text_data = yes; then
15125 cat >>confdefs.h <<_ACEOF
15126 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15131 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15132 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15133 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15134 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 cat >conftest.$ac_ext <<_ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h. */
15147 static krb5_error ac_aggr;
15148 if (ac_aggr.e_data)
15154 rm -f conftest.$ac_objext
15155 if { (ac_try="$ac_compile"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_compile") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } && {
15168 test -z "$ac_c_werror_flag" ||
15169 test ! -s conftest.err
15170 } && test -s conftest.$ac_objext; then
15171 ac_cv_member_krb5_error_e_data=yes
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15187 static krb5_error ac_aggr;
15188 if (sizeof ac_aggr.e_data)
15194 rm -f conftest.$ac_objext
15195 if { (ac_try="$ac_compile"
15196 case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201 (eval "$ac_compile") 2>conftest.er1
15203 grep -v '^ *+' conftest.er1 >conftest.err
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } && {
15208 test -z "$ac_c_werror_flag" ||
15209 test ! -s conftest.err
15210 } && test -s conftest.$ac_objext; then
15211 ac_cv_member_krb5_error_e_data=yes
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 ac_cv_member_krb5_error_e_data=no
15219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15224 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15225 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15226 if test $ac_cv_member_krb5_error_e_data = yes; then
15228 cat >>confdefs.h <<_ACEOF
15229 #define HAVE_KRB5_ERROR_E_DATA 1
15234 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15235 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15236 { (exit 1); exit 1; }; }
15242 # Win32 requires headers to be loaded for __stdcall, so can't use
15243 # AC_CHECK_FUNCS here.
15244 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15245 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15246 cat >conftest.$ac_ext <<_ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15256 krb5_free_unparsed_name(NULL,NULL);
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (ac_try="$ac_link"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_link") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest$ac_exeext &&
15278 $as_test_x conftest$ac_exeext; then
15280 cat >>confdefs.h <<\_ACEOF
15281 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15284 { echo "$as_me:$LINENO: result: yes" >&5
15285 echo "${ECHO_T}yes" >&6; }
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 { echo "$as_me:$LINENO: result: no" >&5
15291 echo "${ECHO_T}no" >&6; }
15294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15295 conftest$ac_exeext conftest.$ac_ext
15300 ## Functions, global variables
15303 { echo "$as_me:$LINENO: checking for int timezone" >&5
15304 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15305 if test "${pgac_cv_var_int_timezone+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 cat >conftest.$ac_ext <<_ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15320 res = timezone / 60;
15322 res = _timezone / 60;
15328 rm -f conftest.$ac_objext conftest$ac_exeext
15329 if { (ac_try="$ac_link"
15330 case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_link") 2>conftest.er1
15337 grep -v '^ *+' conftest.er1 >conftest.err
15339 cat conftest.err >&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && {
15342 test -z "$ac_c_werror_flag" ||
15343 test ! -s conftest.err
15344 } && test -s conftest$ac_exeext &&
15345 $as_test_x conftest$ac_exeext; then
15346 pgac_cv_var_int_timezone=yes
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15351 pgac_cv_var_int_timezone=no
15354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15355 conftest$ac_exeext conftest.$ac_ext
15357 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15358 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15359 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15361 cat >>confdefs.h <<\_ACEOF
15362 #define HAVE_INT_TIMEZONE
15366 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15367 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15368 if test "${ac_cv_func_accept_return+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 if test "${ac_cv_func_accept_arg1+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 if test "${ac_cv_func_accept_arg2+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 if test "${ac_cv_func_accept_arg3+set}" = set; then
15378 echo $ECHO_N "(cached) $ECHO_C" >&6
15380 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15381 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15382 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15383 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15384 cat >conftest.$ac_ext <<_ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h. */
15390 #ifdef HAVE_SYS_TYPES_H
15391 #include <sys/types.h>
15393 #ifdef HAVE_SYS_SOCKET_H
15394 #include <sys/socket.h>
15396 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15405 rm -f conftest.$ac_objext
15406 if { (ac_try="$ac_compile"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_compile") 2>conftest.er1
15414 grep -v '^ *+' conftest.er1 >conftest.err
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } && {
15419 test -z "$ac_c_werror_flag" ||
15420 test ! -s conftest.err
15421 } && test -s conftest.$ac_objext; then
15422 ac_not_found=no; break 4
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 if test "$ac_not_found" = yes; then
15436 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15437 echo "$as_me: error: could not determine argument types" >&2;}
15438 { (exit 1); exit 1; }; }
15440 if test "$ac_cv_func_accept_arg3" = "void"; then
15441 ac_cv_func_accept_arg3=int
15451 { 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
15452 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15454 cat >>confdefs.h <<_ACEOF
15455 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15459 cat >>confdefs.h <<_ACEOF
15460 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15464 cat >>confdefs.h <<_ACEOF
15465 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15469 cat >>confdefs.h <<_ACEOF
15470 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15474 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15475 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15476 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15477 echo $ECHO_N "(cached) $ECHO_C" >&6
15479 cat >conftest.$ac_ext <<_ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15485 #include <sys/time.h>
15489 struct timeval *tp;
15490 struct timezone *tzp;
15491 gettimeofday(tp,tzp);
15496 rm -f conftest.$ac_objext
15497 if { (ac_try="$ac_compile"
15498 case "(($ac_try" in
15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500 *) ac_try_echo=$ac_try;;
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503 (eval "$ac_compile") 2>conftest.er1
15505 grep -v '^ *+' conftest.er1 >conftest.err
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } && {
15510 test -z "$ac_c_werror_flag" ||
15511 test ! -s conftest.err
15512 } && test -s conftest.$ac_objext; then
15513 pgac_cv_func_gettimeofday_1arg=no
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 pgac_cv_func_gettimeofday_1arg=yes
15521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15524 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15525 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15527 cat >>confdefs.h <<\_ACEOF
15528 #define GETTIMEOFDAY_1ARG
15555 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 cat >conftest.$ac_ext <<_ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15571 #define $ac_func innocuous_$ac_func
15573 /* System header to define __stub macros and hopefully few prototypes,
15574 which can conflict with char $ac_func (); below.
15575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15576 <limits.h> exists even on freestanding compilers. */
15579 # include <limits.h>
15581 # include <assert.h>
15586 /* Override any GCC internal prototype to avoid an error.
15587 Use char because int might match the return type of a GCC
15588 builtin and then its argument prototype would still apply. */
15593 /* The GNU C library defines this for functions which it implements
15594 to always fail with ENOSYS. Some functions are actually named
15595 something starting with __ and the normal name is an alias. */
15596 #if defined __stub_$ac_func || defined __stub___$ac_func
15603 return $ac_func ();
15608 rm -f conftest.$ac_objext conftest$ac_exeext
15609 if { (ac_try="$ac_link"
15610 case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_link") 2>conftest.er1
15617 grep -v '^ *+' conftest.er1 >conftest.err
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } && {
15622 test -z "$ac_c_werror_flag" ||
15623 test ! -s conftest.err
15624 } && test -s conftest$ac_exeext &&
15625 $as_test_x conftest$ac_exeext; then
15626 eval "$as_ac_var=yes"
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 eval "$as_ac_var=no"
15634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15635 conftest$ac_exeext conftest.$ac_ext
15637 ac_res=`eval echo '${'$as_ac_var'}'`
15638 { echo "$as_me:$LINENO: result: $ac_res" >&5
15639 echo "${ECHO_T}$ac_res" >&6; }
15640 if test `eval echo '${'$as_ac_var'}'` = yes; then
15641 cat >>confdefs.h <<_ACEOF
15642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15649 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15650 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15651 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15654 cat >conftest.$ac_ext <<_ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15660 #include <unistd.h>
15673 rm -f conftest.$ac_objext
15674 if { (ac_try="$ac_compile"
15675 case "(($ac_try" in
15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677 *) ac_try_echo=$ac_try;;
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680 (eval "$ac_compile") 2>conftest.er1
15682 grep -v '^ *+' conftest.er1 >conftest.err
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } && {
15687 test -z "$ac_c_werror_flag" ||
15688 test ! -s conftest.err
15689 } && test -s conftest.$ac_objext; then
15690 ac_cv_have_decl_fdatasync=yes
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 ac_cv_have_decl_fdatasync=no
15698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15700 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15701 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15702 if test $ac_cv_have_decl_fdatasync = yes; then
15704 cat >>confdefs.h <<_ACEOF
15705 #define HAVE_DECL_FDATASYNC 1
15710 cat >>confdefs.h <<_ACEOF
15711 #define HAVE_DECL_FDATASYNC 0
15718 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15719 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15720 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15723 cat >conftest.$ac_ext <<_ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15734 #ifndef posix_fadvise
15735 (void) posix_fadvise;
15742 rm -f conftest.$ac_objext
15743 if { (ac_try="$ac_compile"
15744 case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_compile") 2>conftest.er1
15751 grep -v '^ *+' conftest.er1 >conftest.err
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } && {
15756 test -z "$ac_c_werror_flag" ||
15757 test ! -s conftest.err
15758 } && test -s conftest.$ac_objext; then
15759 ac_cv_have_decl_posix_fadvise=yes
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 ac_cv_have_decl_posix_fadvise=no
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15769 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15770 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
15771 if test $ac_cv_have_decl_posix_fadvise = yes; then
15773 cat >>confdefs.h <<_ACEOF
15774 #define HAVE_DECL_POSIX_FADVISE 1
15779 cat >>confdefs.h <<_ACEOF
15780 #define HAVE_DECL_POSIX_FADVISE 0
15787 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15788 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
15789 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 cat >conftest.$ac_ext <<_ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15798 $ac_includes_default
15810 rm -f conftest.$ac_objext
15811 if { (ac_try="$ac_compile"
15812 case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_compile") 2>conftest.er1
15819 grep -v '^ *+' conftest.er1 >conftest.err
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } && {
15824 test -z "$ac_c_werror_flag" ||
15825 test ! -s conftest.err
15826 } && test -s conftest.$ac_objext; then
15827 ac_cv_have_decl_strlcat=yes
15829 echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15832 ac_cv_have_decl_strlcat=no
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15837 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15838 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
15839 if test $ac_cv_have_decl_strlcat = yes; then
15841 cat >>confdefs.h <<_ACEOF
15842 #define HAVE_DECL_STRLCAT 1
15847 cat >>confdefs.h <<_ACEOF
15848 #define HAVE_DECL_STRLCAT 0
15853 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15854 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
15855 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 cat >conftest.$ac_ext <<_ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 $ac_includes_default
15876 rm -f conftest.$ac_objext
15877 if { (ac_try="$ac_compile"
15878 case "(($ac_try" in
15879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880 *) ac_try_echo=$ac_try;;
15882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883 (eval "$ac_compile") 2>conftest.er1
15885 grep -v '^ *+' conftest.er1 >conftest.err
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } && {
15890 test -z "$ac_c_werror_flag" ||
15891 test ! -s conftest.err
15892 } && test -s conftest.$ac_objext; then
15893 ac_cv_have_decl_strlcpy=yes
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 ac_cv_have_decl_strlcpy=no
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15904 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
15905 if test $ac_cv_have_decl_strlcpy = yes; then
15907 cat >>confdefs.h <<_ACEOF
15908 #define HAVE_DECL_STRLCPY 1
15913 cat >>confdefs.h <<_ACEOF
15914 #define HAVE_DECL_STRLCPY 0
15921 # This is probably only present on Darwin, but may as well check always
15922 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15923 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
15924 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15927 cat >conftest.$ac_ext <<_ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15938 #ifndef F_FULLFSYNC
15939 (void) F_FULLFSYNC;
15946 rm -f conftest.$ac_objext
15947 if { (ac_try="$ac_compile"
15948 case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_compile") 2>conftest.er1
15955 grep -v '^ *+' conftest.er1 >conftest.err
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } && {
15960 test -z "$ac_c_werror_flag" ||
15961 test ! -s conftest.err
15962 } && test -s conftest.$ac_objext; then
15963 ac_cv_have_decl_F_FULLFSYNC=yes
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15968 ac_cv_have_decl_F_FULLFSYNC=no
15971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15973 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15974 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
15975 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15977 cat >>confdefs.h <<_ACEOF
15978 #define HAVE_DECL_F_FULLFSYNC 1
15983 cat >>confdefs.h <<_ACEOF
15984 #define HAVE_DECL_F_FULLFSYNC 0
15993 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15994 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
15995 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15996 echo $ECHO_N "(cached) $ECHO_C" >&6
15998 cat >conftest.$ac_ext <<_ACEOF
16001 cat confdefs.h >>conftest.$ac_ext
16002 cat >>conftest.$ac_ext <<_ACEOF
16003 /* end confdefs.h. */
16004 $ac_includes_default
16005 #include <netinet/in.h>
16007 typedef struct sockaddr_in6 ac__type_new_;
16011 if ((ac__type_new_ *) 0)
16013 if (sizeof (ac__type_new_))
16019 rm -f conftest.$ac_objext
16020 if { (ac_try="$ac_compile"
16021 case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_compile") 2>conftest.er1
16028 grep -v '^ *+' conftest.er1 >conftest.err
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } && {
16033 test -z "$ac_c_werror_flag" ||
16034 test ! -s conftest.err
16035 } && test -s conftest.$ac_objext; then
16036 ac_cv_type_struct_sockaddr_in6=yes
16038 echo "$as_me: failed program was:" >&5
16039 sed 's/^/| /' conftest.$ac_ext >&5
16041 ac_cv_type_struct_sockaddr_in6=no
16044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16046 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16047 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16048 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16050 cat >>confdefs.h <<\_ACEOF
16051 #define HAVE_IPV6 1
16059 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16060 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16061 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16064 cat >conftest.$ac_ext <<_ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 #include <machine/vmparam.h>
16071 #include <sys/exec.h>
16076 PS_STRINGS->ps_nargvstr = 1;
16077 PS_STRINGS->ps_argvstr = "foo";
16082 rm -f conftest.$ac_objext conftest$ac_exeext
16083 if { (ac_try="$ac_link"
16084 case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089 (eval "$ac_link") 2>conftest.er1
16091 grep -v '^ *+' conftest.er1 >conftest.err
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } && {
16096 test -z "$ac_c_werror_flag" ||
16097 test ! -s conftest.err
16098 } && test -s conftest$ac_exeext &&
16099 $as_test_x conftest$ac_exeext; then
16100 pgac_cv_var_PS_STRINGS=yes
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16105 pgac_cv_var_PS_STRINGS=no
16108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16109 conftest$ac_exeext conftest.$ac_ext
16111 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16112 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16113 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16115 cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_PS_STRINGS
16122 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16123 # is missing. Yes, there are machines that have only one. We may
16124 # also decide to use snprintf.c if snprintf() is present but does not
16125 # have all the features we need --- see below.
16127 if test "$PORTNAME" = "win32"; then
16128 # Win32 gets snprintf.c built unconditionally.
16130 # To properly translate all NLS languages strings, we must support the
16131 # *printf() %$ format, which allows *printf() arguments to be selected
16132 # by position in the translated string.
16134 # libintl versions < 0.13 use the native *printf() functions, and Win32
16135 # *printf() doesn't understand %$, so we must use our /port versions,
16136 # which do understand %$. libintl versions >= 0.13 include their own
16137 # *printf versions on Win32. The libintl 0.13 release note text is:
16139 # C format strings with positions, as they arise when a translator
16140 # needs to reorder a sentence, are now supported on all platforms.
16141 # On those few platforms (NetBSD and Woe32) for which the native
16142 # printf()/fprintf()/... functions don't support such format
16143 # strings, replacements are provided through <libintl.h>.
16145 # We could use libintl >= 0.13's *printf() if we were sure that we had
16146 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16147 # to guarantee that, it is best to just use our own, so we are sure to
16148 # get %$ support. In include/port.h we disable the *printf() macros
16149 # that might have been defined by libintl.
16151 # We do this unconditionally whether NLS is used or not so we are sure
16152 # that all Win32 libraries and binaries behave the same.
16153 pgac_need_repl_snprintf=yes
16155 pgac_need_repl_snprintf=no
16157 for ac_func in snprintf
16159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16165 cat >conftest.$ac_ext <<_ACEOF
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h. */
16171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16173 #define $ac_func innocuous_$ac_func
16175 /* System header to define __stub macros and hopefully few prototypes,
16176 which can conflict with char $ac_func (); below.
16177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16178 <limits.h> exists even on freestanding compilers. */
16181 # include <limits.h>
16183 # include <assert.h>
16188 /* Override any GCC internal prototype to avoid an error.
16189 Use char because int might match the return type of a GCC
16190 builtin and then its argument prototype would still apply. */
16195 /* The GNU C library defines this for functions which it implements
16196 to always fail with ENOSYS. Some functions are actually named
16197 something starting with __ and the normal name is an alias. */
16198 #if defined __stub_$ac_func || defined __stub___$ac_func
16205 return $ac_func ();
16210 rm -f conftest.$ac_objext conftest$ac_exeext
16211 if { (ac_try="$ac_link"
16212 case "(($ac_try" in
16213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214 *) ac_try_echo=$ac_try;;
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217 (eval "$ac_link") 2>conftest.er1
16219 grep -v '^ *+' conftest.er1 >conftest.err
16221 cat conftest.err >&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } && {
16224 test -z "$ac_c_werror_flag" ||
16225 test ! -s conftest.err
16226 } && test -s conftest$ac_exeext &&
16227 $as_test_x conftest$ac_exeext; then
16228 eval "$as_ac_var=yes"
16230 echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16233 eval "$as_ac_var=no"
16236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16237 conftest$ac_exeext conftest.$ac_ext
16239 ac_res=`eval echo '${'$as_ac_var'}'`
16240 { echo "$as_me:$LINENO: result: $ac_res" >&5
16241 echo "${ECHO_T}$ac_res" >&6; }
16242 if test `eval echo '${'$as_ac_var'}'` = yes; then
16243 cat >>confdefs.h <<_ACEOF
16244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16248 pgac_need_repl_snprintf=yes
16253 for ac_func in vsnprintf
16255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16256 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 cat >conftest.$ac_ext <<_ACEOF
16264 cat confdefs.h >>conftest.$ac_ext
16265 cat >>conftest.$ac_ext <<_ACEOF
16266 /* end confdefs.h. */
16267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16269 #define $ac_func innocuous_$ac_func
16271 /* System header to define __stub macros and hopefully few prototypes,
16272 which can conflict with char $ac_func (); below.
16273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16274 <limits.h> exists even on freestanding compilers. */
16277 # include <limits.h>
16279 # include <assert.h>
16284 /* Override any GCC internal prototype to avoid an error.
16285 Use char because int might match the return type of a GCC
16286 builtin and then its argument prototype would still apply. */
16291 /* The GNU C library defines this for functions which it implements
16292 to always fail with ENOSYS. Some functions are actually named
16293 something starting with __ and the normal name is an alias. */
16294 #if defined __stub_$ac_func || defined __stub___$ac_func
16301 return $ac_func ();
16306 rm -f conftest.$ac_objext conftest$ac_exeext
16307 if { (ac_try="$ac_link"
16308 case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313 (eval "$ac_link") 2>conftest.er1
16315 grep -v '^ *+' conftest.er1 >conftest.err
16317 cat conftest.err >&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } && {
16320 test -z "$ac_c_werror_flag" ||
16321 test ! -s conftest.err
16322 } && test -s conftest$ac_exeext &&
16323 $as_test_x conftest$ac_exeext; then
16324 eval "$as_ac_var=yes"
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 eval "$as_ac_var=no"
16332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16333 conftest$ac_exeext conftest.$ac_ext
16335 ac_res=`eval echo '${'$as_ac_var'}'`
16336 { echo "$as_me:$LINENO: result: $ac_res" >&5
16337 echo "${ECHO_T}$ac_res" >&6; }
16338 if test `eval echo '${'$as_ac_var'}'` = yes; then
16339 cat >>confdefs.h <<_ACEOF
16340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16344 pgac_need_repl_snprintf=yes
16351 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16352 # include/c.h will provide declarations. Note this is a separate test
16353 # from whether the functions exist in the C library --- there are
16354 # systems that have the functions but don't bother to declare them :-(
16356 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16357 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16358 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 cat >conftest.$ac_ext <<_ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h. */
16367 $ac_includes_default
16379 rm -f conftest.$ac_objext
16380 if { (ac_try="$ac_compile"
16381 case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_compile") 2>conftest.er1
16388 grep -v '^ *+' conftest.er1 >conftest.err
16390 cat conftest.err >&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } && {
16393 test -z "$ac_c_werror_flag" ||
16394 test ! -s conftest.err
16395 } && test -s conftest.$ac_objext; then
16396 ac_cv_have_decl_snprintf=yes
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 ac_cv_have_decl_snprintf=no
16404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16406 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16407 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16408 if test $ac_cv_have_decl_snprintf = yes; then
16410 cat >>confdefs.h <<_ACEOF
16411 #define HAVE_DECL_SNPRINTF 1
16416 cat >>confdefs.h <<_ACEOF
16417 #define HAVE_DECL_SNPRINTF 0
16422 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16423 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16424 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 cat >conftest.$ac_ext <<_ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 $ac_includes_default
16445 rm -f conftest.$ac_objext
16446 if { (ac_try="$ac_compile"
16447 case "(($ac_try" in
16448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449 *) ac_try_echo=$ac_try;;
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_compile") 2>conftest.er1
16454 grep -v '^ *+' conftest.er1 >conftest.err
16456 cat conftest.err >&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } && {
16459 test -z "$ac_c_werror_flag" ||
16460 test ! -s conftest.err
16461 } && test -s conftest.$ac_objext; then
16462 ac_cv_have_decl_vsnprintf=yes
16464 echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16467 ac_cv_have_decl_vsnprintf=no
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16472 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16473 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16474 if test $ac_cv_have_decl_vsnprintf = yes; then
16476 cat >>confdefs.h <<_ACEOF
16477 #define HAVE_DECL_VSNPRINTF 1
16482 cat >>confdefs.h <<_ACEOF
16483 #define HAVE_DECL_VSNPRINTF 0
16492 { echo "$as_me:$LINENO: checking for isinf" >&5
16493 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16494 if test "${ac_cv_func_isinf+set}" = set; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 cat >conftest.$ac_ext <<_ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16505 double glob_double;
16510 return isinf(glob_double) ? 0 : 1;
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (ac_try="$ac_link"
16517 case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_link") 2>conftest.er1
16524 grep -v '^ *+' conftest.er1 >conftest.err
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } && {
16529 test -z "$ac_c_werror_flag" ||
16530 test ! -s conftest.err
16531 } && test -s conftest$ac_exeext &&
16532 $as_test_x conftest$ac_exeext; then
16533 ac_cv_func_isinf=yes
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ac_cv_func_isinf=no
16541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16542 conftest$ac_exeext conftest.$ac_ext
16544 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16545 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16547 if test $ac_cv_func_isinf = yes ; then
16549 cat >>confdefs.h <<\_ACEOF
16550 #define HAVE_ISINF 1
16554 case " $LIBOBJS " in
16555 *" isinf.$ac_objext "* ) ;;
16556 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16560 # Look for a way to implement a substitute for isinf()
16565 for ac_func in fpclass fp_class fp_class_d class
16567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16571 echo $ECHO_N "(cached) $ECHO_C" >&6
16573 cat >conftest.$ac_ext <<_ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16581 #define $ac_func innocuous_$ac_func
16583 /* System header to define __stub macros and hopefully few prototypes,
16584 which can conflict with char $ac_func (); below.
16585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16586 <limits.h> exists even on freestanding compilers. */
16589 # include <limits.h>
16591 # include <assert.h>
16596 /* Override any GCC internal prototype to avoid an error.
16597 Use char because int might match the return type of a GCC
16598 builtin and then its argument prototype would still apply. */
16603 /* The GNU C library defines this for functions which it implements
16604 to always fail with ENOSYS. Some functions are actually named
16605 something starting with __ and the normal name is an alias. */
16606 #if defined __stub_$ac_func || defined __stub___$ac_func
16613 return $ac_func ();
16618 rm -f conftest.$ac_objext conftest$ac_exeext
16619 if { (ac_try="$ac_link"
16620 case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_link") 2>conftest.er1
16627 grep -v '^ *+' conftest.er1 >conftest.err
16629 cat conftest.err >&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } && {
16632 test -z "$ac_c_werror_flag" ||
16633 test ! -s conftest.err
16634 } && test -s conftest$ac_exeext &&
16635 $as_test_x conftest$ac_exeext; then
16636 eval "$as_ac_var=yes"
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16641 eval "$as_ac_var=no"
16644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16645 conftest$ac_exeext conftest.$ac_ext
16647 ac_res=`eval echo '${'$as_ac_var'}'`
16648 { echo "$as_me:$LINENO: result: $ac_res" >&5
16649 echo "${ECHO_T}$ac_res" >&6; }
16650 if test `eval echo '${'$as_ac_var'}'` = yes; then
16651 cat >>confdefs.h <<_ACEOF
16652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16660 # Some versions of libedit contain strlcpy(); so disregard that library while
16661 # checking for these standard libc functions.
16662 pgac_save_LIBS="$LIBS"
16663 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16679 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16695 #define $ac_func innocuous_$ac_func
16697 /* System header to define __stub macros and hopefully few prototypes,
16698 which can conflict with char $ac_func (); below.
16699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700 <limits.h> exists even on freestanding compilers. */
16703 # include <limits.h>
16705 # include <assert.h>
16710 /* Override any GCC internal prototype to avoid an error.
16711 Use char because int might match the return type of a GCC
16712 builtin and then its argument prototype would still apply. */
16717 /* The GNU C library defines this for functions which it implements
16718 to always fail with ENOSYS. Some functions are actually named
16719 something starting with __ and the normal name is an alias. */
16720 #if defined __stub_$ac_func || defined __stub___$ac_func
16727 return $ac_func ();
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_link") 2>conftest.er1
16741 grep -v '^ *+' conftest.er1 >conftest.err
16743 cat conftest.err >&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } && {
16746 test -z "$ac_c_werror_flag" ||
16747 test ! -s conftest.err
16748 } && test -s conftest$ac_exeext &&
16749 $as_test_x conftest$ac_exeext; then
16750 eval "$as_ac_var=yes"
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 eval "$as_ac_var=no"
16758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16759 conftest$ac_exeext conftest.$ac_ext
16761 ac_res=`eval echo '${'$as_ac_var'}'`
16762 { echo "$as_me:$LINENO: result: $ac_res" >&5
16763 echo "${ECHO_T}$ac_res" >&6; }
16764 if test `eval echo '${'$as_ac_var'}'` = yes; then
16765 cat >>confdefs.h <<_ACEOF
16766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16770 case " $LIBOBJS " in
16771 *" $ac_func.$ac_objext "* ) ;;
16772 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16781 LIBS="$pgac_save_LIBS"
16783 # System's version of getaddrinfo(), if any, may be used only if we found
16784 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16785 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16786 # versions of getaddrinfo don't follow normal C call protocol. This is OK
16787 # because we want to use our own getaddrinfo.c on Windows anyway.)
16788 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
16790 for ac_func in getaddrinfo
16792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16798 cat >conftest.$ac_ext <<_ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16806 #define $ac_func innocuous_$ac_func
16808 /* System header to define __stub macros and hopefully few prototypes,
16809 which can conflict with char $ac_func (); below.
16810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16811 <limits.h> exists even on freestanding compilers. */
16814 # include <limits.h>
16816 # include <assert.h>
16821 /* Override any GCC internal prototype to avoid an error.
16822 Use char because int might match the return type of a GCC
16823 builtin and then its argument prototype would still apply. */
16828 /* The GNU C library defines this for functions which it implements
16829 to always fail with ENOSYS. Some functions are actually named
16830 something starting with __ and the normal name is an alias. */
16831 #if defined __stub_$ac_func || defined __stub___$ac_func
16838 return $ac_func ();
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_link") 2>conftest.er1
16852 grep -v '^ *+' conftest.er1 >conftest.err
16854 cat conftest.err >&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } && {
16857 test -z "$ac_c_werror_flag" ||
16858 test ! -s conftest.err
16859 } && test -s conftest$ac_exeext &&
16860 $as_test_x conftest$ac_exeext; then
16861 eval "$as_ac_var=yes"
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 eval "$as_ac_var=no"
16869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16870 conftest$ac_exeext conftest.$ac_ext
16872 ac_res=`eval echo '${'$as_ac_var'}'`
16873 { echo "$as_me:$LINENO: result: $ac_res" >&5
16874 echo "${ECHO_T}$ac_res" >&6; }
16875 if test `eval echo '${'$as_ac_var'}'` = yes; then
16876 cat >>confdefs.h <<_ACEOF
16877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16881 case " $LIBOBJS " in
16882 *" $ac_func.$ac_objext "* ) ;;
16883 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16892 case " $LIBOBJS " in
16893 *" getaddrinfo.$ac_objext "* ) ;;
16894 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16900 # Similarly, use system's getopt_long() only if system provides struct option.
16901 # Solaris' getopt() doesn't do what we want for long options, so always use
16902 # our versions on that platform.
16903 if test "$PORTNAME" = "solaris"; then
16904 case " $LIBOBJS " in
16905 *" getopt.$ac_objext "* ) ;;
16906 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
16910 case " $LIBOBJS " in
16911 *" getopt_long.$ac_objext "* ) ;;
16912 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
16916 elif test x"$ac_cv_type_struct_option" = xyes ; then
16918 for ac_func in getopt_long
16920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 cat >conftest.$ac_ext <<_ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16934 #define $ac_func innocuous_$ac_func
16936 /* System header to define __stub macros and hopefully few prototypes,
16937 which can conflict with char $ac_func (); below.
16938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16939 <limits.h> exists even on freestanding compilers. */
16942 # include <limits.h>
16944 # include <assert.h>
16949 /* Override any GCC internal prototype to avoid an error.
16950 Use char because int might match the return type of a GCC
16951 builtin and then its argument prototype would still apply. */
16956 /* The GNU C library defines this for functions which it implements
16957 to always fail with ENOSYS. Some functions are actually named
16958 something starting with __ and the normal name is an alias. */
16959 #if defined __stub_$ac_func || defined __stub___$ac_func
16966 return $ac_func ();
16971 rm -f conftest.$ac_objext conftest$ac_exeext
16972 if { (ac_try="$ac_link"
16973 case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_link") 2>conftest.er1
16980 grep -v '^ *+' conftest.er1 >conftest.err
16982 cat conftest.err >&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } && {
16985 test -z "$ac_c_werror_flag" ||
16986 test ! -s conftest.err
16987 } && test -s conftest$ac_exeext &&
16988 $as_test_x conftest$ac_exeext; then
16989 eval "$as_ac_var=yes"
16991 echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16994 eval "$as_ac_var=no"
16997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16998 conftest$ac_exeext conftest.$ac_ext
17000 ac_res=`eval echo '${'$as_ac_var'}'`
17001 { echo "$as_me:$LINENO: result: $ac_res" >&5
17002 echo "${ECHO_T}$ac_res" >&6; }
17003 if test `eval echo '${'$as_ac_var'}'` = yes; then
17004 cat >>confdefs.h <<_ACEOF
17005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17009 case " $LIBOBJS " in
17010 *" $ac_func.$ac_objext "* ) ;;
17011 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17020 case " $LIBOBJS " in
17021 *" getopt_long.$ac_objext "* ) ;;
17022 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17029 if test "$PORTNAME" = "win32"; then
17031 for ac_func in gettimeofday
17033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17039 cat >conftest.$ac_ext <<_ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h. */
17045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17047 #define $ac_func innocuous_$ac_func
17049 /* System header to define __stub macros and hopefully few prototypes,
17050 which can conflict with char $ac_func (); below.
17051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17052 <limits.h> exists even on freestanding compilers. */
17055 # include <limits.h>
17057 # include <assert.h>
17062 /* Override any GCC internal prototype to avoid an error.
17063 Use char because int might match the return type of a GCC
17064 builtin and then its argument prototype would still apply. */
17069 /* The GNU C library defines this for functions which it implements
17070 to always fail with ENOSYS. Some functions are actually named
17071 something starting with __ and the normal name is an alias. */
17072 #if defined __stub_$ac_func || defined __stub___$ac_func
17079 return $ac_func ();
17084 rm -f conftest.$ac_objext conftest$ac_exeext
17085 if { (ac_try="$ac_link"
17086 case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_link") 2>conftest.er1
17093 grep -v '^ *+' conftest.er1 >conftest.err
17095 cat conftest.err >&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } && {
17098 test -z "$ac_c_werror_flag" ||
17099 test ! -s conftest.err
17100 } && test -s conftest$ac_exeext &&
17101 $as_test_x conftest$ac_exeext; then
17102 eval "$as_ac_var=yes"
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 eval "$as_ac_var=no"
17110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17111 conftest$ac_exeext conftest.$ac_ext
17113 ac_res=`eval echo '${'$as_ac_var'}'`
17114 { echo "$as_me:$LINENO: result: $ac_res" >&5
17115 echo "${ECHO_T}$ac_res" >&6; }
17116 if test `eval echo '${'$as_ac_var'}'` = yes; then
17117 cat >>confdefs.h <<_ACEOF
17118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17122 case " $LIBOBJS " in
17123 *" $ac_func.$ac_objext "* ) ;;
17124 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17132 case " $LIBOBJS " in
17133 *" kill.$ac_objext "* ) ;;
17134 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17138 case " $LIBOBJS " in
17139 *" open.$ac_objext "* ) ;;
17140 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17144 case " $LIBOBJS " in
17145 *" rand.$ac_objext "* ) ;;
17146 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17150 case " $LIBOBJS " in
17151 *" win32error.$ac_objext "* ) ;;
17152 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17157 cat >>confdefs.h <<\_ACEOF
17158 #define HAVE_SYMLINK 1
17163 if test "$with_readline" = yes; then
17164 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17165 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17166 cat >conftest.$ac_ext <<_ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h. */
17173 #ifdef HAVE_READLINE_READLINE_H
17174 # include <readline/readline.h>
17175 #elif defined(HAVE_READLINE_H)
17176 # include <readline.h>
17182 rl_completion_append_character = 'x';
17187 rm -f conftest.$ac_objext conftest$ac_exeext
17188 if { (ac_try="$ac_link"
17189 case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194 (eval "$ac_link") 2>conftest.er1
17196 grep -v '^ *+' conftest.er1 >conftest.err
17198 cat conftest.err >&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } && {
17201 test -z "$ac_c_werror_flag" ||
17202 test ! -s conftest.err
17203 } && test -s conftest$ac_exeext &&
17204 $as_test_x conftest$ac_exeext; then
17205 { echo "$as_me:$LINENO: result: yes" >&5
17206 echo "${ECHO_T}yes" >&6; }
17208 cat >>confdefs.h <<\_ACEOF
17209 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17216 { echo "$as_me:$LINENO: result: no" >&5
17217 echo "${ECHO_T}no" >&6; }
17220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17221 conftest$ac_exeext conftest.$ac_ext
17224 for ac_func in rl_completion_matches rl_filename_completion_function
17226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17227 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17232 cat >conftest.$ac_ext <<_ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17240 #define $ac_func innocuous_$ac_func
17242 /* System header to define __stub macros and hopefully few prototypes,
17243 which can conflict with char $ac_func (); below.
17244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17245 <limits.h> exists even on freestanding compilers. */
17248 # include <limits.h>
17250 # include <assert.h>
17255 /* Override any GCC internal prototype to avoid an error.
17256 Use char because int might match the return type of a GCC
17257 builtin and then its argument prototype would still apply. */
17262 /* The GNU C library defines this for functions which it implements
17263 to always fail with ENOSYS. Some functions are actually named
17264 something starting with __ and the normal name is an alias. */
17265 #if defined __stub_$ac_func || defined __stub___$ac_func
17272 return $ac_func ();
17277 rm -f conftest.$ac_objext conftest$ac_exeext
17278 if { (ac_try="$ac_link"
17279 case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284 (eval "$ac_link") 2>conftest.er1
17286 grep -v '^ *+' conftest.er1 >conftest.err
17288 cat conftest.err >&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } && {
17291 test -z "$ac_c_werror_flag" ||
17292 test ! -s conftest.err
17293 } && test -s conftest$ac_exeext &&
17294 $as_test_x conftest$ac_exeext; then
17295 eval "$as_ac_var=yes"
17297 echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17300 eval "$as_ac_var=no"
17303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17304 conftest$ac_exeext conftest.$ac_ext
17306 ac_res=`eval echo '${'$as_ac_var'}'`
17307 { echo "$as_me:$LINENO: result: $ac_res" >&5
17308 echo "${ECHO_T}$ac_res" >&6; }
17309 if test `eval echo '${'$as_ac_var'}'` = yes; then
17310 cat >>confdefs.h <<_ACEOF
17311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17318 for ac_func in replace_history_entry
17320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 cat >conftest.$ac_ext <<_ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17334 #define $ac_func innocuous_$ac_func
17336 /* System header to define __stub macros and hopefully few prototypes,
17337 which can conflict with char $ac_func (); below.
17338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17339 <limits.h> exists even on freestanding compilers. */
17342 # include <limits.h>
17344 # include <assert.h>
17349 /* Override any GCC internal prototype to avoid an error.
17350 Use char because int might match the return type of a GCC
17351 builtin and then its argument prototype would still apply. */
17356 /* The GNU C library defines this for functions which it implements
17357 to always fail with ENOSYS. Some functions are actually named
17358 something starting with __ and the normal name is an alias. */
17359 #if defined __stub_$ac_func || defined __stub___$ac_func
17366 return $ac_func ();
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
17380 grep -v '^ *+' conftest.er1 >conftest.err
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } && {
17385 test -z "$ac_c_werror_flag" ||
17386 test ! -s conftest.err
17387 } && test -s conftest$ac_exeext &&
17388 $as_test_x conftest$ac_exeext; then
17389 eval "$as_ac_var=yes"
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 eval "$as_ac_var=no"
17397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17398 conftest$ac_exeext conftest.$ac_ext
17400 ac_res=`eval echo '${'$as_ac_var'}'`
17401 { echo "$as_me:$LINENO: result: $ac_res" >&5
17402 echo "${ECHO_T}$ac_res" >&6; }
17403 if test `eval echo '${'$as_ac_var'}'` = yes; then
17404 cat >>confdefs.h <<_ACEOF
17405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17414 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17415 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17416 cat >conftest.$ac_ext <<_ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17422 #include <setjmp.h>
17426 sigjmp_buf x; sigsetjmp(x, 1);
17431 rm -f conftest.$ac_objext conftest$ac_exeext
17432 if { (ac_try="$ac_link"
17433 case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_link") 2>conftest.er1
17440 grep -v '^ *+' conftest.er1 >conftest.err
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } && {
17445 test -z "$ac_c_werror_flag" ||
17446 test ! -s conftest.err
17447 } && test -s conftest$ac_exeext &&
17448 $as_test_x conftest$ac_exeext; then
17450 cat >>confdefs.h <<\_ACEOF
17451 #define HAVE_SIGSETJMP 1
17454 { echo "$as_me:$LINENO: result: yes" >&5
17455 echo "${ECHO_T}yes" >&6; }
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 { echo "$as_me:$LINENO: result: no" >&5
17461 echo "${ECHO_T}no" >&6; }
17464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17465 conftest$ac_exeext conftest.$ac_ext
17467 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17468 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17469 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 cat >conftest.$ac_ext <<_ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 #include <signal.h>
17479 /* NetBSD declares sys_siglist in unistd.h. */
17480 #ifdef HAVE_UNISTD_H
17481 # include <unistd.h>
17488 #ifndef sys_siglist
17489 (void) sys_siglist;
17496 rm -f conftest.$ac_objext
17497 if { (ac_try="$ac_compile"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_compile") 2>conftest.er1
17505 grep -v '^ *+' conftest.er1 >conftest.err
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } && {
17510 test -z "$ac_c_werror_flag" ||
17511 test ! -s conftest.err
17512 } && test -s conftest.$ac_objext; then
17513 ac_cv_have_decl_sys_siglist=yes
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 ac_cv_have_decl_sys_siglist=no
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17524 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17525 if test $ac_cv_have_decl_sys_siglist = yes; then
17527 cat >>confdefs.h <<_ACEOF
17528 #define HAVE_DECL_SYS_SIGLIST 1
17533 cat >>confdefs.h <<_ACEOF
17534 #define HAVE_DECL_SYS_SIGLIST 0
17543 { echo "$as_me:$LINENO: checking for syslog" >&5
17544 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17545 if test "${ac_cv_func_syslog+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 cat >conftest.$ac_ext <<_ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17556 #define syslog innocuous_syslog
17558 /* System header to define __stub macros and hopefully few prototypes,
17559 which can conflict with char syslog (); below.
17560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17561 <limits.h> exists even on freestanding compilers. */
17564 # include <limits.h>
17566 # include <assert.h>
17571 /* Override any GCC internal prototype to avoid an error.
17572 Use char because int might match the return type of a GCC
17573 builtin and then its argument prototype would still apply. */
17578 /* The GNU C library defines this for functions which it implements
17579 to always fail with ENOSYS. Some functions are actually named
17580 something starting with __ and the normal name is an alias. */
17581 #if defined __stub_syslog || defined __stub___syslog
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (ac_try="$ac_link"
17595 case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_link") 2>conftest.er1
17602 grep -v '^ *+' conftest.er1 >conftest.err
17604 cat conftest.err >&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } && {
17607 test -z "$ac_c_werror_flag" ||
17608 test ! -s conftest.err
17609 } && test -s conftest$ac_exeext &&
17610 $as_test_x conftest$ac_exeext; then
17611 ac_cv_func_syslog=yes
17613 echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17616 ac_cv_func_syslog=no
17619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17620 conftest$ac_exeext conftest.$ac_ext
17622 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17623 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17624 if test $ac_cv_func_syslog = yes; then
17625 if test "${ac_cv_header_syslog_h+set}" = set; then
17626 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17627 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17628 if test "${ac_cv_header_syslog_h+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17631 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17632 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17634 # Is the header compilable?
17635 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17636 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17637 cat >conftest.$ac_ext <<_ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 $ac_includes_default
17644 #include <syslog.h>
17646 rm -f conftest.$ac_objext
17647 if { (ac_try="$ac_compile"
17648 case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_compile") 2>conftest.er1
17655 grep -v '^ *+' conftest.er1 >conftest.err
17657 cat conftest.err >&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } && {
17660 test -z "$ac_c_werror_flag" ||
17661 test ! -s conftest.err
17662 } && test -s conftest.$ac_objext; then
17663 ac_header_compiler=yes
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 ac_header_compiler=no
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17673 echo "${ECHO_T}$ac_header_compiler" >&6; }
17675 # Is the header present?
17676 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17677 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17678 cat >conftest.$ac_ext <<_ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 #include <syslog.h>
17686 if { (ac_try="$ac_cpp conftest.$ac_ext"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17694 grep -v '^ *+' conftest.er1 >conftest.err
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } >/dev/null && {
17699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17700 test ! -s conftest.err
17702 ac_header_preproc=yes
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17707 ac_header_preproc=no
17710 rm -f conftest.err conftest.$ac_ext
17711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17712 echo "${ECHO_T}$ac_header_preproc" >&6; }
17714 # So? What about this header?
17715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17717 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17718 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17719 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17720 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17721 ac_header_preproc=yes
17724 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17725 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17726 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17727 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17728 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17729 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17730 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17731 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17732 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17733 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17734 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17735 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17737 ## ---------------------------------------- ##
17738 ## Report this to pgsql-bugs@postgresql.org ##
17739 ## ---------------------------------------- ##
17741 ) | sed "s/^/$as_me: WARNING: /" >&2
17744 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17745 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17746 if test "${ac_cv_header_syslog_h+set}" = set; then
17747 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 ac_cv_header_syslog_h=$ac_header_preproc
17751 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17752 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17755 if test $ac_cv_header_syslog_h = yes; then
17757 cat >>confdefs.h <<\_ACEOF
17758 #define HAVE_SYSLOG 1
17767 { echo "$as_me:$LINENO: checking for optreset" >&5
17768 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
17769 if test "${pgac_cv_var_int_optreset+set}" = set; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 cat >conftest.$ac_ext <<_ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17778 #include <unistd.h>
17782 extern int optreset; optreset = 1;
17787 rm -f conftest.$ac_objext conftest$ac_exeext
17788 if { (ac_try="$ac_link"
17789 case "(($ac_try" in
17790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791 *) ac_try_echo=$ac_try;;
17793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794 (eval "$ac_link") 2>conftest.er1
17796 grep -v '^ *+' conftest.er1 >conftest.err
17798 cat conftest.err >&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } && {
17801 test -z "$ac_c_werror_flag" ||
17802 test ! -s conftest.err
17803 } && test -s conftest$ac_exeext &&
17804 $as_test_x conftest$ac_exeext; then
17805 pgac_cv_var_int_optreset=yes
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17810 pgac_cv_var_int_optreset=no
17813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17814 conftest$ac_exeext conftest.$ac_ext
17816 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17817 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
17818 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
17820 cat >>confdefs.h <<\_ACEOF
17821 #define HAVE_INT_OPTRESET 1
17828 for ac_func in strtoll strtoq
17830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17836 cat >conftest.$ac_ext <<_ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17844 #define $ac_func innocuous_$ac_func
17846 /* System header to define __stub macros and hopefully few prototypes,
17847 which can conflict with char $ac_func (); below.
17848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17849 <limits.h> exists even on freestanding compilers. */
17852 # include <limits.h>
17854 # include <assert.h>
17859 /* Override any GCC internal prototype to avoid an error.
17860 Use char because int might match the return type of a GCC
17861 builtin and then its argument prototype would still apply. */
17866 /* The GNU C library defines this for functions which it implements
17867 to always fail with ENOSYS. Some functions are actually named
17868 something starting with __ and the normal name is an alias. */
17869 #if defined __stub_$ac_func || defined __stub___$ac_func
17876 return $ac_func ();
17881 rm -f conftest.$ac_objext conftest$ac_exeext
17882 if { (ac_try="$ac_link"
17883 case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_link") 2>conftest.er1
17890 grep -v '^ *+' conftest.er1 >conftest.err
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } && {
17895 test -z "$ac_c_werror_flag" ||
17896 test ! -s conftest.err
17897 } && test -s conftest$ac_exeext &&
17898 $as_test_x conftest$ac_exeext; then
17899 eval "$as_ac_var=yes"
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 eval "$as_ac_var=no"
17907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17908 conftest$ac_exeext conftest.$ac_ext
17910 ac_res=`eval echo '${'$as_ac_var'}'`
17911 { echo "$as_me:$LINENO: result: $ac_res" >&5
17912 echo "${ECHO_T}$ac_res" >&6; }
17913 if test `eval echo '${'$as_ac_var'}'` = yes; then
17914 cat >>confdefs.h <<_ACEOF
17915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17923 for ac_func in strtoull strtouq
17925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 cat >conftest.$ac_ext <<_ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17939 #define $ac_func innocuous_$ac_func
17941 /* System header to define __stub macros and hopefully few prototypes,
17942 which can conflict with char $ac_func (); below.
17943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17944 <limits.h> exists even on freestanding compilers. */
17947 # include <limits.h>
17949 # include <assert.h>
17954 /* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17961 /* The GNU C library defines this for functions which it implements
17962 to always fail with ENOSYS. Some functions are actually named
17963 something starting with __ and the normal name is an alias. */
17964 #if defined __stub_$ac_func || defined __stub___$ac_func
17971 return $ac_func ();
17976 rm -f conftest.$ac_objext conftest$ac_exeext
17977 if { (ac_try="$ac_link"
17978 case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983 (eval "$ac_link") 2>conftest.er1
17985 grep -v '^ *+' conftest.er1 >conftest.err
17987 cat conftest.err >&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } && {
17990 test -z "$ac_c_werror_flag" ||
17991 test ! -s conftest.err
17992 } && test -s conftest$ac_exeext &&
17993 $as_test_x conftest$ac_exeext; then
17994 eval "$as_ac_var=yes"
17996 echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999 eval "$as_ac_var=no"
18002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18003 conftest$ac_exeext conftest.$ac_ext
18005 ac_res=`eval echo '${'$as_ac_var'}'`
18006 { echo "$as_me:$LINENO: result: $ac_res" >&5
18007 echo "${ECHO_T}$ac_res" >&6; }
18008 if test `eval echo '${'$as_ac_var'}'` = yes; then
18009 cat >>confdefs.h <<_ACEOF
18010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18017 # Check for one of atexit() or on_exit()
18019 for ac_func in atexit
18021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18035 #define $ac_func innocuous_$ac_func
18037 /* System header to define __stub macros and hopefully few prototypes,
18038 which can conflict with char $ac_func (); below.
18039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18040 <limits.h> exists even on freestanding compilers. */
18043 # include <limits.h>
18045 # include <assert.h>
18050 /* Override any GCC internal prototype to avoid an error.
18051 Use char because int might match the return type of a GCC
18052 builtin and then its argument prototype would still apply. */
18057 /* The GNU C library defines this for functions which it implements
18058 to always fail with ENOSYS. Some functions are actually named
18059 something starting with __ and the normal name is an alias. */
18060 #if defined __stub_$ac_func || defined __stub___$ac_func
18067 return $ac_func ();
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (ac_try="$ac_link"
18074 case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_link") 2>conftest.er1
18081 grep -v '^ *+' conftest.er1 >conftest.err
18083 cat conftest.err >&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } && {
18086 test -z "$ac_c_werror_flag" ||
18087 test ! -s conftest.err
18088 } && test -s conftest$ac_exeext &&
18089 $as_test_x conftest$ac_exeext; then
18090 eval "$as_ac_var=yes"
18092 echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18095 eval "$as_ac_var=no"
18098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18099 conftest$ac_exeext conftest.$ac_ext
18101 ac_res=`eval echo '${'$as_ac_var'}'`
18102 { echo "$as_me:$LINENO: result: $ac_res" >&5
18103 echo "${ECHO_T}$ac_res" >&6; }
18104 if test `eval echo '${'$as_ac_var'}'` = yes; then
18105 cat >>confdefs.h <<_ACEOF
18106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18111 for ac_func in on_exit
18113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18117 echo $ECHO_N "(cached) $ECHO_C" >&6
18119 cat >conftest.$ac_ext <<_ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h. */
18125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18127 #define $ac_func innocuous_$ac_func
18129 /* System header to define __stub macros and hopefully few prototypes,
18130 which can conflict with char $ac_func (); below.
18131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18132 <limits.h> exists even on freestanding compilers. */
18135 # include <limits.h>
18137 # include <assert.h>
18142 /* Override any GCC internal prototype to avoid an error.
18143 Use char because int might match the return type of a GCC
18144 builtin and then its argument prototype would still apply. */
18149 /* The GNU C library defines this for functions which it implements
18150 to always fail with ENOSYS. Some functions are actually named
18151 something starting with __ and the normal name is an alias. */
18152 #if defined __stub_$ac_func || defined __stub___$ac_func
18159 return $ac_func ();
18164 rm -f conftest.$ac_objext conftest$ac_exeext
18165 if { (ac_try="$ac_link"
18166 case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_link") 2>conftest.er1
18173 grep -v '^ *+' conftest.er1 >conftest.err
18175 cat conftest.err >&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } && {
18178 test -z "$ac_c_werror_flag" ||
18179 test ! -s conftest.err
18180 } && test -s conftest$ac_exeext &&
18181 $as_test_x conftest$ac_exeext; then
18182 eval "$as_ac_var=yes"
18184 echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 eval "$as_ac_var=no"
18190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18191 conftest$ac_exeext conftest.$ac_ext
18193 ac_res=`eval echo '${'$as_ac_var'}'`
18194 { echo "$as_me:$LINENO: result: $ac_res" >&5
18195 echo "${ECHO_T}$ac_res" >&6; }
18196 if test `eval echo '${'$as_ac_var'}'` = yes; then
18197 cat >>confdefs.h <<_ACEOF
18198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18202 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18203 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18204 { (exit 1); exit 1; }; }
18213 for ac_func in fseeko
18215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18219 echo $ECHO_N "(cached) $ECHO_C" >&6
18221 cat >conftest.$ac_ext <<_ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18229 #define $ac_func innocuous_$ac_func
18231 /* System header to define __stub macros and hopefully few prototypes,
18232 which can conflict with char $ac_func (); below.
18233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18234 <limits.h> exists even on freestanding compilers. */
18237 # include <limits.h>
18239 # include <assert.h>
18244 /* Override any GCC internal prototype to avoid an error.
18245 Use char because int might match the return type of a GCC
18246 builtin and then its argument prototype would still apply. */
18251 /* The GNU C library defines this for functions which it implements
18252 to always fail with ENOSYS. Some functions are actually named
18253 something starting with __ and the normal name is an alias. */
18254 #if defined __stub_$ac_func || defined __stub___$ac_func
18261 return $ac_func ();
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (ac_try="$ac_link"
18268 case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_link") 2>conftest.er1
18275 grep -v '^ *+' conftest.er1 >conftest.err
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } && {
18280 test -z "$ac_c_werror_flag" ||
18281 test ! -s conftest.err
18282 } && test -s conftest$ac_exeext &&
18283 $as_test_x conftest$ac_exeext; then
18284 eval "$as_ac_var=yes"
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 eval "$as_ac_var=no"
18292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18293 conftest$ac_exeext conftest.$ac_ext
18295 ac_res=`eval echo '${'$as_ac_var'}'`
18296 { echo "$as_me:$LINENO: result: $ac_res" >&5
18297 echo "${ECHO_T}$ac_res" >&6; }
18298 if test `eval echo '${'$as_ac_var'}'` = yes; then
18299 cat >>confdefs.h <<_ACEOF
18300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18304 case " $LIBOBJS " in
18305 *" $ac_func.$ac_objext "* ) ;;
18306 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18315 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18318 cat >>confdefs.h <<\_ACEOF
18319 #define HAVE_FSEEKO 1
18322 ac_cv_func_fseeko=yes;;
18324 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18325 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18326 if test "${ac_cv_sys_largefile_source+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 cat >conftest.$ac_ext <<_ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18336 #include <sys/types.h> /* for off_t */
18341 int (*fp) (FILE *, off_t, int) = fseeko;
18342 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18347 rm -f conftest.$ac_objext conftest$ac_exeext
18348 if { (ac_try="$ac_link"
18349 case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_link") 2>conftest.er1
18356 grep -v '^ *+' conftest.er1 >conftest.err
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } && {
18361 test -z "$ac_c_werror_flag" ||
18362 test ! -s conftest.err
18363 } && test -s conftest$ac_exeext &&
18364 $as_test_x conftest$ac_exeext; then
18365 ac_cv_sys_largefile_source=no; break
18367 echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18374 conftest$ac_exeext conftest.$ac_ext
18375 cat >conftest.$ac_ext <<_ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18381 #define _LARGEFILE_SOURCE 1
18382 #include <sys/types.h> /* for off_t */
18387 int (*fp) (FILE *, off_t, int) = fseeko;
18388 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18393 rm -f conftest.$ac_objext conftest$ac_exeext
18394 if { (ac_try="$ac_link"
18395 case "(($ac_try" in
18396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397 *) ac_try_echo=$ac_try;;
18399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400 (eval "$ac_link") 2>conftest.er1
18402 grep -v '^ *+' conftest.er1 >conftest.err
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } && {
18407 test -z "$ac_c_werror_flag" ||
18408 test ! -s conftest.err
18409 } && test -s conftest$ac_exeext &&
18410 $as_test_x conftest$ac_exeext; then
18411 ac_cv_sys_largefile_source=1; break
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18420 conftest$ac_exeext conftest.$ac_ext
18421 ac_cv_sys_largefile_source=unknown
18425 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18426 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18427 case $ac_cv_sys_largefile_source in #(
18430 cat >>confdefs.h <<_ACEOF
18431 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18437 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18438 # in glibc 2.1.3, but that breaks too many other things.
18439 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18440 if test $ac_cv_sys_largefile_source != unknown; then
18442 cat >>confdefs.h <<\_ACEOF
18443 #define HAVE_FSEEKO 1
18454 # For each platform, we need to know about any special compile and link
18455 # libraries, and whether the normal C function names are thread-safe.
18456 # See the comment at the top of src/port/thread.c for more information.
18457 # WIN32 doesn't need the pthread tests; it always uses threads
18458 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18463 ac_cpp='$CPP $CPPFLAGS'
18464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18470 # We used to check for pthread.h first, but this fails if pthread.h
18471 # requires special compiler flags (e.g. on True64 or Sequent).
18472 # It gets checked for in the link test anyway.
18474 # First of all, check if the user has set any of the PTHREAD_LIBS,
18475 # etcetera environment variables, and if threads linking works using
18477 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18478 save_CFLAGS="$CFLAGS"
18479 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18481 LIBS="$PTHREAD_LIBS $LIBS"
18482 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18483 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18484 cat >conftest.$ac_ext <<_ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h. */
18491 /* Override any GCC internal prototype to avoid an error.
18492 Use char because int might match the return type of a GCC
18493 builtin and then its argument prototype would still apply. */
18497 char pthread_join ();
18501 return pthread_join ();
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (ac_try="$ac_link"
18508 case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_link") 2>conftest.er1
18515 grep -v '^ *+' conftest.er1 >conftest.err
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } && {
18520 test -z "$ac_c_werror_flag" ||
18521 test ! -s conftest.err
18522 } && test -s conftest$ac_exeext &&
18523 $as_test_x conftest$ac_exeext; then
18526 echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18533 conftest$ac_exeext conftest.$ac_ext
18534 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18535 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18536 if test x"$acx_pthread_ok" = xno; then
18541 CFLAGS="$save_CFLAGS"
18544 # We must check for the threads library under a number of different
18545 # names; the ordering is very important because some systems
18546 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18547 # libraries is broken (non-POSIX).
18549 # Create a list of thread flags to try. Items starting with a "-" are
18550 # C compiler flags, and other items are library names, except for "none"
18551 # which indicates that we try without any flags at all, and "pthread-config"
18552 # which is a program returning the flags for the Pth emulation library.
18554 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18556 # The ordering *is* (sometimes) important. Some notes on the
18557 # individual items follow:
18559 # pthreads: AIX (must check this before -lpthread)
18560 # none: in case threads are in libc; should be tried before -Kthread and
18561 # other compiler flags to prevent continual compiler warnings
18562 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18563 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18564 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18565 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18566 # -pthreads: Solaris/gcc
18567 # -mthreads: Mingw32/gcc, Lynx/gcc
18568 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18569 # doesn't hurt to check since this sometimes defines pthreads too;
18570 # also defines -D_REENTRANT)
18571 # pthread: Linux, etcetera
18572 # --thread-safe: KAI C++
18573 # pthread-config: use pthread-config program (for GNU Pth library)
18575 case "${host_cpu}-${host_os}" in
18578 # On Solaris (at least, for some versions), libc contains stubbed
18579 # (non-functional) versions of the pthreads routines, so link-based
18580 # tests will erroneously succeed. (We need to link with -pthread or
18581 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18582 # a function called by this macro, so we could check for that, but
18583 # who knows whether they'll stub that too in a future libc.) So,
18584 # we'll just look for -pthreads and -lpthread first:
18586 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18590 if test x"$acx_pthread_ok" = xno; then
18591 for flag in $acx_pthread_flags; do
18593 tryPTHREAD_CFLAGS=""
18597 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18598 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18602 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18603 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18604 tryPTHREAD_CFLAGS="$flag"
18608 # skip this if we already have flags defined, for PostgreSQL
18609 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18610 # Extract the first word of "pthread-config", so it can be a program name with args.
18611 set dummy pthread-config; ac_word=$2
18612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18614 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 if test -n "$acx_pthread_config"; then
18618 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18621 for as_dir in $PATH
18624 test -z "$as_dir" && as_dir=.
18625 for ac_exec_ext in '' $ac_executable_extensions; do
18626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18627 ac_cv_prog_acx_pthread_config="yes"
18628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18635 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18638 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18639 if test -n "$acx_pthread_config"; then
18640 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18641 echo "${ECHO_T}$acx_pthread_config" >&6; }
18643 { echo "$as_me:$LINENO: result: no" >&5
18644 echo "${ECHO_T}no" >&6; }
18648 if test x"$acx_pthread_config" = xno; then continue; fi
18649 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18650 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18654 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18655 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18656 tryPTHREAD_LIBS="-l$flag"
18661 save_CFLAGS="$CFLAGS"
18662 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18663 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18665 # Check for various functions. We must include pthread.h,
18666 # since some functions may be macros. (On the Sequent, we
18667 # need a special flag -Kthread to make this header compile.)
18668 # We check for pthread_join because it is in -lpthread on IRIX
18669 # while pthread_create is in libc. We check for pthread_attr_init
18670 # due to DEC craziness with -lpthreads. We check for
18671 # pthread_cleanup_push because it is one of the few pthread
18672 # functions on Solaris that doesn't have a non-functional libc stub.
18673 # We try pthread_create on general principles.
18674 cat >conftest.$ac_ext <<_ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18680 #include <pthread.h>
18684 pthread_t th; pthread_join(th, 0);
18685 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18686 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (ac_try="$ac_link"
18693 case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_link") 2>conftest.er1
18700 grep -v '^ *+' conftest.er1 >conftest.err
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } && {
18705 test -z "$ac_c_werror_flag" ||
18706 test ! -s conftest.err
18707 } && test -s conftest$ac_exeext &&
18708 $as_test_x conftest$ac_exeext; then
18711 echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18718 conftest$ac_exeext conftest.$ac_ext
18720 if test "x$acx_pthread_ok" = xyes; then
18721 # Don't use options that are ignored by the compiler.
18722 # We find them by checking stderror.
18723 cat >conftest.$ac_ext <<_ACEOF
18725 main (int argc, char **argv)
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18734 # we continue with more flags because Linux needs -lpthread
18735 # for libpq builds on PostgreSQL. The test above only
18736 # tests for building binaries, not shared libraries.
18737 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18738 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18739 else acx_pthread_ok=no
18744 CFLAGS="$save_CFLAGS"
18746 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18747 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18751 # Various other checks:
18752 if test "x$acx_pthread_ok" = xyes; then
18754 LIBS="$PTHREAD_LIBS $LIBS"
18755 save_CFLAGS="$CFLAGS"
18756 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18758 # Detect AIX lossage: threads are created detached by default
18759 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18760 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18761 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
18762 cat >conftest.$ac_ext <<_ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 #include <pthread.h>
18772 int attr=PTHREAD_CREATE_JOINABLE;
18777 rm -f conftest.$ac_objext conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_link") 2>conftest.er1
18786 grep -v '^ *+' conftest.er1 >conftest.err
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } && {
18791 test -z "$ac_c_werror_flag" ||
18792 test ! -s conftest.err
18793 } && test -s conftest$ac_exeext &&
18794 $as_test_x conftest$ac_exeext; then
18795 ok=PTHREAD_CREATE_JOINABLE
18797 echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18804 conftest$ac_exeext conftest.$ac_ext
18805 if test x"$ok" = xunknown; then
18806 cat >conftest.$ac_ext <<_ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18812 #include <pthread.h>
18816 int attr=PTHREAD_CREATE_UNDETACHED;
18821 rm -f conftest.$ac_objext conftest$ac_exeext
18822 if { (ac_try="$ac_link"
18823 case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_link") 2>conftest.er1
18830 grep -v '^ *+' conftest.er1 >conftest.err
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest$ac_exeext &&
18838 $as_test_x conftest$ac_exeext; then
18839 ok=PTHREAD_CREATE_UNDETACHED
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18848 conftest$ac_exeext conftest.$ac_ext
18850 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18852 cat >>confdefs.h <<\_ACEOF
18853 #define PTHREAD_CREATE_JOINABLE $ok
18857 { echo "$as_me:$LINENO: result: ${ok}" >&5
18858 echo "${ECHO_T}${ok}" >&6; }
18859 if test x"$ok" = xunknown; then
18860 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18861 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18864 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18865 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
18867 # We always add these in PostgreSQL
18868 # case "${host_cpu}-${host_os}" in
18869 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18870 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18872 { echo "$as_me:$LINENO: result: ${flag}" >&5
18873 echo "${ECHO_T}${flag}" >&6; }
18874 if test "x$flag" != xno; then
18875 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18879 CFLAGS="$save_CFLAGS"
18881 # Supporting cc_r would require a special CC in all places that
18882 # use libpq, and that is ugly, so we don't do it. Users can still
18883 # define their compiler as cc_r to do thread builds of everything.
18884 # More AIX lossage: must compile with cc_r
18885 # Extract the first word of "cc_r", so it can be a program name with args.
18886 set dummy cc_r; ac_word=$2
18887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18889 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 if test -n "$PTHREAD_CC"; then
18893 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18896 for as_dir in $PATH
18899 test -z "$as_dir" && as_dir=.
18900 for ac_exec_ext in '' $ac_executable_extensions; do
18901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18902 ac_cv_prog_PTHREAD_CC="cc_r"
18903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18910 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18913 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18914 if test -n "$PTHREAD_CC"; then
18915 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18916 echo "${ECHO_T}$PTHREAD_CC" >&6; }
18918 { echo "$as_me:$LINENO: result: no" >&5
18919 echo "${ECHO_T}no" >&6; }
18931 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18932 if test x"$acx_pthread_ok" = xyes; then
18934 cat >>confdefs.h <<\_ACEOF
18935 #define HAVE_PTHREAD 1
18944 ac_cpp='$CPP $CPPFLAGS'
18945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18951 # Some platforms use these, so just defineed them. They can't hurt if they
18952 # are not supported.
18953 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18956 # At this point, we don't want to muck with the compiler name for threading.
18957 # Let's see who fails, perhaps AIX. 2004-04-23
18958 if test "$PTHREAD_CC" != "$CC"; then
18959 { { echo "$as_me:$LINENO: error:
18960 PostgreSQL does not support platforms that require a special compiler
18961 for thread safety." >&5
18962 echo "$as_me: error:
18963 PostgreSQL does not support platforms that require a special compiler
18964 for thread safety." >&2;}
18965 { (exit 1); exit 1; }; }
18968 if test "$THREAD_SUPPORT" = no; then
18969 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18970 This platform is known to not support thread-safe programs. For details,
18971 compile and run src/bin/pg_thread_test." >&5
18972 echo "$as_me: error: cannot enable threads on this platform
18973 This platform is known to not support thread-safe programs. For details,
18974 compile and run src/bin/pg_thread_test." >&2;}
18975 { (exit 1); exit 1; }; }
18978 # Check for *_r functions
18981 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18982 LIBS="$LIBS $PTHREAD_LIBS"
18984 if test "$PORTNAME" != "win32"; then
18985 if test "${ac_cv_header_pthread_h+set}" = set; then
18986 { echo "$as_me:$LINENO: checking for pthread.h" >&5
18987 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18988 if test "${ac_cv_header_pthread_h+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18992 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18994 # Is the header compilable?
18995 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
18996 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
18997 cat >conftest.$ac_ext <<_ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19003 $ac_includes_default
19004 #include <pthread.h>
19006 rm -f conftest.$ac_objext
19007 if { (ac_try="$ac_compile"
19008 case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_compile") 2>conftest.er1
19015 grep -v '^ *+' conftest.er1 >conftest.err
19017 cat conftest.err >&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } && {
19020 test -z "$ac_c_werror_flag" ||
19021 test ! -s conftest.err
19022 } && test -s conftest.$ac_objext; then
19023 ac_header_compiler=yes
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 ac_header_compiler=no
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19033 echo "${ECHO_T}$ac_header_compiler" >&6; }
19035 # Is the header present?
19036 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19037 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19038 cat >conftest.$ac_ext <<_ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19044 #include <pthread.h>
19046 if { (ac_try="$ac_cpp conftest.$ac_ext"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19054 grep -v '^ *+' conftest.er1 >conftest.err
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } >/dev/null && {
19059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19060 test ! -s conftest.err
19062 ac_header_preproc=yes
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 ac_header_preproc=no
19070 rm -f conftest.err conftest.$ac_ext
19071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19072 echo "${ECHO_T}$ac_header_preproc" >&6; }
19074 # So? What about this header?
19075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19077 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19078 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19079 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19080 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19081 ac_header_preproc=yes
19084 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19085 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19086 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19087 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19088 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19089 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19090 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19091 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19092 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19093 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19094 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19095 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19097 ## ---------------------------------------- ##
19098 ## Report this to pgsql-bugs@postgresql.org ##
19099 ## ---------------------------------------- ##
19101 ) | sed "s/^/$as_me: WARNING: /" >&2
19104 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19105 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19106 if test "${ac_cv_header_pthread_h+set}" = set; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 ac_cv_header_pthread_h=$ac_header_preproc
19111 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19112 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19115 if test $ac_cv_header_pthread_h = yes; then
19118 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19119 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19120 { (exit 1); exit 1; }; }
19129 for ac_func in strerror_r getpwuid_r gethostbyname_r
19131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 cat >conftest.$ac_ext <<_ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19145 #define $ac_func innocuous_$ac_func
19147 /* System header to define __stub macros and hopefully few prototypes,
19148 which can conflict with char $ac_func (); below.
19149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19150 <limits.h> exists even on freestanding compilers. */
19153 # include <limits.h>
19155 # include <assert.h>
19160 /* Override any GCC internal prototype to avoid an error.
19161 Use char because int might match the return type of a GCC
19162 builtin and then its argument prototype would still apply. */
19167 /* The GNU C library defines this for functions which it implements
19168 to always fail with ENOSYS. Some functions are actually named
19169 something starting with __ and the normal name is an alias. */
19170 #if defined __stub_$ac_func || defined __stub___$ac_func
19177 return $ac_func ();
19182 rm -f conftest.$ac_objext conftest$ac_exeext
19183 if { (ac_try="$ac_link"
19184 case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_link") 2>conftest.er1
19191 grep -v '^ *+' conftest.er1 >conftest.err
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } && {
19196 test -z "$ac_c_werror_flag" ||
19197 test ! -s conftest.err
19198 } && test -s conftest$ac_exeext &&
19199 $as_test_x conftest$ac_exeext; then
19200 eval "$as_ac_var=yes"
19202 echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19205 eval "$as_ac_var=no"
19208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19209 conftest$ac_exeext conftest.$ac_ext
19211 ac_res=`eval echo '${'$as_ac_var'}'`
19212 { echo "$as_me:$LINENO: result: $ac_res" >&5
19213 echo "${ECHO_T}$ac_res" >&6; }
19214 if test `eval echo '${'$as_ac_var'}'` = yes; then
19215 cat >>confdefs.h <<_ACEOF
19216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19223 # Do test here with the proper thread flags
19224 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19225 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19226 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 cat >conftest.$ac_ext <<_ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h. */
19235 #include <sys/types.h>
19241 struct passwd *space;
19244 struct passwd **result;
19245 getpwuid_r(uid, space, buf, bufsize, result);
19250 rm -f conftest.$ac_objext
19251 if { (ac_try="$ac_compile"
19252 case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_compile") 2>conftest.er1
19259 grep -v '^ *+' conftest.er1 >conftest.err
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } && {
19264 test -z "$ac_c_werror_flag" ||
19265 test ! -s conftest.err
19266 } && test -s conftest.$ac_objext; then
19267 pgac_func_getpwuid_r_5arg=yes
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 pgac_func_getpwuid_r_5arg=no
19275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19277 { echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
19278 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6; }
19279 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
19281 cat >>confdefs.h <<\_ACEOF
19282 #define GETPWUID_R_5ARG
19287 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19288 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19289 if test "${pgac_func_strerror_r_int+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19292 cat >conftest.$ac_ext <<_ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 #include <string.h>
19303 int strerror_r(int, char *, size_t);
19305 /* Older AIX has 'int' for the third argument so we don't test the args. */
19312 rm -f conftest.$ac_objext
19313 if { (ac_try="$ac_compile"
19314 case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319 (eval "$ac_compile") 2>conftest.er1
19321 grep -v '^ *+' conftest.er1 >conftest.err
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } && {
19326 test -z "$ac_c_werror_flag" ||
19327 test ! -s conftest.err
19328 } && test -s conftest.$ac_objext; then
19329 pgac_func_strerror_r_int=yes
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19334 pgac_func_strerror_r_int=no
19337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19339 { echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
19340 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6; }
19341 if test x"$pgac_func_strerror_r_int" = xyes ; then
19343 cat >>confdefs.h <<\_ACEOF
19344 #define STRERROR_R_INT
19354 # do not use values from template file
19363 # We can test for libldap_r only after we know PTHREAD_LIBS
19364 if test "$with_ldap" = yes ; then
19366 if test "$PORTNAME" != "win32"; then
19368 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19369 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19370 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 ac_check_lib_save_LIBS=$LIBS
19374 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19375 cat >conftest.$ac_ext <<_ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19382 /* Override any GCC internal prototype to avoid an error.
19383 Use char because int might match the return type of a GCC
19384 builtin and then its argument prototype would still apply. */
19392 return ldap_bind ();
19397 rm -f conftest.$ac_objext conftest$ac_exeext
19398 if { (ac_try="$ac_link"
19399 case "(($ac_try" in
19400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401 *) ac_try_echo=$ac_try;;
19403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404 (eval "$ac_link") 2>conftest.er1
19406 grep -v '^ *+' conftest.er1 >conftest.err
19408 cat conftest.err >&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } && {
19411 test -z "$ac_c_werror_flag" ||
19412 test ! -s conftest.err
19413 } && test -s conftest$ac_exeext &&
19414 $as_test_x conftest$ac_exeext; then
19415 ac_cv_lib_ldap_ldap_bind=yes
19417 echo "$as_me: failed program was:" >&5
19418 sed 's/^/| /' conftest.$ac_ext >&5
19420 ac_cv_lib_ldap_ldap_bind=no
19423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19424 conftest$ac_exeext conftest.$ac_ext
19425 LIBS=$ac_check_lib_save_LIBS
19427 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19428 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19429 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19430 cat >>confdefs.h <<_ACEOF
19431 #define HAVE_LIBLDAP 1
19434 LIBS="-lldap $LIBS"
19437 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19438 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19439 { (exit 1); exit 1; }; }
19442 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19443 if test "$enable_thread_safety" = yes; then
19444 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19446 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19447 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19448 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19451 ac_check_lib_save_LIBS=$LIBS
19452 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19460 /* Override any GCC internal prototype to avoid an error.
19461 Use char because int might match the return type of a GCC
19462 builtin and then its argument prototype would still apply. */
19466 char ldap_simple_bind ();
19470 return ldap_simple_bind ();
19475 rm -f conftest.$ac_objext conftest$ac_exeext
19476 if { (ac_try="$ac_link"
19477 case "(($ac_try" in
19478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479 *) ac_try_echo=$ac_try;;
19481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482 (eval "$ac_link") 2>conftest.er1
19484 grep -v '^ *+' conftest.er1 >conftest.err
19486 cat conftest.err >&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } && {
19489 test -z "$ac_c_werror_flag" ||
19490 test ! -s conftest.err
19491 } && test -s conftest$ac_exeext &&
19492 $as_test_x conftest$ac_exeext; then
19493 ac_cv_lib_ldap_r_ldap_simple_bind=yes
19495 echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19498 ac_cv_lib_ldap_r_ldap_simple_bind=no
19501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19502 conftest$ac_exeext conftest.$ac_ext
19503 LIBS=$ac_check_lib_save_LIBS
19505 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19506 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19507 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19508 cat >>confdefs.h <<_ACEOF
19509 #define HAVE_LIBLDAP_R 1
19512 LIBS="-lldap_r $LIBS"
19515 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19516 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19517 { (exit 1); exit 1; }; }
19520 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19522 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19526 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19527 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19528 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 ac_check_lib_save_LIBS=$LIBS
19532 LIBS="-lwldap32 $LIBS"
19533 cat >conftest.$ac_ext <<_ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19540 /* Override any GCC internal prototype to avoid an error.
19541 Use char because int might match the return type of a GCC
19542 builtin and then its argument prototype would still apply. */
19550 return ldap_bind ();
19555 rm -f conftest.$ac_objext conftest$ac_exeext
19556 if { (ac_try="$ac_link"
19557 case "(($ac_try" in
19558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559 *) ac_try_echo=$ac_try;;
19561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562 (eval "$ac_link") 2>conftest.er1
19564 grep -v '^ *+' conftest.er1 >conftest.err
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } && {
19569 test -z "$ac_c_werror_flag" ||
19570 test ! -s conftest.err
19571 } && test -s conftest$ac_exeext &&
19572 $as_test_x conftest$ac_exeext; then
19573 ac_cv_lib_wldap32_ldap_bind=yes
19575 echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19578 ac_cv_lib_wldap32_ldap_bind=no
19581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19582 conftest$ac_exeext conftest.$ac_ext
19583 LIBS=$ac_check_lib_save_LIBS
19585 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19586 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19587 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19588 cat >>confdefs.h <<_ACEOF
19589 #define HAVE_LIBWLDAP32 1
19592 LIBS="-lwldap32 $LIBS"
19595 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19596 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19597 { (exit 1); exit 1; }; }
19600 LDAP_LIBS_FE="-lwldap32"
19601 LDAP_LIBS_BE="-lwldap32"
19609 # This test makes sure that run tests work at all. Sometimes a shared
19610 # library is found by the linker, but the runtime linker can't find it.
19611 # This check should come after all modifications of compiler or linker
19612 # variables, and before any other run tests.
19613 { echo "$as_me:$LINENO: checking test program" >&5
19614 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19615 if test "$cross_compiling" = yes; then
19616 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19617 echo "${ECHO_T}cross-compiling" >&6; }
19619 cat >conftest.$ac_ext <<_ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19625 int main() { return 0; }
19627 rm -f conftest$ac_exeext
19628 if { (ac_try="$ac_link"
19629 case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_link") 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19638 { (case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_try") 2>&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; }; then
19647 { echo "$as_me:$LINENO: result: ok" >&5
19648 echo "${ECHO_T}ok" >&6; }
19650 echo "$as_me: program exited with status $ac_status" >&5
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 ( exit $ac_status )
19655 { echo "$as_me:$LINENO: result: failed" >&5
19656 echo "${ECHO_T}failed" >&6; }
19657 { { echo "$as_me:$LINENO: error:
19658 Could not execute a simple test program. This may be a problem
19659 related to locating shared libraries. Check the file 'config.log'
19660 for the exact reason." >&5
19661 echo "$as_me: error:
19662 Could not execute a simple test program. This may be a problem
19663 related to locating shared libraries. Check the file 'config.log'
19664 for the exact reason." >&2;}
19665 { (exit 1); exit 1; }; }
19667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19672 # --------------------
19673 # Run tests below here
19674 # --------------------
19676 # Force use of our snprintf if system's doesn't do arg control
19677 # See comment above at snprintf test for details.
19678 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19679 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19680 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19681 if test "${pgac_cv_printf_arg_control+set}" = set; then
19682 echo $ECHO_N "(cached) $ECHO_C" >&6
19684 if test "$cross_compiling" = yes; then
19685 pgac_cv_printf_arg_control=cross
19687 cat >conftest.$ac_ext <<_ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19694 #include <string.h>
19700 /* can it swap arguments? */
19701 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19702 if (strcmp(buf, "4 3") != 0)
19707 rm -f conftest$ac_exeext
19708 if { (ac_try="$ac_link"
19709 case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_link") 2>&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19718 { (case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_try") 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19727 pgac_cv_printf_arg_control=yes
19729 echo "$as_me: program exited with status $ac_status" >&5
19730 echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19733 ( exit $ac_status )
19734 pgac_cv_printf_arg_control=no
19736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19742 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19743 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19745 if test $pgac_cv_printf_arg_control != yes ; then
19746 pgac_need_repl_snprintf=yes
19752 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19753 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
19754 if test "${pgac_cv_type_long_int_64+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19757 if test "$cross_compiling" = yes; then
19758 # If cross-compiling, check the size reported by the compiler and
19759 # trust that the arithmetic works.
19760 cat >conftest.$ac_ext <<_ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h. */
19770 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19777 rm -f conftest.$ac_objext
19778 if { (ac_try="$ac_compile"
19779 case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_compile") 2>conftest.er1
19786 grep -v '^ *+' conftest.er1 >conftest.err
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } && {
19791 test -z "$ac_c_werror_flag" ||
19792 test ! -s conftest.err
19793 } && test -s conftest.$ac_objext; then
19794 pgac_cv_type_long_int_64=yes
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 pgac_cv_type_long_int_64=no
19802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19804 cat >conftest.$ac_ext <<_ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19810 typedef long int ac_int64;
19813 * These are globals to discourage the compiler from folding all the
19814 * arithmetic tests down to compile-time constants.
19816 ac_int64 a = 20000001;
19817 ac_int64 b = 40000005;
19819 int does_int64_work()
19823 if (sizeof(ac_int64) != 8)
19824 return 0; /* definitely not the right size */
19826 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19834 exit(! does_int64_work());
19837 rm -f conftest$ac_exeext
19838 if { (ac_try="$ac_link"
19839 case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_link") 2>&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19848 { (case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_try") 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 pgac_cv_type_long_int_64=yes
19859 echo "$as_me: program exited with status $ac_status" >&5
19860 echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19863 ( exit $ac_status )
19864 pgac_cv_type_long_int_64=no
19866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19871 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19872 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
19874 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
19875 if test x"$pgac_cv_type_long_int_64" = xyes ; then
19877 cat >>confdefs.h <<\_ACEOF
19878 #define HAVE_LONG_INT_64 1
19884 if test x"$HAVE_LONG_INT_64" = x"no" ; then
19885 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19886 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
19887 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
19890 if test "$cross_compiling" = yes; then
19891 # If cross-compiling, check the size reported by the compiler and
19892 # trust that the arithmetic works.
19893 cat >conftest.$ac_ext <<_ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19903 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19910 rm -f conftest.$ac_objext
19911 if { (ac_try="$ac_compile"
19912 case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_compile") 2>conftest.er1
19919 grep -v '^ *+' conftest.er1 >conftest.err
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } && {
19924 test -z "$ac_c_werror_flag" ||
19925 test ! -s conftest.err
19926 } && test -s conftest.$ac_objext; then
19927 pgac_cv_type_long_long_int_64=yes
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19932 pgac_cv_type_long_long_int_64=no
19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19937 cat >conftest.$ac_ext <<_ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19943 typedef long long int ac_int64;
19946 * These are globals to discourage the compiler from folding all the
19947 * arithmetic tests down to compile-time constants.
19949 ac_int64 a = 20000001;
19950 ac_int64 b = 40000005;
19952 int does_int64_work()
19956 if (sizeof(ac_int64) != 8)
19957 return 0; /* definitely not the right size */
19959 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19967 exit(! does_int64_work());
19970 rm -f conftest$ac_exeext
19971 if { (ac_try="$ac_link"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_link") 2>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19981 { (case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_try") 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 pgac_cv_type_long_long_int_64=yes
19992 echo "$as_me: program exited with status $ac_status" >&5
19993 echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19996 ( exit $ac_status )
19997 pgac_cv_type_long_long_int_64=no
19999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20004 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20005 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20007 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20008 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20010 cat >>confdefs.h <<\_ACEOF
20011 #define HAVE_LONG_LONG_INT_64 1
20020 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20028 #define INT64CONST(x) x##LL
20029 long long int foo = INT64CONST(0x1234567890123456);
20039 rm -f conftest.$ac_objext
20040 if { (ac_try="$ac_compile"
20041 case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_compile") 2>conftest.er1
20048 grep -v '^ *+' conftest.er1 >conftest.err
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } && {
20053 test -z "$ac_c_werror_flag" ||
20054 test ! -s conftest.err
20055 } && test -s conftest.$ac_objext; then
20057 cat >>confdefs.h <<\_ACEOF
20058 #define HAVE_LL_CONSTANTS 1
20062 echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.$ac_ext >&5
20068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20072 # If we found "long int" is 64 bits, assume snprintf handles it. If
20073 # we found we need to use "long long int", better check. We cope with
20074 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20075 # work, fall back to our own snprintf emulation (which we know uses %lld).
20077 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20078 if test $pgac_need_repl_snprintf = no; then
20079 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20080 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20081 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 for pgac_format in '%lld' '%qd' '%I64d'; do
20085 if test "$cross_compiling" = yes; then
20086 pgac_cv_snprintf_long_long_int_format=cross; break
20088 cat >conftest.$ac_ext <<_ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20095 typedef long long int ac_int64;
20096 #define INT64_FORMAT "$pgac_format"
20098 ac_int64 a = 20000001;
20099 ac_int64 b = 40000005;
20101 int does_int64_snprintf_work()
20106 if (sizeof(ac_int64) != 8)
20107 return 0; /* doesn't look like the right size */
20110 snprintf(buf, 100, INT64_FORMAT, c);
20111 if (strcmp(buf, "800000140000005") != 0)
20112 return 0; /* either multiply or snprintf is busted */
20116 exit(! does_int64_snprintf_work());
20119 rm -f conftest$ac_exeext
20120 if { (ac_try="$ac_link"
20121 case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_link") 2>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20130 { (case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_try") 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20141 echo "$as_me: program exited with status $ac_status" >&5
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20153 LONG_LONG_INT_FORMAT=''
20155 case $pgac_cv_snprintf_long_long_int_format in
20156 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20157 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20158 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20159 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20160 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20161 *) { echo "$as_me:$LINENO: result: none" >&5
20162 echo "${ECHO_T}none" >&6; };;
20164 if test "$LONG_LONG_INT_FORMAT" = ""; then
20165 # Force usage of our own snprintf, since system snprintf is broken
20166 pgac_need_repl_snprintf=yes
20167 LONG_LONG_INT_FORMAT='%lld'
20170 # Here if we previously decided we needed to use our own snprintf
20171 LONG_LONG_INT_FORMAT='%lld'
20173 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20174 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20175 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20177 # Here if we are not using 'long long int' at all
20178 INT64_FORMAT='"%ld"'
20179 UINT64_FORMAT='"%lu"'
20183 cat >>confdefs.h <<_ACEOF
20184 #define INT64_FORMAT $INT64_FORMAT
20189 cat >>confdefs.h <<_ACEOF
20190 #define UINT64_FORMAT $UINT64_FORMAT
20194 # Now we have checked all the reasons to replace snprintf
20195 if test $pgac_need_repl_snprintf = yes; then
20197 cat >>confdefs.h <<\_ACEOF
20198 #define USE_REPL_SNPRINTF 1
20201 case " $LIBOBJS " in
20202 *" snprintf.$ac_objext "* ) ;;
20203 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20209 # Need a #define for the size of Datum (unsigned long)
20210 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20211 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20212 if test "${ac_cv_type_unsigned_long+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 cat >conftest.$ac_ext <<_ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20221 $ac_includes_default
20222 typedef unsigned long ac__type_new_;
20226 if ((ac__type_new_ *) 0)
20228 if (sizeof (ac__type_new_))
20234 rm -f conftest.$ac_objext
20235 if { (ac_try="$ac_compile"
20236 case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_compile") 2>conftest.er1
20243 grep -v '^ *+' conftest.er1 >conftest.err
20245 cat conftest.err >&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } && {
20248 test -z "$ac_c_werror_flag" ||
20249 test ! -s conftest.err
20250 } && test -s conftest.$ac_objext; then
20251 ac_cv_type_unsigned_long=yes
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20256 ac_cv_type_unsigned_long=no
20259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20261 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20262 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20264 # The cast to long int works around a bug in the HP C Compiler
20265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20267 # This bug is HP SR number 8606223364.
20268 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20269 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20270 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
20273 if test "$cross_compiling" = yes; then
20274 # Depending upon the size, compute the lo and hi bounds.
20275 cat >conftest.$ac_ext <<_ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20281 $ac_includes_default
20282 typedef unsigned long ac__type_sizeof_;
20286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20293 rm -f conftest.$ac_objext
20294 if { (ac_try="$ac_compile"
20295 case "(($ac_try" in
20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297 *) ac_try_echo=$ac_try;;
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300 (eval "$ac_compile") 2>conftest.er1
20302 grep -v '^ *+' conftest.er1 >conftest.err
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } && {
20307 test -z "$ac_c_werror_flag" ||
20308 test ! -s conftest.err
20309 } && test -s conftest.$ac_objext; then
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20318 $ac_includes_default
20319 typedef unsigned long ac__type_sizeof_;
20323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20330 rm -f conftest.$ac_objext
20331 if { (ac_try="$ac_compile"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_compile") 2>conftest.er1
20339 grep -v '^ *+' conftest.er1 >conftest.err
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } && {
20344 test -z "$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20346 } && test -s conftest.$ac_objext; then
20347 ac_hi=$ac_mid; break
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_lo=`expr $ac_mid + 1`
20353 if test $ac_lo -le $ac_mid; then
20357 ac_mid=`expr 2 '*' $ac_mid + 1`
20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20366 cat >conftest.$ac_ext <<_ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20372 $ac_includes_default
20373 typedef unsigned long ac__type_sizeof_;
20377 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20384 rm -f conftest.$ac_objext
20385 if { (ac_try="$ac_compile"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_compile") 2>conftest.er1
20393 grep -v '^ *+' conftest.er1 >conftest.err
20395 cat conftest.err >&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } && {
20398 test -z "$ac_c_werror_flag" ||
20399 test ! -s conftest.err
20400 } && test -s conftest.$ac_objext; then
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 $ac_includes_default
20410 typedef unsigned long ac__type_sizeof_;
20414 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20421 rm -f conftest.$ac_objext
20422 if { (ac_try="$ac_compile"
20423 case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_compile") 2>conftest.er1
20430 grep -v '^ *+' conftest.er1 >conftest.err
20432 cat conftest.err >&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } && {
20435 test -z "$ac_c_werror_flag" ||
20436 test ! -s conftest.err
20437 } && test -s conftest.$ac_objext; then
20438 ac_lo=$ac_mid; break
20440 echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20443 ac_hi=`expr '(' $ac_mid ')' - 1`
20444 if test $ac_mid -le $ac_hi; then
20448 ac_mid=`expr 2 '*' $ac_mid`
20451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464 # Binary search between lo and hi bounds.
20465 while test "x$ac_lo" != "x$ac_hi"; do
20466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20467 cat >conftest.$ac_ext <<_ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473 $ac_includes_default
20474 typedef unsigned long ac__type_sizeof_;
20478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20485 rm -f conftest.$ac_objext
20486 if { (ac_try="$ac_compile"
20487 case "(($ac_try" in
20488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20489 *) ac_try_echo=$ac_try;;
20491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20492 (eval "$ac_compile") 2>conftest.er1
20494 grep -v '^ *+' conftest.er1 >conftest.err
20496 cat conftest.err >&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } && {
20499 test -z "$ac_c_werror_flag" ||
20500 test ! -s conftest.err
20501 } && test -s conftest.$ac_objext; then
20504 echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20507 ac_lo=`expr '(' $ac_mid ')' + 1`
20510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20514 '') if test "$ac_cv_type_unsigned_long" = yes; then
20515 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20516 See \`config.log' for more details." >&5
20517 echo "$as_me: error: cannot compute sizeof (unsigned long)
20518 See \`config.log' for more details." >&2;}
20519 { (exit 77); exit 77; }; }
20521 ac_cv_sizeof_unsigned_long=0
20525 cat >conftest.$ac_ext <<_ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h. */
20531 $ac_includes_default
20532 typedef unsigned long ac__type_sizeof_;
20533 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20534 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20536 #include <stdlib.h>
20541 FILE *f = fopen ("conftest.val", "w");
20544 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20546 long int i = longval ();
20547 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20549 fprintf (f, "%ld\n", i);
20553 unsigned long int i = ulongval ();
20554 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20556 fprintf (f, "%lu\n", i);
20558 return ferror (f) || fclose (f) != 0;
20564 rm -f conftest$ac_exeext
20565 if { (ac_try="$ac_link"
20566 case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_link") 2>&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20575 { (case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_try") 2>&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20586 echo "$as_me: program exited with status $ac_status" >&5
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20590 ( exit $ac_status )
20591 if test "$ac_cv_type_unsigned_long" = yes; then
20592 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20593 See \`config.log' for more details." >&5
20594 echo "$as_me: error: cannot compute sizeof (unsigned long)
20595 See \`config.log' for more details." >&2;}
20596 { (exit 77); exit 77; }; }
20598 ac_cv_sizeof_unsigned_long=0
20601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20605 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20606 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20610 cat >>confdefs.h <<_ACEOF
20611 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20616 # And one for the size of size_t (enables tweaks for > 32bit address space)
20617 { echo "$as_me:$LINENO: checking for size_t" >&5
20618 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20619 if test "${ac_cv_type_size_t+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 $ac_includes_default
20629 typedef size_t ac__type_new_;
20633 if ((ac__type_new_ *) 0)
20635 if (sizeof (ac__type_new_))
20641 rm -f conftest.$ac_objext
20642 if { (ac_try="$ac_compile"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_compile") 2>conftest.er1
20650 grep -v '^ *+' conftest.er1 >conftest.err
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && {
20655 test -z "$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 } && test -s conftest.$ac_objext; then
20658 ac_cv_type_size_t=yes
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_cv_type_size_t=no
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20669 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20671 # The cast to long int works around a bug in the HP C Compiler
20672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20674 # This bug is HP SR number 8606223364.
20675 { echo "$as_me:$LINENO: checking size of size_t" >&5
20676 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20677 if test "${ac_cv_sizeof_size_t+set}" = set; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20680 if test "$cross_compiling" = yes; then
20681 # Depending upon the size, compute the lo and hi bounds.
20682 cat >conftest.$ac_ext <<_ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20688 $ac_includes_default
20689 typedef size_t ac__type_sizeof_;
20693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20700 rm -f conftest.$ac_objext
20701 if { (ac_try="$ac_compile"
20702 case "(($ac_try" in
20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704 *) ac_try_echo=$ac_try;;
20706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20707 (eval "$ac_compile") 2>conftest.er1
20709 grep -v '^ *+' conftest.er1 >conftest.err
20711 cat conftest.err >&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest.$ac_objext; then
20719 cat >conftest.$ac_ext <<_ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20725 $ac_includes_default
20726 typedef size_t ac__type_sizeof_;
20730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20737 rm -f conftest.$ac_objext
20738 if { (ac_try="$ac_compile"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_compile") 2>conftest.er1
20746 grep -v '^ *+' conftest.er1 >conftest.err
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } && {
20751 test -z "$ac_c_werror_flag" ||
20752 test ! -s conftest.err
20753 } && test -s conftest.$ac_objext; then
20754 ac_hi=$ac_mid; break
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 ac_lo=`expr $ac_mid + 1`
20760 if test $ac_lo -le $ac_mid; then
20764 ac_mid=`expr 2 '*' $ac_mid + 1`
20767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20773 cat >conftest.$ac_ext <<_ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20779 $ac_includes_default
20780 typedef size_t ac__type_sizeof_;
20784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20791 rm -f conftest.$ac_objext
20792 if { (ac_try="$ac_compile"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_compile") 2>conftest.er1
20800 grep -v '^ *+' conftest.er1 >conftest.err
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } && {
20805 test -z "$ac_c_werror_flag" ||
20806 test ! -s conftest.err
20807 } && test -s conftest.$ac_objext; then
20810 cat >conftest.$ac_ext <<_ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20816 $ac_includes_default
20817 typedef size_t ac__type_sizeof_;
20821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20828 rm -f conftest.$ac_objext
20829 if { (ac_try="$ac_compile"
20830 case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_compile") 2>conftest.er1
20837 grep -v '^ *+' conftest.er1 >conftest.err
20839 cat conftest.err >&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } && {
20842 test -z "$ac_c_werror_flag" ||
20843 test ! -s conftest.err
20844 } && test -s conftest.$ac_objext; then
20845 ac_lo=$ac_mid; break
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20850 ac_hi=`expr '(' $ac_mid ')' - 1`
20851 if test $ac_mid -le $ac_hi; then
20855 ac_mid=`expr 2 '*' $ac_mid`
20858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20871 # Binary search between lo and hi bounds.
20872 while test "x$ac_lo" != "x$ac_hi"; do
20873 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20874 cat >conftest.$ac_ext <<_ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20880 $ac_includes_default
20881 typedef size_t ac__type_sizeof_;
20885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_compile") 2>conftest.er1
20901 grep -v '^ *+' conftest.er1 >conftest.err
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } && {
20906 test -z "$ac_c_werror_flag" ||
20907 test ! -s conftest.err
20908 } && test -s conftest.$ac_objext; then
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 ac_lo=`expr '(' $ac_mid ')' + 1`
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20921 '') if test "$ac_cv_type_size_t" = yes; then
20922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20923 See \`config.log' for more details." >&5
20924 echo "$as_me: error: cannot compute sizeof (size_t)
20925 See \`config.log' for more details." >&2;}
20926 { (exit 77); exit 77; }; }
20928 ac_cv_sizeof_size_t=0
20932 cat >conftest.$ac_ext <<_ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20938 $ac_includes_default
20939 typedef size_t ac__type_sizeof_;
20940 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20941 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20943 #include <stdlib.h>
20948 FILE *f = fopen ("conftest.val", "w");
20951 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20953 long int i = longval ();
20954 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20956 fprintf (f, "%ld\n", i);
20960 unsigned long int i = ulongval ();
20961 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20963 fprintf (f, "%lu\n", i);
20965 return ferror (f) || fclose (f) != 0;
20971 rm -f conftest$ac_exeext
20972 if { (ac_try="$ac_link"
20973 case "(($ac_try" in
20974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975 *) ac_try_echo=$ac_try;;
20977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978 (eval "$ac_link") 2>&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20982 { (case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987 (eval "$ac_try") 2>&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 ac_cv_sizeof_size_t=`cat conftest.val`
20993 echo "$as_me: program exited with status $ac_status" >&5
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20997 ( exit $ac_status )
20998 if test "$ac_cv_type_size_t" = yes; then
20999 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21000 See \`config.log' for more details." >&5
21001 echo "$as_me: error: cannot compute sizeof (size_t)
21002 See \`config.log' for more details." >&2;}
21003 { (exit 77); exit 77; }; }
21005 ac_cv_sizeof_size_t=0
21008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21012 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21013 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21017 cat >>confdefs.h <<_ACEOF
21018 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21023 # Decide whether float4 is passed by value: user-selectable, enabled by default
21024 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21025 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21027 pgac_args="$pgac_args enable_float4_byval"
21029 # Check whether --enable-float4-byval was given.
21030 if test "${enable_float4_byval+set}" = set; then
21031 enableval=$enable_float4_byval;
21035 cat >>confdefs.h <<\_ACEOF
21036 #define USE_FLOAT4_BYVAL 1
21039 float4passbyval=true
21042 float4passbyval=false
21045 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21046 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21047 { (exit 1); exit 1; }; }
21052 enable_float4_byval=yes
21054 cat >>confdefs.h <<\_ACEOF
21055 #define USE_FLOAT4_BYVAL 1
21058 float4passbyval=true
21062 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21063 echo "${ECHO_T}$enable_float4_byval" >&6; }
21065 cat >>confdefs.h <<_ACEOF
21066 #define FLOAT4PASSBYVAL $float4passbyval
21070 # Decide whether float8 is passed by value.
21071 # Note: this setting also controls int8 and related types such as timestamp.
21072 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21073 # If not, trying to select it is an error.
21074 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21075 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21076 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21078 pgac_args="$pgac_args enable_float8_byval"
21080 # Check whether --enable-float8-byval was given.
21081 if test "${enable_float8_byval+set}" = set; then
21082 enableval=$enable_float8_byval;
21091 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21092 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21093 { (exit 1); exit 1; }; }
21098 enable_float8_byval=yes
21105 pgac_args="$pgac_args enable_float8_byval"
21107 # Check whether --enable-float8-byval was given.
21108 if test "${enable_float8_byval+set}" = set; then
21109 enableval=$enable_float8_byval;
21118 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21119 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21120 { (exit 1); exit 1; }; }
21125 enable_float8_byval=no
21130 if test "$enable_float8_byval" = yes ; then
21131 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21132 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21133 { (exit 1); exit 1; }; }
21136 if test "$enable_float8_byval" = yes ; then
21138 cat >>confdefs.h <<\_ACEOF
21139 #define USE_FLOAT8_BYVAL 1
21142 float8passbyval=true
21144 float8passbyval=false
21146 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21147 echo "${ECHO_T}$enable_float8_byval" >&6; }
21149 cat >>confdefs.h <<_ACEOF
21150 #define FLOAT8PASSBYVAL $float8passbyval
21154 # Determine memory alignment requirements for the basic C data types.
21156 { echo "$as_me:$LINENO: checking for short" >&5
21157 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21158 if test "${ac_cv_type_short+set}" = set; then
21159 echo $ECHO_N "(cached) $ECHO_C" >&6
21161 cat >conftest.$ac_ext <<_ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 $ac_includes_default
21168 typedef short ac__type_new_;
21172 if ((ac__type_new_ *) 0)
21174 if (sizeof (ac__type_new_))
21180 rm -f conftest.$ac_objext
21181 if { (ac_try="$ac_compile"
21182 case "(($ac_try" in
21183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184 *) ac_try_echo=$ac_try;;
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187 (eval "$ac_compile") 2>conftest.er1
21189 grep -v '^ *+' conftest.er1 >conftest.err
21191 cat conftest.err >&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } && {
21194 test -z "$ac_c_werror_flag" ||
21195 test ! -s conftest.err
21196 } && test -s conftest.$ac_objext; then
21197 ac_cv_type_short=yes
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21202 ac_cv_type_short=no
21205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21207 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21208 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21210 # The cast to long int works around a bug in the HP C Compiler,
21211 # see AC_CHECK_SIZEOF for more information.
21212 { echo "$as_me:$LINENO: checking alignment of short" >&5
21213 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21214 if test "${ac_cv_alignof_short+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 if test "$cross_compiling" = yes; then
21218 # Depending upon the size, compute the lo and hi bounds.
21219 cat >conftest.$ac_ext <<_ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21225 $ac_includes_default
21227 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21229 typedef struct { char x; short y; } ac__type_alignof_;
21233 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21240 rm -f conftest.$ac_objext
21241 if { (ac_try="$ac_compile"
21242 case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_compile") 2>conftest.er1
21249 grep -v '^ *+' conftest.er1 >conftest.err
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } && {
21254 test -z "$ac_c_werror_flag" ||
21255 test ! -s conftest.err
21256 } && test -s conftest.$ac_objext; then
21259 cat >conftest.$ac_ext <<_ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 $ac_includes_default
21267 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21269 typedef struct { char x; short y; } ac__type_alignof_;
21273 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21280 rm -f conftest.$ac_objext
21281 if { (ac_try="$ac_compile"
21282 case "(($ac_try" in
21283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284 *) ac_try_echo=$ac_try;;
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287 (eval "$ac_compile") 2>conftest.er1
21289 grep -v '^ *+' conftest.er1 >conftest.err
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } && {
21294 test -z "$ac_c_werror_flag" ||
21295 test ! -s conftest.err
21296 } && test -s conftest.$ac_objext; then
21297 ac_hi=$ac_mid; break
21299 echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21302 ac_lo=`expr $ac_mid + 1`
21303 if test $ac_lo -le $ac_mid; then
21307 ac_mid=`expr 2 '*' $ac_mid + 1`
21310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 cat >conftest.$ac_ext <<_ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21322 $ac_includes_default
21324 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21326 typedef struct { char x; short y; } ac__type_alignof_;
21330 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21337 rm -f conftest.$ac_objext
21338 if { (ac_try="$ac_compile"
21339 case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_compile") 2>conftest.er1
21346 grep -v '^ *+' conftest.er1 >conftest.err
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } && {
21351 test -z "$ac_c_werror_flag" ||
21352 test ! -s conftest.err
21353 } && test -s conftest.$ac_objext; then
21356 cat >conftest.$ac_ext <<_ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21362 $ac_includes_default
21364 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21366 typedef struct { char x; short y; } ac__type_alignof_;
21370 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21377 rm -f conftest.$ac_objext
21378 if { (ac_try="$ac_compile"
21379 case "(($ac_try" in
21380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381 *) ac_try_echo=$ac_try;;
21383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21384 (eval "$ac_compile") 2>conftest.er1
21386 grep -v '^ *+' conftest.er1 >conftest.err
21388 cat conftest.err >&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } && {
21391 test -z "$ac_c_werror_flag" ||
21392 test ! -s conftest.err
21393 } && test -s conftest.$ac_objext; then
21394 ac_lo=$ac_mid; break
21396 echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21399 ac_hi=`expr '(' $ac_mid ')' - 1`
21400 if test $ac_mid -le $ac_hi; then
21404 ac_mid=`expr 2 '*' $ac_mid`
21407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410 echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21420 # Binary search between lo and hi bounds.
21421 while test "x$ac_lo" != "x$ac_hi"; do
21422 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21423 cat >conftest.$ac_ext <<_ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21429 $ac_includes_default
21431 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21433 typedef struct { char x; short y; } ac__type_alignof_;
21437 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21444 rm -f conftest.$ac_objext
21445 if { (ac_try="$ac_compile"
21446 case "(($ac_try" in
21447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448 *) ac_try_echo=$ac_try;;
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451 (eval "$ac_compile") 2>conftest.er1
21453 grep -v '^ *+' conftest.er1 >conftest.err
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } && {
21458 test -z "$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21460 } && test -s conftest.$ac_objext; then
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21466 ac_lo=`expr '(' $ac_mid ')' + 1`
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21472 ?*) ac_cv_alignof_short=$ac_lo;;
21473 '') if test "$ac_cv_type_short" = yes; then
21474 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21475 See \`config.log' for more details." >&5
21476 echo "$as_me: error: cannot compute alignment of short
21477 See \`config.log' for more details." >&2;}
21478 { (exit 77); exit 77; }; }
21480 ac_cv_alignof_short=0
21484 cat >conftest.$ac_ext <<_ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490 $ac_includes_default
21492 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21494 typedef struct { char x; short y; } ac__type_alignof_;
21495 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21496 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21498 #include <stdlib.h>
21503 FILE *f = fopen ("conftest.val", "w");
21506 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21508 long int i = longval ();
21509 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21511 fprintf (f, "%ld\n", i);
21515 unsigned long int i = ulongval ();
21516 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21518 fprintf (f, "%lu\n", i);
21520 return ferror (f) || fclose (f) != 0;
21526 rm -f conftest$ac_exeext
21527 if { (ac_try="$ac_link"
21528 case "(($ac_try" in
21529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533 (eval "$ac_link") 2>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21537 { (case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_try") 2>&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 ac_cv_alignof_short=`cat conftest.val`
21548 echo "$as_me: program exited with status $ac_status" >&5
21549 echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21552 ( exit $ac_status )
21553 if test "$ac_cv_type_short" = yes; then
21554 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21555 See \`config.log' for more details." >&5
21556 echo "$as_me: error: cannot compute alignment of short
21557 See \`config.log' for more details." >&2;}
21558 { (exit 77); exit 77; }; }
21560 ac_cv_alignof_short=0
21563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21567 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21568 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21572 cat >>confdefs.h <<_ACEOF
21573 #define ALIGNOF_SHORT $ac_cv_alignof_short
21577 { echo "$as_me:$LINENO: checking for int" >&5
21578 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21579 if test "${ac_cv_type_int+set}" = set; then
21580 echo $ECHO_N "(cached) $ECHO_C" >&6
21582 cat >conftest.$ac_ext <<_ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 $ac_includes_default
21589 typedef int ac__type_new_;
21593 if ((ac__type_new_ *) 0)
21595 if (sizeof (ac__type_new_))
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_compile") 2>conftest.er1
21610 grep -v '^ *+' conftest.er1 >conftest.err
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } && {
21615 test -z "$ac_c_werror_flag" ||
21616 test ! -s conftest.err
21617 } && test -s conftest.$ac_objext; then
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21629 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21631 # The cast to long int works around a bug in the HP C Compiler,
21632 # see AC_CHECK_SIZEOF for more information.
21633 { echo "$as_me:$LINENO: checking alignment of int" >&5
21634 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21635 if test "${ac_cv_alignof_int+set}" = set; then
21636 echo $ECHO_N "(cached) $ECHO_C" >&6
21638 if test "$cross_compiling" = yes; then
21639 # Depending upon the size, compute the lo and hi bounds.
21640 cat >conftest.$ac_ext <<_ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 $ac_includes_default
21648 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21650 typedef struct { char x; int y; } ac__type_alignof_;
21654 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21661 rm -f conftest.$ac_objext
21662 if { (ac_try="$ac_compile"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_compile") 2>conftest.er1
21670 grep -v '^ *+' conftest.er1 >conftest.err
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } && {
21675 test -z "$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 } && test -s conftest.$ac_objext; then
21680 cat >conftest.$ac_ext <<_ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21686 $ac_includes_default
21688 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21690 typedef struct { char x; int y; } ac__type_alignof_;
21694 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21701 rm -f conftest.$ac_objext
21702 if { (ac_try="$ac_compile"
21703 case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_compile") 2>conftest.er1
21710 grep -v '^ *+' conftest.er1 >conftest.err
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } && {
21715 test -z "$ac_c_werror_flag" ||
21716 test ! -s conftest.err
21717 } && test -s conftest.$ac_objext; then
21718 ac_hi=$ac_mid; break
21720 echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 ac_lo=`expr $ac_mid + 1`
21724 if test $ac_lo -le $ac_mid; then
21728 ac_mid=`expr 2 '*' $ac_mid + 1`
21731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21734 echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21737 cat >conftest.$ac_ext <<_ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743 $ac_includes_default
21745 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21747 typedef struct { char x; int y; } ac__type_alignof_;
21751 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21758 rm -f conftest.$ac_objext
21759 if { (ac_try="$ac_compile"
21760 case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_compile") 2>conftest.er1
21767 grep -v '^ *+' conftest.er1 >conftest.err
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } && {
21772 test -z "$ac_c_werror_flag" ||
21773 test ! -s conftest.err
21774 } && test -s conftest.$ac_objext; then
21777 cat >conftest.$ac_ext <<_ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21783 $ac_includes_default
21785 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21787 typedef struct { char x; int y; } ac__type_alignof_;
21791 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21798 rm -f conftest.$ac_objext
21799 if { (ac_try="$ac_compile"
21800 case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_compile") 2>conftest.er1
21807 grep -v '^ *+' conftest.er1 >conftest.err
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && {
21812 test -z "$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 } && test -s conftest.$ac_objext; then
21815 ac_lo=$ac_mid; break
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 ac_hi=`expr '(' $ac_mid ')' - 1`
21821 if test $ac_mid -le $ac_hi; then
21825 ac_mid=`expr 2 '*' $ac_mid`
21828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21841 # Binary search between lo and hi bounds.
21842 while test "x$ac_lo" != "x$ac_hi"; do
21843 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21844 cat >conftest.$ac_ext <<_ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h. */
21850 $ac_includes_default
21852 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21854 typedef struct { char x; int y; } ac__type_alignof_;
21858 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21865 rm -f conftest.$ac_objext
21866 if { (ac_try="$ac_compile"
21867 case "(($ac_try" in
21868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869 *) ac_try_echo=$ac_try;;
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872 (eval "$ac_compile") 2>conftest.er1
21874 grep -v '^ *+' conftest.er1 >conftest.err
21876 cat conftest.err >&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } && {
21879 test -z "$ac_c_werror_flag" ||
21880 test ! -s conftest.err
21881 } && test -s conftest.$ac_objext; then
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21887 ac_lo=`expr '(' $ac_mid ')' + 1`
21890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893 ?*) ac_cv_alignof_int=$ac_lo;;
21894 '') if test "$ac_cv_type_int" = yes; then
21895 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21896 See \`config.log' for more details." >&5
21897 echo "$as_me: error: cannot compute alignment of int
21898 See \`config.log' for more details." >&2;}
21899 { (exit 77); exit 77; }; }
21901 ac_cv_alignof_int=0
21905 cat >conftest.$ac_ext <<_ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21911 $ac_includes_default
21913 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21915 typedef struct { char x; int y; } ac__type_alignof_;
21916 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21917 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21919 #include <stdlib.h>
21924 FILE *f = fopen ("conftest.val", "w");
21927 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21929 long int i = longval ();
21930 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21932 fprintf (f, "%ld\n", i);
21936 unsigned long int i = ulongval ();
21937 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21939 fprintf (f, "%lu\n", i);
21941 return ferror (f) || fclose (f) != 0;
21947 rm -f conftest$ac_exeext
21948 if { (ac_try="$ac_link"
21949 case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954 (eval "$ac_link") 2>&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21958 { (case "(($ac_try" in
21959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960 *) ac_try_echo=$ac_try;;
21962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963 (eval "$ac_try") 2>&5
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; }; then
21967 ac_cv_alignof_int=`cat conftest.val`
21969 echo "$as_me: program exited with status $ac_status" >&5
21970 echo "$as_me: failed program was:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21973 ( exit $ac_status )
21974 if test "$ac_cv_type_int" = yes; then
21975 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21976 See \`config.log' for more details." >&5
21977 echo "$as_me: error: cannot compute alignment of int
21978 See \`config.log' for more details." >&2;}
21979 { (exit 77); exit 77; }; }
21981 ac_cv_alignof_int=0
21984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21988 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
21989 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
21993 cat >>confdefs.h <<_ACEOF
21994 #define ALIGNOF_INT $ac_cv_alignof_int
21998 { echo "$as_me:$LINENO: checking for long" >&5
21999 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22000 if test "${ac_cv_type_long+set}" = set; then
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 cat >conftest.$ac_ext <<_ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h. */
22009 $ac_includes_default
22010 typedef long ac__type_new_;
22014 if ((ac__type_new_ *) 0)
22016 if (sizeof (ac__type_new_))
22022 rm -f conftest.$ac_objext
22023 if { (ac_try="$ac_compile"
22024 case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_compile") 2>conftest.er1
22031 grep -v '^ *+' conftest.er1 >conftest.err
22033 cat conftest.err >&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); } && {
22036 test -z "$ac_c_werror_flag" ||
22037 test ! -s conftest.err
22038 } && test -s conftest.$ac_objext; then
22039 ac_cv_type_long=yes
22041 echo "$as_me: failed program was:" >&5
22042 sed 's/^/| /' conftest.$ac_ext >&5
22047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22049 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22050 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22052 # The cast to long int works around a bug in the HP C Compiler,
22053 # see AC_CHECK_SIZEOF for more information.
22054 { echo "$as_me:$LINENO: checking alignment of long" >&5
22055 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22056 if test "${ac_cv_alignof_long+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22059 if test "$cross_compiling" = yes; then
22060 # Depending upon the size, compute the lo and hi bounds.
22061 cat >conftest.$ac_ext <<_ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 $ac_includes_default
22069 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22071 typedef struct { char x; long y; } ac__type_alignof_;
22075 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22082 rm -f conftest.$ac_objext
22083 if { (ac_try="$ac_compile"
22084 case "(($ac_try" in
22085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086 *) ac_try_echo=$ac_try;;
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089 (eval "$ac_compile") 2>conftest.er1
22091 grep -v '^ *+' conftest.er1 >conftest.err
22093 cat conftest.err >&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } && {
22096 test -z "$ac_c_werror_flag" ||
22097 test ! -s conftest.err
22098 } && test -s conftest.$ac_objext; then
22101 cat >conftest.$ac_ext <<_ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22107 $ac_includes_default
22109 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22111 typedef struct { char x; long y; } ac__type_alignof_;
22115 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22122 rm -f conftest.$ac_objext
22123 if { (ac_try="$ac_compile"
22124 case "(($ac_try" in
22125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126 *) ac_try_echo=$ac_try;;
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129 (eval "$ac_compile") 2>conftest.er1
22131 grep -v '^ *+' conftest.er1 >conftest.err
22133 cat conftest.err >&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } && {
22136 test -z "$ac_c_werror_flag" ||
22137 test ! -s conftest.err
22138 } && test -s conftest.$ac_objext; then
22139 ac_hi=$ac_mid; break
22141 echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22144 ac_lo=`expr $ac_mid + 1`
22145 if test $ac_lo -le $ac_mid; then
22149 ac_mid=`expr 2 '*' $ac_mid + 1`
22152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22155 echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22158 cat >conftest.$ac_ext <<_ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22164 $ac_includes_default
22166 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22168 typedef struct { char x; long y; } ac__type_alignof_;
22172 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22179 rm -f conftest.$ac_objext
22180 if { (ac_try="$ac_compile"
22181 case "(($ac_try" in
22182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183 *) ac_try_echo=$ac_try;;
22185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22186 (eval "$ac_compile") 2>conftest.er1
22188 grep -v '^ *+' conftest.er1 >conftest.err
22190 cat conftest.err >&5
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); } && {
22193 test -z "$ac_c_werror_flag" ||
22194 test ! -s conftest.err
22195 } && test -s conftest.$ac_objext; then
22198 cat >conftest.$ac_ext <<_ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h. */
22204 $ac_includes_default
22206 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22208 typedef struct { char x; long y; } ac__type_alignof_;
22212 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22219 rm -f conftest.$ac_objext
22220 if { (ac_try="$ac_compile"
22221 case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_compile") 2>conftest.er1
22228 grep -v '^ *+' conftest.er1 >conftest.err
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } && {
22233 test -z "$ac_c_werror_flag" ||
22234 test ! -s conftest.err
22235 } && test -s conftest.$ac_objext; then
22236 ac_lo=$ac_mid; break
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22241 ac_hi=`expr '(' $ac_mid ')' - 1`
22242 if test $ac_mid -le $ac_hi; then
22246 ac_mid=`expr 2 '*' $ac_mid`
22249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252 echo "$as_me: failed program was:" >&5
22253 sed 's/^/| /' conftest.$ac_ext >&5
22258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22262 # Binary search between lo and hi bounds.
22263 while test "x$ac_lo" != "x$ac_hi"; do
22264 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22265 cat >conftest.$ac_ext <<_ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22271 $ac_includes_default
22273 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22275 typedef struct { char x; long y; } ac__type_alignof_;
22279 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22286 rm -f conftest.$ac_objext
22287 if { (ac_try="$ac_compile"
22288 case "(($ac_try" in
22289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290 *) ac_try_echo=$ac_try;;
22292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22293 (eval "$ac_compile") 2>conftest.er1
22295 grep -v '^ *+' conftest.er1 >conftest.err
22297 cat conftest.err >&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } && {
22300 test -z "$ac_c_werror_flag" ||
22301 test ! -s conftest.err
22302 } && test -s conftest.$ac_objext; then
22305 echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22308 ac_lo=`expr '(' $ac_mid ')' + 1`
22311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22314 ?*) ac_cv_alignof_long=$ac_lo;;
22315 '') if test "$ac_cv_type_long" = yes; then
22316 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22317 See \`config.log' for more details." >&5
22318 echo "$as_me: error: cannot compute alignment of long
22319 See \`config.log' for more details." >&2;}
22320 { (exit 77); exit 77; }; }
22322 ac_cv_alignof_long=0
22326 cat >conftest.$ac_ext <<_ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22332 $ac_includes_default
22334 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22336 typedef struct { char x; long y; } ac__type_alignof_;
22337 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22338 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22340 #include <stdlib.h>
22345 FILE *f = fopen ("conftest.val", "w");
22348 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22350 long int i = longval ();
22351 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22353 fprintf (f, "%ld\n", i);
22357 unsigned long int i = ulongval ();
22358 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22360 fprintf (f, "%lu\n", i);
22362 return ferror (f) || fclose (f) != 0;
22368 rm -f conftest$ac_exeext
22369 if { (ac_try="$ac_link"
22370 case "(($ac_try" in
22371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372 *) ac_try_echo=$ac_try;;
22374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375 (eval "$ac_link") 2>&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22379 { (case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_try") 2>&5
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; }; then
22388 ac_cv_alignof_long=`cat conftest.val`
22390 echo "$as_me: program exited with status $ac_status" >&5
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22394 ( exit $ac_status )
22395 if test "$ac_cv_type_long" = yes; then
22396 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22397 See \`config.log' for more details." >&5
22398 echo "$as_me: error: cannot compute alignment of long
22399 See \`config.log' for more details." >&2;}
22400 { (exit 77); exit 77; }; }
22402 ac_cv_alignof_long=0
22405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22409 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22410 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22414 cat >>confdefs.h <<_ACEOF
22415 #define ALIGNOF_LONG $ac_cv_alignof_long
22419 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22420 { echo "$as_me:$LINENO: checking for long long int" >&5
22421 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22422 if test "${ac_cv_type_long_long_int+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 cat >conftest.$ac_ext <<_ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22431 $ac_includes_default
22432 typedef long long int ac__type_new_;
22436 if ((ac__type_new_ *) 0)
22438 if (sizeof (ac__type_new_))
22444 rm -f conftest.$ac_objext
22445 if { (ac_try="$ac_compile"
22446 case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_compile") 2>conftest.er1
22453 grep -v '^ *+' conftest.er1 >conftest.err
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && {
22458 test -z "$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22460 } && test -s conftest.$ac_objext; then
22461 ac_cv_type_long_long_int=yes
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22466 ac_cv_type_long_long_int=no
22469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22471 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22472 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22474 # The cast to long int works around a bug in the HP C Compiler,
22475 # see AC_CHECK_SIZEOF for more information.
22476 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22477 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22478 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22479 echo $ECHO_N "(cached) $ECHO_C" >&6
22481 if test "$cross_compiling" = yes; then
22482 # Depending upon the size, compute the lo and hi bounds.
22483 cat >conftest.$ac_ext <<_ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h. */
22489 $ac_includes_default
22491 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22493 typedef struct { char x; long long int y; } ac__type_alignof_;
22497 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22504 rm -f conftest.$ac_objext
22505 if { (ac_try="$ac_compile"
22506 case "(($ac_try" in
22507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508 *) ac_try_echo=$ac_try;;
22510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22511 (eval "$ac_compile") 2>conftest.er1
22513 grep -v '^ *+' conftest.er1 >conftest.err
22515 cat conftest.err >&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); } && {
22518 test -z "$ac_c_werror_flag" ||
22519 test ! -s conftest.err
22520 } && test -s conftest.$ac_objext; then
22523 cat >conftest.$ac_ext <<_ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h. */
22529 $ac_includes_default
22531 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22533 typedef struct { char x; long long int y; } ac__type_alignof_;
22537 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22544 rm -f conftest.$ac_objext
22545 if { (ac_try="$ac_compile"
22546 case "(($ac_try" in
22547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548 *) ac_try_echo=$ac_try;;
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551 (eval "$ac_compile") 2>conftest.er1
22553 grep -v '^ *+' conftest.er1 >conftest.err
22555 cat conftest.err >&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } && {
22558 test -z "$ac_c_werror_flag" ||
22559 test ! -s conftest.err
22560 } && test -s conftest.$ac_objext; then
22561 ac_hi=$ac_mid; break
22563 echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22566 ac_lo=`expr $ac_mid + 1`
22567 if test $ac_lo -le $ac_mid; then
22571 ac_mid=`expr 2 '*' $ac_mid + 1`
22574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22577 echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22580 cat >conftest.$ac_ext <<_ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 $ac_includes_default
22588 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22590 typedef struct { char x; long long int y; } ac__type_alignof_;
22594 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22601 rm -f conftest.$ac_objext
22602 if { (ac_try="$ac_compile"
22603 case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608 (eval "$ac_compile") 2>conftest.er1
22610 grep -v '^ *+' conftest.er1 >conftest.err
22612 cat conftest.err >&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } && {
22615 test -z "$ac_c_werror_flag" ||
22616 test ! -s conftest.err
22617 } && test -s conftest.$ac_objext; then
22620 cat >conftest.$ac_ext <<_ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22626 $ac_includes_default
22628 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22630 typedef struct { char x; long long int y; } ac__type_alignof_;
22634 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22641 rm -f conftest.$ac_objext
22642 if { (ac_try="$ac_compile"
22643 case "(($ac_try" in
22644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645 *) ac_try_echo=$ac_try;;
22647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22648 (eval "$ac_compile") 2>conftest.er1
22650 grep -v '^ *+' conftest.er1 >conftest.err
22652 cat conftest.err >&5
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } && {
22655 test -z "$ac_c_werror_flag" ||
22656 test ! -s conftest.err
22657 } && test -s conftest.$ac_objext; then
22658 ac_lo=$ac_mid; break
22660 echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22663 ac_hi=`expr '(' $ac_mid ')' - 1`
22664 if test $ac_mid -le $ac_hi; then
22668 ac_mid=`expr 2 '*' $ac_mid`
22671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22674 echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22684 # Binary search between lo and hi bounds.
22685 while test "x$ac_lo" != "x$ac_hi"; do
22686 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22687 cat >conftest.$ac_ext <<_ACEOF
22690 cat confdefs.h >>conftest.$ac_ext
22691 cat >>conftest.$ac_ext <<_ACEOF
22692 /* end confdefs.h. */
22693 $ac_includes_default
22695 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22697 typedef struct { char x; long long int y; } ac__type_alignof_;
22701 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22708 rm -f conftest.$ac_objext
22709 if { (ac_try="$ac_compile"
22710 case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_compile") 2>conftest.er1
22717 grep -v '^ *+' conftest.er1 >conftest.err
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } && {
22722 test -z "$ac_c_werror_flag" ||
22723 test ! -s conftest.err
22724 } && test -s conftest.$ac_objext; then
22727 echo "$as_me: failed program was:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22730 ac_lo=`expr '(' $ac_mid ')' + 1`
22733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22736 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22737 '') if test "$ac_cv_type_long_long_int" = yes; then
22738 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22739 See \`config.log' for more details." >&5
22740 echo "$as_me: error: cannot compute alignment of long long int
22741 See \`config.log' for more details." >&2;}
22742 { (exit 77); exit 77; }; }
22744 ac_cv_alignof_long_long_int=0
22748 cat >conftest.$ac_ext <<_ACEOF
22751 cat confdefs.h >>conftest.$ac_ext
22752 cat >>conftest.$ac_ext <<_ACEOF
22753 /* end confdefs.h. */
22754 $ac_includes_default
22756 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22758 typedef struct { char x; long long int y; } ac__type_alignof_;
22759 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22760 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22762 #include <stdlib.h>
22767 FILE *f = fopen ("conftest.val", "w");
22770 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22772 long int i = longval ();
22773 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22775 fprintf (f, "%ld\n", i);
22779 unsigned long int i = ulongval ();
22780 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22782 fprintf (f, "%lu\n", i);
22784 return ferror (f) || fclose (f) != 0;
22790 rm -f conftest$ac_exeext
22791 if { (ac_try="$ac_link"
22792 case "(($ac_try" in
22793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797 (eval "$ac_link") 2>&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22801 { (case "(($ac_try" in
22802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803 *) ac_try_echo=$ac_try;;
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806 (eval "$ac_try") 2>&5
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); }; }; then
22810 ac_cv_alignof_long_long_int=`cat conftest.val`
22812 echo "$as_me: program exited with status $ac_status" >&5
22813 echo "$as_me: failed program was:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22816 ( exit $ac_status )
22817 if test "$ac_cv_type_long_long_int" = yes; then
22818 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22819 See \`config.log' for more details." >&5
22820 echo "$as_me: error: cannot compute alignment of long long int
22821 See \`config.log' for more details." >&2;}
22822 { (exit 77); exit 77; }; }
22824 ac_cv_alignof_long_long_int=0
22827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22831 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
22832 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
22836 cat >>confdefs.h <<_ACEOF
22837 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
22842 { echo "$as_me:$LINENO: checking for double" >&5
22843 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
22844 if test "${ac_cv_type_double+set}" = set; then
22845 echo $ECHO_N "(cached) $ECHO_C" >&6
22847 cat >conftest.$ac_ext <<_ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h. */
22853 $ac_includes_default
22854 typedef double ac__type_new_;
22858 if ((ac__type_new_ *) 0)
22860 if (sizeof (ac__type_new_))
22866 rm -f conftest.$ac_objext
22867 if { (ac_try="$ac_compile"
22868 case "(($ac_try" in
22869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22870 *) ac_try_echo=$ac_try;;
22872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22873 (eval "$ac_compile") 2>conftest.er1
22875 grep -v '^ *+' conftest.er1 >conftest.err
22877 cat conftest.err >&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } && {
22880 test -z "$ac_c_werror_flag" ||
22881 test ! -s conftest.err
22882 } && test -s conftest.$ac_objext; then
22883 ac_cv_type_double=yes
22885 echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22888 ac_cv_type_double=no
22891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22893 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22894 echo "${ECHO_T}$ac_cv_type_double" >&6; }
22896 # The cast to long int works around a bug in the HP C Compiler,
22897 # see AC_CHECK_SIZEOF for more information.
22898 { echo "$as_me:$LINENO: checking alignment of double" >&5
22899 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
22900 if test "${ac_cv_alignof_double+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 if test "$cross_compiling" = yes; then
22904 # Depending upon the size, compute the lo and hi bounds.
22905 cat >conftest.$ac_ext <<_ACEOF
22908 cat confdefs.h >>conftest.$ac_ext
22909 cat >>conftest.$ac_ext <<_ACEOF
22910 /* end confdefs.h. */
22911 $ac_includes_default
22913 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22915 typedef struct { char x; double y; } ac__type_alignof_;
22919 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22926 rm -f conftest.$ac_objext
22927 if { (ac_try="$ac_compile"
22928 case "(($ac_try" in
22929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930 *) ac_try_echo=$ac_try;;
22932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22933 (eval "$ac_compile") 2>conftest.er1
22935 grep -v '^ *+' conftest.er1 >conftest.err
22937 cat conftest.err >&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } && {
22940 test -z "$ac_c_werror_flag" ||
22941 test ! -s conftest.err
22942 } && test -s conftest.$ac_objext; then
22945 cat >conftest.$ac_ext <<_ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h. */
22951 $ac_includes_default
22953 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22955 typedef struct { char x; double y; } ac__type_alignof_;
22959 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22966 rm -f conftest.$ac_objext
22967 if { (ac_try="$ac_compile"
22968 case "(($ac_try" in
22969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 *) ac_try_echo=$ac_try;;
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973 (eval "$ac_compile") 2>conftest.er1
22975 grep -v '^ *+' conftest.er1 >conftest.err
22977 cat conftest.err >&5
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } && {
22980 test -z "$ac_c_werror_flag" ||
22981 test ! -s conftest.err
22982 } && test -s conftest.$ac_objext; then
22983 ac_hi=$ac_mid; break
22985 echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22988 ac_lo=`expr $ac_mid + 1`
22989 if test $ac_lo -le $ac_mid; then
22993 ac_mid=`expr 2 '*' $ac_mid + 1`
22996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22999 echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23002 cat >conftest.$ac_ext <<_ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h. */
23008 $ac_includes_default
23010 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23012 typedef struct { char x; double y; } ac__type_alignof_;
23016 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23023 rm -f conftest.$ac_objext
23024 if { (ac_try="$ac_compile"
23025 case "(($ac_try" in
23026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027 *) ac_try_echo=$ac_try;;
23029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23030 (eval "$ac_compile") 2>conftest.er1
23032 grep -v '^ *+' conftest.er1 >conftest.err
23034 cat conftest.err >&5
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } && {
23037 test -z "$ac_c_werror_flag" ||
23038 test ! -s conftest.err
23039 } && test -s conftest.$ac_objext; then
23042 cat >conftest.$ac_ext <<_ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23048 $ac_includes_default
23050 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23052 typedef struct { char x; double y; } ac__type_alignof_;
23056 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23063 rm -f conftest.$ac_objext
23064 if { (ac_try="$ac_compile"
23065 case "(($ac_try" in
23066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067 *) ac_try_echo=$ac_try;;
23069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23070 (eval "$ac_compile") 2>conftest.er1
23072 grep -v '^ *+' conftest.er1 >conftest.err
23074 cat conftest.err >&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } && {
23077 test -z "$ac_c_werror_flag" ||
23078 test ! -s conftest.err
23079 } && test -s conftest.$ac_objext; then
23080 ac_lo=$ac_mid; break
23082 echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23085 ac_hi=`expr '(' $ac_mid ')' - 1`
23086 if test $ac_mid -le $ac_hi; then
23090 ac_mid=`expr 2 '*' $ac_mid`
23093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23096 echo "$as_me: failed program was:" >&5
23097 sed 's/^/| /' conftest.$ac_ext >&5
23102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23106 # Binary search between lo and hi bounds.
23107 while test "x$ac_lo" != "x$ac_hi"; do
23108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23109 cat >conftest.$ac_ext <<_ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h. */
23115 $ac_includes_default
23117 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23119 typedef struct { char x; double y; } ac__type_alignof_;
23123 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23130 rm -f conftest.$ac_objext
23131 if { (ac_try="$ac_compile"
23132 case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_compile") 2>conftest.er1
23139 grep -v '^ *+' conftest.er1 >conftest.err
23141 cat conftest.err >&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } && {
23144 test -z "$ac_c_werror_flag" ||
23145 test ! -s conftest.err
23146 } && test -s conftest.$ac_objext; then
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23152 ac_lo=`expr '(' $ac_mid ')' + 1`
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23158 ?*) ac_cv_alignof_double=$ac_lo;;
23159 '') if test "$ac_cv_type_double" = yes; then
23160 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23161 See \`config.log' for more details." >&5
23162 echo "$as_me: error: cannot compute alignment of double
23163 See \`config.log' for more details." >&2;}
23164 { (exit 77); exit 77; }; }
23166 ac_cv_alignof_double=0
23170 cat >conftest.$ac_ext <<_ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h. */
23176 $ac_includes_default
23178 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23180 typedef struct { char x; double y; } ac__type_alignof_;
23181 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23182 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23184 #include <stdlib.h>
23189 FILE *f = fopen ("conftest.val", "w");
23192 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23194 long int i = longval ();
23195 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23197 fprintf (f, "%ld\n", i);
23201 unsigned long int i = ulongval ();
23202 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23204 fprintf (f, "%lu\n", i);
23206 return ferror (f) || fclose (f) != 0;
23212 rm -f conftest$ac_exeext
23213 if { (ac_try="$ac_link"
23214 case "(($ac_try" in
23215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216 *) ac_try_echo=$ac_try;;
23218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219 (eval "$ac_link") 2>&5
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23223 { (case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23228 (eval "$ac_try") 2>&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; }; then
23232 ac_cv_alignof_double=`cat conftest.val`
23234 echo "$as_me: program exited with status $ac_status" >&5
23235 echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23238 ( exit $ac_status )
23239 if test "$ac_cv_type_double" = yes; then
23240 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23241 See \`config.log' for more details." >&5
23242 echo "$as_me: error: cannot compute alignment of double
23243 See \`config.log' for more details." >&2;}
23244 { (exit 77); exit 77; }; }
23246 ac_cv_alignof_double=0
23249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23253 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23254 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23258 cat >>confdefs.h <<_ACEOF
23259 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23264 # Compute maximum alignment of any basic type.
23265 # We assume long's alignment is at least as strong as char, short, or int;
23266 # but we must check long long (if it exists) and double.
23268 MAX_ALIGNOF=$ac_cv_alignof_long
23269 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23270 MAX_ALIGNOF=$ac_cv_alignof_double
23272 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23273 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23276 cat >>confdefs.h <<_ACEOF
23277 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23282 # Some platforms predefine the types int8, int16, etc. Only check
23283 # a (hopefully) representative subset.
23284 { echo "$as_me:$LINENO: checking for int8" >&5
23285 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23286 if test "${ac_cv_type_int8+set}" = set; then
23287 echo $ECHO_N "(cached) $ECHO_C" >&6
23289 cat >conftest.$ac_ext <<_ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h. */
23296 #ifdef HAVE_SUPPORTDEFS_H
23297 #include <SupportDefs.h>
23300 typedef int8 ac__type_new_;
23304 if ((ac__type_new_ *) 0)
23306 if (sizeof (ac__type_new_))
23312 rm -f conftest.$ac_objext
23313 if { (ac_try="$ac_compile"
23314 case "(($ac_try" in
23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316 *) ac_try_echo=$ac_try;;
23318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23319 (eval "$ac_compile") 2>conftest.er1
23321 grep -v '^ *+' conftest.er1 >conftest.err
23323 cat conftest.err >&5
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); } && {
23326 test -z "$ac_c_werror_flag" ||
23327 test ! -s conftest.err
23328 } && test -s conftest.$ac_objext; then
23329 ac_cv_type_int8=yes
23331 echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23339 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23340 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23341 if test $ac_cv_type_int8 = yes; then
23343 cat >>confdefs.h <<_ACEOF
23344 #define HAVE_INT8 1
23349 { echo "$as_me:$LINENO: checking for uint8" >&5
23350 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23351 if test "${ac_cv_type_uint8+set}" = set; then
23352 echo $ECHO_N "(cached) $ECHO_C" >&6
23354 cat >conftest.$ac_ext <<_ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h. */
23361 #ifdef HAVE_SUPPORTDEFS_H
23362 #include <SupportDefs.h>
23365 typedef uint8 ac__type_new_;
23369 if ((ac__type_new_ *) 0)
23371 if (sizeof (ac__type_new_))
23377 rm -f conftest.$ac_objext
23378 if { (ac_try="$ac_compile"
23379 case "(($ac_try" in
23380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381 *) ac_try_echo=$ac_try;;
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384 (eval "$ac_compile") 2>conftest.er1
23386 grep -v '^ *+' conftest.er1 >conftest.err
23388 cat conftest.err >&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } && {
23391 test -z "$ac_c_werror_flag" ||
23392 test ! -s conftest.err
23393 } && test -s conftest.$ac_objext; then
23394 ac_cv_type_uint8=yes
23396 echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23399 ac_cv_type_uint8=no
23402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23404 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23405 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23406 if test $ac_cv_type_uint8 = yes; then
23408 cat >>confdefs.h <<_ACEOF
23409 #define HAVE_UINT8 1
23414 { echo "$as_me:$LINENO: checking for int64" >&5
23415 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
23416 if test "${ac_cv_type_int64+set}" = set; then
23417 echo $ECHO_N "(cached) $ECHO_C" >&6
23419 cat >conftest.$ac_ext <<_ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h. */
23426 #ifdef HAVE_SUPPORTDEFS_H
23427 #include <SupportDefs.h>
23430 typedef int64 ac__type_new_;
23434 if ((ac__type_new_ *) 0)
23436 if (sizeof (ac__type_new_))
23442 rm -f conftest.$ac_objext
23443 if { (ac_try="$ac_compile"
23444 case "(($ac_try" in
23445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446 *) ac_try_echo=$ac_try;;
23448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_compile") 2>conftest.er1
23451 grep -v '^ *+' conftest.er1 >conftest.err
23453 cat conftest.err >&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } && {
23456 test -z "$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 } && test -s conftest.$ac_objext; then
23459 ac_cv_type_int64=yes
23461 echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23464 ac_cv_type_int64=no
23467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23469 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23470 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23471 if test $ac_cv_type_int64 = yes; then
23473 cat >>confdefs.h <<_ACEOF
23474 #define HAVE_INT64 1
23479 { echo "$as_me:$LINENO: checking for uint64" >&5
23480 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
23481 if test "${ac_cv_type_uint64+set}" = set; then
23482 echo $ECHO_N "(cached) $ECHO_C" >&6
23484 cat >conftest.$ac_ext <<_ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23491 #ifdef HAVE_SUPPORTDEFS_H
23492 #include <SupportDefs.h>
23495 typedef uint64 ac__type_new_;
23499 if ((ac__type_new_ *) 0)
23501 if (sizeof (ac__type_new_))
23507 rm -f conftest.$ac_objext
23508 if { (ac_try="$ac_compile"
23509 case "(($ac_try" in
23510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23511 *) ac_try_echo=$ac_try;;
23513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23514 (eval "$ac_compile") 2>conftest.er1
23516 grep -v '^ *+' conftest.er1 >conftest.err
23518 cat conftest.err >&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); } && {
23521 test -z "$ac_c_werror_flag" ||
23522 test ! -s conftest.err
23523 } && test -s conftest.$ac_objext; then
23524 ac_cv_type_uint64=yes
23526 echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23529 ac_cv_type_uint64=no
23532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23535 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23536 if test $ac_cv_type_uint64 = yes; then
23538 cat >>confdefs.h <<_ACEOF
23539 #define HAVE_UINT64 1
23546 # We also check for sig_atomic_t, which *should* be defined per ANSI
23547 # C, but is missing on some old platforms.
23548 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23549 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23550 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23551 echo $ECHO_N "(cached) $ECHO_C" >&6
23553 cat >conftest.$ac_ext <<_ACEOF
23556 cat confdefs.h >>conftest.$ac_ext
23557 cat >>conftest.$ac_ext <<_ACEOF
23558 /* end confdefs.h. */
23559 #include <signal.h>
23561 typedef sig_atomic_t ac__type_new_;
23565 if ((ac__type_new_ *) 0)
23567 if (sizeof (ac__type_new_))
23573 rm -f conftest.$ac_objext
23574 if { (ac_try="$ac_compile"
23575 case "(($ac_try" in
23576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577 *) ac_try_echo=$ac_try;;
23579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580 (eval "$ac_compile") 2>conftest.er1
23582 grep -v '^ *+' conftest.er1 >conftest.err
23584 cat conftest.err >&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } && {
23587 test -z "$ac_c_werror_flag" ||
23588 test ! -s conftest.err
23589 } && test -s conftest.$ac_objext; then
23590 ac_cv_type_sig_atomic_t=yes
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23595 ac_cv_type_sig_atomic_t=no
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23600 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23601 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23602 if test $ac_cv_type_sig_atomic_t = yes; then
23604 cat >>confdefs.h <<_ACEOF
23605 #define HAVE_SIG_ATOMIC_T 1
23613 # If the user did not disable integer datetimes, check that
23614 # there is a working 64-bit integral type to use.
23615 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23616 test x"$HAVE_LONG_INT_64" = x"no" &&
23617 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
23618 test x"$HAVE_INT64" = x"no" ; then
23619 { { echo "$as_me:$LINENO: error:
23620 Integer-based datetime support requires a 64-bit integer type,
23621 but no such type could be found. The --disable-integer-datetimes
23622 configure option can be used to disable integer-based storage
23623 of datetime values." >&5
23624 echo "$as_me: error:
23625 Integer-based datetime support requires a 64-bit integer type,
23626 but no such type could be found. The --disable-integer-datetimes
23627 configure option can be used to disable integer-based storage
23628 of datetime values." >&2;}
23629 { (exit 1); exit 1; }; }
23633 if test "$PORTNAME" != "win32"
23635 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23636 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23637 if test "${pgac_cv_func_posix_signals+set}" = set; then
23638 echo $ECHO_N "(cached) $ECHO_C" >&6
23640 cat >conftest.$ac_ext <<_ACEOF
23643 cat confdefs.h >>conftest.$ac_ext
23644 cat >>conftest.$ac_ext <<_ACEOF
23645 /* end confdefs.h. */
23646 #include <signal.h>
23651 struct sigaction act, oact;
23652 sigemptyset(&act.sa_mask);
23653 act.sa_flags = SA_RESTART;
23654 sigaction(0, &act, &oact);
23659 rm -f conftest.$ac_objext conftest$ac_exeext
23660 if { (ac_try="$ac_link"
23661 case "(($ac_try" in
23662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663 *) ac_try_echo=$ac_try;;
23665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666 (eval "$ac_link") 2>conftest.er1
23668 grep -v '^ *+' conftest.er1 >conftest.err
23670 cat conftest.err >&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); } && {
23673 test -z "$ac_c_werror_flag" ||
23674 test ! -s conftest.err
23675 } && test -s conftest$ac_exeext &&
23676 $as_test_x conftest$ac_exeext; then
23677 pgac_cv_func_posix_signals=yes
23679 echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23682 pgac_cv_func_posix_signals=no
23685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23686 conftest$ac_exeext conftest.$ac_ext
23688 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23689 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23690 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23692 cat >>confdefs.h <<\_ACEOF
23693 #define HAVE_POSIX_SIGNALS
23697 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23699 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23700 { { echo "$as_me:$LINENO: error:
23701 Thread-safety requires POSIX signals, which are not supported by this
23702 operating system." >&5
23703 echo "$as_me: error:
23704 Thread-safety requires POSIX signals, which are not supported by this
23705 operating system." >&2;}
23706 { (exit 1); exit 1; }; }
23710 if test $ac_cv_func_fseeko = yes; then
23711 # Check whether --enable-largefile was given.
23712 if test "${enable_largefile+set}" = set; then
23713 enableval=$enable_largefile;
23716 if test "$enable_largefile" != no; then
23718 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23719 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23720 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23721 echo $ECHO_N "(cached) $ECHO_C" >&6
23723 ac_cv_sys_largefile_CC=no
23724 if test "$GCC" != yes; then
23727 # IRIX 6.2 and later do not support large files by default,
23728 # so use the C compiler's -n32 option if that helps.
23729 cat >conftest.$ac_ext <<_ACEOF
23732 cat confdefs.h >>conftest.$ac_ext
23733 cat >>conftest.$ac_ext <<_ACEOF
23734 /* end confdefs.h. */
23735 #include <sys/types.h>
23736 /* Check that off_t can represent 2**63 - 1 correctly.
23737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23738 since some C++ compilers masquerading as C compilers
23739 incorrectly reject 9223372036854775807. */
23740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23742 && LARGE_OFF_T % 2147483647 == 1)
23752 rm -f conftest.$ac_objext
23753 if { (ac_try="$ac_compile"
23754 case "(($ac_try" in
23755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23756 *) ac_try_echo=$ac_try;;
23758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23759 (eval "$ac_compile") 2>conftest.er1
23761 grep -v '^ *+' conftest.er1 >conftest.err
23763 cat conftest.err >&5
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); } && {
23766 test -z "$ac_c_werror_flag" ||
23767 test ! -s conftest.err
23768 } && test -s conftest.$ac_objext; then
23771 echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23777 rm -f core conftest.err conftest.$ac_objext
23779 rm -f conftest.$ac_objext
23780 if { (ac_try="$ac_compile"
23781 case "(($ac_try" in
23782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783 *) ac_try_echo=$ac_try;;
23785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786 (eval "$ac_compile") 2>conftest.er1
23788 grep -v '^ *+' conftest.er1 >conftest.err
23790 cat conftest.err >&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); } && {
23793 test -z "$ac_c_werror_flag" ||
23794 test ! -s conftest.err
23795 } && test -s conftest.$ac_objext; then
23796 ac_cv_sys_largefile_CC=' -n32'; break
23798 echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23804 rm -f core conftest.err conftest.$ac_objext
23808 rm -f conftest.$ac_ext
23811 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23812 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
23813 if test "$ac_cv_sys_largefile_CC" != no; then
23814 CC=$CC$ac_cv_sys_largefile_CC
23817 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23818 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23819 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23820 echo $ECHO_N "(cached) $ECHO_C" >&6
23823 cat >conftest.$ac_ext <<_ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h. */
23829 #include <sys/types.h>
23830 /* Check that off_t can represent 2**63 - 1 correctly.
23831 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23832 since some C++ compilers masquerading as C compilers
23833 incorrectly reject 9223372036854775807. */
23834 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23836 && LARGE_OFF_T % 2147483647 == 1)
23846 rm -f conftest.$ac_objext
23847 if { (ac_try="$ac_compile"
23848 case "(($ac_try" in
23849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23850 *) ac_try_echo=$ac_try;;
23852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23853 (eval "$ac_compile") 2>conftest.er1
23855 grep -v '^ *+' conftest.er1 >conftest.err
23857 cat conftest.err >&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); } && {
23860 test -z "$ac_c_werror_flag" ||
23861 test ! -s conftest.err
23862 } && test -s conftest.$ac_objext; then
23863 ac_cv_sys_file_offset_bits=no; break
23865 echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23872 cat >conftest.$ac_ext <<_ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 #define _FILE_OFFSET_BITS 64
23879 #include <sys/types.h>
23880 /* Check that off_t can represent 2**63 - 1 correctly.
23881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23882 since some C++ compilers masquerading as C compilers
23883 incorrectly reject 9223372036854775807. */
23884 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23886 && LARGE_OFF_T % 2147483647 == 1)
23896 rm -f conftest.$ac_objext
23897 if { (ac_try="$ac_compile"
23898 case "(($ac_try" in
23899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23900 *) ac_try_echo=$ac_try;;
23902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23903 (eval "$ac_compile") 2>conftest.er1
23905 grep -v '^ *+' conftest.er1 >conftest.err
23907 cat conftest.err >&5
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } && {
23910 test -z "$ac_c_werror_flag" ||
23911 test ! -s conftest.err
23912 } && test -s conftest.$ac_objext; then
23913 ac_cv_sys_file_offset_bits=64; break
23915 echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23922 ac_cv_sys_file_offset_bits=unknown
23926 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23927 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23928 case $ac_cv_sys_file_offset_bits in #(
23931 cat >>confdefs.h <<_ACEOF
23932 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23937 if test $ac_cv_sys_file_offset_bits = unknown; then
23938 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23939 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23940 if test "${ac_cv_sys_large_files+set}" = set; then
23941 echo $ECHO_N "(cached) $ECHO_C" >&6
23944 cat >conftest.$ac_ext <<_ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h. */
23950 #include <sys/types.h>
23951 /* Check that off_t can represent 2**63 - 1 correctly.
23952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23953 since some C++ compilers masquerading as C compilers
23954 incorrectly reject 9223372036854775807. */
23955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23957 && LARGE_OFF_T % 2147483647 == 1)
23967 rm -f conftest.$ac_objext
23968 if { (ac_try="$ac_compile"
23969 case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974 (eval "$ac_compile") 2>conftest.er1
23976 grep -v '^ *+' conftest.er1 >conftest.err
23978 cat conftest.err >&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } && {
23981 test -z "$ac_c_werror_flag" ||
23982 test ! -s conftest.err
23983 } && test -s conftest.$ac_objext; then
23984 ac_cv_sys_large_files=no; break
23986 echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23993 cat >conftest.$ac_ext <<_ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h. */
23999 #define _LARGE_FILES 1
24000 #include <sys/types.h>
24001 /* Check that off_t can represent 2**63 - 1 correctly.
24002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24003 since some C++ compilers masquerading as C compilers
24004 incorrectly reject 9223372036854775807. */
24005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24007 && LARGE_OFF_T % 2147483647 == 1)
24017 rm -f conftest.$ac_objext
24018 if { (ac_try="$ac_compile"
24019 case "(($ac_try" in
24020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24021 *) ac_try_echo=$ac_try;;
24023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24024 (eval "$ac_compile") 2>conftest.er1
24026 grep -v '^ *+' conftest.er1 >conftest.err
24028 cat conftest.err >&5
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); } && {
24031 test -z "$ac_c_werror_flag" ||
24032 test ! -s conftest.err
24033 } && test -s conftest.$ac_objext; then
24034 ac_cv_sys_large_files=1; break
24036 echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24043 ac_cv_sys_large_files=unknown
24047 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24048 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24049 case $ac_cv_sys_large_files in #(
24052 cat >>confdefs.h <<_ACEOF
24053 #define _LARGE_FILES $ac_cv_sys_large_files
24063 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24064 { echo "$as_me:$LINENO: checking for off_t" >&5
24065 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24066 if test "${ac_cv_type_off_t+set}" = set; then
24067 echo $ECHO_N "(cached) $ECHO_C" >&6
24069 cat >conftest.$ac_ext <<_ACEOF
24072 cat confdefs.h >>conftest.$ac_ext
24073 cat >>conftest.$ac_ext <<_ACEOF
24074 /* end confdefs.h. */
24075 $ac_includes_default
24076 typedef off_t ac__type_new_;
24080 if ((ac__type_new_ *) 0)
24082 if (sizeof (ac__type_new_))
24088 rm -f conftest.$ac_objext
24089 if { (ac_try="$ac_compile"
24090 case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24095 (eval "$ac_compile") 2>conftest.er1
24097 grep -v '^ *+' conftest.er1 >conftest.err
24099 cat conftest.err >&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } && {
24102 test -z "$ac_c_werror_flag" ||
24103 test ! -s conftest.err
24104 } && test -s conftest.$ac_objext; then
24105 ac_cv_type_off_t=yes
24107 echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24110 ac_cv_type_off_t=no
24113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24115 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24116 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24118 # The cast to long int works around a bug in the HP C Compiler
24119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24121 # This bug is HP SR number 8606223364.
24122 { echo "$as_me:$LINENO: checking size of off_t" >&5
24123 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24124 if test "${ac_cv_sizeof_off_t+set}" = set; then
24125 echo $ECHO_N "(cached) $ECHO_C" >&6
24127 if test "$cross_compiling" = yes; then
24128 # Depending upon the size, compute the lo and hi bounds.
24129 cat >conftest.$ac_ext <<_ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h. */
24135 $ac_includes_default
24136 typedef off_t ac__type_sizeof_;
24140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24147 rm -f conftest.$ac_objext
24148 if { (ac_try="$ac_compile"
24149 case "(($ac_try" in
24150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151 *) ac_try_echo=$ac_try;;
24153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24154 (eval "$ac_compile") 2>conftest.er1
24156 grep -v '^ *+' conftest.er1 >conftest.err
24158 cat conftest.err >&5
24159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160 (exit $ac_status); } && {
24161 test -z "$ac_c_werror_flag" ||
24162 test ! -s conftest.err
24163 } && test -s conftest.$ac_objext; then
24166 cat >conftest.$ac_ext <<_ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h. */
24172 $ac_includes_default
24173 typedef off_t ac__type_sizeof_;
24177 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24184 rm -f conftest.$ac_objext
24185 if { (ac_try="$ac_compile"
24186 case "(($ac_try" in
24187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188 *) ac_try_echo=$ac_try;;
24190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24191 (eval "$ac_compile") 2>conftest.er1
24193 grep -v '^ *+' conftest.er1 >conftest.err
24195 cat conftest.err >&5
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); } && {
24198 test -z "$ac_c_werror_flag" ||
24199 test ! -s conftest.err
24200 } && test -s conftest.$ac_objext; then
24201 ac_hi=$ac_mid; break
24203 echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24206 ac_lo=`expr $ac_mid + 1`
24207 if test $ac_lo -le $ac_mid; then
24211 ac_mid=`expr 2 '*' $ac_mid + 1`
24214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24217 echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24220 cat >conftest.$ac_ext <<_ACEOF
24223 cat confdefs.h >>conftest.$ac_ext
24224 cat >>conftest.$ac_ext <<_ACEOF
24225 /* end confdefs.h. */
24226 $ac_includes_default
24227 typedef off_t ac__type_sizeof_;
24231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24238 rm -f conftest.$ac_objext
24239 if { (ac_try="$ac_compile"
24240 case "(($ac_try" in
24241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242 *) ac_try_echo=$ac_try;;
24244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24245 (eval "$ac_compile") 2>conftest.er1
24247 grep -v '^ *+' conftest.er1 >conftest.err
24249 cat conftest.err >&5
24250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251 (exit $ac_status); } && {
24252 test -z "$ac_c_werror_flag" ||
24253 test ! -s conftest.err
24254 } && test -s conftest.$ac_objext; then
24257 cat >conftest.$ac_ext <<_ACEOF
24260 cat confdefs.h >>conftest.$ac_ext
24261 cat >>conftest.$ac_ext <<_ACEOF
24262 /* end confdefs.h. */
24263 $ac_includes_default
24264 typedef off_t ac__type_sizeof_;
24268 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24275 rm -f conftest.$ac_objext
24276 if { (ac_try="$ac_compile"
24277 case "(($ac_try" in
24278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279 *) ac_try_echo=$ac_try;;
24281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24282 (eval "$ac_compile") 2>conftest.er1
24284 grep -v '^ *+' conftest.er1 >conftest.err
24286 cat conftest.err >&5
24287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); } && {
24289 test -z "$ac_c_werror_flag" ||
24290 test ! -s conftest.err
24291 } && test -s conftest.$ac_objext; then
24292 ac_lo=$ac_mid; break
24294 echo "$as_me: failed program was:" >&5
24295 sed 's/^/| /' conftest.$ac_ext >&5
24297 ac_hi=`expr '(' $ac_mid ')' - 1`
24298 if test $ac_mid -le $ac_hi; then
24302 ac_mid=`expr 2 '*' $ac_mid`
24305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24308 echo "$as_me: failed program was:" >&5
24309 sed 's/^/| /' conftest.$ac_ext >&5
24314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24318 # Binary search between lo and hi bounds.
24319 while test "x$ac_lo" != "x$ac_hi"; do
24320 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24321 cat >conftest.$ac_ext <<_ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h. */
24327 $ac_includes_default
24328 typedef off_t ac__type_sizeof_;
24332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24339 rm -f conftest.$ac_objext
24340 if { (ac_try="$ac_compile"
24341 case "(($ac_try" in
24342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24343 *) ac_try_echo=$ac_try;;
24345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24346 (eval "$ac_compile") 2>conftest.er1
24348 grep -v '^ *+' conftest.er1 >conftest.err
24350 cat conftest.err >&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } && {
24353 test -z "$ac_c_werror_flag" ||
24354 test ! -s conftest.err
24355 } && test -s conftest.$ac_objext; then
24358 echo "$as_me: failed program was:" >&5
24359 sed 's/^/| /' conftest.$ac_ext >&5
24361 ac_lo=`expr '(' $ac_mid ')' + 1`
24364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24367 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24368 '') if test "$ac_cv_type_off_t" = yes; then
24369 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24370 See \`config.log' for more details." >&5
24371 echo "$as_me: error: cannot compute sizeof (off_t)
24372 See \`config.log' for more details." >&2;}
24373 { (exit 77); exit 77; }; }
24375 ac_cv_sizeof_off_t=0
24379 cat >conftest.$ac_ext <<_ACEOF
24382 cat confdefs.h >>conftest.$ac_ext
24383 cat >>conftest.$ac_ext <<_ACEOF
24384 /* end confdefs.h. */
24385 $ac_includes_default
24386 typedef off_t ac__type_sizeof_;
24387 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24388 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24390 #include <stdlib.h>
24395 FILE *f = fopen ("conftest.val", "w");
24398 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24400 long int i = longval ();
24401 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24403 fprintf (f, "%ld\n", i);
24407 unsigned long int i = ulongval ();
24408 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24410 fprintf (f, "%lu\n", i);
24412 return ferror (f) || fclose (f) != 0;
24418 rm -f conftest$ac_exeext
24419 if { (ac_try="$ac_link"
24420 case "(($ac_try" in
24421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24422 *) ac_try_echo=$ac_try;;
24424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24425 (eval "$ac_link") 2>&5
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24429 { (case "(($ac_try" in
24430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431 *) ac_try_echo=$ac_try;;
24433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434 (eval "$ac_try") 2>&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); }; }; then
24438 ac_cv_sizeof_off_t=`cat conftest.val`
24440 echo "$as_me: program exited with status $ac_status" >&5
24441 echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24444 ( exit $ac_status )
24445 if test "$ac_cv_type_off_t" = yes; then
24446 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24447 See \`config.log' for more details." >&5
24448 echo "$as_me: error: cannot compute sizeof (off_t)
24449 See \`config.log' for more details." >&2;}
24450 { (exit 77); exit 77; }; }
24452 ac_cv_sizeof_off_t=0
24455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24459 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24460 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24464 cat >>confdefs.h <<_ACEOF
24465 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24470 # If we don't have largefile support, can't handle segsize >= 2GB.
24471 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24472 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24473 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24474 { (exit 1); exit 1; }; }
24477 # SunOS doesn't handle negative byte comparisons properly with +/- return
24478 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24479 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24480 if test "${ac_cv_func_memcmp_working+set}" = set; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24483 if test "$cross_compiling" = yes; then
24484 ac_cv_func_memcmp_working=no
24486 cat >conftest.$ac_ext <<_ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h. */
24492 $ac_includes_default
24497 /* Some versions of memcmp are not 8-bit clean. */
24498 char c0 = '\100', c1 = '\200', c2 = '\201';
24499 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24502 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24503 or more and with at least one buffer not starting on a 4-byte boundary.
24504 William Lewis provided this test program. */
24509 for (i = 0; i < 4; i++)
24513 strcpy (a, "--------01111111");
24514 strcpy (b, "--------10000000");
24515 if (memcmp (a, b, 16) >= 0)
24525 rm -f conftest$ac_exeext
24526 if { (ac_try="$ac_link"
24527 case "(($ac_try" in
24528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529 *) ac_try_echo=$ac_try;;
24531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24532 (eval "$ac_link") 2>&5
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24536 { (case "(($ac_try" in
24537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538 *) ac_try_echo=$ac_try;;
24540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24541 (eval "$ac_try") 2>&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; }; then
24545 ac_cv_func_memcmp_working=yes
24547 echo "$as_me: program exited with status $ac_status" >&5
24548 echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24551 ( exit $ac_status )
24552 ac_cv_func_memcmp_working=no
24554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24559 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24560 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24561 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24562 *" memcmp.$ac_objext "* ) ;;
24563 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24570 # Select semaphore implementation type.
24571 if test "$PORTNAME" != "win32"; then
24572 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24574 cat >>confdefs.h <<\_ACEOF
24575 #define USE_NAMED_POSIX_SEMAPHORES 1
24578 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24580 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24582 cat >>confdefs.h <<\_ACEOF
24583 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24586 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24589 cat >>confdefs.h <<\_ACEOF
24590 #define USE_SYSV_SEMAPHORES 1
24593 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24598 cat >>confdefs.h <<\_ACEOF
24599 #define USE_WIN32_SEMAPHORES 1
24602 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24606 # Select shared-memory implementation type.
24607 if test "$PORTNAME" != "win32"; then
24609 cat >>confdefs.h <<\_ACEOF
24610 #define USE_SYSV_SHARED_MEMORY 1
24613 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24616 cat >>confdefs.h <<\_ACEOF
24617 #define USE_WIN32_SHARED_MEMORY 1
24620 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24623 # If not set in template file, set bytes to use libc memset()
24624 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24625 MEMSET_LOOP_LIMIT=1024
24628 cat >>confdefs.h <<_ACEOF
24629 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24634 if test "$enable_nls" = yes ; then
24636 { echo "$as_me:$LINENO: checking for library containing gettext" >&5
24637 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6; }
24638 if test "${ac_cv_search_gettext+set}" = set; then
24639 echo $ECHO_N "(cached) $ECHO_C" >&6
24641 ac_func_search_save_LIBS=$LIBS
24642 cat >conftest.$ac_ext <<_ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h. */
24649 /* Override any GCC internal prototype to avoid an error.
24650 Use char because int might match the return type of a GCC
24651 builtin and then its argument prototype would still apply. */
24664 for ac_lib in '' intl; do
24665 if test -z "$ac_lib"; then
24666 ac_res="none required"
24669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24671 rm -f conftest.$ac_objext conftest$ac_exeext
24672 if { (ac_try="$ac_link"
24673 case "(($ac_try" in
24674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675 *) ac_try_echo=$ac_try;;
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678 (eval "$ac_link") 2>conftest.er1
24680 grep -v '^ *+' conftest.er1 >conftest.err
24682 cat conftest.err >&5
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); } && {
24685 test -z "$ac_c_werror_flag" ||
24686 test ! -s conftest.err
24687 } && test -s conftest$ac_exeext &&
24688 $as_test_x conftest$ac_exeext; then
24689 ac_cv_search_gettext=$ac_res
24691 echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24699 if test "${ac_cv_search_gettext+set}" = set; then
24703 if test "${ac_cv_search_gettext+set}" = set; then
24706 ac_cv_search_gettext=no
24708 rm conftest.$ac_ext
24709 LIBS=$ac_func_search_save_LIBS
24711 { echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
24712 echo "${ECHO_T}$ac_cv_search_gettext" >&6; }
24713 ac_res=$ac_cv_search_gettext
24714 if test "$ac_res" != no; then
24715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24718 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24719 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24720 { (exit 1); exit 1; }; }
24723 if test "${ac_cv_header_libintl_h+set}" = set; then
24724 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24725 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24726 if test "${ac_cv_header_libintl_h+set}" = set; then
24727 echo $ECHO_N "(cached) $ECHO_C" >&6
24729 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24730 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24732 # Is the header compilable?
24733 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24734 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24735 cat >conftest.$ac_ext <<_ACEOF
24738 cat confdefs.h >>conftest.$ac_ext
24739 cat >>conftest.$ac_ext <<_ACEOF
24740 /* end confdefs.h. */
24741 $ac_includes_default
24742 #include <libintl.h>
24744 rm -f conftest.$ac_objext
24745 if { (ac_try="$ac_compile"
24746 case "(($ac_try" in
24747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24748 *) ac_try_echo=$ac_try;;
24750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24751 (eval "$ac_compile") 2>conftest.er1
24753 grep -v '^ *+' conftest.er1 >conftest.err
24755 cat conftest.err >&5
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } && {
24758 test -z "$ac_c_werror_flag" ||
24759 test ! -s conftest.err
24760 } && test -s conftest.$ac_objext; then
24761 ac_header_compiler=yes
24763 echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24766 ac_header_compiler=no
24769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24771 echo "${ECHO_T}$ac_header_compiler" >&6; }
24773 # Is the header present?
24774 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
24775 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
24776 cat >conftest.$ac_ext <<_ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h. */
24782 #include <libintl.h>
24784 if { (ac_try="$ac_cpp conftest.$ac_ext"
24785 case "(($ac_try" in
24786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24787 *) ac_try_echo=$ac_try;;
24789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24792 grep -v '^ *+' conftest.er1 >conftest.err
24794 cat conftest.err >&5
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); } >/dev/null && {
24797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24798 test ! -s conftest.err
24800 ac_header_preproc=yes
24802 echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24805 ac_header_preproc=no
24808 rm -f conftest.err conftest.$ac_ext
24809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24810 echo "${ECHO_T}$ac_header_preproc" >&6; }
24812 # So? What about this header?
24813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24815 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24816 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24817 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
24818 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
24819 ac_header_preproc=yes
24822 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
24823 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
24824 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
24825 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
24826 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
24827 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
24828 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
24829 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24830 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
24831 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
24832 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
24833 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
24835 ## ---------------------------------------- ##
24836 ## Report this to pgsql-bugs@postgresql.org ##
24837 ## ---------------------------------------- ##
24839 ) | sed "s/^/$as_me: WARNING: /" >&2
24842 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24843 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24844 if test "${ac_cv_header_libintl_h+set}" = set; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24847 ac_cv_header_libintl_h=$ac_header_preproc
24849 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24850 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24853 if test $ac_cv_header_libintl_h = yes; then
24856 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
24857 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
24858 { (exit 1); exit 1; }; }
24862 for ac_prog in msgfmt
24864 # Extract the first word of "$ac_prog", so it can be a program name with args.
24865 set dummy $ac_prog; ac_word=$2
24866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24868 if test "${ac_cv_prog_MSGFMT+set}" = set; then
24869 echo $ECHO_N "(cached) $ECHO_C" >&6
24871 if test -n "$MSGFMT"; then
24872 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
24874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24875 for as_dir in $PATH
24878 test -z "$as_dir" && as_dir=.
24879 for ac_exec_ext in '' $ac_executable_extensions; do
24880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24881 ac_cv_prog_MSGFMT="$ac_prog"
24882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24891 MSGFMT=$ac_cv_prog_MSGFMT
24892 if test -n "$MSGFMT"; then
24893 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
24894 echo "${ECHO_T}$MSGFMT" >&6; }
24896 { echo "$as_me:$LINENO: result: no" >&5
24897 echo "${ECHO_T}no" >&6; }
24901 test -n "$MSGFMT" && break
24904 if test -z "$MSGFMT"; then
24905 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
24906 echo "$as_me: error: msgfmt is required for NLS" >&2;}
24907 { (exit 1); exit 1; }; }
24909 for ac_prog in msgmerge
24911 # Extract the first word of "$ac_prog", so it can be a program name with args.
24912 set dummy $ac_prog; ac_word=$2
24913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24915 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
24916 echo $ECHO_N "(cached) $ECHO_C" >&6
24918 if test -n "$MSGMERGE"; then
24919 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
24921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24922 for as_dir in $PATH
24925 test -z "$as_dir" && as_dir=.
24926 for ac_exec_ext in '' $ac_executable_extensions; do
24927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24928 ac_cv_prog_MSGMERGE="$ac_prog"
24929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24938 MSGMERGE=$ac_cv_prog_MSGMERGE
24939 if test -n "$MSGMERGE"; then
24940 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24941 echo "${ECHO_T}$MSGMERGE" >&6; }
24943 { echo "$as_me:$LINENO: result: no" >&5
24944 echo "${ECHO_T}no" >&6; }
24948 test -n "$MSGMERGE" && break
24951 for ac_prog in xgettext
24953 # Extract the first word of "$ac_prog", so it can be a program name with args.
24954 set dummy $ac_prog; ac_word=$2
24955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24957 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
24958 echo $ECHO_N "(cached) $ECHO_C" >&6
24960 if test -n "$XGETTEXT"; then
24961 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
24963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24964 for as_dir in $PATH
24967 test -z "$as_dir" && as_dir=.
24968 for ac_exec_ext in '' $ac_executable_extensions; do
24969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24970 ac_cv_prog_XGETTEXT="$ac_prog"
24971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24980 XGETTEXT=$ac_cv_prog_XGETTEXT
24981 if test -n "$XGETTEXT"; then
24982 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24983 echo "${ECHO_T}$XGETTEXT" >&6; }
24985 { echo "$as_me:$LINENO: result: no" >&5
24986 echo "${ECHO_T}no" >&6; }
24990 test -n "$XGETTEXT" && break
24996 # Check for Tcl configuration script tclConfig.sh
24997 if test "$with_tcl" = yes; then
24998 for ac_prog in tclsh tcl
25000 # Extract the first word of "$ac_prog", so it can be a program name with args.
25001 set dummy $ac_prog; ac_word=$2
25002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25004 if test "${ac_cv_path_TCLSH+set}" = set; then
25005 echo $ECHO_N "(cached) $ECHO_C" >&6
25009 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25013 for as_dir in $PATH
25016 test -z "$as_dir" && as_dir=.
25017 for ac_exec_ext in '' $ac_executable_extensions; do
25018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25019 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25030 TCLSH=$ac_cv_path_TCLSH
25031 if test -n "$TCLSH"; then
25032 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25033 echo "${ECHO_T}$TCLSH" >&6; }
25035 { echo "$as_me:$LINENO: result: no" >&5
25036 echo "${ECHO_T}no" >&6; }
25040 test -n "$TCLSH" && break
25043 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25044 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25045 # Let user override test
25046 if test -z "$TCL_CONFIG_SH"; then
25047 pgac_test_dirs="$with_tclconfig"
25049 set X $pgac_test_dirs; shift
25050 if test $# -eq 0; then
25051 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25052 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25053 { (exit 1); exit 1; }; }
25054 set X `echo 'puts $auto_path' | $TCLSH`; shift
25058 if test -r "$pgac_dir/tclConfig.sh"; then
25059 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25065 if test -z "$TCL_CONFIG_SH"; then
25066 { echo "$as_me:$LINENO: result: no" >&5
25067 echo "${ECHO_T}no" >&6; }
25068 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25069 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25070 { (exit 1); exit 1; }; }
25072 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25073 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25079 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25080 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25081 eval TCL_LIBS=\"$TCL_LIBS\"
25082 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25083 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25085 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25086 ac_save_CPPFLAGS=$CPPFLAGS
25087 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25088 if test "${ac_cv_header_tcl_h+set}" = set; then
25089 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25090 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25091 if test "${ac_cv_header_tcl_h+set}" = set; then
25092 echo $ECHO_N "(cached) $ECHO_C" >&6
25094 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25095 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25097 # Is the header compilable?
25098 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25099 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25100 cat >conftest.$ac_ext <<_ACEOF
25103 cat confdefs.h >>conftest.$ac_ext
25104 cat >>conftest.$ac_ext <<_ACEOF
25105 /* end confdefs.h. */
25106 $ac_includes_default
25109 rm -f conftest.$ac_objext
25110 if { (ac_try="$ac_compile"
25111 case "(($ac_try" in
25112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113 *) ac_try_echo=$ac_try;;
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116 (eval "$ac_compile") 2>conftest.er1
25118 grep -v '^ *+' conftest.er1 >conftest.err
25120 cat conftest.err >&5
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); } && {
25123 test -z "$ac_c_werror_flag" ||
25124 test ! -s conftest.err
25125 } && test -s conftest.$ac_objext; then
25126 ac_header_compiler=yes
25128 echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25131 ac_header_compiler=no
25134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25136 echo "${ECHO_T}$ac_header_compiler" >&6; }
25138 # Is the header present?
25139 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25140 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25141 cat >conftest.$ac_ext <<_ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h. */
25149 if { (ac_try="$ac_cpp conftest.$ac_ext"
25150 case "(($ac_try" in
25151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25152 *) ac_try_echo=$ac_try;;
25154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25157 grep -v '^ *+' conftest.er1 >conftest.err
25159 cat conftest.err >&5
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); } >/dev/null && {
25162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25163 test ! -s conftest.err
25165 ac_header_preproc=yes
25167 echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25170 ac_header_preproc=no
25173 rm -f conftest.err conftest.$ac_ext
25174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25175 echo "${ECHO_T}$ac_header_preproc" >&6; }
25177 # So? What about this header?
25178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25180 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25181 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25182 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25183 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25184 ac_header_preproc=yes
25187 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25188 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25189 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25190 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25191 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25192 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25193 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25194 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25195 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25196 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25197 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25198 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25200 ## ---------------------------------------- ##
25201 ## Report this to pgsql-bugs@postgresql.org ##
25202 ## ---------------------------------------- ##
25204 ) | sed "s/^/$as_me: WARNING: /" >&2
25207 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25208 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25209 if test "${ac_cv_header_tcl_h+set}" = set; then
25210 echo $ECHO_N "(cached) $ECHO_C" >&6
25212 ac_cv_header_tcl_h=$ac_header_preproc
25214 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25215 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25218 if test $ac_cv_header_tcl_h = yes; then
25221 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25222 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25223 { (exit 1); exit 1; }; }
25227 CPPFLAGS=$ac_save_CPPFLAGS
25231 # Check for DocBook and tools
25233 for ac_prog in onsgmls nsgmls
25235 # Extract the first word of "$ac_prog", so it can be a program name with args.
25236 set dummy $ac_prog; ac_word=$2
25237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25239 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25240 echo $ECHO_N "(cached) $ECHO_C" >&6
25242 if test -n "$NSGMLS"; then
25243 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25246 for as_dir in $PATH
25249 test -z "$as_dir" && as_dir=.
25250 for ac_exec_ext in '' $ac_executable_extensions; do
25251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25252 ac_cv_prog_NSGMLS="$ac_prog"
25253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25262 NSGMLS=$ac_cv_prog_NSGMLS
25263 if test -n "$NSGMLS"; then
25264 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25265 echo "${ECHO_T}$NSGMLS" >&6; }
25267 { echo "$as_me:$LINENO: result: no" >&5
25268 echo "${ECHO_T}no" >&6; }
25272 test -n "$NSGMLS" && break
25275 for ac_prog in openjade jade
25277 # Extract the first word of "$ac_prog", so it can be a program name with args.
25278 set dummy $ac_prog; ac_word=$2
25279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25281 if test "${ac_cv_prog_JADE+set}" = set; then
25282 echo $ECHO_N "(cached) $ECHO_C" >&6
25284 if test -n "$JADE"; then
25285 ac_cv_prog_JADE="$JADE" # Let the user override the test.
25287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25288 for as_dir in $PATH
25291 test -z "$as_dir" && as_dir=.
25292 for ac_exec_ext in '' $ac_executable_extensions; do
25293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25294 ac_cv_prog_JADE="$ac_prog"
25295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25304 JADE=$ac_cv_prog_JADE
25305 if test -n "$JADE"; then
25306 { echo "$as_me:$LINENO: result: $JADE" >&5
25307 echo "${ECHO_T}$JADE" >&6; }
25309 { echo "$as_me:$LINENO: result: no" >&5
25310 echo "${ECHO_T}no" >&6; }
25314 test -n "$JADE" && break
25318 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25319 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25320 if test "${pgac_cv_check_docbook+set}" = set; then
25321 echo $ECHO_N "(cached) $ECHO_C" >&6
25323 cat >conftest.sgml <<EOF
25324 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25326 <title>test</title>
25328 <title>random</title>
25330 <title>testsect</title>
25337 pgac_cv_check_docbook=no
25339 if test -n "$NSGMLS"; then
25340 $NSGMLS -s conftest.sgml 1>&5 2>&1
25341 if test $? -eq 0; then
25342 pgac_cv_check_docbook=yes
25345 rm -f conftest.sgml
25347 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25348 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25350 have_docbook=$pgac_cv_check_docbook
25353 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25354 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25355 if test "${pgac_cv_path_stylesheets+set}" = set; then
25356 echo $ECHO_N "(cached) $ECHO_C" >&6
25358 if test -n "$DOCBOOKSTYLE"; then
25359 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
25361 for pgac_prefix in /usr /usr/local /opt; do
25362 for pgac_infix in share lib; do
25363 for pgac_postfix in \
25364 sgml/stylesheets/nwalsh-modular \
25365 sgml/stylesheets/docbook \
25366 sgml/stylesheets/dsssl/docbook \
25367 sgml/docbook-dsssl \
25368 sgml/docbook/dsssl/modular \
25369 sgml/docbook/stylesheet/dsssl/modular \
25370 sgml/docbook/dsssl-stylesheets
25372 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
25373 if test -r "$pgac_candidate/html/docbook.dsl" \
25374 && test -r "$pgac_candidate/print/docbook.dsl"
25376 pgac_cv_path_stylesheets=$pgac_candidate
25385 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
25387 if test -n "$DOCBOOKSTYLE"; then
25388 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25389 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25391 { echo "$as_me:$LINENO: result: no" >&5
25392 echo "${ECHO_T}no" >&6; }
25394 if test -n "$DOCBOOKSTYLE"; then
25395 for ac_prog in collateindex.pl
25397 # Extract the first word of "$ac_prog", so it can be a program name with args.
25398 set dummy $ac_prog; ac_word=$2
25399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25401 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25404 case $COLLATEINDEX in
25406 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25410 for as_dir in $DOCBOOKSTYLE/bin $PATH
25413 test -z "$as_dir" && as_dir=.
25414 for ac_exec_ext in '' $ac_executable_extensions; do
25415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25416 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25427 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25428 if test -n "$COLLATEINDEX"; then
25429 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25430 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25432 { echo "$as_me:$LINENO: result: no" >&5
25433 echo "${ECHO_T}no" >&6; }
25437 test -n "$COLLATEINDEX" && break
25441 for ac_prog in collateindex.pl
25443 # Extract the first word of "$ac_prog", so it can be a program name with args.
25444 set dummy $ac_prog; ac_word=$2
25445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25447 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25448 echo $ECHO_N "(cached) $ECHO_C" >&6
25450 case $COLLATEINDEX in
25452 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25456 for as_dir in $PATH
25459 test -z "$as_dir" && as_dir=.
25460 for ac_exec_ext in '' $ac_executable_extensions; do
25461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25462 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25473 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25474 if test -n "$COLLATEINDEX"; then
25475 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25476 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25478 { echo "$as_me:$LINENO: result: no" >&5
25479 echo "${ECHO_T}no" >&6; }
25483 test -n "$COLLATEINDEX" && break
25487 for ac_prog in sgmlspl
25489 # Extract the first word of "$ac_prog", so it can be a program name with args.
25490 set dummy $ac_prog; ac_word=$2
25491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25493 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25494 echo $ECHO_N "(cached) $ECHO_C" >&6
25496 if test -n "$SGMLSPL"; then
25497 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25500 for as_dir in $PATH
25503 test -z "$as_dir" && as_dir=.
25504 for ac_exec_ext in '' $ac_executable_extensions; do
25505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25506 ac_cv_prog_SGMLSPL="$ac_prog"
25507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25516 SGMLSPL=$ac_cv_prog_SGMLSPL
25517 if test -n "$SGMLSPL"; then
25518 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25519 echo "${ECHO_T}$SGMLSPL" >&6; }
25521 { echo "$as_me:$LINENO: result: no" >&5
25522 echo "${ECHO_T}no" >&6; }
25526 test -n "$SGMLSPL" && break
25532 # We have to run the thread test near the end so we have all our symbols
25533 # defined. Cross compiling throws a warning.
25535 if test "$enable_thread_safety_force" = yes; then
25536 if test "$PORTNAME" != "win32"
25538 { echo "$as_me:$LINENO: WARNING:
25539 *** Skipping thread test program. --enable-thread-safety-force was used.
25540 *** Run the program in src/test/thread on the your machine and add proper
25541 *** locking function calls to your applications to guarantee thread safety.
25543 echo "$as_me: WARNING:
25544 *** Skipping thread test program. --enable-thread-safety-force was used.
25545 *** Run the program in src/test/thread on the your machine and add proper
25546 *** locking function calls to your applications to guarantee thread safety.
25549 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25550 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25552 elif test "$enable_thread_safety" = yes; then
25553 if test "$PORTNAME" != "win32"
25555 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25556 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25560 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25561 LIBS="$LIBS $PTHREAD_LIBS"
25562 if test "$cross_compiling" = yes; then
25563 { echo "$as_me:$LINENO: result: maybe" >&5
25564 echo "${ECHO_T}maybe" >&6; }
25565 { echo "$as_me:$LINENO: WARNING:
25566 *** Skipping thread test program because of cross-compile build.
25567 *** Run the program in src/test/thread on the target machine.
25569 echo "$as_me: WARNING:
25570 *** Skipping thread test program because of cross-compile build.
25571 *** Run the program in src/test/thread on the target machine.
25574 cat >conftest.$ac_ext <<_ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h. */
25580 #include "$srcdir/src/test/thread/thread_test.c"
25582 rm -f conftest$ac_exeext
25583 if { (ac_try="$ac_link"
25584 case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589 (eval "$ac_link") 2>&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25593 { (case "(($ac_try" in
25594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595 *) ac_try_echo=$ac_try;;
25597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25598 (eval "$ac_try") 2>&5
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); }; }; then
25602 { echo "$as_me:$LINENO: result: yes" >&5
25603 echo "${ECHO_T}yes" >&6; }
25605 echo "$as_me: program exited with status $ac_status" >&5
25606 echo "$as_me: failed program was:" >&5
25607 sed 's/^/| /' conftest.$ac_ext >&5
25609 ( exit $ac_status )
25610 { echo "$as_me:$LINENO: result: no" >&5
25611 echo "${ECHO_T}no" >&6; }
25612 { { echo "$as_me:$LINENO: error: thread test program failed
25613 This platform is not thread-safe. Check the file 'config.log'for the
25616 You can use the configure option --enable-thread-safety-force to force
25617 threads to be enabled. But you must then run the program in
25618 src/test/thread and add locking function calls to your applications to
25619 guarantee thread safety." >&5
25620 echo "$as_me: error: thread test program failed
25621 This platform is not thread-safe. Check the file 'config.log'for the
25624 You can use the configure option --enable-thread-safety-force to force
25625 threads to be enabled. But you must then run the program in
25626 src/test/thread and add locking function calls to your applications to
25627 guarantee thread safety." >&2;}
25628 { (exit 1); exit 1; }; }
25630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25637 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25638 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25642 # prepare build tree if outside source tree
25643 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
25644 # Note 2: /bin/pwd might be better than shell's built-in at getting
25645 # a symlink-free name.
25646 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
25650 if test "$no_create" != yes; then
25651 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
25652 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
25653 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
25654 || { { echo "$as_me:$LINENO: error: failed" >&5
25655 echo "$as_me: error: failed" >&2;}
25656 { (exit 1); exit 1; }; }
25657 { echo "$as_me:$LINENO: result: done" >&5
25658 echo "${ECHO_T}done" >&6; }
25664 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
25667 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}"
25670 if test "$PORTNAME" = "win32"; then
25671 ac_config_commands="$ac_config_commands check_win32_symlinks"
25675 ac_config_headers="$ac_config_headers src/include/pg_config.h"
25678 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
25681 cat >confcache <<\_ACEOF
25682 # This file is a shell script that caches the results of configure
25683 # tests run on this system so they can be shared between configure
25684 # scripts and configure runs, see configure's option --config-cache.
25685 # It is not useful on other systems. If it contains results you don't
25686 # want to keep, you may remove or edit it.
25688 # config.status only pays attention to the cache file if you give it
25689 # the --recheck option to rerun configure.
25691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25693 # following values.
25697 # The following way of writing the cache mishandles newlines in values,
25698 # but we know of no workaround that is simple, portable, and efficient.
25699 # So, we kill variables containing newlines.
25700 # Ultrix sh set writes to stderr and can't be redirected directly,
25701 # and sets the high bit in the cache file unless we assign to the vars.
25703 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25704 eval ac_val=\$$ac_var
25708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25712 _ | IFS | as_nl) ;; #(
25713 *) $as_unset $ac_var ;;
25719 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25720 *${as_nl}ac_space=\ *)
25721 # `set' does not quote correctly, so add quotes (double-quote
25722 # substitution turns \\\\ into \\, and sed turns \\ into \).
25725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25728 # `set' quotes correctly as required by POSIX, so do not add quotes.
25729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25740 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25742 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25743 if test -w "$cache_file"; then
25744 test "x$cache_file" != "x/dev/null" &&
25745 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25746 echo "$as_me: updating cache $cache_file" >&6;}
25747 cat confcache >$cache_file
25749 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25750 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25755 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25756 # Let make expand exec_prefix.
25757 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25759 DEFS=-DHAVE_CONFIG_H
25763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25764 # 1. Remove the extension, and $U if already installed.
25765 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25766 ac_i=`echo "$ac_i" | sed "$ac_script"`
25767 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25768 # will be set to the directory where LIBOBJS objects are built.
25769 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25770 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25772 LIBOBJS=$ac_libobjs
25774 LTLIBOBJS=$ac_ltlibobjs
25778 : ${CONFIG_STATUS=./config.status}
25779 ac_clean_files_save=$ac_clean_files
25780 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25781 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25782 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25783 cat >$CONFIG_STATUS <<_ACEOF
25785 # Generated by $as_me.
25786 # Run this file to recreate the current configuration.
25787 # Compiler output produced by configure, useful for debugging
25788 # configure, is in config.log if it exists.
25791 ac_cs_recheck=false
25793 SHELL=\${CONFIG_SHELL-$SHELL}
25796 cat >>$CONFIG_STATUS <<\_ACEOF
25797 ## --------------------- ##
25798 ## M4sh Initialization. ##
25799 ## --------------------- ##
25801 # Be more Bourne compatible
25802 DUALCASE=1; export DUALCASE # for MKS sh
25803 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25806 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25807 # is contrary to our usage. Disable this feature.
25808 alias -g '${1+"$@"}'='"$@"'
25809 setopt NO_GLOB_SUBST
25811 case `(set -o) 2>/dev/null` in
25812 *posix*) set -o posix ;;
25821 # Avoid depending upon Character Ranges.
25822 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25823 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25824 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25825 as_cr_digits='0123456789'
25826 as_cr_alnum=$as_cr_Letters$as_cr_digits
25828 # The user is always right.
25829 if test "${PATH_SEPARATOR+set}" != set; then
25830 echo "#! /bin/sh" >conf$$.sh
25831 echo "exit 0" >>conf$$.sh
25833 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25841 # Support unset when possible.
25842 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25850 # We need space, tab and new line, in precisely that order. Quoting is
25851 # there to prevent editors from complaining about space-tab.
25852 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25853 # splitting by setting IFS to empty value.)
25858 # Find who we are. Look in the path if we contain no directory separator.
25860 *[\\/]* ) as_myself=$0 ;;
25861 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25862 for as_dir in $PATH
25865 test -z "$as_dir" && as_dir=.
25866 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25872 # We did not find ourselves, most probably we were run as `sh COMMAND'
25873 # in which case we are not to be found in the path.
25874 if test "x$as_myself" = x; then
25877 if test ! -f "$as_myself"; then
25878 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25879 { (exit 1); exit 1; }
25882 # Work around bugs in pre-3.0 UWIN ksh.
25883 for as_var in ENV MAIL MAILPATH
25884 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25892 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25893 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25894 LC_TELEPHONE LC_TIME
25896 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25897 eval $as_var=C; export $as_var
25899 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25903 # Required to use basename.
25904 if expr a : '\(a\)' >/dev/null 2>&1 &&
25905 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25911 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25912 as_basename=basename
25918 # Name of the executable.
25919 as_me=`$as_basename -- "$0" ||
25920 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25921 X"$0" : 'X\(//\)$' \| \
25922 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25924 sed '/^.*\/\([^/][^/]*\)\/*$/{
25943 as_lineno_1=$LINENO
25944 as_lineno_2=$LINENO
25945 test "x$as_lineno_1" != "x$as_lineno_2" &&
25946 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25948 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25949 # uniformly replaced by the line number. The first 'sed' inserts a
25950 # line-number line after each line using $LINENO; the second 'sed'
25951 # does the real work. The second script uses 'N' to pair each
25952 # line-number line with the line containing $LINENO, and appends
25953 # trailing '-' during substitution so that $LINENO is not a special
25954 # case at line end.
25955 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25956 # scripts with optimization help from Paolo Bonzini. Blame Lee
25957 # E. McMahon (1931-1989) for sed's syntax. :-)
25969 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25972 ' >$as_me.lineno &&
25973 chmod +x "$as_me.lineno" ||
25974 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25975 { (exit 1); exit 1; }; }
25977 # Don't try to exec as it changes $[0], causing all sort of problems
25978 # (the dirname of $[0] is not the place where we might find the
25979 # original and so on. Autoconf is especially sensitive to this).
25980 . "./$as_me.lineno"
25981 # Exit status is that of the last command.
25986 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25992 ECHO_C= ECHO_N= ECHO_T=
25993 case `echo -n x` in
25995 case `echo 'x\c'` in
25996 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26003 if expr a : '\(a\)' >/dev/null 2>&1 &&
26004 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26010 rm -f conf$$ conf$$.exe conf$$.file
26011 if test -d conf$$.dir; then
26012 rm -f conf$$.dir/conf$$.file
26018 if ln -s conf$$.file conf$$ 2>/dev/null; then
26020 # ... but there are two gotchas:
26021 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26022 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26023 # In both cases, we have to default to `cp -p'.
26024 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26026 elif ln conf$$.file conf$$ 2>/dev/null; then
26031 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26032 rmdir conf$$.dir 2>/dev/null
26034 if mkdir -p . 2>/dev/null; then
26037 test -d ./-p && rmdir ./-p
26041 if test -x / >/dev/null 2>&1; then
26042 as_test_x='test -x'
26044 if ls -dL / >/dev/null 2>&1; then
26051 if test -d "$1"; then
26057 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26058 ???[sx]*):;;*)false;;esac;fi
26062 as_executable_p=$as_test_x
26064 # Sed expression to map a string onto a valid CPP name.
26065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26067 # Sed expression to map a string onto a valid variable name.
26068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26073 # Save the log message, to keep $[0] and so on meaningful, and to
26074 # report actual input values of CONFIG_FILES etc. instead of their
26075 # values after options handling.
26077 This file was extended by PostgreSQL $as_me 8.4devel, which was
26078 generated by GNU Autoconf 2.61. Invocation command line was
26080 CONFIG_FILES = $CONFIG_FILES
26081 CONFIG_HEADERS = $CONFIG_HEADERS
26082 CONFIG_LINKS = $CONFIG_LINKS
26083 CONFIG_COMMANDS = $CONFIG_COMMANDS
26086 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26091 cat >>$CONFIG_STATUS <<_ACEOF
26092 # Files that config.status was made for.
26093 config_files="$ac_config_files"
26094 config_headers="$ac_config_headers"
26095 config_links="$ac_config_links"
26096 config_commands="$ac_config_commands"
26100 cat >>$CONFIG_STATUS <<\_ACEOF
26102 \`$as_me' instantiates files from templates according to the
26103 current configuration.
26105 Usage: $0 [OPTIONS] [FILE]...
26107 -h, --help print this help, then exit
26108 -V, --version print version number and configuration settings, then exit
26109 -q, --quiet do not print progress messages
26110 -d, --debug don't remove temporary files
26111 --recheck update $as_me by reconfiguring in the same conditions
26112 --file=FILE[:TEMPLATE]
26113 instantiate the configuration file FILE
26114 --header=FILE[:TEMPLATE]
26115 instantiate the configuration header FILE
26117 Configuration files:
26120 Configuration headers:
26123 Configuration links:
26126 Configuration commands:
26129 Report bugs to <bug-autoconf@gnu.org>."
26132 cat >>$CONFIG_STATUS <<_ACEOF
26134 PostgreSQL config.status 8.4devel
26135 configured by $0, generated by GNU Autoconf 2.61,
26136 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26138 Copyright (C) 2006 Free Software Foundation, Inc.
26139 This config.status script is free software; the Free Software Foundation
26140 gives unlimited permission to copy, distribute and modify it."
26146 cat >>$CONFIG_STATUS <<\_ACEOF
26147 # If no file are specified by the user, then we need to provide default
26148 # value. By we need to know if files were specified by the user.
26154 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26155 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26166 # Handling of the options.
26167 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26169 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26170 echo "$ac_cs_version"; exit ;;
26171 --debug | --debu | --deb | --de | --d | -d )
26173 --file | --fil | --fi | --f )
26175 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26176 ac_need_defaults=false;;
26177 --header | --heade | --head | --hea )
26179 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26180 ac_need_defaults=false;;
26182 # Conflict between --help and --header
26183 { echo "$as_me: error: ambiguous option: $1
26184 Try \`$0 --help' for more information." >&2
26185 { (exit 1); exit 1; }; };;
26186 --help | --hel | -h )
26187 echo "$ac_cs_usage"; exit ;;
26188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26189 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26192 # This is an error.
26193 -*) { echo "$as_me: error: unrecognized option: $1
26194 Try \`$0 --help' for more information." >&2
26195 { (exit 1); exit 1; }; } ;;
26197 *) ac_config_targets="$ac_config_targets $1"
26198 ac_need_defaults=false ;;
26204 ac_configure_extra_args=
26206 if $ac_cs_silent; then
26208 ac_configure_extra_args="$ac_configure_extra_args --silent"
26212 cat >>$CONFIG_STATUS <<_ACEOF
26213 if \$ac_cs_recheck; then
26214 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26215 CONFIG_SHELL=$SHELL
26216 export CONFIG_SHELL
26217 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26221 cat >>$CONFIG_STATUS <<\_ACEOF
26225 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26226 ## Running $as_me. ##
26232 cat >>$CONFIG_STATUS <<_ACEOF
26235 cat >>$CONFIG_STATUS <<\_ACEOF
26237 # Handling of arguments.
26238 for ac_config_target in $ac_config_targets
26240 case $ac_config_target in
26241 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26242 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
26243 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
26244 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26245 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26246 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26247 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26248 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26249 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26250 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
26251 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
26252 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26254 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26255 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26256 { (exit 1); exit 1; }; };;
26261 # If the user did not use the arguments to specify the items to instantiate,
26262 # then the envvar interface is used. Set only those that are not.
26263 # We use the long form for the default assignment because of an extremely
26264 # bizarre bug on SunOS 4.1.3.
26265 if $ac_need_defaults; then
26266 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26267 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26268 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26269 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26272 # Have a temporary directory for convenience. Make it in the build tree
26273 # simply because there is no reason against having it here, and in addition,
26274 # creating and moving files from /tmp can sometimes cause problems.
26275 # Hook for its removal unless debugging.
26276 # Note that there is a small window in which the directory will not be cleaned:
26277 # after its creation but before its name has been assigned to `$tmp'.
26281 trap 'exit_status=$?
26282 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26284 trap '{ (exit 1); exit 1; }' 1 2 13 15
26286 # Create a (secure) tmp directory for tmp files.
26289 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26290 test -n "$tmp" && test -d "$tmp"
26293 tmp=./conf$$-$RANDOM
26294 (umask 077 && mkdir "$tmp")
26297 echo "$me: cannot create a temporary directory in ." >&2
26298 { (exit 1); exit 1; }
26302 # Set up the sed scripts for CONFIG_FILES section.
26305 # No need to generate the scripts if there are no CONFIG_FILES.
26306 # This happens for instance when ./config.status config.h
26307 if test -n "$CONFIG_FILES"; then
26314 for ac_last_try in false false false false false :; do
26315 cat >conf$$subs.sed <<_ACEOF
26316 SHELL!$SHELL$ac_delim
26317 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26318 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26319 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26320 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26321 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26322 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26323 exec_prefix!$exec_prefix$ac_delim
26324 prefix!$prefix$ac_delim
26325 program_transform_name!$program_transform_name$ac_delim
26326 bindir!$bindir$ac_delim
26327 sbindir!$sbindir$ac_delim
26328 libexecdir!$libexecdir$ac_delim
26329 datarootdir!$datarootdir$ac_delim
26330 datadir!$datadir$ac_delim
26331 sysconfdir!$sysconfdir$ac_delim
26332 sharedstatedir!$sharedstatedir$ac_delim
26333 localstatedir!$localstatedir$ac_delim
26334 includedir!$includedir$ac_delim
26335 oldincludedir!$oldincludedir$ac_delim
26336 docdir!$docdir$ac_delim
26337 infodir!$infodir$ac_delim
26338 htmldir!$htmldir$ac_delim
26339 dvidir!$dvidir$ac_delim
26340 pdfdir!$pdfdir$ac_delim
26341 psdir!$psdir$ac_delim
26342 libdir!$libdir$ac_delim
26343 localedir!$localedir$ac_delim
26344 mandir!$mandir$ac_delim
26345 DEFS!$DEFS$ac_delim
26346 ECHO_C!$ECHO_C$ac_delim
26347 ECHO_N!$ECHO_N$ac_delim
26348 ECHO_T!$ECHO_T$ac_delim
26349 LIBS!$LIBS$ac_delim
26350 build_alias!$build_alias$ac_delim
26351 host_alias!$host_alias$ac_delim
26352 target_alias!$target_alias$ac_delim
26353 configure_args!$configure_args$ac_delim
26354 build!$build$ac_delim
26355 build_cpu!$build_cpu$ac_delim
26356 build_vendor!$build_vendor$ac_delim
26357 build_os!$build_os$ac_delim
26358 host!$host$ac_delim
26359 host_cpu!$host_cpu$ac_delim
26360 host_vendor!$host_vendor$ac_delim
26361 host_os!$host_os$ac_delim
26362 PORTNAME!$PORTNAME$ac_delim
26363 enable_nls!$enable_nls$ac_delim
26364 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26365 default_port!$default_port$ac_delim
26366 enable_shared!$enable_shared$ac_delim
26367 enable_rpath!$enable_rpath$ac_delim
26368 enable_debug!$enable_debug$ac_delim
26369 enable_profiling!$enable_profiling$ac_delim
26370 DTRACE!$DTRACE$ac_delim
26371 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26372 enable_dtrace!$enable_dtrace$ac_delim
26374 CFLAGS!$CFLAGS$ac_delim
26375 LDFLAGS!$LDFLAGS$ac_delim
26376 CPPFLAGS!$CPPFLAGS$ac_delim
26377 ac_ct_CC!$ac_ct_CC$ac_delim
26378 EXEEXT!$EXEEXT$ac_delim
26379 OBJEXT!$OBJEXT$ac_delim
26383 autodepend!$autodepend$ac_delim
26384 INCLUDES!$INCLUDES$ac_delim
26385 enable_thread_safety!$enable_thread_safety$ac_delim
26386 with_tcl!$with_tcl$ac_delim
26387 with_perl!$with_perl$ac_delim
26388 with_python!$with_python$ac_delim
26389 with_gssapi!$with_gssapi$ac_delim
26390 with_krb5!$with_krb5$ac_delim
26391 krb_srvtab!$krb_srvtab$ac_delim
26392 with_pam!$with_pam$ac_delim
26393 with_ldap!$with_ldap$ac_delim
26394 with_bonjour!$with_bonjour$ac_delim
26395 with_openssl!$with_openssl$ac_delim
26396 with_ossp_uuid!$with_ossp_uuid$ac_delim
26397 XML2_CONFIG!$XML2_CONFIG$ac_delim
26398 with_libxml!$with_libxml$ac_delim
26399 with_libxslt!$with_libxslt$ac_delim
26400 with_system_tzdata!$with_system_tzdata$ac_delim
26401 with_zlib!$with_zlib$ac_delim
26402 GREP!$GREP$ac_delim
26403 EGREP!$EGREP$ac_delim
26404 ELF_SYS!$ELF_SYS$ac_delim
26405 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26407 with_gnu_ld!$with_gnu_ld$ac_delim
26408 ld_R_works!$ld_R_works$ac_delim
26409 RANLIB!$RANLIB$ac_delim
26410 STRIP!$STRIP$ac_delim
26411 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26412 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26415 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26417 elif $ac_last_try; then
26418 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26419 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26420 { (exit 1); exit 1; }; }
26422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26426 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26427 if test -n "$ac_eof"; then
26428 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26429 ac_eof=`expr $ac_eof + 1`
26432 cat >>$CONFIG_STATUS <<_ACEOF
26433 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26438 s/^/s,@/; s/!/@,|#_!!_#|/
26441 s/'"$ac_delim"'$/,g/; t
26443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26444 ' >>$CONFIG_STATUS <conf$$subs.sed
26445 rm -f conf$$subs.sed
26446 cat >>$CONFIG_STATUS <<_ACEOF
26452 for ac_last_try in false false false false false :; do
26453 cat >conf$$subs.sed <<_ACEOF
26455 LN_S!$LN_S$ac_delim
26457 YACC!$YACC$ac_delim
26458 YFLAGS!$YFLAGS$ac_delim
26459 FLEX!$FLEX$ac_delim
26460 FLEXFLAGS!$FLEXFLAGS$ac_delim
26461 PERL!$PERL$ac_delim
26462 perl_archlibexp!$perl_archlibexp$ac_delim
26463 perl_privlibexp!$perl_privlibexp$ac_delim
26464 perl_useshrplib!$perl_useshrplib$ac_delim
26465 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26466 PYTHON!$PYTHON$ac_delim
26467 python_version!$python_version$ac_delim
26468 python_configdir!$python_configdir$ac_delim
26469 python_includespec!$python_includespec$ac_delim
26470 python_libdir!$python_libdir$ac_delim
26471 python_libspec!$python_libspec$ac_delim
26472 python_additional_libs!$python_additional_libs$ac_delim
26473 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26474 HAVE_IPV6!$HAVE_IPV6$ac_delim
26475 LIBOBJS!$LIBOBJS$ac_delim
26476 acx_pthread_config!$acx_pthread_config$ac_delim
26477 PTHREAD_CC!$PTHREAD_CC$ac_delim
26478 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26479 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26480 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26481 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26482 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26483 MSGFMT!$MSGFMT$ac_delim
26484 MSGMERGE!$MSGMERGE$ac_delim
26485 XGETTEXT!$XGETTEXT$ac_delim
26486 TCLSH!$TCLSH$ac_delim
26487 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26488 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26489 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26490 TCL_LIBS!$TCL_LIBS$ac_delim
26491 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26492 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26493 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26494 NSGMLS!$NSGMLS$ac_delim
26495 JADE!$JADE$ac_delim
26496 have_docbook!$have_docbook$ac_delim
26497 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26498 COLLATEINDEX!$COLLATEINDEX$ac_delim
26499 SGMLSPL!$SGMLSPL$ac_delim
26500 vpath_build!$vpath_build$ac_delim
26501 LTLIBOBJS!$LTLIBOBJS$ac_delim
26504 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
26506 elif $ac_last_try; then
26507 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26508 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26509 { (exit 1); exit 1; }; }
26511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26515 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26516 if test -n "$ac_eof"; then
26517 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26518 ac_eof=`expr $ac_eof + 1`
26521 cat >>$CONFIG_STATUS <<_ACEOF
26522 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26526 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26527 s/^/s,@/; s/!/@,|#_!!_#|/
26530 s/'"$ac_delim"'$/,g/; t
26532 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26533 ' >>$CONFIG_STATUS <conf$$subs.sed
26534 rm -f conf$$subs.sed
26535 cat >>$CONFIG_STATUS <<_ACEOF
26542 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26543 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26544 # trailing colons and then remove the whole line if VPATH becomes empty
26545 # (actually we leave an empty line to preserve line numbers).
26546 if test "x$srcdir" = x.; then
26547 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26548 s/:*\$(srcdir):*/:/
26549 s/:*\${srcdir}:*/:/
26551 s/^\([^=]*=[ ]*\):*/\1/
26557 cat >>$CONFIG_STATUS <<\_ACEOF
26558 fi # test -n "$CONFIG_FILES"
26561 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
26564 :[FHLC]) ac_mode=$ac_tag; continue;;
26566 case $ac_mode$ac_tag in
26568 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26569 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26570 { (exit 1); exit 1; }; };;
26571 :[FH]-) ac_tag=-:-;;
26572 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26589 -) ac_f="$tmp/stdin";;
26590 *) # Look for the file first in the build tree, then in the source tree
26591 # (if the path is not absolute). The absolute path cannot be DOS-style,
26592 # because $ac_f cannot contain `:'.
26596 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26598 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26599 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26600 { (exit 1); exit 1; }; };;
26602 ac_file_inputs="$ac_file_inputs $ac_f"
26605 # Let's still pretend it is `configure' which instantiates (i.e., don't
26606 # use $as_me), people would be surprised to read:
26607 # /* config.h. Generated by config.status. */
26608 configure_input="Generated from "`IFS=:
26609 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26610 if test x"$ac_file" != x-; then
26611 configure_input="$ac_file. $configure_input"
26612 { echo "$as_me:$LINENO: creating $ac_file" >&5
26613 echo "$as_me: creating $ac_file" >&6;}
26617 *:-:* | *:-) cat >"$tmp/stdin";;
26622 ac_dir=`$as_dirname -- "$ac_file" ||
26623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26624 X"$ac_file" : 'X\(//\)[^/]' \| \
26625 X"$ac_file" : 'X\(//\)$' \| \
26626 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26632 /^X\(\/\/\)[^/].*/{
26647 -*) as_dir=./$as_dir;;
26649 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26653 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26654 *) as_qdir=$as_dir;;
26656 as_dirs="'$as_qdir' $as_dirs"
26657 as_dir=`$as_dirname -- "$as_dir" ||
26658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26659 X"$as_dir" : 'X\(//\)[^/]' \| \
26660 X"$as_dir" : 'X\(//\)$' \| \
26661 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26667 /^X\(\/\/\)[^/].*/{
26680 test -d "$as_dir" && break
26682 test -z "$as_dirs" || eval "mkdir $as_dirs"
26683 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26684 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26685 { (exit 1); exit 1; }; }; }
26689 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26691 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26692 # A ".." for each directory in $ac_dir_suffix.
26693 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26694 case $ac_top_builddir_sub in
26695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26699 ac_abs_top_builddir=$ac_pwd
26700 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26701 # for backward compatibility:
26702 ac_top_builddir=$ac_top_build_prefix
26705 .) # We are building in place.
26707 ac_top_srcdir=$ac_top_builddir_sub
26708 ac_abs_top_srcdir=$ac_pwd ;;
26709 [\\/]* | ?:[\\/]* ) # Absolute name.
26710 ac_srcdir=$srcdir$ac_dir_suffix;
26711 ac_top_srcdir=$srcdir
26712 ac_abs_top_srcdir=$srcdir ;;
26713 *) # Relative name.
26714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26715 ac_top_srcdir=$ac_top_build_prefix$srcdir
26716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26718 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26729 cat >>$CONFIG_STATUS <<\_ACEOF
26730 # If the template does not know about datarootdir, expand it.
26731 # FIXME: This hack should be removed a few years after 2.60.
26732 ac_datarootdir_hack=; ac_datarootdir_seen=
26734 case `sed -n '/datarootdir/ {
26743 ' $ac_file_inputs` in
26744 *datarootdir*) ac_datarootdir_seen=yes;;
26745 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26746 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26747 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26749 cat >>$CONFIG_STATUS <<_ACEOF
26750 ac_datarootdir_hack='
26751 s&@datadir@&$datadir&g
26752 s&@docdir@&$docdir&g
26753 s&@infodir@&$infodir&g
26754 s&@localedir@&$localedir&g
26755 s&@mandir@&$mandir&g
26756 s&\\\${datarootdir}&$datarootdir&g' ;;
26760 # Neutralize VPATH when `$srcdir' = `.'.
26761 # Shell code in configure.ac might set extrasub.
26762 # FIXME: do we really want to maintain this feature?
26763 cat >>$CONFIG_STATUS <<_ACEOF
26767 cat >>$CONFIG_STATUS <<\_ACEOF
26769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26770 s&@configure_input@&$configure_input&;t t
26771 s&@top_builddir@&$ac_top_builddir_sub&;t t
26772 s&@srcdir@&$ac_srcdir&;t t
26773 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26774 s&@top_srcdir@&$ac_top_srcdir&;t t
26775 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26776 s&@builddir@&$ac_builddir&;t t
26777 s&@abs_builddir@&$ac_abs_builddir&;t t
26778 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26779 $ac_datarootdir_hack
26780 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26783 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26784 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26785 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26786 which seems to be undefined. Please make sure it is defined." >&5
26787 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26788 which seems to be undefined. Please make sure it is defined." >&2;}
26792 -) cat "$tmp/out"; rm -f "$tmp/out";;
26793 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26802 # Transform confdefs.h into a sed script `conftest.defines', that
26803 # substitutes the proper values into config.h.in to produce config.h.
26804 rm -f conftest.defines conftest.tail
26805 # First, append a space to every undef/define line, to ease matching.
26806 echo 's/$/ /' >conftest.defines
26807 # Then, protect against being on the right side of a sed subst, or in
26808 # an unquoted here document, in config.status. If some macros were
26809 # called several times there might be several #defines for the same
26810 # symbol, which is useless. But do not sort them, since the last
26811 # AC_DEFINE must be honored.
26812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26813 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26814 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26815 # PARAMS is the parameter list in the macro definition--in most cases, it's
26816 # just an empty string.
26817 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26818 ac_dB='\\)[ (].*,\\1define\\2'
26826 s/^[ ]*#[ ]*define[ ][ ]*//
26831 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26832 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26833 ' >>conftest.defines
26835 # Remove the space that was appended to ease matching.
26836 # Then replace #undef with comments. This is necessary, for
26837 # example, in the case of _POSIX_SOURCE, which is predefined and required
26838 # on some systems where configure will not decide to define it.
26839 # (The regexp can be short, since the line contains either #define or #undef.)
26841 s,^[ #]*u.*,/* & */,' >>conftest.defines
26843 # Break up conftest.defines:
26844 ac_max_sed_lines=50
26846 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26847 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26848 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26850 ac_in='$ac_file_inputs'
26851 ac_out='"$tmp/out1"'
26852 ac_nxt='"$tmp/out2"'
26856 # Write a here document:
26857 cat >>$CONFIG_STATUS <<_ACEOF
26858 # First, check the format of the line:
26859 cat >"\$tmp/defines.sed" <<\\CEOF
26860 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26861 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26865 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26867 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26868 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26869 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26870 grep . conftest.tail >/dev/null || break
26871 rm -f conftest.defines
26872 mv conftest.tail conftest.defines
26874 rm -f conftest.defines conftest.tail
26876 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26877 cat >>$CONFIG_STATUS <<\_ACEOF
26878 if test x"$ac_file" != x-; then
26879 echo "/* $configure_input */" >"$tmp/config.h"
26880 cat "$ac_result" >>"$tmp/config.h"
26881 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26882 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26883 echo "$as_me: $ac_file is unchanged" >&6;}
26886 mv "$tmp/config.h" $ac_file
26889 echo "/* $configure_input */"
26899 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
26900 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
26902 if test ! -r "$srcdir/$ac_source"; then
26903 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26904 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26905 { (exit 1); exit 1; }; }
26909 # Try a relative symlink, then a hard link, then a copy.
26911 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26912 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
26914 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26915 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
26916 cp -p "$srcdir/$ac_source" "$ac_file" ||
26917 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
26918 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
26919 { (exit 1); exit 1; }; }
26921 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26922 echo "$as_me: executing $ac_file commands" >&6;}
26927 case $ac_file$ac_mode in
26928 "check_win32_symlinks":C)
26929 # Links sometimes fail undetected on Mingw -
26930 # so here we detect it and warn the user
26931 for FILE in $CONFIG_LINKS
26933 # test -e works for symlinks in the MinGW console
26934 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
26935 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
26938 "src/include/pg_config.h":H)
26939 # Update timestamp for pg_config.h (see Makefile.global)
26940 echo >src/include/stamp-h
26947 { (exit 0); exit 0; }
26949 chmod +x $CONFIG_STATUS
26950 ac_clean_files=$ac_clean_files_save
26953 # configure is writing to config.log, and then calls config.status.
26954 # config.status does its own redirection, appending to config.log.
26955 # Unfortunately, on DOS this fails, as config.log is still kept open
26956 # by configure, so config.status won't be able to write to it; its
26957 # output is simply discarded. So we exec the FD to /dev/null,
26958 # effectively closing config.log, so it can be properly (re)opened and
26959 # appended to by config.status. When coming back to configure, we
26960 # need to make the FD available again.
26961 if test "$no_create" != yes; then
26963 ac_config_status_args=
26964 test "$silent" = yes &&
26965 ac_config_status_args="$ac_config_status_args --quiet"
26967 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26969 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26970 # would make configure fail if this is the last instruction.
26971 $ac_cs_success || { (exit 1); exit 1; }
26975 # Warn about unknown options
26976 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
26977 for pgac_arg in $pgac_args with_gnu_ld; do
26978 if test "$pgac_var" = "$pgac_arg"; then
26982 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
26983 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
26984 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}