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
745 python_additional_libs
777 ac_precious_vars='build_alias
790 # Initialize some variables set by options.
792 ac_init_version=false
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
802 program_transform_name=s,x,x,
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 # Accept the important Cygnus configure options, so we can diagnose typos.
854 case $ac_dashdash$ac_option in
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
876 cache_file=config.cache ;;
878 -datadir | --datadir | --datadi | --datad)
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
890 -disable-* | --disable-*)
891 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
894 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
895 { (exit 1); exit 1; }; }
896 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
897 eval enable_$ac_feature=no ;;
899 -docdir | --docdir | --docdi | --doc | --do)
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 -enable-* | --enable-*)
910 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
913 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
914 { (exit 1); exit 1; }; }
915 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
916 eval enable_$ac_feature=\$ac_optarg ;;
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
931 -help | --help | --hel | --he | -h)
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 htmldir=$ac_optarg ;;
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
961 -libdir | --libdir | --libdi | --libd)
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
973 -localedir | --localedir | --localedi | --localed | --locale)
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991 # Obsolete; use --without-fp.
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1052 -psdir | --psdir | --psdi | --psd | --ps)
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 sbindir=$ac_optarg ;;
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 sharedstatedir=$ac_optarg ;;
1078 -site | --site | --sit)
1080 -site=* | --site=* | --sit=*)
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1107 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1113 eval with_$ac_package=\$ac_optarg ;;
1115 -without-* | --without-*)
1116 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 { echo "$as_me: error: invalid package name: $ac_package" >&2
1120 { (exit 1); exit 1; }; }
1121 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1122 eval with_$ac_package=no ;;
1125 # Obsolete; use --with-x.
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1142 -*) { echo "$as_me: error: unrecognized option: $ac_option
1143 Try \`$0 --help' for more information." >&2
1144 { (exit 1); exit 1; }; }
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1152 { (exit 1); exit 1; }; }
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1157 # FIXME: should be removed in autoconf 3.0.
1158 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 { echo "$as_me: error: missing argument to $ac_option" >&2
1170 { (exit 1); exit 1; }; }
1173 # Be sure to have absolute directory names.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1179 eval ac_val=\$$ac_var
1181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1185 { (exit 1); exit 1; }; }
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1193 target=$target_alias
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x; then
1197 if test "x$build_alias" = x; then
1198 cross_compiling=maybe
1199 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1200 If a cross compiler is detected then cross compile mode will be used." >&2
1201 elif test "x$build_alias" != "x$host_alias"; then
1207 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209 test "$silent" = yes && exec 6>/dev/null
1212 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213 ac_ls_di=`ls -di .` &&
1214 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215 { echo "$as_me: error: Working directory cannot be determined" >&2
1216 { (exit 1); exit 1; }; }
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 { echo "$as_me: error: pwd does not report name of working directory" >&2
1219 { (exit 1); exit 1; }; }
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$0" ||
1227 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$0" : 'X\(//\)[^/]' \| \
1229 X"$0" : 'X\(//\)$' \| \
1230 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1254 ac_srcdir_defaulted=no
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1259 { (exit 1); exit 1; }; }
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1264 { (exit 1); exit 1; }; }
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284 # Report the --help message.
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1290 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1297 Defaults for the options are specified in brackets.
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1321 For better control, use the options below.
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353 if test -n "$ac_init_help"; then
1354 case $ac_init_help in
1355 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1362 --disable-integer-datetimes
1363 disable 64-bit integer date/time support
1364 --enable-nls[=LANGUAGES]
1365 enable Native Language Support
1366 --disable-shared do not build shared libraries
1367 --disable-rpath do not embed shared library search path in
1369 --disable-spinlocks do not use spinlocks
1370 --enable-debug build with debugging symbols (-g)
1371 --enable-profiling build with profiling enabled
1372 --enable-coverage build with coverage testing instrumentation
1373 --enable-dtrace build with DTrace support
1374 --enable-depend turn on automatic dependency tracking
1375 --enable-cassert enable assertion checks (for debugging)
1376 --enable-thread-safety make client libraries thread-safe
1377 --enable-thread-safety-force
1378 force thread-safety despite thread test failure
1379 --disable-float4-byval disable float4 passed by value
1380 --disable-float8-byval disable float8 passed by value
1381 --disable-largefile omit support for large files
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-template=NAME override operating system template
1387 --with-includes=DIRS look for additional header files in DIRS
1388 --with-libraries=DIRS look for additional libraries in DIRS
1389 --with-libs=DIRS alternative spelling of --with-libraries
1390 --with-pgport=PORTNUM set default port number [5432]
1391 --with-blocksize=BLOCKSIZE
1392 set table block size in kB [8]
1393 --with-segsize=SEGSIZE set table segment size in GB [1]
1394 --with-wal-blocksize=BLOCKSIZE
1395 set WAL block size in kB [8]
1396 --with-wal-segsize=SEGSIZE
1397 set WAL segment size in MB [16]
1398 --with-CC=CMD set compiler (deprecated)
1399 --with-tcl build Tcl modules (PL/Tcl)
1400 --with-tclconfig=DIR tclConfig.sh is in DIR
1401 --with-perl build Perl modules (PL/Perl)
1402 --with-python build Python modules (PL/Python)
1403 --with-gssapi build with GSSAPI support
1404 --with-krb5 build with Kerberos 5 support
1405 --with-krb-srvnam=NAME default service principal name in Kerberos
1407 --with-pam build with PAM support
1408 --with-ldap build with LDAP support
1409 --with-bonjour build with Bonjour support
1410 --with-openssl build with OpenSSL support
1411 --without-readline do not use GNU Readline nor BSD Libedit for editing
1412 --with-libedit-preferred
1413 prefer BSD Libedit over GNU Readline
1414 --with-ossp-uuid use OSSP UUID library when building
1416 --with-libxml build with XML support
1417 --with-libxslt use XSLT support when building contrib/xml2
1418 --with-system-tzdata=DIR
1419 use system time zone data in DIR
1420 --without-zlib do not use Zlib
1421 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1434 location of DocBook stylesheets
1436 Use these variables to override the choices made by `configure' or to help
1437 it to find libraries and programs with nonstandard names/locations.
1439 Report bugs to <pgsql-bugs@postgresql.org>.
1444 if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447 test -d "$ac_dir" || continue
1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 ac_abs_top_builddir=$ac_pwd
1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463 # for backward compatibility:
1464 ac_top_builddir=$ac_top_build_prefix
1467 .) # We are building in place.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1491 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1497 test -n "$ac_init_help" && exit $ac_status
1498 if $ac_init_version; then
1500 PostgreSQL configure 8.4devel
1501 generated by GNU Autoconf 2.61
1503 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1504 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1508 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1512 cat >config.log <<_ACEOF
1513 This file contains any messages produced by compilers while
1514 running configure, to aid debugging if configure makes a mistake.
1516 It was created by PostgreSQL $as_me 8.4devel, which was
1517 generated by GNU Autoconf 2.61. Invocation command line was
1529 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1530 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1531 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1532 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1533 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1535 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1536 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1538 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1539 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1540 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1541 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1542 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1543 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1544 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 test -z "$as_dir" && as_dir=.
1553 echo "PATH: $as_dir"
1569 # Keep a trace of the command line.
1570 # Strip out --no-create and --no-recursion so they do not pile up.
1571 # Strip out --silent because we don't want to record it for future runs.
1572 # Also quote any args containing shell meta-characters.
1573 # Make two passes to allow for proper duplicate-argument suppression.
1577 ac_must_keep_next=false
1583 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1585 | -silent | --silent | --silen | --sile | --sil)
1588 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1591 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1593 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1594 if test $ac_must_keep_next = true; then
1595 ac_must_keep_next=false # Got value, back to normal.
1598 *=* | --config-cache | -C | -disable-* | --disable-* \
1599 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1600 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1601 | -with-* | --with-* | -without-* | --without-* | --x)
1602 case "$ac_configure_args0 " in
1603 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1606 -* ) ac_must_keep_next=true ;;
1609 ac_configure_args="$ac_configure_args '$ac_arg'"
1614 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1615 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1617 # When interrupted or exit'd, cleanup temporary files, and complete
1618 # config.log. We remove comments because anyway the quotes in there
1619 # would cause problems or look ugly.
1620 # WARNING: Use '\'' to represent an apostrophe within the trap.
1621 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1622 trap 'exit_status=$?
1623 # Save into config.log some information that might help in debugging.
1628 ## ---------------- ##
1629 ## Cache variables. ##
1630 ## ---------------- ##
1633 # The following way of writing the cache mishandles newlines in values,
1635 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1636 eval ac_val=\$$ac_var
1640 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1641 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1644 _ | IFS | as_nl) ;; #(
1645 *) $as_unset $ac_var ;;
1650 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1651 *${as_nl}ac_space=\ *)
1653 "s/'\''/'\''\\\\'\'''\''/g;
1654 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1657 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1665 ## ----------------- ##
1666 ## Output variables. ##
1667 ## ----------------- ##
1670 for ac_var in $ac_subst_vars
1672 eval ac_val=\$$ac_var
1674 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1676 echo "$ac_var='\''$ac_val'\''"
1680 if test -n "$ac_subst_files"; then
1682 ## ------------------- ##
1683 ## File substitutions. ##
1684 ## ------------------- ##
1687 for ac_var in $ac_subst_files
1689 eval ac_val=\$$ac_var
1691 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1693 echo "$ac_var='\''$ac_val'\''"
1698 if test -s confdefs.h; then
1708 test "$ac_signal" != 0 &&
1709 echo "$as_me: caught signal $ac_signal"
1710 echo "$as_me: exit $exit_status"
1712 rm -f core *.core core.conftest.* &&
1713 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1716 for ac_signal in 1 2 13 15; do
1717 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1721 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1722 rm -f -r conftest* confdefs.h
1724 # Predefined preprocessor variables.
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_NAME "$PACKAGE_NAME"
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_STRING "$PACKAGE_STRING"
1746 cat >>confdefs.h <<_ACEOF
1747 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1751 # Let the site file select an alternate cache file if it wants to.
1752 # Prefer explicitly selected file to automatically selected ones.
1753 if test -n "$CONFIG_SITE"; then
1754 set x "$CONFIG_SITE"
1755 elif test "x$prefix" != xNONE; then
1756 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1758 set x "$ac_default_prefix/share/config.site" \
1759 "$ac_default_prefix/etc/config.site"
1764 if test -r "$ac_site_file"; then
1765 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1766 echo "$as_me: loading site script $ac_site_file" >&6;}
1767 sed 's/^/| /' "$ac_site_file" >&5
1772 if test -r "$cache_file"; then
1773 # Some versions of bash will fail to source /dev/null (special
1774 # files actually), so we avoid doing that.
1775 if test -f "$cache_file"; then
1776 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1777 echo "$as_me: loading cache $cache_file" >&6;}
1779 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1780 *) . "./$cache_file";;
1784 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1785 echo "$as_me: creating cache $cache_file" >&6;}
1789 # Check that the precious variables saved in the cache have kept the same
1791 ac_cache_corrupted=false
1792 for ac_var in $ac_precious_vars; do
1793 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1794 eval ac_new_set=\$ac_env_${ac_var}_set
1795 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1796 eval ac_new_val=\$ac_env_${ac_var}_value
1797 case $ac_old_set,$ac_new_set in
1799 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1800 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1801 ac_cache_corrupted=: ;;
1803 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1804 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1805 ac_cache_corrupted=: ;;
1808 if test "x$ac_old_val" != "x$ac_new_val"; then
1809 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1810 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1811 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1812 echo "$as_me: former value: $ac_old_val" >&2;}
1813 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1814 echo "$as_me: current value: $ac_new_val" >&2;}
1815 ac_cache_corrupted=:
1818 # Pass precious variables to config.status.
1819 if test "$ac_new_set" = set; then
1821 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1822 *) ac_arg=$ac_var=$ac_new_val ;;
1824 case " $ac_configure_args " in
1825 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1826 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1830 if $ac_cache_corrupted; then
1831 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1832 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1833 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1834 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1835 { (exit 1); exit 1; }; }
1863 ac_cpp='$CPP $CPPFLAGS'
1864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874 for ac_dir in config "$srcdir"/config; do
1875 if test -f "$ac_dir/install-sh"; then
1877 ac_install_sh="$ac_aux_dir/install-sh -c"
1879 elif test -f "$ac_dir/install.sh"; then
1881 ac_install_sh="$ac_aux_dir/install.sh -c"
1883 elif test -f "$ac_dir/shtool"; then
1885 ac_install_sh="$ac_aux_dir/shtool install -c"
1889 if test -z "$ac_aux_dir"; then
1890 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1891 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1892 { (exit 1); exit 1; }; }
1895 # These three variables are undocumented and unsupported,
1896 # and are intended to be withdrawn in a future Autoconf release.
1897 # They can cause serious problems if a builder's source tree is in a directory
1898 # whose full name contains unusual characters.
1899 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1900 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1901 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1905 configure_args=$ac_configure_args
1909 cat >>confdefs.h <<_ACEOF
1910 #define PG_VERSION "$PACKAGE_VERSION"
1914 # Make sure we can run config.sub.
1915 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1916 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1917 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1918 { (exit 1); exit 1; }; }
1920 { echo "$as_me:$LINENO: checking build system type" >&5
1921 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1922 if test "${ac_cv_build+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 ac_build_alias=$build_alias
1926 test "x$ac_build_alias" = x &&
1927 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1928 test "x$ac_build_alias" = x &&
1929 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1930 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1931 { (exit 1); exit 1; }; }
1932 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1933 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1934 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1935 { (exit 1); exit 1; }; }
1938 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1939 echo "${ECHO_T}$ac_cv_build" >&6; }
1940 case $ac_cv_build in
1942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1943 echo "$as_me: error: invalid value of canonical build" >&2;}
1944 { (exit 1); exit 1; }; };;
1947 ac_save_IFS=$IFS; IFS='-'
1953 # Remember, the first character of IFS is used to create $*,
1954 # except with old shells:
1957 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1960 { echo "$as_me:$LINENO: checking host system type" >&5
1961 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1962 if test "${ac_cv_host+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 if test "x$host_alias" = x; then
1966 ac_cv_host=$ac_cv_build
1968 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1969 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1970 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1971 { (exit 1); exit 1; }; }
1975 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1976 echo "${ECHO_T}$ac_cv_host" >&6; }
1979 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1980 echo "$as_me: error: invalid value of canonical host" >&2;}
1981 { (exit 1); exit 1; }; };;
1984 ac_save_IFS=$IFS; IFS='-'
1990 # Remember, the first character of IFS is used to create $*,
1991 # except with old shells:
1994 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1999 { echo "$as_me:$LINENO: checking which template to use" >&5
2000 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
2003 pgac_args="$pgac_args with_template"
2006 # Check whether --with-template was given.
2007 if test "${with_template+set}" = set; then
2008 withval=$with_template;
2011 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2012 echo "$as_me: error: argument required for --with-template option" >&2;}
2013 { (exit 1); exit 1; }; }
2016 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2017 echo "$as_me: error: argument required for --with-template option" >&2;}
2018 { (exit 1); exit 1; }; }
2023 list) echo; ls "$srcdir/src/template"; exit;;
2024 *) if test -f "$srcdir/src/template/$with_template" ; then
2027 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2028 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2029 { (exit 1); exit 1; }; }
2038 # --with-template not given
2041 aix*) template=aix ;;
2042 bsdi*) template=bsdi ;;
2043 cygwin*) template=cygwin ;;
2044 darwin*) template=darwin ;;
2045 dgux*) template=dgux ;;
2046 freebsd*) template=freebsd ;;
2047 hpux*) template=hpux ;;
2048 irix*) template=irix ;;
2049 linux*|gnu*|k*bsd*-gnu)
2051 mingw*) template=win32 ;;
2052 netbsd*) template=netbsd ;;
2053 nextstep*) template=nextstep ;;
2054 openbsd*) template=openbsd ;;
2055 osf*) template=osf ;;
2056 sco*) template=sco ;;
2057 solaris*) template=solaris ;;
2058 sunos*) template=sunos4 ;;
2060 case $host_vendor in
2061 univel) template=univel ;;
2063 sysv4*) template=svr4 ;;
2064 sysv5*) template=unixware ;;
2065 ultrix*) template=ultrix4 ;;
2068 if test x"$template" = x"" ; then
2069 { { echo "$as_me:$LINENO: error:
2070 *******************************************************************
2071 PostgreSQL has apparently not been ported to your platform yet.
2072 To try a manual configuration, look into the src/template directory
2073 for a similar platform and use the '--with-template=' option.
2075 Please also contact <pgsql-ports@postgresql.org> to see about
2076 rectifying this. Include the above 'checking host system type...'
2078 *******************************************************************
2080 echo "$as_me: error:
2081 *******************************************************************
2082 PostgreSQL has apparently not been ported to your platform yet.
2083 To try a manual configuration, look into the src/template directory
2084 for a similar platform and use the '--with-template=' option.
2086 Please also contact <pgsql-ports@postgresql.org> to see about
2087 rectifying this. Include the above 'checking host system type...'
2089 *******************************************************************
2091 { (exit 1); exit 1; }; }
2099 { echo "$as_me:$LINENO: result: $template" >&5
2100 echo "${ECHO_T}$template" >&6; }
2105 # Initialize default assumption that we do not need separate assembly code
2106 # for TAS (test-and-set). This can be overridden by the template file
2107 # when it's executed.
2114 ## Command line options
2118 # Add non-standard directories to the include path
2121 pgac_args="$pgac_args with_includes"
2124 # Check whether --with-includes was given.
2125 if test "${with_includes+set}" = set; then
2126 withval=$with_includes;
2129 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2130 echo "$as_me: error: argument required for --with-includes option" >&2;}
2131 { (exit 1); exit 1; }; }
2134 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2135 echo "$as_me: error: argument required for --with-includes option" >&2;}
2136 { (exit 1); exit 1; }; }
2149 # Add non-standard directories to the library search path
2152 pgac_args="$pgac_args with_libraries"
2155 # Check whether --with-libraries was given.
2156 if test "${with_libraries+set}" = set; then
2157 withval=$with_libraries;
2160 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2161 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2162 { (exit 1); exit 1; }; }
2165 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2166 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2167 { (exit 1); exit 1; }; }
2170 LIBRARY_DIRS=$withval
2179 pgac_args="$pgac_args with_libs"
2182 # Check whether --with-libs was given.
2183 if test "${with_libs+set}" = set; then
2187 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2188 echo "$as_me: error: argument required for --with-libs option" >&2;}
2189 { (exit 1); exit 1; }; }
2192 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2193 echo "$as_me: error: argument required for --with-libs option" >&2;}
2194 { (exit 1); exit 1; }; }
2197 LIBRARY_DIRS=$withval
2207 # 64-bit integer date/time storage: enabled by default.
2209 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2210 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2212 pgac_args="$pgac_args enable_integer_datetimes"
2214 # Check whether --enable-integer-datetimes was given.
2215 if test "${enable_integer_datetimes+set}" = set; then
2216 enableval=$enable_integer_datetimes;
2220 cat >>confdefs.h <<\_ACEOF
2221 #define USE_INTEGER_DATETIMES 1
2229 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2230 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2231 { (exit 1); exit 1; }; }
2236 enable_integer_datetimes=yes
2238 cat >>confdefs.h <<\_ACEOF
2239 #define USE_INTEGER_DATETIMES 1
2245 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2246 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2252 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2253 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2255 pgac_args="$pgac_args enable_nls"
2257 # Check whether --enable-nls was given.
2258 if test "${enable_nls+set}" = set; then
2259 enableval=$enable_nls;
2269 WANTED_LANGUAGES=$enableval
2279 if test "$enable_nls" = yes; then
2281 cat >>confdefs.h <<\_ACEOF
2282 #define ENABLE_NLS 1
2287 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2288 echo "${ECHO_T}$enable_nls" >&6; }
2293 # Default port number (--with-pgport), default 5432
2295 { echo "$as_me:$LINENO: checking for default port number" >&5
2296 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2298 pgac_args="$pgac_args with_pgport"
2301 # Check whether --with-pgport was given.
2302 if test "${with_pgport+set}" = set; then
2303 withval=$with_pgport;
2306 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2307 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2308 { (exit 1); exit 1; }; }
2311 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2312 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2313 { (exit 1); exit 1; }; }
2316 default_port=$withval
2325 { echo "$as_me:$LINENO: result: $default_port" >&5
2326 echo "${ECHO_T}$default_port" >&6; }
2327 # Need both of these because some places want an integer and some a string
2329 cat >>confdefs.h <<_ACEOF
2330 #define DEF_PGPORT ${default_port}
2334 cat >>confdefs.h <<_ACEOF
2335 #define DEF_PGPORT_STR "${default_port}"
2341 # Option to disable shared libraries
2344 pgac_args="$pgac_args enable_shared"
2346 # Check whether --enable-shared was given.
2347 if test "${enable_shared+set}" = set; then
2348 enableval=$enable_shared;
2357 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2358 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2359 { (exit 1); exit 1; }; }
2372 # '-rpath'-like feature can be disabled
2375 pgac_args="$pgac_args enable_rpath"
2377 # Check whether --enable-rpath was given.
2378 if test "${enable_rpath+set}" = set; then
2379 enableval=$enable_rpath;
2388 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2389 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2390 { (exit 1); exit 1; }; }
2406 pgac_args="$pgac_args enable_spinlocks"
2408 # Check whether --enable-spinlocks was given.
2409 if test "${enable_spinlocks+set}" = set; then
2410 enableval=$enable_spinlocks;
2419 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2420 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2421 { (exit 1); exit 1; }; }
2426 enable_spinlocks=yes
2433 # --enable-debug adds -g to compiler flags
2436 pgac_args="$pgac_args enable_debug"
2438 # Check whether --enable-debug was given.
2439 if test "${enable_debug+set}" = set; then
2440 enableval=$enable_debug;
2449 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2450 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2451 { (exit 1); exit 1; }; }
2464 # --enable-profiling enables gcc profiling
2467 pgac_args="$pgac_args enable_profiling"
2469 # Check whether --enable-profiling was given.
2470 if test "${enable_profiling+set}" = set; then
2471 enableval=$enable_profiling;
2480 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2481 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2482 { (exit 1); exit 1; }; }
2495 # --enable-coverage enables generation of code coverage metrics with gcov
2498 pgac_args="$pgac_args enable_coverage"
2500 # Check whether --enable-coverage was given.
2501 if test "${enable_coverage+set}" = set; then
2502 enableval=$enable_coverage;
2507 # Extract the first word of "$ac_prog", so it can be a program name with args.
2508 set dummy $ac_prog; ac_word=$2
2509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_GCOV+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 if test -n "$GCOV"; then
2515 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 ac_cv_prog_GCOV="$ac_prog"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 GCOV=$ac_cv_prog_GCOV
2535 if test -n "$GCOV"; then
2536 { echo "$as_me:$LINENO: result: $GCOV" >&5
2537 echo "${ECHO_T}$GCOV" >&6; }
2539 { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2544 test -n "$GCOV" && break
2547 if test -z "$GCOV"; then
2548 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2549 echo "$as_me: error: gcov not found" >&2;}
2550 { (exit 1); exit 1; }; }
2554 # Extract the first word of "$ac_prog", so it can be a program name with args.
2555 set dummy $ac_prog; ac_word=$2
2556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_LCOV+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 if test -n "$LCOV"; then
2562 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_LCOV="$ac_prog"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 LCOV=$ac_cv_prog_LCOV
2582 if test -n "$LCOV"; then
2583 { echo "$as_me:$LINENO: result: $LCOV" >&5
2584 echo "${ECHO_T}$LCOV" >&6; }
2586 { echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6; }
2591 test -n "$LCOV" && break
2594 if test -z "$LCOV"; then
2595 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2596 echo "$as_me: error: lcov not found" >&2;}
2597 { (exit 1); exit 1; }; }
2599 for ac_prog in genhtml
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_GENHTML+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 if test -n "$GENHTML"; then
2609 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_GENHTML="$ac_prog"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 GENHTML=$ac_cv_prog_GENHTML
2629 if test -n "$GENHTML"; then
2630 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2631 echo "${ECHO_T}$GENHTML" >&6; }
2633 { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2638 test -n "$GENHTML" && break
2641 if test -z "$GENHTML"; then
2642 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2643 echo "$as_me: error: genhtml not found" >&2;}
2644 { (exit 1); exit 1; }; }
2651 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2652 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2653 { (exit 1); exit 1; }; }
2669 pgac_args="$pgac_args enable_dtrace"
2671 # Check whether --enable-dtrace was given.
2672 if test "${enable_dtrace+set}" = set; then
2673 enableval=$enable_dtrace;
2677 cat >>confdefs.h <<\_ACEOF
2678 #define ENABLE_DTRACE 1
2681 for ac_prog in dtrace
2683 # Extract the first word of "$ac_prog", so it can be a program name with args.
2684 set dummy $ac_prog; ac_word=$2
2685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2687 if test "${ac_cv_prog_DTRACE+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 if test -n "$DTRACE"; then
2691 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_DTRACE="$ac_prog"
2701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 DTRACE=$ac_cv_prog_DTRACE
2711 if test -n "$DTRACE"; then
2712 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2713 echo "${ECHO_T}$DTRACE" >&6; }
2715 { echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6; }
2720 test -n "$DTRACE" && break
2723 if test -z "$DTRACE"; then
2724 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2725 echo "$as_me: error: dtrace not found" >&2;}
2726 { (exit 1); exit 1; }; }
2734 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2735 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2736 { (exit 1); exit 1; }; }
2751 { echo "$as_me:$LINENO: checking for block size" >&5
2752 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2754 pgac_args="$pgac_args with_blocksize"
2757 # Check whether --with-blocksize was given.
2758 if test "${with_blocksize+set}" = set; then
2759 withval=$with_blocksize;
2762 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2763 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2764 { (exit 1); exit 1; }; }
2767 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2768 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2769 { (exit 1); exit 1; }; }
2781 case ${blocksize} in
2788 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2789 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2790 { (exit 1); exit 1; }; }
2792 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2793 echo "${ECHO_T}${blocksize}kB" >&6; }
2796 cat >>confdefs.h <<_ACEOF
2797 #define BLCKSZ ${BLCKSZ}
2802 # Relation segment size
2804 { echo "$as_me:$LINENO: checking for segment size" >&5
2805 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2807 pgac_args="$pgac_args with_segsize"
2810 # Check whether --with-segsize was given.
2811 if test "${with_segsize+set}" = set; then
2812 withval=$with_segsize;
2815 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2816 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2817 { (exit 1); exit 1; }; }
2820 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2821 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2822 { (exit 1); exit 1; }; }
2834 # this expression is set up to avoid unnecessary integer overflow
2835 # blocksize is already guaranteed to be a factor of 1024
2836 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2837 test $? -eq 0 || exit 1
2838 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2839 echo "${ECHO_T}${segsize}GB" >&6; }
2842 cat >>confdefs.h <<_ACEOF
2843 #define RELSEG_SIZE ${RELSEG_SIZE}
2850 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2851 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2853 pgac_args="$pgac_args with_wal_blocksize"
2856 # Check whether --with-wal-blocksize was given.
2857 if test "${with_wal_blocksize+set}" = set; then
2858 withval=$with_wal_blocksize;
2861 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2862 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2863 { (exit 1); exit 1; }; }
2866 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2867 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2868 { (exit 1); exit 1; }; }
2871 wal_blocksize=$withval
2880 case ${wal_blocksize} in
2881 1) XLOG_BLCKSZ=1024;;
2882 2) XLOG_BLCKSZ=2048;;
2883 4) XLOG_BLCKSZ=4096;;
2884 8) XLOG_BLCKSZ=8192;;
2885 16) XLOG_BLCKSZ=16384;;
2886 32) XLOG_BLCKSZ=32768;;
2887 64) XLOG_BLCKSZ=65536;;
2888 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2889 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2890 { (exit 1); exit 1; }; }
2892 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2893 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2896 cat >>confdefs.h <<_ACEOF
2897 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2904 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2905 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2907 pgac_args="$pgac_args with_wal_segsize"
2910 # Check whether --with-wal-segsize was given.
2911 if test "${with_wal_segsize+set}" = set; then
2912 withval=$with_wal_segsize;
2915 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2916 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2917 { (exit 1); exit 1; }; }
2920 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2921 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2922 { (exit 1); exit 1; }; }
2925 wal_segsize=$withval
2934 case ${wal_segsize} in
2942 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2943 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2944 { (exit 1); exit 1; }; }
2946 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2947 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2950 cat >>confdefs.h <<_ACEOF
2951 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2959 # For historical reasons you can also use --with-CC to specify the C compiler
2960 # to use, although the standard way to do this is to set the CC environment
2963 pgac_args="$pgac_args with_CC"
2966 # Check whether --with-CC was given.
2967 if test "${with_CC+set}" = set; then
2971 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2972 echo "$as_me: error: argument required for --with-CC option" >&2;}
2973 { (exit 1); exit 1; }; }
2976 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2977 echo "$as_me: error: argument required for --with-CC option" >&2;}
2978 { (exit 1); exit 1; }; }
2990 aix) pgac_cc_list="gcc xlc";;
2991 irix) pgac_cc_list="cc";; # no gcc
2992 *) pgac_cc_list="gcc cc";;
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if test -n "$ac_tool_prefix"; then
3001 for ac_prog in $pgac_cc_list
3003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 if test -n "$CC"; then
3032 { echo "$as_me:$LINENO: result: $CC" >&5
3033 echo "${ECHO_T}$CC" >&6; }
3035 { echo "$as_me:$LINENO: result: no" >&5
3036 echo "${ECHO_T}no" >&6; }
3040 test -n "$CC" && break
3043 if test -z "$CC"; then
3045 for ac_prog in $pgac_cc_list
3047 # Extract the first word of "$ac_prog", so it can be a program name with args.
3048 set dummy $ac_prog; ac_word=$2
3049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 if test -n "$ac_ct_CC"; then
3055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_ac_ct_CC="$ac_prog"
3065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3075 if test -n "$ac_ct_CC"; then
3076 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3077 echo "${ECHO_T}$ac_ct_CC" >&6; }
3079 { echo "$as_me:$LINENO: result: no" >&5
3080 echo "${ECHO_T}no" >&6; }
3084 test -n "$ac_ct_CC" && break
3087 if test "x$ac_ct_CC" = x; then
3090 case $cross_compiling:$ac_tool_warned in
3092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3093 whose name does not start with the host triplet. If you think this
3094 configuration is useful to you, please write to autoconf@gnu.org." >&5
3095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3096 whose name does not start with the host triplet. If you think this
3097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3098 ac_tool_warned=yes ;;
3105 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3106 See \`config.log' for more details." >&5
3107 echo "$as_me: error: no acceptable C compiler found in \$PATH
3108 See \`config.log' for more details." >&2;}
3109 { (exit 1); exit 1; }; }
3111 # Provide some information about the compiler.
3112 echo "$as_me:$LINENO: checking for C compiler version" >&5
3113 ac_compiler=`set X $ac_compile; echo $2`
3114 { (ac_try="$ac_compiler --version >&5"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compiler --version >&5") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }
3124 { (ac_try="$ac_compiler -v >&5"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compiler -v >&5") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }
3134 { (ac_try="$ac_compiler -V >&5"
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compiler -V >&5") 2>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }
3145 cat >conftest.$ac_ext <<_ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3160 ac_clean_files_save=$ac_clean_files
3161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3162 # Try to create an executable without -o first, disregard a.out.
3163 # It will help us diagnose broken compilers, and finding out an intuition
3165 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3169 # List of possible output files, starting from the most likely.
3170 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3171 # only as a last resort. b.out is created by i960 compilers.
3172 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3174 # The IRIX 6 linker writes into existing files which may not be
3175 # executable, retaining their permissions. Remove them first so a
3176 # subsequent execution test works.
3178 for ac_file in $ac_files
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3182 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3187 if { (ac_try="$ac_link_default"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_link_default") 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3199 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3200 # so that the user can short-circuit this test for compilers unknown to
3202 for ac_file in $ac_files ''
3204 test -f "$ac_file" || continue
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3209 # We found the default executable, but exeext='' is most
3213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217 # We set ac_cv_exeext here because the later test for it is not
3218 # safe: cross compilers may not add the suffix if given an `-o'
3219 # argument, so we may need to know it at that point already.
3220 # Even if this section looks crufty: it has the advantage of
3227 test "$ac_cv_exeext" = no && ac_cv_exeext=
3233 { echo "$as_me:$LINENO: result: $ac_file" >&5
3234 echo "${ECHO_T}$ac_file" >&6; }
3235 if test -z "$ac_file"; then
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3239 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3240 See \`config.log' for more details." >&5
3241 echo "$as_me: error: C compiler cannot create executables
3242 See \`config.log' for more details." >&2;}
3243 { (exit 77); exit 77; }; }
3246 ac_exeext=$ac_cv_exeext
3248 # Check that the compiler produces executables we can run. If not, either
3249 # the compiler is broken, or we cross compile.
3250 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3251 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3252 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3253 # If not cross compiling, check that we can run a simple program.
3254 if test "$cross_compiling" != yes; then
3255 if { ac_try='./$ac_file'
3256 { (case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_try") 2>&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; }; then
3267 if test "$cross_compiling" = maybe; then
3270 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3271 If you meant to cross compile, use \`--host'.
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: cannot run C compiled programs.
3274 If you meant to cross compile, use \`--host'.
3275 See \`config.log' for more details." >&2;}
3276 { (exit 1); exit 1; }; }
3280 { echo "$as_me:$LINENO: result: yes" >&5
3281 echo "${ECHO_T}yes" >&6; }
3283 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3284 ac_clean_files=$ac_clean_files_save
3285 # Check that the compiler produces executables we can run. If not, either
3286 # the compiler is broken, or we cross compile.
3287 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3288 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3289 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3290 echo "${ECHO_T}$cross_compiling" >&6; }
3292 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3293 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3294 if { (ac_try="$ac_link"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_link") 2>&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; then
3304 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3305 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3306 # work properly (i.e., refer to `conftest.exe'), while it won't with
3308 for ac_file in conftest.exe conftest conftest.*; do
3309 test -f "$ac_file" || continue
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3319 See \`config.log' for more details." >&5
3320 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3321 See \`config.log' for more details." >&2;}
3322 { (exit 1); exit 1; }; }
3325 rm -f conftest$ac_cv_exeext
3326 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3327 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3329 rm -f conftest.$ac_ext
3330 EXEEXT=$ac_cv_exeext
3332 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3333 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3334 if test "${ac_cv_objext+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
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.o conftest.obj
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>&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; then
3363 for ac_file in conftest.o conftest.obj conftest.*; do
3364 test -f "$ac_file" || continue;
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3367 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3376 See \`config.log' for more details." >&5
3377 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3378 See \`config.log' for more details." >&2;}
3379 { (exit 1); exit 1; }; }
3382 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3384 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3385 echo "${ECHO_T}$ac_cv_objext" >&6; }
3386 OBJEXT=$ac_cv_objext
3388 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3389 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3390 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 cat >conftest.$ac_ext <<_ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3411 rm -f conftest.$ac_objext
3412 if { (ac_try="$ac_compile"
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_compile") 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } && {
3425 test -z "$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3427 } && test -s conftest.$ac_objext; then
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3440 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3441 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3442 GCC=`test $ac_compiler_gnu = yes && echo yes`
3443 ac_test_CFLAGS=${CFLAGS+set}
3444 ac_save_CFLAGS=$CFLAGS
3445 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3446 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3447 if test "${ac_cv_prog_cc_g+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 ac_save_c_werror_flag=$ac_c_werror_flag
3451 ac_c_werror_flag=yes
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3469 rm -f conftest.$ac_objext
3470 if { (ac_try="$ac_compile"
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_compile") 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && {
3483 test -z "$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 } && test -s conftest.$ac_objext; then
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3492 cat >conftest.$ac_ext <<_ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3507 rm -f conftest.$ac_objext
3508 if { (ac_try="$ac_compile"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_compile") 2>conftest.er1
3516 grep -v '^ *+' conftest.er1 >conftest.err
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } && {
3521 test -z "$ac_c_werror_flag" ||
3522 test ! -s conftest.err
3523 } && test -s conftest.$ac_objext; then
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 ac_c_werror_flag=$ac_save_c_werror_flag
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
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
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_c_werror_flag=$ac_save_c_werror_flag
3580 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3581 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3582 if test "$ac_test_CFLAGS" = set; then
3583 CFLAGS=$ac_save_CFLAGS
3584 elif test $ac_cv_prog_cc_g = yes; then
3585 if test "$GCC" = yes; then
3591 if test "$GCC" = yes; then
3597 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3598 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3599 if test "${ac_cv_prog_cc_c89+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 ac_cv_prog_cc_c89=no
3604 cat >conftest.$ac_ext <<_ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3612 #include <sys/types.h>
3613 #include <sys/stat.h>
3614 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3615 struct buf { int x; };
3616 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3617 static char *e (p, i)
3623 static char *f (char * (*g) (char **, int), char **p, ...)
3628 s = g (p, va_arg (v,int));
3633 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3634 function prototypes and stuff, but not '\xHH' hex character constants.
3635 These don't provoke an error unfortunately, instead are silently treated
3636 as 'x'. The following induces an error, until -std is added to get
3637 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3638 array size at least. It's necessary to write '\x00'==0 to get something
3639 that's true only with -std. */
3640 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3642 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3643 inside strings and character constants. */
3645 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3647 int test (int i, double x);
3648 struct s1 {int (*f) (int a);};
3649 struct s2 {int (*f) (double a);};
3650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3656 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3661 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3662 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3664 CC="$ac_save_CC $ac_arg"
3665 rm -f conftest.$ac_objext
3666 if { (ac_try="$ac_compile"
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_compile") 2>conftest.er1
3674 grep -v '^ *+' conftest.er1 >conftest.err
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } && {
3679 test -z "$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3681 } && test -s conftest.$ac_objext; then
3682 ac_cv_prog_cc_c89=$ac_arg
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3690 rm -f core conftest.err conftest.$ac_objext
3691 test "x$ac_cv_prog_cc_c89" != "xno" && break
3693 rm -f conftest.$ac_ext
3698 case "x$ac_cv_prog_cc_c89" in
3700 { echo "$as_me:$LINENO: result: none needed" >&5
3701 echo "${ECHO_T}none needed" >&6; } ;;
3703 { echo "$as_me:$LINENO: result: unsupported" >&5
3704 echo "${ECHO_T}unsupported" >&6; } ;;
3706 CC="$CC $ac_cv_prog_cc_c89"
3707 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3708 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3720 # but has idiosyncrasies of its own. We assume icc will define
3721 # __INTEL_COMPILER regardless of CFLAGS.
3723 cat >conftest.$ac_ext <<_ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3733 #ifndef __INTEL_COMPILER
3740 rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compile") 2>conftest.er1
3749 grep -v '^ *+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && {
3754 test -z "$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 } && test -s conftest.$ac_objext; then
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 # Check if it's Sun Studio compiler. We assume that
3768 # __SUNPRO_C will be defined for Sun Studio compilers
3769 cat >conftest.$ac_ext <<_ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3786 rm -f conftest.$ac_objext
3787 if { (ac_try="$ac_compile"
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793 (eval "$ac_compile") 2>conftest.er1
3795 grep -v '^ *+' conftest.er1 >conftest.err
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } && {
3800 test -z "$ac_c_werror_flag" ||
3801 test ! -s conftest.err
3802 } && test -s conftest.$ac_objext; then
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 . "$srcdir/src/template/$template" || exit
3822 # CFLAGS are selected so:
3823 # If the user specifies something in the environment, that is used.
3824 # else: If the template file set something, that is used.
3825 # else: If coverage was enabled, don't set anything.
3826 # else: If the compiler is GCC, then we use -O2.
3827 # else: If the compiler is something else, then we use -O.
3829 if test "$ac_env_CFLAGS_set" = set; then
3830 CFLAGS=$ac_env_CFLAGS_value
3831 elif test "${CFLAGS+set}" = set; then
3832 : # (keep what template set)
3833 elif test "$enable_coverage" = yes; then
3834 : # no optimization by default
3835 elif test "$GCC" = yes; then
3838 # if the user selected debug mode, don't use -O
3839 if test "$enable_debug" != yes; then
3844 # Some versions of GCC support some additional useful warning flags.
3845 # Check whether they are supported, and add them to CFLAGS if so.
3846 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3848 if test "$GCC" = yes -a "$ICC" = no; then
3849 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3850 # These work in some but not all gcc versions
3851 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3852 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3853 pgac_save_CFLAGS=$CFLAGS
3854 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3870 rm -f conftest.$ac_objext
3871 if { (ac_try="$ac_compile"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_compile") 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && {
3884 test -z "$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 } && test -s conftest.$ac_objext; then
3887 { echo "$as_me:$LINENO: result: yes" >&5
3888 echo "${ECHO_T}yes" >&6; }
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 CFLAGS="$pgac_save_CFLAGS"
3894 { echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6; }
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3901 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3902 pgac_save_CFLAGS=$CFLAGS
3903 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3919 rm -f conftest.$ac_objext
3920 if { (ac_try="$ac_compile"
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_compile") 2>conftest.er1
3928 grep -v '^ *+' conftest.er1 >conftest.err
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && {
3933 test -z "$ac_c_werror_flag" ||
3934 test ! -s conftest.err
3935 } && test -s conftest.$ac_objext; then
3936 { echo "$as_me:$LINENO: result: yes" >&5
3937 echo "${ECHO_T}yes" >&6; }
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 CFLAGS="$pgac_save_CFLAGS"
3943 { echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6; }
3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 # Disable strict-aliasing rules; needed for gcc 3.3+
3950 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3951 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3952 pgac_save_CFLAGS=$CFLAGS
3953 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3954 cat >conftest.$ac_ext <<_ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3969 rm -f conftest.$ac_objext
3970 if { (ac_try="$ac_compile"
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_compile") 2>conftest.er1
3978 grep -v '^ *+' conftest.er1 >conftest.err
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } && {
3983 test -z "$ac_c_werror_flag" ||
3984 test ! -s conftest.err
3985 } && test -s conftest.$ac_objext; then
3986 { echo "$as_me:$LINENO: result: yes" >&5
3987 echo "${ECHO_T}yes" >&6; }
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 CFLAGS="$pgac_save_CFLAGS"
3993 { echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6; }
3997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4000 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4001 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
4002 pgac_save_CFLAGS=$CFLAGS
4003 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4004 cat >conftest.$ac_ext <<_ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4019 rm -f conftest.$ac_objext
4020 if { (ac_try="$ac_compile"
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026 (eval "$ac_compile") 2>conftest.er1
4028 grep -v '^ *+' conftest.er1 >conftest.err
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } && {
4033 test -z "$ac_c_werror_flag" ||
4034 test ! -s conftest.err
4035 } && test -s conftest.$ac_objext; then
4036 { echo "$as_me:$LINENO: result: yes" >&5
4037 echo "${ECHO_T}yes" >&6; }
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 CFLAGS="$pgac_save_CFLAGS"
4043 { echo "$as_me:$LINENO: result: no" >&5
4044 echo "${ECHO_T}no" >&6; }
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 elif test "$ICC" = yes; then
4050 # Intel's compiler has a bug/misoptimization in checking for
4051 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4052 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4053 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4054 pgac_save_CFLAGS=$CFLAGS
4055 CFLAGS="$pgac_save_CFLAGS -mp1"
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4071 rm -f conftest.$ac_objext
4072 if { (ac_try="$ac_compile"
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_compile") 2>conftest.er1
4080 grep -v '^ *+' conftest.er1 >conftest.err
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } && {
4085 test -z "$ac_c_werror_flag" ||
4086 test ! -s conftest.err
4087 } && test -s conftest.$ac_objext; then
4088 { echo "$as_me:$LINENO: result: yes" >&5
4089 echo "${ECHO_T}yes" >&6; }
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4094 CFLAGS="$pgac_save_CFLAGS"
4095 { echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6; }
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 # Make sure strict aliasing is off (though this is said to be the default)
4102 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4103 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4104 pgac_save_CFLAGS=$CFLAGS
4105 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4106 cat >conftest.$ac_ext <<_ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4130 grep -v '^ *+' conftest.er1 >conftest.err
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } && {
4135 test -z "$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4137 } && test -s conftest.$ac_objext; then
4138 { echo "$as_me:$LINENO: result: yes" >&5
4139 echo "${ECHO_T}yes" >&6; }
4141 echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4144 CFLAGS="$pgac_save_CFLAGS"
4145 { echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6; }
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 elif test x"${CC}" = x"xlc"; then
4152 # AIX xlc has to have strict aliasing turned off too
4153 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4154 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4155 pgac_save_CFLAGS=$CFLAGS
4156 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4157 cat >conftest.$ac_ext <<_ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_compile") 2>conftest.er1
4181 grep -v '^ *+' conftest.er1 >conftest.err
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } && {
4186 test -z "$ac_c_werror_flag" ||
4187 test ! -s conftest.err
4188 } && test -s conftest.$ac_objext; then
4189 { echo "$as_me:$LINENO: result: yes" >&5
4190 echo "${ECHO_T}yes" >&6; }
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 CFLAGS="$pgac_save_CFLAGS"
4196 { echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6; }
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 # supply -g if --enable-debug
4205 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4209 # enable code coverage if --enable-coverage
4210 if test "$enable_coverage" = yes; then
4211 if test "$GCC" = yes; then
4212 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4214 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4215 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4216 { (exit 1); exit 1; }; }
4220 # enable profiling if --enable-profiling
4221 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4222 if test "$GCC" = yes; then
4224 cat >>confdefs.h <<\_ACEOF
4225 #define PROFILE_PID_DIR 1
4228 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4230 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4231 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4232 { (exit 1); exit 1; }; }
4236 # We already have this in Makefile.win32, but configure needs it too
4237 if test "$PORTNAME" = "win32"; then
4238 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4241 # Check if the compiler still works with the template settings
4242 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4243 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4259 rm -f conftest.$ac_objext conftest$ac_exeext
4260 if { (ac_try="$ac_link"
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_link") 2>conftest.er1
4268 grep -v '^ *+' conftest.er1 >conftest.err
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && {
4273 test -z "$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 } && test -s conftest$ac_exeext &&
4276 $as_test_x conftest$ac_exeext; then
4277 { echo "$as_me:$LINENO: result: yes" >&5
4278 echo "${ECHO_T}yes" >&6; }
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4285 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4286 echo "$as_me: error: cannot proceed" >&2;}
4287 { (exit 1); exit 1; }; }
4290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4291 conftest$ac_exeext conftest.$ac_ext
4293 # Defend against gcc -ffast-math
4294 if test "$GCC" = yes; then
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4305 #ifdef __FAST_MATH__
4312 rm -f conftest.$ac_objext
4313 if { (ac_try="$ac_compile"
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_compile") 2>conftest.er1
4321 grep -v '^ *+' conftest.er1 >conftest.err
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && {
4326 test -z "$ac_c_werror_flag" ||
4327 test ! -s conftest.err
4328 } && test -s conftest.$ac_objext; then
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4335 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4336 { (exit 1); exit 1; }; }
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4348 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4349 # On Suns, sometimes $CPP names a directory.
4350 if test -n "$CPP" && test -d "$CPP"; then
4353 if test -z "$CPP"; then
4354 if test "${ac_cv_prog_CPP+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 # Double quotes because CPP needs to be expanded
4358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4361 for ac_c_preproc_warn_flag in '' yes
4363 # Use a header file that comes with gcc, so configuring glibc
4364 # with a fresh cross-compiler works.
4365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4366 # <limits.h> exists even on freestanding compilers.
4367 # On the NeXT, cc -E runs the code through the compiler's parser,
4368 # not just through cpp. "Syntax error" is here to catch this case.
4369 cat >conftest.$ac_ext <<_ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4376 # include <limits.h>
4378 # include <assert.h>
4382 if { (ac_try="$ac_cpp conftest.$ac_ext"
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } >/dev/null && {
4395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 # Broken: fails on valid input.
4407 rm -f conftest.err conftest.$ac_ext
4409 # OK, works on sane cases. Now check whether nonexistent headers
4410 # can be detected and how.
4411 cat >conftest.$ac_ext <<_ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 #include <ac_nonexistent.h>
4419 if { (ac_try="$ac_cpp conftest.$ac_ext"
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4427 grep -v '^ *+' conftest.er1 >conftest.err
4429 cat conftest.err >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } >/dev/null && {
4432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4435 # Broken: success on invalid input.
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 # Passes both tests.
4446 rm -f conftest.err conftest.$ac_ext
4449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4450 rm -f conftest.err conftest.$ac_ext
4451 if $ac_preproc_ok; then
4463 { echo "$as_me:$LINENO: result: $CPP" >&5
4464 echo "${ECHO_T}$CPP" >&6; }
4466 for ac_c_preproc_warn_flag in '' yes
4468 # Use a header file that comes with gcc, so configuring glibc
4469 # with a fresh cross-compiler works.
4470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4471 # <limits.h> exists even on freestanding compilers.
4472 # On the NeXT, cc -E runs the code through the compiler's parser,
4473 # not just through cpp. "Syntax error" is here to catch this case.
4474 cat >conftest.$ac_ext <<_ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4481 # include <limits.h>
4483 # include <assert.h>
4487 if { (ac_try="$ac_cpp conftest.$ac_ext"
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } >/dev/null && {
4500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 # Broken: fails on valid input.
4512 rm -f conftest.err conftest.$ac_ext
4514 # OK, works on sane cases. Now check whether nonexistent headers
4515 # can be detected and how.
4516 cat >conftest.$ac_ext <<_ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522 #include <ac_nonexistent.h>
4524 if { (ac_try="$ac_cpp conftest.$ac_ext"
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4532 grep -v '^ *+' conftest.er1 >conftest.err
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } >/dev/null && {
4537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4538 test ! -s conftest.err
4540 # Broken: success on invalid input.
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 # Passes both tests.
4551 rm -f conftest.err conftest.$ac_ext
4554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4555 rm -f conftest.err conftest.$ac_ext
4556 if $ac_preproc_ok; then
4559 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4560 See \`config.log' for more details." >&5
4561 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4562 See \`config.log' for more details." >&2;}
4563 { (exit 1); exit 1; }; }
4567 ac_cpp='$CPP $CPPFLAGS'
4568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574 # Create compiler version string
4575 if test x"$GCC" = x"yes" ; then
4576 cc_string="GCC `${CC} --version | sed q`"
4581 cat >>confdefs.h <<_ACEOF
4582 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4588 # Set up TAS assembly code if needed; the template file has now had its
4589 # chance to request this.
4591 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4594 if test "$need_tas" = yes ; then
4603 # Automatic dependency tracking
4606 pgac_args="$pgac_args enable_depend"
4608 # Check whether --enable-depend was given.
4609 if test "${enable_depend+set}" = set; then
4610 enableval=$enable_depend;
4619 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4620 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4621 { (exit 1); exit 1; }; }
4635 # Enable assert checks
4638 pgac_args="$pgac_args enable_cassert"
4640 # Check whether --enable-cassert was given.
4641 if test "${enable_cassert+set}" = set; then
4642 enableval=$enable_cassert;
4646 cat >>confdefs.h <<\_ACEOF
4647 #define USE_ASSERT_CHECKING 1
4655 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4656 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4657 { (exit 1); exit 1; }; }
4670 # Include directories
4673 IFS="${IFS}${PATH_SEPARATOR}"
4674 # SRCH_INC comes from the template file
4675 for dir in $with_includes $SRCH_INC; do
4676 if test -d "$dir"; then
4677 INCLUDES="$INCLUDES -I$dir"
4679 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4680 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4688 # Library directories
4691 IFS="${IFS}${PATH_SEPARATOR}"
4692 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4693 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4694 if test -d "$dir"; then
4695 LIBDIRS="$LIBDIRS -L$dir"
4697 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4698 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4704 # Enable thread-safe client libraries
4706 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4707 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4708 if test "$PORTNAME" != "win32"; then
4710 pgac_args="$pgac_args enable_thread_safety"
4712 # Check whether --enable-thread-safety was given.
4713 if test "${enable_thread_safety+set}" = set; then
4714 enableval=$enable_thread_safety;
4723 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4724 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4725 { (exit 1); exit 1; }; }
4730 enable_thread_safety=no
4736 # Win32 should always use threads
4738 pgac_args="$pgac_args enable_thread_safety"
4740 # Check whether --enable-thread-safety was given.
4741 if test "${enable_thread_safety+set}" = set; then
4742 enableval=$enable_thread_safety;
4751 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4752 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4753 { (exit 1); exit 1; }; }
4758 enable_thread_safety=yes
4766 pgac_args="$pgac_args enable_thread_safety_force"
4768 # Check whether --enable-thread-safety-force was given.
4769 if test "${enable_thread_safety_force+set}" = set; then
4770 enableval=$enable_thread_safety_force;
4779 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4780 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4781 { (exit 1); exit 1; }; }
4786 enable_thread_safety_force=no
4791 if test "$enable_thread_safety" = yes -o \
4792 "$enable_thread_safety_force" = yes; then
4793 enable_thread_safety="yes" # for 'force'
4795 cat >>confdefs.h <<\_ACEOF
4796 #define ENABLE_THREAD_SAFETY 1
4800 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4801 echo "${ECHO_T}$enable_thread_safety" >&6; }
4805 # Optionally build Tcl modules (PL/Tcl)
4807 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4808 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4810 pgac_args="$pgac_args with_tcl"
4813 # Check whether --with-tcl was given.
4814 if test "${with_tcl+set}" = set; then
4824 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4825 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4826 { (exit 1); exit 1; }; }
4836 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4837 echo "${ECHO_T}$with_tcl" >&6; }
4840 # We see if the path to the Tcl/Tk configuration scripts is specified.
4841 # This will override the use of tclsh to find the paths to search.
4844 pgac_args="$pgac_args with_tclconfig"
4847 # Check whether --with-tclconfig was given.
4848 if test "${with_tclconfig+set}" = set; then
4849 withval=$with_tclconfig;
4852 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4853 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4854 { (exit 1); exit 1; }; }
4857 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4858 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4859 { (exit 1); exit 1; }; }
4871 # Optionally build Perl modules (PL/Perl)
4873 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4874 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4876 pgac_args="$pgac_args with_perl"
4879 # Check whether --with-perl was given.
4880 if test "${with_perl+set}" = set; then
4890 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4891 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4892 { (exit 1); exit 1; }; }
4902 { echo "$as_me:$LINENO: result: $with_perl" >&5
4903 echo "${ECHO_T}$with_perl" >&6; }
4907 # Optionally build Python modules (PL/Python)
4909 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4910 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4912 pgac_args="$pgac_args with_python"
4915 # Check whether --with-python was given.
4916 if test "${with_python+set}" = set; then
4917 withval=$with_python;
4926 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4927 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4928 { (exit 1); exit 1; }; }
4938 { echo "$as_me:$LINENO: result: $with_python" >&5
4939 echo "${ECHO_T}$with_python" >&6; }
4945 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4946 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4948 pgac_args="$pgac_args with_gssapi"
4951 # Check whether --with-gssapi was given.
4952 if test "${with_gssapi+set}" = set; then
4953 withval=$with_gssapi;
4958 cat >>confdefs.h <<\_ACEOF
4959 #define ENABLE_GSS 1
4962 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4969 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4970 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4971 { (exit 1); exit 1; }; }
4981 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4982 echo "${ECHO_T}$with_gssapi" >&6; }
4988 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4989 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4991 pgac_args="$pgac_args with_krb5"
4994 # Check whether --with-krb5 was given.
4995 if test "${with_krb5+set}" = set; then
5001 cat >>confdefs.h <<\_ACEOF
5005 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5012 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5013 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5014 { (exit 1); exit 1; }; }
5024 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5025 echo "${ECHO_T}$with_krb5" >&6; }
5033 # Kerberos configuration parameters
5036 pgac_args="$pgac_args with_krb_srvnam"
5039 # Check whether --with-krb-srvnam was given.
5040 if test "${with_krb_srvnam+set}" = set; then
5041 withval=$with_krb_srvnam;
5044 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5045 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5046 { (exit 1); exit 1; }; }
5049 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5050 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5051 { (exit 1); exit 1; }; }
5059 with_krb_srvnam="postgres"
5064 cat >>confdefs.h <<_ACEOF
5065 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5073 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5074 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5076 pgac_args="$pgac_args with_pam"
5079 # Check whether --with-pam was given.
5080 if test "${with_pam+set}" = set; then
5085 cat >>confdefs.h <<\_ACEOF
5094 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5095 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5096 { (exit 1); exit 1; }; }
5106 { echo "$as_me:$LINENO: result: $with_pam" >&5
5107 echo "${ECHO_T}$with_pam" >&6; }
5114 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5115 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5117 pgac_args="$pgac_args with_ldap"
5120 # Check whether --with-ldap was given.
5121 if test "${with_ldap+set}" = set; then
5126 cat >>confdefs.h <<\_ACEOF
5135 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5136 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5137 { (exit 1); exit 1; }; }
5147 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5148 echo "${ECHO_T}$with_ldap" >&6; }
5155 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5156 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5158 pgac_args="$pgac_args with_bonjour"
5161 # Check whether --with-bonjour was given.
5162 if test "${with_bonjour+set}" = set; then
5163 withval=$with_bonjour;
5167 cat >>confdefs.h <<\_ACEOF
5168 #define USE_BONJOUR 1
5176 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5177 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5178 { (exit 1); exit 1; }; }
5188 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5189 echo "${ECHO_T}$with_bonjour" >&6; }
5196 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5197 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5199 pgac_args="$pgac_args with_openssl"
5202 # Check whether --with-openssl was given.
5203 if test "${with_openssl+set}" = set; then
5204 withval=$with_openssl;
5208 cat >>confdefs.h <<\_ACEOF
5217 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5218 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5219 { (exit 1); exit 1; }; }
5229 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5230 echo "${ECHO_T}$with_openssl" >&6; }
5238 pgac_args="$pgac_args with_readline"
5241 # Check whether --with-readline was given.
5242 if test "${with_readline+set}" = set; then
5243 withval=$with_readline;
5252 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5253 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5254 { (exit 1); exit 1; }; }
5264 # readline on MinGW has problems with backslashes in psql and other bugs.
5265 # This is particularly a problem with non-US code pages.
5266 # Therefore disable its use until we understand the cause. 2004-07-20
5267 if test "$PORTNAME" = "win32"; then
5268 if test "$with_readline" = yes; then
5269 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5270 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5280 pgac_args="$pgac_args with_libedit_preferred"
5283 # Check whether --with-libedit-preferred was given.
5284 if test "${with_libedit_preferred+set}" = set; then
5285 withval=$with_libedit_preferred;
5294 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5295 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5296 { (exit 1); exit 1; }; }
5301 with_libedit_preferred=no
5312 pgac_args="$pgac_args with_ossp_uuid"
5315 # Check whether --with-ossp-uuid was given.
5316 if test "${with_ossp_uuid+set}" = set; then
5317 withval=$with_ossp_uuid;
5326 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5327 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5328 { (exit 1); exit 1; }; }
5345 pgac_args="$pgac_args with_libxml"
5348 # Check whether --with-libxml was given.
5349 if test "${with_libxml+set}" = set; then
5350 withval=$with_libxml;
5354 cat >>confdefs.h <<\_ACEOF
5355 #define USE_LIBXML 1
5363 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5364 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5365 { (exit 1); exit 1; }; }
5376 if test "$with_libxml" = yes ; then
5377 for ac_prog in xml2-config
5379 # Extract the first word of "$ac_prog", so it can be a program name with args.
5380 set dummy $ac_prog; ac_word=$2
5381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5383 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 if test -n "$XML2_CONFIG"; then
5387 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_prog_XML2_CONFIG="$ac_prog"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5407 if test -n "$XML2_CONFIG"; then
5408 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5409 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5411 { echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6; }
5416 test -n "$XML2_CONFIG" && break
5419 if test -n "$XML2_CONFIG"; then
5420 for pgac_option in `$XML2_CONFIG --cflags`; do
5421 case $pgac_option in
5422 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5425 for pgac_option in `$XML2_CONFIG --libs`; do
5426 case $pgac_option in
5427 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5439 pgac_args="$pgac_args with_libxslt"
5442 # Check whether --with-libxslt was given.
5443 if test "${with_libxslt+set}" = set; then
5444 withval=$with_libxslt;
5448 cat >>confdefs.h <<\_ACEOF
5449 #define USE_LIBXSLT 1
5457 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5458 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5459 { (exit 1); exit 1; }; }
5477 pgac_args="$pgac_args with_system_tzdata"
5480 # Check whether --with-system-tzdata was given.
5481 if test "${with_system_tzdata+set}" = set; then
5482 withval=$with_system_tzdata;
5485 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5486 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5487 { (exit 1); exit 1; }; }
5490 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5491 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5492 { (exit 1); exit 1; }; }
5508 pgac_args="$pgac_args with_zlib"
5511 # Check whether --with-zlib was given.
5512 if test "${with_zlib+set}" = set; then
5522 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5523 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5524 { (exit 1); exit 1; }; }
5540 # Assume system is ELF if it predefines __ELF__ as 1,
5541 # otherwise believe host_os based default.
5543 freebsd1*|freebsd2*) elf=no;;
5544 freebsd3*|freebsd4*) elf=yes;;
5548 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5549 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5550 if test "${ac_cv_path_GREP+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 # Extract the first word of "grep ggrep" to use in msg output
5554 if test -z "$GREP"; then
5555 set dummy grep ggrep; ac_prog_name=$2
5556 if test "${ac_cv_path_GREP+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 ac_path_GREP_found=false
5560 # Loop through the user's path and test for each of PROGNAME-LIST
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5565 test -z "$as_dir" && as_dir=.
5566 for ac_prog in grep ggrep; do
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5569 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5570 # Check for GNU ac_path_GREP and select it if it is found.
5571 # Check for GNU $ac_path_GREP
5572 case `"$ac_path_GREP" --version 2>&1` in
5574 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5577 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5580 cat "conftest.in" "conftest.in" >"conftest.tmp"
5581 mv "conftest.tmp" "conftest.in"
5582 cp "conftest.in" "conftest.nl"
5583 echo 'GREP' >> "conftest.nl"
5584 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5586 ac_count=`expr $ac_count + 1`
5587 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5588 # Best one so far, save it but keep looking for a better one
5589 ac_cv_path_GREP="$ac_path_GREP"
5590 ac_path_GREP_max=$ac_count
5592 # 10*(2^10) chars as input seems more than enough
5593 test $ac_count -gt 10 && break
5595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5599 $ac_path_GREP_found && break 3
5609 GREP="$ac_cv_path_GREP"
5610 if test -z "$GREP"; then
5611 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5612 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5613 { (exit 1); exit 1; }; }
5617 ac_cv_path_GREP=$GREP
5622 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5623 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5624 GREP="$ac_cv_path_GREP"
5627 { echo "$as_me:$LINENO: checking for egrep" >&5
5628 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5629 if test "${ac_cv_path_EGREP+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5633 then ac_cv_path_EGREP="$GREP -E"
5635 # Extract the first word of "egrep" to use in msg output
5636 if test -z "$EGREP"; then
5637 set dummy egrep; ac_prog_name=$2
5638 if test "${ac_cv_path_EGREP+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 ac_path_EGREP_found=false
5642 # Loop through the user's path and test for each of PROGNAME-LIST
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5647 test -z "$as_dir" && as_dir=.
5648 for ac_prog in egrep; do
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5651 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5652 # Check for GNU ac_path_EGREP and select it if it is found.
5653 # Check for GNU $ac_path_EGREP
5654 case `"$ac_path_EGREP" --version 2>&1` in
5656 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5659 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5662 cat "conftest.in" "conftest.in" >"conftest.tmp"
5663 mv "conftest.tmp" "conftest.in"
5664 cp "conftest.in" "conftest.nl"
5665 echo 'EGREP' >> "conftest.nl"
5666 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5668 ac_count=`expr $ac_count + 1`
5669 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5670 # Best one so far, save it but keep looking for a better one
5671 ac_cv_path_EGREP="$ac_path_EGREP"
5672 ac_path_EGREP_max=$ac_count
5674 # 10*(2^10) chars as input seems more than enough
5675 test $ac_count -gt 10 && break
5677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5681 $ac_path_EGREP_found && break 3
5691 EGREP="$ac_cv_path_EGREP"
5692 if test -z "$EGREP"; then
5693 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5694 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5695 { (exit 1); exit 1; }; }
5699 ac_cv_path_EGREP=$EGREP
5705 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5706 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5707 EGREP="$ac_cv_path_EGREP"
5710 cat >conftest.$ac_ext <<_ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5722 $EGREP "yes" >/dev/null 2>&1; then
5725 if test "X$elf" = "Xyes" ; then
5739 CPPFLAGS="$CPPFLAGS $INCLUDES"
5740 LDFLAGS="$LDFLAGS $LIBDIRS"
5745 # Check whether --with-gnu-ld was given.
5746 if test "${with_gnu_ld+set}" = set; then
5747 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5753 if test "$GCC" = yes; then
5754 # Check if gcc -print-prog-name=ld gives a path.
5755 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5756 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5759 # gcc leaves a trailing carriage return which upsets mingw
5760 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5762 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5765 # Accept absolute paths.
5766 [\\/]* | [A-Za-z]:[\\/]*)
5767 re_direlt='/[^/][^/]*/\.\./'
5768 # Canonicalize the path of ld
5769 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5770 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5771 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5773 test -z "$LD" && LD="$ac_prog"
5776 # If it fails, then pretend we aren't using GCC.
5780 # If it is relative, then search for the first ld in PATH.
5784 elif test "$with_gnu_ld" = yes; then
5785 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5786 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5788 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5789 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5791 if test "${ac_cv_path_LD+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 if test -z "$LD"; then
5795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5796 for ac_dir in $PATH; do
5797 test -z "$ac_dir" && ac_dir=.
5798 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5799 ac_cv_path_LD="$ac_dir/$ac_prog"
5800 # Check to see if the program is GNU ld. I'd rather use --version,
5801 # but apparently some GNU ld's only accept -v.
5802 # Break only if it was the GNU/non-GNU ld that we prefer.
5803 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5804 test "$with_gnu_ld" != no && break
5806 test "$with_gnu_ld" != yes && break
5812 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5817 if test -n "$LD"; then
5818 { echo "$as_me:$LINENO: result: $LD" >&5
5819 echo "${ECHO_T}$LD" >&6; }
5821 { echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6; }
5824 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5825 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5826 { (exit 1); exit 1; }; }
5827 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5828 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5829 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5834 ac_cv_prog_gnu_ld=yes
5836 ac_cv_prog_gnu_ld=no
5839 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5840 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5841 with_gnu_ld=$ac_cv_prog_gnu_ld
5846 case $host_os in sysv5*)
5847 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5848 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5849 if test "${pgac_cv_prog_ld_R+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5854 cat >conftest.$ac_ext <<_ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5869 rm -f conftest.$ac_objext conftest$ac_exeext
5870 if { (ac_try="$ac_link"
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_link") 2>conftest.er1
5878 grep -v '^ *+' conftest.er1 >conftest.err
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest$ac_exeext &&
5886 $as_test_x conftest$ac_exeext; then
5887 pgac_cv_prog_ld_R=yes
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 pgac_cv_prog_ld_R=no
5895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5896 conftest$ac_exeext conftest.$ac_ext
5897 LDFLAGS=$pgac_save_LDFLAGS
5900 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5901 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5902 ld_R_works=$pgac_cv_prog_ld_R
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5910 if test "${ac_cv_prog_RANLIB+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 if test -n "$RANLIB"; then
5914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 RANLIB=$ac_cv_prog_RANLIB
5934 if test -n "$RANLIB"; then
5935 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5936 echo "${ECHO_T}$RANLIB" >&6; }
5938 { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5944 if test -z "$ac_cv_prog_RANLIB"; then
5945 ac_ct_RANLIB=$RANLIB
5946 # Extract the first word of "ranlib", so it can be a program name with args.
5947 set dummy ranlib; ac_word=$2
5948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5950 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 if test -n "$ac_ct_RANLIB"; then
5954 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5963 ac_cv_prog_ac_ct_RANLIB="ranlib"
5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5974 if test -n "$ac_ct_RANLIB"; then
5975 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5976 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5978 { echo "$as_me:$LINENO: result: no" >&5
5979 echo "${ECHO_T}no" >&6; }
5982 if test "x$ac_ct_RANLIB" = x; then
5985 case $cross_compiling:$ac_tool_warned in
5987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5988 whose name does not start with the host triplet. If you think this
5989 configuration is useful to you, please write to autoconf@gnu.org." >&5
5990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5991 whose name does not start with the host triplet. If you think this
5992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5993 ac_tool_warned=yes ;;
5995 RANLIB=$ac_ct_RANLIB
5998 RANLIB="$ac_cv_prog_RANLIB"
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}strip; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_prog_STRIP+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 if test -n "$STRIP"; then
6011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 STRIP=$ac_cv_prog_STRIP
6031 if test -n "$STRIP"; then
6032 { echo "$as_me:$LINENO: result: $STRIP" >&5
6033 echo "${ECHO_T}$STRIP" >&6; }
6035 { echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6; }
6041 if test -z "$ac_cv_prog_STRIP"; then
6043 # Extract the first word of "strip", so it can be a program name with args.
6044 set dummy strip; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 if test -n "$ac_ct_STRIP"; then
6051 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_ac_ct_STRIP="strip"
6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6071 if test -n "$ac_ct_STRIP"; then
6072 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6073 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6075 { echo "$as_me:$LINENO: result: no" >&5
6076 echo "${ECHO_T}no" >&6; }
6079 if test "x$ac_ct_STRIP" = x; then
6082 case $cross_compiling:$ac_tool_warned in
6084 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6085 whose name does not start with the host triplet. If you think this
6086 configuration is useful to you, please write to autoconf@gnu.org." >&5
6087 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6088 whose name does not start with the host triplet. If you think this
6089 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6090 ac_tool_warned=yes ;;
6095 STRIP="$ac_cv_prog_STRIP"
6099 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6100 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6101 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6102 STRIP_STATIC_LIB="$STRIP -x"
6103 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6104 { echo "$as_me:$LINENO: result: yes" >&5
6105 echo "${ECHO_T}yes" >&6; }
6109 { echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6; }
6115 if test -n "$ac_tool_prefix"; then
6116 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}ar; ac_word=$2
6118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6120 if test "${ac_cv_prog_AR+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 if test -n "$AR"; then
6124 ac_cv_prog_AR="$AR" # Let the user override the test.
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_AR="${ac_tool_prefix}ar"
6134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 if test -n "$AR"; then
6145 { echo "$as_me:$LINENO: result: $AR" >&5
6146 echo "${ECHO_T}$AR" >&6; }
6148 { echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6; }
6154 if test -z "$ac_cv_prog_AR"; then
6156 # Extract the first word of "ar", so it can be a program name with args.
6157 set dummy ar; ac_word=$2
6158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6160 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 if test -n "$ac_ct_AR"; then
6164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173 ac_cv_prog_ac_ct_AR="ar"
6174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6184 if test -n "$ac_ct_AR"; then
6185 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6186 echo "${ECHO_T}$ac_ct_AR" >&6; }
6188 { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6192 if test "x$ac_ct_AR" = x; then
6195 case $cross_compiling:$ac_tool_warned in
6197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6198 whose name does not start with the host triplet. If you think this
6199 configuration is useful to you, please write to autoconf@gnu.org." >&5
6200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6201 whose name does not start with the host triplet. If you think this
6202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6203 ac_tool_warned=yes ;;
6211 if test "$PORTNAME" = "win32"; then
6212 if test -n "$ac_tool_prefix"; then
6213 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6214 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6217 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 if test -n "$DLLTOOL"; then
6221 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 DLLTOOL=$ac_cv_prog_DLLTOOL
6241 if test -n "$DLLTOOL"; then
6242 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6243 echo "${ECHO_T}$DLLTOOL" >&6; }
6245 { echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6; }
6251 if test -z "$ac_cv_prog_DLLTOOL"; then
6252 ac_ct_DLLTOOL=$DLLTOOL
6253 # Extract the first word of "dlltool", so it can be a program name with args.
6254 set dummy dlltool; ac_word=$2
6255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6257 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 if test -n "$ac_ct_DLLTOOL"; then
6261 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6281 if test -n "$ac_ct_DLLTOOL"; then
6282 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6283 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6285 { echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6; }
6289 if test "x$ac_ct_DLLTOOL" = x; then
6292 case $cross_compiling:$ac_tool_warned in
6294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6295 whose name does not start with the host triplet. If you think this
6296 configuration is useful to you, please write to autoconf@gnu.org." >&5
6297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6298 whose name does not start with the host triplet. If you think this
6299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6300 ac_tool_warned=yes ;;
6302 DLLTOOL=$ac_ct_DLLTOOL
6305 DLLTOOL="$ac_cv_prog_DLLTOOL"
6308 if test -n "$ac_tool_prefix"; then
6309 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6310 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 if test -n "$DLLWRAP"; then
6317 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 DLLWRAP=$ac_cv_prog_DLLWRAP
6337 if test -n "$DLLWRAP"; then
6338 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6339 echo "${ECHO_T}$DLLWRAP" >&6; }
6341 { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6347 if test -z "$ac_cv_prog_DLLWRAP"; then
6348 ac_ct_DLLWRAP=$DLLWRAP
6349 # Extract the first word of "dllwrap", so it can be a program name with args.
6350 set dummy dllwrap; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 if test -n "$ac_ct_DLLWRAP"; then
6357 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6377 if test -n "$ac_ct_DLLWRAP"; then
6378 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6379 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
6381 { echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6; }
6385 if test "x$ac_ct_DLLWRAP" = x; then
6388 case $cross_compiling:$ac_tool_warned in
6390 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6391 whose name does not start with the host triplet. If you think this
6392 configuration is useful to you, please write to autoconf@gnu.org." >&5
6393 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6394 whose name does not start with the host triplet. If you think this
6395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6396 ac_tool_warned=yes ;;
6398 DLLWRAP=$ac_ct_DLLWRAP
6401 DLLWRAP="$ac_cv_prog_DLLWRAP"
6404 if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}windres; ac_word=$2
6407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409 if test "${ac_cv_prog_WINDRES+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 if test -n "$WINDRES"; then
6413 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6422 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 WINDRES=$ac_cv_prog_WINDRES
6433 if test -n "$WINDRES"; then
6434 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6435 echo "${ECHO_T}$WINDRES" >&6; }
6437 { echo "$as_me:$LINENO: result: no" >&5
6438 echo "${ECHO_T}no" >&6; }
6443 if test -z "$ac_cv_prog_WINDRES"; then
6444 ac_ct_WINDRES=$WINDRES
6445 # Extract the first word of "windres", so it can be a program name with args.
6446 set dummy windres; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 if test -n "$ac_ct_WINDRES"; then
6453 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_ac_ct_WINDRES="windres"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6473 if test -n "$ac_ct_WINDRES"; then
6474 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6475 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6477 { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6481 if test "x$ac_ct_WINDRES" = x; then
6484 case $cross_compiling:$ac_tool_warned in
6486 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6487 whose name does not start with the host triplet. If you think this
6488 configuration is useful to you, please write to autoconf@gnu.org." >&5
6489 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6490 whose name does not start with the host triplet. If you think this
6491 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6492 ac_tool_warned=yes ;;
6494 WINDRES=$ac_ct_WINDRES
6497 WINDRES="$ac_cv_prog_WINDRES"
6502 # Extract the first word of "tar", so it can be a program name with args.
6503 set dummy tar; ac_word=$2
6504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506 if test "${ac_cv_path_TAR+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 if test -n "$TAR"; then
6534 { echo "$as_me:$LINENO: result: $TAR" >&5
6535 echo "${ECHO_T}$TAR" >&6; }
6537 { echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6; }
6542 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6543 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6545 if test "$LN_S" = "ln -s"; then
6546 { echo "$as_me:$LINENO: result: yes" >&5
6547 echo "${ECHO_T}yes" >&6; }
6549 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6550 echo "${ECHO_T}no, using $LN_S" >&6; }
6553 for ac_prog in gawk mawk nawk awk
6555 # Extract the first word of "$ac_prog", so it can be a program name with args.
6556 set dummy $ac_prog; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_prog_AWK+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 if test -n "$AWK"; then
6563 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_AWK="$ac_prog"
6573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 if test -n "$AWK"; then
6584 { echo "$as_me:$LINENO: result: $AWK" >&5
6585 echo "${ECHO_T}$AWK" >&6; }
6587 { echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6; }
6592 test -n "$AWK" && break
6596 # Let the user override the search
6597 if test -z "$BISON"; then
6598 for ac_prog in bison
6600 # Extract the first word of "$ac_prog", so it can be a program name with args.
6601 set dummy $ac_prog; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_prog_BISON+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 if test -n "$BISON"; then
6608 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617 ac_cv_prog_BISON="$ac_prog"
6618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 BISON=$ac_cv_prog_BISON
6628 if test -n "$BISON"; then
6629 { echo "$as_me:$LINENO: result: $BISON" >&5
6630 echo "${ECHO_T}$BISON" >&6; }
6632 { echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6; }
6637 test -n "$BISON" && break
6642 if test "$BISON"; then
6643 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6644 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6645 echo "$as_me: using $pgac_bison_version" >&6;}
6646 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6648 { echo "$as_me:$LINENO: WARNING:
6649 *** The installed version of Bison is too old to use with PostgreSQL.
6650 *** Bison version 1.875 or later is required." >&5
6651 echo "$as_me: WARNING:
6652 *** The installed version of Bison is too old to use with PostgreSQL.
6653 *** Bison version 1.875 or later is required." >&2;}
6658 if test -z "$BISON"; then
6659 { echo "$as_me:$LINENO: WARNING:
6660 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6661 *** change any of the parser definition files. You can obtain Bison from
6662 *** a GNU mirror site. (If you are using the official distribution of
6663 *** PostgreSQL then you do not need to worry about this, because the Bison
6664 *** output is pre-generated.)" >&5
6665 echo "$as_me: WARNING:
6666 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6667 *** change any of the parser definition files. You can obtain Bison from
6668 *** a GNU mirror site. (If you are using the official distribution of
6669 *** PostgreSQL then you do not need to worry about this, because the Bison
6670 *** output is pre-generated.)" >&2;}
6672 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6675 { echo "$as_me:$LINENO: checking for flex" >&5
6676 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6677 if test "${pgac_cv_path_flex+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 # Let the user override the test
6681 if test -n "$FLEX"; then
6682 pgac_cv_path_flex=$FLEX
6686 for pgac_dir in $PATH; do
6688 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6691 for pgac_prog in flex lex; do
6692 pgac_candidate="$pgac_dir/$pgac_prog"
6693 if test -f "$pgac_candidate" \
6694 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6696 echo '%%' > conftest.l
6697 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6698 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6699 pgac_broken_flex=$pgac_candidate
6703 pgac_cv_path_flex=$pgac_candidate
6709 rm -f conftest.l lex.yy.c
6710 : ${pgac_cv_path_flex=no}
6714 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6715 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6716 if test x"$pgac_cv_path_flex" = x"no"; then
6717 if test -n "$pgac_broken_flex"; then
6718 { echo "$as_me:$LINENO: WARNING:
6719 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6720 *** should get version 2.5.4 or later." >&5
6721 echo "$as_me: WARNING:
6722 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6723 *** should get version 2.5.4 or later." >&2;}
6726 { echo "$as_me:$LINENO: WARNING:
6727 *** Without Flex you will not be able to build PostgreSQL from CVS or
6728 *** change any of the scanner definition files. You can obtain Flex from
6729 *** a GNU mirror site. (If you are using the official distribution of
6730 *** PostgreSQL then you do not need to worry about this because the Flex
6731 *** output is pre-generated.)" >&5
6732 echo "$as_me: WARNING:
6733 *** Without Flex you will not be able to build PostgreSQL from CVS or
6734 *** change any of the scanner definition files. You can obtain Flex from
6735 *** a GNU mirror site. (If you are using the official distribution of
6736 *** PostgreSQL then you do not need to worry about this because the Flex
6737 *** output is pre-generated.)" >&2;}
6741 FLEX=$pgac_cv_path_flex
6742 pgac_flex_version=`$FLEX -V 2>/dev/null`
6743 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6744 echo "$as_me: using $pgac_flex_version" >&6;}
6751 # Extract the first word of "perl", so it can be a program name with args.
6752 set dummy perl; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_PERL+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 PERL=$ac_cv_path_PERL
6782 if test -n "$PERL"; then
6783 { echo "$as_me:$LINENO: result: $PERL" >&5
6784 echo "${ECHO_T}$PERL" >&6; }
6786 { echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6; }
6791 if test "$with_perl" = yes; then
6793 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6794 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6795 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6796 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6797 echo "${ECHO_T}$perl_archlibexp" >&6; }
6798 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6799 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6800 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6801 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6802 echo "${ECHO_T}$perl_privlibexp" >&6; }
6803 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6804 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6805 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6806 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6807 echo "${ECHO_T}$perl_useshrplib" >&6; }
6809 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6810 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6811 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6812 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6813 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6814 if test -z "$perl_embed_ldflags" ; then
6815 { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6817 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6818 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6820 echo "$as_me: error: could not determine flags for linking embedded Perl.
6821 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6823 { (exit 1); exit 1; }; }
6825 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6826 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6831 if test "$with_python" = yes; then
6832 # Extract the first word of "python", so it can be a program name with args.
6833 set dummy python; ac_word=$2
6834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6836 if test "${ac_cv_path_PYTHON+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 PYTHON=$ac_cv_path_PYTHON
6863 if test -n "$PYTHON"; then
6864 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6865 echo "${ECHO_T}$PYTHON" >&6; }
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 if test x"$PYTHON" = x""; then
6873 { { echo "$as_me:$LINENO: error: Python not found" >&5
6874 echo "$as_me: error: Python not found" >&2;}
6875 { (exit 1); exit 1; }; }
6879 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6880 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6881 if "${PYTHON}" 2>&- -c 'import distutils'
6883 { echo "$as_me:$LINENO: result: yes" >&5
6884 echo "${ECHO_T}yes" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6889 echo "$as_me: error: distutils module not found" >&2;}
6890 { (exit 1); exit 1; }; }
6892 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6893 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6894 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6895 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')"`
6896 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6898 # This should be enough of a message.
6899 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6900 echo "${ECHO_T}$python_configdir" >&6; }
6903 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6904 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6906 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6907 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6908 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6909 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6911 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6913 # New way: use the official shared library
6914 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6915 python_libspec="-L${python_libdir} -l${ldlibrary}"
6917 # Old way: use libpython from python_configdir
6918 python_libdir="${python_configdir}"
6919 python_libspec="-L${python_libdir} -lpython${python_version}"
6922 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6924 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6925 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6928 # threaded python is not supported on bsd's
6929 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6930 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6931 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6932 if test "$pythreads" = "1"; then
6933 { echo "$as_me:$LINENO: result: yes" >&5
6934 echo "${ECHO_T}yes" >&6; }
6937 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6938 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6939 { (exit 1); exit 1; }; }
6943 { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6950 # Supply a numeric version string for use by 3rd party add-ons
6951 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6952 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6954 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6956 cat >>confdefs.h <<_ACEOF
6957 #define PG_VERSION_NUM $PG_VERSION_NUM
6964 ## Most libraries are included only if they demonstrably provide a function
6965 ## we need, but libm is an exception: always include it, because there are
6966 ## too many compilers that play cute optimization games that will break
6967 ## probes for standard functions such as pow().
6971 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6972 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6973 if test "${ac_cv_lib_m_main+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 ac_check_lib_save_LIBS=$LIBS
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (ac_try="$ac_link"
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_link") 2>conftest.er1
7003 grep -v '^ *+' conftest.er1 >conftest.err
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest$ac_exeext &&
7011 $as_test_x conftest$ac_exeext; then
7012 ac_cv_lib_m_main=yes
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7021 conftest$ac_exeext conftest.$ac_ext
7022 LIBS=$ac_check_lib_save_LIBS
7024 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7025 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
7026 if test $ac_cv_lib_m_main = yes; then
7027 cat >>confdefs.h <<_ACEOF
7035 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7036 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
7037 if test "${ac_cv_search_setproctitle+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 ac_func_search_save_LIBS=$LIBS
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7048 /* Override any GCC internal prototype to avoid an error.
7049 Use char because int might match the return type of a GCC
7050 builtin and then its argument prototype would still apply. */
7054 char setproctitle ();
7058 return setproctitle ();
7063 for ac_lib in '' util; do
7064 if test -z "$ac_lib"; then
7065 ac_res="none required"
7068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7070 rm -f conftest.$ac_objext conftest$ac_exeext
7071 if { (ac_try="$ac_link"
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_link") 2>conftest.er1
7079 grep -v '^ *+' conftest.er1 >conftest.err
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } && {
7084 test -z "$ac_c_werror_flag" ||
7085 test ! -s conftest.err
7086 } && test -s conftest$ac_exeext &&
7087 $as_test_x conftest$ac_exeext; then
7088 ac_cv_search_setproctitle=$ac_res
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7098 if test "${ac_cv_search_setproctitle+set}" = set; then
7102 if test "${ac_cv_search_setproctitle+set}" = set; then
7105 ac_cv_search_setproctitle=no
7108 LIBS=$ac_func_search_save_LIBS
7110 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7111 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
7112 ac_res=$ac_cv_search_setproctitle
7113 if test "$ac_res" != no; then
7114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7118 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7119 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7120 if test "${ac_cv_search_dlopen+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 ac_func_search_save_LIBS=$LIBS
7124 cat >conftest.$ac_ext <<_ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7131 /* Override any GCC internal prototype to avoid an error.
7132 Use char because int might match the return type of a GCC
7133 builtin and then its argument prototype would still apply. */
7146 for ac_lib in '' dl; do
7147 if test -z "$ac_lib"; then
7148 ac_res="none required"
7151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7153 rm -f conftest.$ac_objext conftest$ac_exeext
7154 if { (ac_try="$ac_link"
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_link") 2>conftest.er1
7162 grep -v '^ *+' conftest.er1 >conftest.err
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_c_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest$ac_exeext &&
7170 $as_test_x conftest$ac_exeext; then
7171 ac_cv_search_dlopen=$ac_res
7173 echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7181 if test "${ac_cv_search_dlopen+set}" = set; then
7185 if test "${ac_cv_search_dlopen+set}" = set; then
7188 ac_cv_search_dlopen=no
7191 LIBS=$ac_func_search_save_LIBS
7193 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7194 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7195 ac_res=$ac_cv_search_dlopen
7196 if test "$ac_res" != no; then
7197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7201 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7202 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7203 if test "${ac_cv_search_socket+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 ac_func_search_save_LIBS=$LIBS
7207 cat >conftest.$ac_ext <<_ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7214 /* Override any GCC internal prototype to avoid an error.
7215 Use char because int might match the return type of a GCC
7216 builtin and then its argument prototype would still apply. */
7229 for ac_lib in '' socket wsock32; do
7230 if test -z "$ac_lib"; then
7231 ac_res="none required"
7234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7236 rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (ac_try="$ac_link"
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243 (eval "$ac_link") 2>conftest.er1
7245 grep -v '^ *+' conftest.er1 >conftest.err
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } && {
7250 test -z "$ac_c_werror_flag" ||
7251 test ! -s conftest.err
7252 } && test -s conftest$ac_exeext &&
7253 $as_test_x conftest$ac_exeext; then
7254 ac_cv_search_socket=$ac_res
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7264 if test "${ac_cv_search_socket+set}" = set; then
7268 if test "${ac_cv_search_socket+set}" = set; then
7271 ac_cv_search_socket=no
7274 LIBS=$ac_func_search_save_LIBS
7276 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7277 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7278 ac_res=$ac_cv_search_socket
7279 if test "$ac_res" != no; then
7280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7284 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7285 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
7286 if test "${ac_cv_search_shl_load+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 ac_func_search_save_LIBS=$LIBS
7290 cat >conftest.$ac_ext <<_ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7297 /* Override any GCC internal prototype to avoid an error.
7298 Use char because int might match the return type of a GCC
7299 builtin and then its argument prototype would still apply. */
7312 for ac_lib in '' dld; do
7313 if test -z "$ac_lib"; then
7314 ac_res="none required"
7317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7319 rm -f conftest.$ac_objext conftest$ac_exeext
7320 if { (ac_try="$ac_link"
7322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323 *) ac_try_echo=$ac_try;;
7325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326 (eval "$ac_link") 2>conftest.er1
7328 grep -v '^ *+' conftest.er1 >conftest.err
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest$ac_exeext &&
7336 $as_test_x conftest$ac_exeext; then
7337 ac_cv_search_shl_load=$ac_res
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7347 if test "${ac_cv_search_shl_load+set}" = set; then
7351 if test "${ac_cv_search_shl_load+set}" = set; then
7354 ac_cv_search_shl_load=no
7357 LIBS=$ac_func_search_save_LIBS
7359 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7360 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
7361 ac_res=$ac_cv_search_shl_load
7362 if test "$ac_res" != no; then
7363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7367 # We only use libld in port/dynloader/aix.c
7370 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7371 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
7372 if test "${ac_cv_search_ldopen+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 ac_func_search_save_LIBS=$LIBS
7376 cat >conftest.$ac_ext <<_ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7383 /* Override any GCC internal prototype to avoid an error.
7384 Use char because int might match the return type of a GCC
7385 builtin and then its argument prototype would still apply. */
7398 for ac_lib in '' ld; do
7399 if test -z "$ac_lib"; then
7400 ac_res="none required"
7403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7405 rm -f conftest.$ac_objext conftest$ac_exeext
7406 if { (ac_try="$ac_link"
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_link") 2>conftest.er1
7414 grep -v '^ *+' conftest.er1 >conftest.err
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest$ac_exeext &&
7422 $as_test_x conftest$ac_exeext; then
7423 ac_cv_search_ldopen=$ac_res
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7433 if test "${ac_cv_search_ldopen+set}" = set; then
7437 if test "${ac_cv_search_ldopen+set}" = set; then
7440 ac_cv_search_ldopen=no
7443 LIBS=$ac_func_search_save_LIBS
7445 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7446 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7447 ac_res=$ac_cv_search_ldopen
7448 if test "$ac_res" != no; then
7449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7455 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7456 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7457 if test "${ac_cv_search_getopt_long+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 ac_func_search_save_LIBS=$LIBS
7461 cat >conftest.$ac_ext <<_ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7468 /* Override any GCC internal prototype to avoid an error.
7469 Use char because int might match the return type of a GCC
7470 builtin and then its argument prototype would still apply. */
7474 char getopt_long ();
7478 return getopt_long ();
7483 for ac_lib in '' getopt gnugetopt; do
7484 if test -z "$ac_lib"; then
7485 ac_res="none required"
7488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7490 rm -f conftest.$ac_objext conftest$ac_exeext
7491 if { (ac_try="$ac_link"
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_link") 2>conftest.er1
7499 grep -v '^ *+' conftest.er1 >conftest.err
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } && {
7504 test -z "$ac_c_werror_flag" ||
7505 test ! -s conftest.err
7506 } && test -s conftest$ac_exeext &&
7507 $as_test_x conftest$ac_exeext; then
7508 ac_cv_search_getopt_long=$ac_res
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7518 if test "${ac_cv_search_getopt_long+set}" = set; then
7522 if test "${ac_cv_search_getopt_long+set}" = set; then
7525 ac_cv_search_getopt_long=no
7528 LIBS=$ac_func_search_save_LIBS
7530 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7531 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7532 ac_res=$ac_cv_search_getopt_long
7533 if test "$ac_res" != no; then
7534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7538 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7539 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7540 if test "${ac_cv_search_crypt+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 ac_func_search_save_LIBS=$LIBS
7544 cat >conftest.$ac_ext <<_ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7551 /* Override any GCC internal prototype to avoid an error.
7552 Use char because int might match the return type of a GCC
7553 builtin and then its argument prototype would still apply. */
7566 for ac_lib in '' crypt; do
7567 if test -z "$ac_lib"; then
7568 ac_res="none required"
7571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7573 rm -f conftest.$ac_objext conftest$ac_exeext
7574 if { (ac_try="$ac_link"
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_link") 2>conftest.er1
7582 grep -v '^ *+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest$ac_exeext &&
7590 $as_test_x conftest$ac_exeext; then
7591 ac_cv_search_crypt=$ac_res
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7601 if test "${ac_cv_search_crypt+set}" = set; then
7605 if test "${ac_cv_search_crypt+set}" = set; then
7608 ac_cv_search_crypt=no
7611 LIBS=$ac_func_search_save_LIBS
7613 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7614 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7615 ac_res=$ac_cv_search_crypt
7616 if test "$ac_res" != no; then
7617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7622 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7623 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7624 if test "${ac_cv_search_fdatasync+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 ac_func_search_save_LIBS=$LIBS
7628 cat >conftest.$ac_ext <<_ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7635 /* Override any GCC internal prototype to avoid an error.
7636 Use char because int might match the return type of a GCC
7637 builtin and then its argument prototype would still apply. */
7645 return fdatasync ();
7650 for ac_lib in '' rt posix4; do
7651 if test -z "$ac_lib"; then
7652 ac_res="none required"
7655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7657 rm -f conftest.$ac_objext conftest$ac_exeext
7658 if { (ac_try="$ac_link"
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_link") 2>conftest.er1
7666 grep -v '^ *+' conftest.er1 >conftest.err
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest$ac_exeext &&
7674 $as_test_x conftest$ac_exeext; then
7675 ac_cv_search_fdatasync=$ac_res
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7685 if test "${ac_cv_search_fdatasync+set}" = set; then
7689 if test "${ac_cv_search_fdatasync+set}" = set; then
7692 ac_cv_search_fdatasync=no
7695 LIBS=$ac_func_search_save_LIBS
7697 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7698 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7699 ac_res=$ac_cv_search_fdatasync
7700 if test "$ac_res" != no; then
7701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7706 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7707 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7708 if test "${ac_cv_search_shmget+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 ac_func_search_save_LIBS=$LIBS
7712 cat >conftest.$ac_ext <<_ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7719 /* Override any GCC internal prototype to avoid an error.
7720 Use char because int might match the return type of a GCC
7721 builtin and then its argument prototype would still apply. */
7734 for ac_lib in '' cygipc; do
7735 if test -z "$ac_lib"; then
7736 ac_res="none required"
7739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (ac_try="$ac_link"
7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745 *) ac_try_echo=$ac_try;;
7747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748 (eval "$ac_link") 2>conftest.er1
7750 grep -v '^ *+' conftest.er1 >conftest.err
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && {
7755 test -z "$ac_c_werror_flag" ||
7756 test ! -s conftest.err
7757 } && test -s conftest$ac_exeext &&
7758 $as_test_x conftest$ac_exeext; then
7759 ac_cv_search_shmget=$ac_res
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7769 if test "${ac_cv_search_shmget+set}" = set; then
7773 if test "${ac_cv_search_shmget+set}" = set; then
7776 ac_cv_search_shmget=no
7779 LIBS=$ac_func_search_save_LIBS
7781 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7782 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7783 ac_res=$ac_cv_search_shmget
7784 if test "$ac_res" != no; then
7785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7790 if test "$with_readline" = yes; then
7793 if test "${pgac_cv_check_readline+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 pgac_cv_check_readline=no
7797 pgac_save_LIBS=$LIBS
7798 if test x"$with_libedit_preferred" != x"yes"
7799 then READLINE_ORDER="-lreadline -ledit"
7800 else READLINE_ORDER="-ledit -lreadline"
7802 for pgac_rllib in $READLINE_ORDER ; do
7803 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7804 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7805 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7806 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_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. */
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
7848 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7849 # recognize dependent libraries; assume curses is needed if we didn't
7850 # find any dependency.
7852 netbsd* | openbsd* | irix*)
7853 if test x"$pgac_lib" = x"" ; then
7854 pgac_lib=" -lcurses"
7858 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7869 conftest$ac_exeext conftest.$ac_ext
7871 if test "$pgac_cv_check_readline" != no ; then
7872 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7873 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7876 { echo "$as_me:$LINENO: result: no" >&5
7877 echo "${ECHO_T}no" >&6; }
7880 LIBS=$pgac_save_LIBS
7884 if test "$pgac_cv_check_readline" != no ; then
7885 LIBS="$pgac_cv_check_readline $LIBS"
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_LIBREADLINE 1
7894 if test x"$pgac_cv_check_readline" = x"no"; then
7895 { { echo "$as_me:$LINENO: error: readline library not found
7896 If you have readline already installed, see config.log for details on the
7897 failure. It is possible the compiler isn't looking in the proper directory.
7898 Use --without-readline to disable readline support." >&5
7899 echo "$as_me: error: readline library not found
7900 If you have readline already installed, see config.log for details on the
7901 failure. It is possible the compiler isn't looking in the proper directory.
7902 Use --without-readline to disable readline support." >&2;}
7903 { (exit 1); exit 1; }; }
7907 if test "$with_zlib" = yes; then
7909 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7910 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7911 if test "${ac_cv_lib_z_inflate+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 ac_check_lib_save_LIBS=$LIBS
7916 cat >conftest.$ac_ext <<_ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7923 /* Override any GCC internal prototype to avoid an error.
7924 Use char because int might match the return type of a GCC
7925 builtin and then its argument prototype would still apply. */
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (ac_try="$ac_link"
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_link") 2>conftest.er1
7947 grep -v '^ *+' conftest.er1 >conftest.err
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest$ac_exeext &&
7955 $as_test_x conftest$ac_exeext; then
7956 ac_cv_lib_z_inflate=yes
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 ac_cv_lib_z_inflate=no
7964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7965 conftest$ac_exeext conftest.$ac_ext
7966 LIBS=$ac_check_lib_save_LIBS
7968 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7969 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7970 if test $ac_cv_lib_z_inflate = yes; then
7971 cat >>confdefs.h <<_ACEOF
7978 { { echo "$as_me:$LINENO: error: zlib library not found
7979 If you have zlib already installed, see config.log for details on the
7980 failure. It is possible the compiler isn't looking in the proper directory.
7981 Use --without-zlib to disable zlib support." >&5
7982 echo "$as_me: error: zlib library not found
7983 If you have zlib already installed, see config.log for details on the
7984 failure. It is possible the compiler isn't looking in the proper directory.
7985 Use --without-zlib to disable zlib support." >&2;}
7986 { (exit 1); exit 1; }; }
7991 if test "$enable_spinlocks" = yes; then
7993 cat >>confdefs.h <<\_ACEOF
7994 #define HAVE_SPINLOCKS 1
7998 { echo "$as_me:$LINENO: WARNING:
7999 *** Not using spinlocks will cause poor performance." >&5
8000 echo "$as_me: WARNING:
8001 *** Not using spinlocks will cause poor performance." >&2;}
8004 if test "$with_gssapi" = yes ; then
8005 if test "$PORTNAME" != "win32"; then
8006 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8007 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8008 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 ac_func_search_save_LIBS=$LIBS
8012 cat >conftest.$ac_ext <<_ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8019 /* Override any GCC internal prototype to avoid an error.
8020 Use char because int might match the return type of a GCC
8021 builtin and then its argument prototype would still apply. */
8025 char gss_init_sec_context ();
8029 return gss_init_sec_context ();
8034 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8035 if test -z "$ac_lib"; then
8036 ac_res="none required"
8039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8041 rm -f conftest.$ac_objext conftest$ac_exeext
8042 if { (ac_try="$ac_link"
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048 (eval "$ac_link") 2>conftest.er1
8050 grep -v '^ *+' conftest.er1 >conftest.err
8052 cat conftest.err >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); } && {
8055 test -z "$ac_c_werror_flag" ||
8056 test ! -s conftest.err
8057 } && test -s conftest$ac_exeext &&
8058 $as_test_x conftest$ac_exeext; then
8059 ac_cv_search_gss_init_sec_context=$ac_res
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8069 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8073 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8076 ac_cv_search_gss_init_sec_context=no
8079 LIBS=$ac_func_search_save_LIBS
8081 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8082 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8083 ac_res=$ac_cv_search_gss_init_sec_context
8084 if test "$ac_res" != no; then
8085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8088 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8089 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8090 { (exit 1); exit 1; }; }
8094 LIBS="$LIBS -lgssapi32"
8098 if test "$with_krb5" = yes ; then
8099 if test "$PORTNAME" != "win32"; then
8100 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8101 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8102 if test "${ac_cv_search_com_err+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 ac_func_search_save_LIBS=$LIBS
8106 cat >conftest.$ac_ext <<_ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8113 /* Override any GCC internal prototype to avoid an error.
8114 Use char because int might match the return type of a GCC
8115 builtin and then its argument prototype would still apply. */
8128 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
8129 if test -z "$ac_lib"; then
8130 ac_res="none required"
8133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (ac_try="$ac_link"
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_link") 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest$ac_exeext &&
8152 $as_test_x conftest$ac_exeext; then
8153 ac_cv_search_com_err=$ac_res
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8163 if test "${ac_cv_search_com_err+set}" = set; then
8167 if test "${ac_cv_search_com_err+set}" = set; then
8170 ac_cv_search_com_err=no
8173 LIBS=$ac_func_search_save_LIBS
8175 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8176 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8177 ac_res=$ac_cv_search_com_err
8178 if test "$ac_res" != no; then
8179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8182 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8183 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8184 { (exit 1); exit 1; }; }
8187 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8188 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8189 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 ac_func_search_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 krb5_sendauth ();
8210 return krb5_sendauth ();
8215 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8216 if test -z "$ac_lib"; then
8217 ac_res="none required"
8220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (ac_try="$ac_link"
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_link") 2>conftest.er1
8231 grep -v '^ *+' conftest.er1 >conftest.err
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_c_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest$ac_exeext &&
8239 $as_test_x conftest$ac_exeext; then
8240 ac_cv_search_krb5_sendauth=$ac_res
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8250 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8254 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8257 ac_cv_search_krb5_sendauth=no
8260 LIBS=$ac_func_search_save_LIBS
8262 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8263 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8264 ac_res=$ac_cv_search_krb5_sendauth
8265 if test "$ac_res" != no; then
8266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8269 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8270 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8271 { (exit 1); exit 1; }; }
8275 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8276 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8277 if test "${ac_cv_search_com_err+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 ac_func_search_save_LIBS=$LIBS
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8288 /* Override any GCC internal prototype to avoid an error.
8289 Use char because int might match the return type of a GCC
8290 builtin and then its argument prototype would still apply. */
8303 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8304 if test -z "$ac_lib"; then
8305 ac_res="none required"
8308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (ac_try="$ac_link"
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_link") 2>conftest.er1
8319 grep -v '^ *+' conftest.er1 >conftest.err
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest$ac_exeext &&
8327 $as_test_x conftest$ac_exeext; then
8328 ac_cv_search_com_err=$ac_res
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8338 if test "${ac_cv_search_com_err+set}" = set; then
8342 if test "${ac_cv_search_com_err+set}" = set; then
8345 ac_cv_search_com_err=no
8348 LIBS=$ac_func_search_save_LIBS
8350 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8351 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8352 ac_res=$ac_cv_search_com_err
8353 if test "$ac_res" != no; then
8354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8357 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8358 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8359 { (exit 1); exit 1; }; }
8365 if test "$with_openssl" = yes ; then
8366 if test "$PORTNAME" != "win32"; then
8368 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8369 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
8370 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 ac_check_lib_save_LIBS=$LIBS
8374 LIBS="-lcrypto $LIBS"
8375 cat >conftest.$ac_ext <<_ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8382 /* Override any GCC internal prototype to avoid an error.
8383 Use char because int might match the return type of a GCC
8384 builtin and then its argument prototype would still apply. */
8388 char CRYPTO_new_ex_data ();
8392 return CRYPTO_new_ex_data ();
8397 rm -f conftest.$ac_objext conftest$ac_exeext
8398 if { (ac_try="$ac_link"
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_link") 2>conftest.er1
8406 grep -v '^ *+' conftest.er1 >conftest.err
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } && {
8411 test -z "$ac_c_werror_flag" ||
8412 test ! -s conftest.err
8413 } && test -s conftest$ac_exeext &&
8414 $as_test_x conftest$ac_exeext; then
8415 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8420 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8424 conftest$ac_exeext conftest.$ac_ext
8425 LIBS=$ac_check_lib_save_LIBS
8427 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8428 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8429 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8430 cat >>confdefs.h <<_ACEOF
8431 #define HAVE_LIBCRYPTO 1
8434 LIBS="-lcrypto $LIBS"
8437 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8438 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8439 { (exit 1); exit 1; }; }
8443 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8444 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8445 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 ac_check_lib_save_LIBS=$LIBS
8450 cat >conftest.$ac_ext <<_ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8457 /* Override any GCC internal prototype to avoid an error.
8458 Use char because int might match the return type of a GCC
8459 builtin and then its argument prototype would still apply. */
8463 char SSL_library_init ();
8467 return SSL_library_init ();
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8481 grep -v '^ *+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest$ac_exeext &&
8489 $as_test_x conftest$ac_exeext; then
8490 ac_cv_lib_ssl_SSL_library_init=yes
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_cv_lib_ssl_SSL_library_init=no
8498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8499 conftest$ac_exeext conftest.$ac_ext
8500 LIBS=$ac_check_lib_save_LIBS
8502 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8503 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8504 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8505 cat >>confdefs.h <<_ACEOF
8506 #define HAVE_LIBSSL 1
8512 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8513 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8514 { (exit 1); exit 1; }; }
8519 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8520 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8521 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 ac_check_lib_save_LIBS=$LIBS
8525 LIBS="-leay32 $LIBS"
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8533 /* Override any GCC internal prototype to avoid an error.
8534 Use char because int might match the return type of a GCC
8535 builtin and then its argument prototype would still apply. */
8539 char CRYPTO_new_ex_data ();
8543 return CRYPTO_new_ex_data ();
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (ac_try="$ac_link"
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_link") 2>conftest.er1
8557 grep -v '^ *+' conftest.er1 >conftest.err
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } && {
8562 test -z "$ac_c_werror_flag" ||
8563 test ! -s conftest.err
8564 } && test -s conftest$ac_exeext &&
8565 $as_test_x conftest$ac_exeext; then
8566 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8575 conftest$ac_exeext conftest.$ac_ext
8576 LIBS=$ac_check_lib_save_LIBS
8578 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8579 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8580 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8581 cat >>confdefs.h <<_ACEOF
8582 #define HAVE_LIBEAY32 1
8585 LIBS="-leay32 $LIBS"
8588 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8589 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8590 { (exit 1); exit 1; }; }
8594 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8595 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8596 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 ac_check_lib_save_LIBS=$LIBS
8600 LIBS="-lssleay32 $LIBS"
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8608 /* Override any GCC internal prototype to avoid an error.
8609 Use char because int might match the return type of a GCC
8610 builtin and then its argument prototype would still apply. */
8614 char SSL_library_init ();
8618 return SSL_library_init ();
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (ac_try="$ac_link"
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_link") 2>conftest.er1
8632 grep -v '^ *+' conftest.er1 >conftest.err
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } && {
8637 test -z "$ac_c_werror_flag" ||
8638 test ! -s conftest.err
8639 } && test -s conftest$ac_exeext &&
8640 $as_test_x conftest$ac_exeext; then
8641 ac_cv_lib_ssleay32_SSL_library_init=yes
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_lib_ssleay32_SSL_library_init=no
8649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8650 conftest$ac_exeext conftest.$ac_ext
8651 LIBS=$ac_check_lib_save_LIBS
8653 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8654 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8655 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8656 cat >>confdefs.h <<_ACEOF
8657 #define HAVE_LIBSSLEAY32 1
8660 LIBS="-lssleay32 $LIBS"
8663 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8664 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8665 { (exit 1); exit 1; }; }
8671 if test "$with_pam" = yes ; then
8673 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8674 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8675 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 ac_check_lib_save_LIBS=$LIBS
8680 cat >conftest.$ac_ext <<_ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8687 /* Override any GCC internal prototype to avoid an error.
8688 Use char because int might match the return type of a GCC
8689 builtin and then its argument prototype would still apply. */
8697 return pam_start ();
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (ac_try="$ac_link"
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_link") 2>conftest.er1
8711 grep -v '^ *+' conftest.er1 >conftest.err
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest$ac_exeext &&
8719 $as_test_x conftest$ac_exeext; then
8720 ac_cv_lib_pam_pam_start=yes
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 ac_cv_lib_pam_pam_start=no
8728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8729 conftest$ac_exeext conftest.$ac_ext
8730 LIBS=$ac_check_lib_save_LIBS
8732 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8733 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8734 if test $ac_cv_lib_pam_pam_start = yes; then
8735 cat >>confdefs.h <<_ACEOF
8736 #define HAVE_LIBPAM 1
8742 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8743 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8744 { (exit 1); exit 1; }; }
8749 if test "$with_libxml" = yes ; then
8751 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8752 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8753 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 ac_check_lib_save_LIBS=$LIBS
8758 cat >conftest.$ac_ext <<_ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8765 /* Override any GCC internal prototype to avoid an error.
8766 Use char because int might match the return type of a GCC
8767 builtin and then its argument prototype would still apply. */
8771 char xmlSaveToBuffer ();
8775 return xmlSaveToBuffer ();
8780 rm -f conftest.$ac_objext conftest$ac_exeext
8781 if { (ac_try="$ac_link"
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_link") 2>conftest.er1
8789 grep -v '^ *+' conftest.er1 >conftest.err
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } && {
8794 test -z "$ac_c_werror_flag" ||
8795 test ! -s conftest.err
8796 } && test -s conftest$ac_exeext &&
8797 $as_test_x conftest$ac_exeext; then
8798 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8803 ac_cv_lib_xml2_xmlSaveToBuffer=no
8806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8807 conftest$ac_exeext conftest.$ac_ext
8808 LIBS=$ac_check_lib_save_LIBS
8810 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8811 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8812 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8813 cat >>confdefs.h <<_ACEOF
8814 #define HAVE_LIBXML2 1
8820 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8821 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8822 { (exit 1); exit 1; }; }
8827 if test "$with_libxslt" = yes ; then
8829 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8830 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8831 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 ac_check_lib_save_LIBS=$LIBS
8836 cat >conftest.$ac_ext <<_ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8849 char xsltCleanupGlobals ();
8853 return xsltCleanupGlobals ();
8858 rm -f conftest.$ac_objext conftest$ac_exeext
8859 if { (ac_try="$ac_link"
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_link") 2>conftest.er1
8867 grep -v '^ *+' conftest.er1 >conftest.err
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } && {
8872 test -z "$ac_c_werror_flag" ||
8873 test ! -s conftest.err
8874 } && test -s conftest$ac_exeext &&
8875 $as_test_x conftest$ac_exeext; then
8876 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8881 ac_cv_lib_xslt_xsltCleanupGlobals=no
8884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8885 conftest$ac_exeext conftest.$ac_ext
8886 LIBS=$ac_check_lib_save_LIBS
8888 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8889 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8890 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8891 cat >>confdefs.h <<_ACEOF
8892 #define HAVE_LIBXSLT 1
8898 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8899 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8900 { (exit 1); exit 1; }; }
8905 # for contrib/uuid-ossp
8906 if test "$with_ossp_uuid" = yes ; then
8907 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8908 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8909 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 ac_check_lib_save_LIBS=$LIBS
8913 LIBS="-lossp-uuid $LIBS"
8914 cat >conftest.$ac_ext <<_ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8921 /* Override any GCC internal prototype to avoid an error.
8922 Use char because int might match the return type of a GCC
8923 builtin and then its argument prototype would still apply. */
8927 char uuid_export ();
8931 return uuid_export ();
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (ac_try="$ac_link"
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_link") 2>conftest.er1
8945 grep -v '^ *+' conftest.er1 >conftest.err
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_c_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest$ac_exeext &&
8953 $as_test_x conftest$ac_exeext; then
8954 ac_cv_lib_ossp_uuid_uuid_export=yes
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 ac_cv_lib_ossp_uuid_uuid_export=no
8962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8963 conftest$ac_exeext conftest.$ac_ext
8964 LIBS=$ac_check_lib_save_LIBS
8966 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8967 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8968 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8969 OSSP_UUID_LIBS="-lossp-uuid"
8971 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8972 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8973 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 ac_check_lib_save_LIBS=$LIBS
8978 cat >conftest.$ac_ext <<_ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8985 /* Override any GCC internal prototype to avoid an error.
8986 Use char because int might match the return type of a GCC
8987 builtin and then its argument prototype would still apply. */
8991 char uuid_export ();
8995 return uuid_export ();
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (ac_try="$ac_link"
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_link") 2>conftest.er1
9009 grep -v '^ *+' conftest.er1 >conftest.err
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } && {
9014 test -z "$ac_c_werror_flag" ||
9015 test ! -s conftest.err
9016 } && test -s conftest$ac_exeext &&
9017 $as_test_x conftest$ac_exeext; then
9018 ac_cv_lib_uuid_uuid_export=yes
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9023 ac_cv_lib_uuid_uuid_export=no
9026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9027 conftest$ac_exeext conftest.$ac_ext
9028 LIBS=$ac_check_lib_save_LIBS
9030 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9031 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9032 if test $ac_cv_lib_uuid_uuid_export = yes; then
9033 OSSP_UUID_LIBS="-luuid"
9035 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9036 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9037 { (exit 1); exit 1; }; }
9050 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9051 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9052 if test "${ac_cv_header_stdc+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 cat >conftest.$ac_ext <<_ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9074 rm -f conftest.$ac_objext
9075 if { (ac_try="$ac_compile"
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9083 grep -v '^ *+' conftest.er1 >conftest.err
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.$ac_objext; then
9091 ac_cv_header_stdc=yes
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9096 ac_cv_header_stdc=no
9099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 if test $ac_cv_header_stdc = yes; then
9102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9103 cat >conftest.$ac_ext <<_ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9113 $EGREP "memchr" >/dev/null 2>&1; then
9116 ac_cv_header_stdc=no
9122 if test $ac_cv_header_stdc = yes; then
9123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9124 cat >conftest.$ac_ext <<_ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9134 $EGREP "free" >/dev/null 2>&1; then
9137 ac_cv_header_stdc=no
9143 if test $ac_cv_header_stdc = yes; then
9144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9145 if test "$cross_compiling" = yes; then
9148 cat >conftest.$ac_ext <<_ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9156 #if ((' ' & 0x0FF) == 0x020)
9157 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9158 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9160 # define ISLOWER(c) \
9161 (('a' <= (c) && (c) <= 'i') \
9162 || ('j' <= (c) && (c) <= 'r') \
9163 || ('s' <= (c) && (c) <= 'z'))
9164 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9167 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9172 for (i = 0; i < 256; i++)
9173 if (XOR (islower (i), ISLOWER (i))
9174 || toupper (i) != TOUPPER (i))
9179 rm -f conftest$ac_exeext
9180 if { (ac_try="$ac_link"
9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186 (eval "$ac_link") 2>&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9190 { (case "(($ac_try" in
9191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195 (eval "$ac_try") 2>&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9201 echo "$as_me: program exited with status $ac_status" >&5
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9206 ac_cv_header_stdc=no
9208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9214 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9215 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9216 if test $ac_cv_header_stdc = yes; then
9218 cat >>confdefs.h <<\_ACEOF
9219 #define STDC_HEADERS 1
9224 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9234 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9235 inttypes.h stdint.h unistd.h
9237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 cat >conftest.$ac_ext <<_ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 $ac_includes_default
9251 #include <$ac_header>
9253 rm -f conftest.$ac_objext
9254 if { (ac_try="$ac_compile"
9256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_compile") 2>conftest.er1
9262 grep -v '^ *+' conftest.er1 >conftest.err
9264 cat conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } && {
9267 test -z "$ac_c_werror_flag" ||
9268 test ! -s conftest.err
9269 } && test -s conftest.$ac_objext; then
9270 eval "$as_ac_Header=yes"
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 eval "$as_ac_Header=no"
9278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9280 ac_res=`eval echo '${'$as_ac_Header'}'`
9281 { echo "$as_me:$LINENO: result: $ac_res" >&5
9282 echo "${ECHO_T}$ac_res" >&6; }
9283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9284 cat >>confdefs.h <<_ACEOF
9285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9320 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 ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 ac_res=`eval echo '${'$as_ac_Header'}'`
9330 { echo "$as_me:$LINENO: result: $ac_res" >&5
9331 echo "${ECHO_T}$ac_res" >&6; }
9333 # Is the header compilable?
9334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9336 cat >conftest.$ac_ext <<_ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 $ac_includes_default
9343 #include <$ac_header>
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_compile") 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest.$ac_objext; then
9362 ac_header_compiler=yes
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_header_compiler=no
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9372 echo "${ECHO_T}$ac_header_compiler" >&6; }
9374 # Is the header present?
9375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 #include <$ac_header>
9385 if { (ac_try="$ac_cpp conftest.$ac_ext"
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9393 grep -v '^ *+' conftest.er1 >conftest.err
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } >/dev/null && {
9398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9401 ac_header_preproc=yes
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_header_preproc=no
9409 rm -f conftest.err conftest.$ac_ext
9410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9411 echo "${ECHO_T}$ac_header_preproc" >&6; }
9413 # So? What about this header?
9414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9420 ac_header_preproc=yes
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9436 ## ---------------------------------------- ##
9437 ## Report this to pgsql-bugs@postgresql.org ##
9438 ## ---------------------------------------- ##
9440 ) | sed "s/^/$as_me: WARNING: /" >&2
9443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 eval "$as_ac_Header=\$ac_header_preproc"
9450 ac_res=`eval echo '${'$as_ac_Header'}'`
9451 { echo "$as_me:$LINENO: result: $ac_res" >&5
9452 echo "${ECHO_T}$ac_res" >&6; }
9455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9456 cat >>confdefs.h <<_ACEOF
9457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9465 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9466 # netinet/in.h is included first.
9468 for ac_header in netinet/in.h
9470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 ac_res=`eval echo '${'$as_ac_Header'}'`
9478 { echo "$as_me:$LINENO: result: $ac_res" >&5
9479 echo "${ECHO_T}$ac_res" >&6; }
9481 # Is the header compilable?
9482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9484 cat >conftest.$ac_ext <<_ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 $ac_includes_default
9491 #include <$ac_header>
9493 rm -f conftest.$ac_objext
9494 if { (ac_try="$ac_compile"
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_compile") 2>conftest.er1
9502 grep -v '^ *+' conftest.er1 >conftest.err
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && {
9507 test -z "$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9509 } && test -s conftest.$ac_objext; then
9510 ac_header_compiler=yes
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_header_compiler=no
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9520 echo "${ECHO_T}$ac_header_compiler" >&6; }
9522 # Is the header present?
9523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9525 cat >conftest.$ac_ext <<_ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 #include <$ac_header>
9533 if { (ac_try="$ac_cpp conftest.$ac_ext"
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9541 grep -v '^ *+' conftest.er1 >conftest.err
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } >/dev/null && {
9546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9549 ac_header_preproc=yes
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_header_preproc=no
9557 rm -f conftest.err conftest.$ac_ext
9558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6; }
9561 # So? What about this header?
9562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9568 ac_header_preproc=yes
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9584 ## ---------------------------------------- ##
9585 ## Report this to pgsql-bugs@postgresql.org ##
9586 ## ---------------------------------------- ##
9588 ) | sed "s/^/$as_me: WARNING: /" >&2
9591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 eval "$as_ac_Header=\$ac_header_preproc"
9598 ac_res=`eval echo '${'$as_ac_Header'}'`
9599 { echo "$as_me:$LINENO: result: $ac_res" >&5
9600 echo "${ECHO_T}$ac_res" >&6; }
9603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9604 cat >>confdefs.h <<_ACEOF
9605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9613 for ac_header in netinet/tcp.h
9615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 cat >conftest.$ac_ext <<_ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 $ac_includes_default
9628 #ifdef HAVE_NETINET_IN_H
9629 #include <netinet/in.h>
9633 #include <$ac_header>
9635 rm -f conftest.$ac_objext
9636 if { (ac_try="$ac_compile"
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_compile") 2>conftest.er1
9644 grep -v '^ *+' conftest.er1 >conftest.err
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && {
9649 test -z "$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 } && test -s conftest.$ac_objext; then
9652 eval "$as_ac_Header=yes"
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 eval "$as_ac_Header=no"
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9662 ac_res=`eval echo '${'$as_ac_Header'}'`
9663 { echo "$as_me:$LINENO: result: $ac_res" >&5
9664 echo "${ECHO_T}$ac_res" >&6; }
9665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9666 cat >>confdefs.h <<_ACEOF
9667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9675 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9677 for ac_header in readline/readline.h
9679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 ac_res=`eval echo '${'$as_ac_Header'}'`
9687 { echo "$as_me:$LINENO: result: $ac_res" >&5
9688 echo "${ECHO_T}$ac_res" >&6; }
9690 # Is the header compilable?
9691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9693 cat >conftest.$ac_ext <<_ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 $ac_includes_default
9700 #include <$ac_header>
9702 rm -f conftest.$ac_objext
9703 if { (ac_try="$ac_compile"
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_compile") 2>conftest.er1
9711 grep -v '^ *+' conftest.er1 >conftest.err
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } && {
9716 test -z "$ac_c_werror_flag" ||
9717 test ! -s conftest.err
9718 } && test -s conftest.$ac_objext; then
9719 ac_header_compiler=yes
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_header_compiler=no
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9729 echo "${ECHO_T}$ac_header_compiler" >&6; }
9731 # Is the header present?
9732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9734 cat >conftest.$ac_ext <<_ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 #include <$ac_header>
9742 if { (ac_try="$ac_cpp conftest.$ac_ext"
9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9750 grep -v '^ *+' conftest.er1 >conftest.err
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } >/dev/null && {
9755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9756 test ! -s conftest.err
9758 ac_header_preproc=yes
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 ac_header_preproc=no
9766 rm -f conftest.err conftest.$ac_ext
9767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9768 echo "${ECHO_T}$ac_header_preproc" >&6; }
9770 # So? What about this header?
9771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9777 ac_header_preproc=yes
9780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9787 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9793 ## ---------------------------------------- ##
9794 ## Report this to pgsql-bugs@postgresql.org ##
9795 ## ---------------------------------------- ##
9797 ) | sed "s/^/$as_me: WARNING: /" >&2
9800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 eval "$as_ac_Header=\$ac_header_preproc"
9807 ac_res=`eval echo '${'$as_ac_Header'}'`
9808 { echo "$as_me:$LINENO: result: $ac_res" >&5
9809 echo "${ECHO_T}$ac_res" >&6; }
9812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9813 cat >>confdefs.h <<_ACEOF
9814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9819 for ac_header in readline.h
9821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 ac_res=`eval echo '${'$as_ac_Header'}'`
9829 { echo "$as_me:$LINENO: result: $ac_res" >&5
9830 echo "${ECHO_T}$ac_res" >&6; }
9832 # Is the header compilable?
9833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9835 cat >conftest.$ac_ext <<_ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 $ac_includes_default
9842 #include <$ac_header>
9844 rm -f conftest.$ac_objext
9845 if { (ac_try="$ac_compile"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_compile") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } && {
9858 test -z "$ac_c_werror_flag" ||
9859 test ! -s conftest.err
9860 } && test -s conftest.$ac_objext; then
9861 ac_header_compiler=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ac_header_compiler=no
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9871 echo "${ECHO_T}$ac_header_compiler" >&6; }
9873 # Is the header present?
9874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9876 cat >conftest.$ac_ext <<_ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9882 #include <$ac_header>
9884 if { (ac_try="$ac_cpp conftest.$ac_ext"
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9892 grep -v '^ *+' conftest.er1 >conftest.err
9894 cat conftest.err >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } >/dev/null && {
9897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9898 test ! -s conftest.err
9900 ac_header_preproc=yes
9902 echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9905 ac_header_preproc=no
9908 rm -f conftest.err conftest.$ac_ext
9909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9910 echo "${ECHO_T}$ac_header_preproc" >&6; }
9912 # So? What about this header?
9913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9919 ac_header_preproc=yes
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9935 ## ---------------------------------------- ##
9936 ## Report this to pgsql-bugs@postgresql.org ##
9937 ## ---------------------------------------- ##
9939 ) | sed "s/^/$as_me: WARNING: /" >&2
9942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 eval "$as_ac_Header=\$ac_header_preproc"
9949 ac_res=`eval echo '${'$as_ac_Header'}'`
9950 { echo "$as_me:$LINENO: result: $ac_res" >&5
9951 echo "${ECHO_T}$ac_res" >&6; }
9954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9955 cat >>confdefs.h <<_ACEOF
9956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9960 { { echo "$as_me:$LINENO: error: readline header not found
9961 If you have readline already installed, see config.log for details on the
9962 failure. It is possible the compiler isn't looking in the proper directory.
9963 Use --without-readline to disable readline support." >&5
9964 echo "$as_me: error: readline header not found
9965 If you have readline already installed, see config.log for details on the
9966 failure. It is possible the compiler isn't looking in the proper directory.
9967 Use --without-readline to disable readline support." >&2;}
9968 { (exit 1); exit 1; }; }
9978 for ac_header in readline/history.h
9980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 ac_res=`eval echo '${'$as_ac_Header'}'`
9988 { echo "$as_me:$LINENO: result: $ac_res" >&5
9989 echo "${ECHO_T}$ac_res" >&6; }
9991 # Is the header compilable?
9992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 $ac_includes_default
10001 #include <$ac_header>
10003 rm -f conftest.$ac_objext
10004 if { (ac_try="$ac_compile"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_compile") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest.$ac_objext; then
10020 ac_header_compiler=yes
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_header_compiler=no
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10030 echo "${ECHO_T}$ac_header_compiler" >&6; }
10032 # Is the header present?
10033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 #include <$ac_header>
10043 if { (ac_try="$ac_cpp conftest.$ac_ext"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } >/dev/null && {
10056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10059 ac_header_preproc=yes
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 ac_header_preproc=no
10067 rm -f conftest.err conftest.$ac_ext
10068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10069 echo "${ECHO_T}$ac_header_preproc" >&6; }
10071 # So? What about this header?
10072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10078 ac_header_preproc=yes
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10094 ## ---------------------------------------- ##
10095 ## Report this to pgsql-bugs@postgresql.org ##
10096 ## ---------------------------------------- ##
10098 ) | sed "s/^/$as_me: WARNING: /" >&2
10101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 eval "$as_ac_Header=\$ac_header_preproc"
10108 ac_res=`eval echo '${'$as_ac_Header'}'`
10109 { echo "$as_me:$LINENO: result: $ac_res" >&5
10110 echo "${ECHO_T}$ac_res" >&6; }
10113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10114 cat >>confdefs.h <<_ACEOF
10115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10120 for ac_header in history.h
10122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 ac_res=`eval echo '${'$as_ac_Header'}'`
10130 { echo "$as_me:$LINENO: result: $ac_res" >&5
10131 echo "${ECHO_T}$ac_res" >&6; }
10133 # Is the header compilable?
10134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10143 #include <$ac_header>
10145 rm -f conftest.$ac_objext
10146 if { (ac_try="$ac_compile"
10147 case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_compile") 2>conftest.er1
10154 grep -v '^ *+' conftest.er1 >conftest.err
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } && {
10159 test -z "$ac_c_werror_flag" ||
10160 test ! -s conftest.err
10161 } && test -s conftest.$ac_objext; then
10162 ac_header_compiler=yes
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_header_compiler=no
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10172 echo "${ECHO_T}$ac_header_compiler" >&6; }
10174 # Is the header present?
10175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10177 cat >conftest.$ac_ext <<_ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 #include <$ac_header>
10185 if { (ac_try="$ac_cpp conftest.$ac_ext"
10186 case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10193 grep -v '^ *+' conftest.er1 >conftest.err
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } >/dev/null && {
10198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10199 test ! -s conftest.err
10201 ac_header_preproc=yes
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 ac_header_preproc=no
10209 rm -f conftest.err conftest.$ac_ext
10210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10211 echo "${ECHO_T}$ac_header_preproc" >&6; }
10213 # So? What about this header?
10214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10220 ac_header_preproc=yes
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10236 ## ---------------------------------------- ##
10237 ## Report this to pgsql-bugs@postgresql.org ##
10238 ## ---------------------------------------- ##
10240 ) | sed "s/^/$as_me: WARNING: /" >&2
10243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 eval "$as_ac_Header=\$ac_header_preproc"
10250 ac_res=`eval echo '${'$as_ac_Header'}'`
10251 { echo "$as_me:$LINENO: result: $ac_res" >&5
10252 echo "${ECHO_T}$ac_res" >&6; }
10255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10256 cat >>confdefs.h <<_ACEOF
10257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10261 { { echo "$as_me:$LINENO: error: history header not found
10262 If you have readline already installed, see config.log for details on the
10263 failure. It is possible the compiler isn't looking in the proper directory.
10264 Use --without-readline to disable readline support." >&5
10265 echo "$as_me: error: history header not found
10266 If you have readline already installed, see config.log for details on the
10267 failure. It is possible the compiler isn't looking in the proper directory.
10268 Use --without-readline to disable readline support." >&2;}
10269 { (exit 1); exit 1; }; }
10280 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10281 # Some installations of libedit usurp /usr/include/readline/, which seems
10282 # bad practice, since in combined installations readline will have its headers
10283 # there. We might have to resort to AC_EGREP checks to make sure we found
10284 # the proper header...
10286 for ac_header in editline/readline.h
10288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 ac_res=`eval echo '${'$as_ac_Header'}'`
10296 { echo "$as_me:$LINENO: result: $ac_res" >&5
10297 echo "${ECHO_T}$ac_res" >&6; }
10299 # Is the header compilable?
10300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 $ac_includes_default
10309 #include <$ac_header>
10311 rm -f conftest.$ac_objext
10312 if { (ac_try="$ac_compile"
10313 case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_compile") 2>conftest.er1
10320 grep -v '^ *+' conftest.er1 >conftest.err
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } && {
10325 test -z "$ac_c_werror_flag" ||
10326 test ! -s conftest.err
10327 } && test -s conftest.$ac_objext; then
10328 ac_header_compiler=yes
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 ac_header_compiler=no
10336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10338 echo "${ECHO_T}$ac_header_compiler" >&6; }
10340 # Is the header present?
10341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10343 cat >conftest.$ac_ext <<_ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10349 #include <$ac_header>
10351 if { (ac_try="$ac_cpp conftest.$ac_ext"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10359 grep -v '^ *+' conftest.er1 >conftest.err
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } >/dev/null && {
10364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10365 test ! -s conftest.err
10367 ac_header_preproc=yes
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 ac_header_preproc=no
10375 rm -f conftest.err conftest.$ac_ext
10376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10377 echo "${ECHO_T}$ac_header_preproc" >&6; }
10379 # So? What about this header?
10380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10386 ac_header_preproc=yes
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10402 ## ---------------------------------------- ##
10403 ## Report this to pgsql-bugs@postgresql.org ##
10404 ## ---------------------------------------- ##
10406 ) | sed "s/^/$as_me: WARNING: /" >&2
10409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 eval "$as_ac_Header=\$ac_header_preproc"
10416 ac_res=`eval echo '${'$as_ac_Header'}'`
10417 { echo "$as_me:$LINENO: result: $ac_res" >&5
10418 echo "${ECHO_T}$ac_res" >&6; }
10421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10422 cat >>confdefs.h <<_ACEOF
10423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10428 for ac_header in readline.h
10430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 ac_res=`eval echo '${'$as_ac_Header'}'`
10438 { echo "$as_me:$LINENO: result: $ac_res" >&5
10439 echo "${ECHO_T}$ac_res" >&6; }
10441 # Is the header compilable?
10442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 $ac_includes_default
10451 #include <$ac_header>
10453 rm -f conftest.$ac_objext
10454 if { (ac_try="$ac_compile"
10455 case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_compile") 2>conftest.er1
10462 grep -v '^ *+' conftest.er1 >conftest.err
10464 cat conftest.err >&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } && {
10467 test -z "$ac_c_werror_flag" ||
10468 test ! -s conftest.err
10469 } && test -s conftest.$ac_objext; then
10470 ac_header_compiler=yes
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 ac_header_compiler=no
10478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10480 echo "${ECHO_T}$ac_header_compiler" >&6; }
10482 # Is the header present?
10483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10485 cat >conftest.$ac_ext <<_ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491 #include <$ac_header>
10493 if { (ac_try="$ac_cpp conftest.$ac_ext"
10494 case "(($ac_try" in
10495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496 *) ac_try_echo=$ac_try;;
10498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10501 grep -v '^ *+' conftest.er1 >conftest.err
10503 cat conftest.err >&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } >/dev/null && {
10506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10507 test ! -s conftest.err
10509 ac_header_preproc=yes
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 ac_header_preproc=no
10517 rm -f conftest.err conftest.$ac_ext
10518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10519 echo "${ECHO_T}$ac_header_preproc" >&6; }
10521 # So? What about this header?
10522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10528 ac_header_preproc=yes
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10544 ## ---------------------------------------- ##
10545 ## Report this to pgsql-bugs@postgresql.org ##
10546 ## ---------------------------------------- ##
10548 ) | sed "s/^/$as_me: WARNING: /" >&2
10551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 eval "$as_ac_Header=\$ac_header_preproc"
10558 ac_res=`eval echo '${'$as_ac_Header'}'`
10559 { echo "$as_me:$LINENO: result: $ac_res" >&5
10560 echo "${ECHO_T}$ac_res" >&6; }
10563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10564 cat >>confdefs.h <<_ACEOF
10565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10570 for ac_header in readline/readline.h
10572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 ac_res=`eval echo '${'$as_ac_Header'}'`
10580 { echo "$as_me:$LINENO: result: $ac_res" >&5
10581 echo "${ECHO_T}$ac_res" >&6; }
10583 # Is the header compilable?
10584 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 $ac_includes_default
10593 #include <$ac_header>
10595 rm -f conftest.$ac_objext
10596 if { (ac_try="$ac_compile"
10597 case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_compile") 2>conftest.er1
10604 grep -v '^ *+' conftest.er1 >conftest.err
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } && {
10609 test -z "$ac_c_werror_flag" ||
10610 test ! -s conftest.err
10611 } && test -s conftest.$ac_objext; then
10612 ac_header_compiler=yes
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10617 ac_header_compiler=no
10620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10622 echo "${ECHO_T}$ac_header_compiler" >&6; }
10624 # Is the header present?
10625 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10627 cat >conftest.$ac_ext <<_ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 #include <$ac_header>
10635 if { (ac_try="$ac_cpp conftest.$ac_ext"
10636 case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10643 grep -v '^ *+' conftest.er1 >conftest.err
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } >/dev/null && {
10648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10649 test ! -s conftest.err
10651 ac_header_preproc=yes
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 ac_header_preproc=no
10659 rm -f conftest.err conftest.$ac_ext
10660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10661 echo "${ECHO_T}$ac_header_preproc" >&6; }
10663 # So? What about this header?
10664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10670 ac_header_preproc=yes
10673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10686 ## ---------------------------------------- ##
10687 ## Report this to pgsql-bugs@postgresql.org ##
10688 ## ---------------------------------------- ##
10690 ) | sed "s/^/$as_me: WARNING: /" >&2
10693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 eval "$as_ac_Header=\$ac_header_preproc"
10700 ac_res=`eval echo '${'$as_ac_Header'}'`
10701 { echo "$as_me:$LINENO: result: $ac_res" >&5
10702 echo "${ECHO_T}$ac_res" >&6; }
10705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10706 cat >>confdefs.h <<_ACEOF
10707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10711 { { echo "$as_me:$LINENO: error: readline header not found
10712 If you have libedit already installed, see config.log for details on the
10713 failure. It is possible the compiler isn't looking in the proper directory.
10714 Use --without-readline to disable libedit support." >&5
10715 echo "$as_me: error: readline header not found
10716 If you have libedit already installed, see config.log for details on the
10717 failure. It is possible the compiler isn't looking in the proper directory.
10718 Use --without-readline to disable libedit support." >&2;}
10719 { (exit 1); exit 1; }; }
10732 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10733 # not be there at all. Hence, don't complain if not found. We must check
10734 # though, since in yet other versions it is an independent header.
10736 for ac_header in editline/history.h
10738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 ac_res=`eval echo '${'$as_ac_Header'}'`
10746 { echo "$as_me:$LINENO: result: $ac_res" >&5
10747 echo "${ECHO_T}$ac_res" >&6; }
10749 # Is the header compilable?
10750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10752 cat >conftest.$ac_ext <<_ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 $ac_includes_default
10759 #include <$ac_header>
10761 rm -f conftest.$ac_objext
10762 if { (ac_try="$ac_compile"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_compile") 2>conftest.er1
10770 grep -v '^ *+' conftest.er1 >conftest.err
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest.$ac_objext; then
10778 ac_header_compiler=yes
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 ac_header_compiler=no
10786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10788 echo "${ECHO_T}$ac_header_compiler" >&6; }
10790 # Is the header present?
10791 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10793 cat >conftest.$ac_ext <<_ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799 #include <$ac_header>
10801 if { (ac_try="$ac_cpp conftest.$ac_ext"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } >/dev/null && {
10814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10817 ac_header_preproc=yes
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 ac_header_preproc=no
10825 rm -f conftest.err conftest.$ac_ext
10826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10827 echo "${ECHO_T}$ac_header_preproc" >&6; }
10829 # So? What about this header?
10830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10836 ac_header_preproc=yes
10839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10846 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10852 ## ---------------------------------------- ##
10853 ## Report this to pgsql-bugs@postgresql.org ##
10854 ## ---------------------------------------- ##
10856 ) | sed "s/^/$as_me: WARNING: /" >&2
10859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 eval "$as_ac_Header=\$ac_header_preproc"
10866 ac_res=`eval echo '${'$as_ac_Header'}'`
10867 { echo "$as_me:$LINENO: result: $ac_res" >&5
10868 echo "${ECHO_T}$ac_res" >&6; }
10871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10872 cat >>confdefs.h <<_ACEOF
10873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10878 for ac_header in history.h
10880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 ac_res=`eval echo '${'$as_ac_Header'}'`
10888 { echo "$as_me:$LINENO: result: $ac_res" >&5
10889 echo "${ECHO_T}$ac_res" >&6; }
10891 # Is the header compilable?
10892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10894 cat >conftest.$ac_ext <<_ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 $ac_includes_default
10901 #include <$ac_header>
10903 rm -f conftest.$ac_objext
10904 if { (ac_try="$ac_compile"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_compile") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest.$ac_objext; then
10920 ac_header_compiler=yes
10922 echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10925 ac_header_compiler=no
10928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10930 echo "${ECHO_T}$ac_header_compiler" >&6; }
10932 # Is the header present?
10933 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10935 cat >conftest.$ac_ext <<_ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10941 #include <$ac_header>
10943 if { (ac_try="$ac_cpp conftest.$ac_ext"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } >/dev/null && {
10956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10959 ac_header_preproc=yes
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_header_preproc=no
10967 rm -f conftest.err conftest.$ac_ext
10968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10969 echo "${ECHO_T}$ac_header_preproc" >&6; }
10971 # So? What about this header?
10972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10978 ac_header_preproc=yes
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10994 ## ---------------------------------------- ##
10995 ## Report this to pgsql-bugs@postgresql.org ##
10996 ## ---------------------------------------- ##
10998 ) | sed "s/^/$as_me: WARNING: /" >&2
11001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 eval "$as_ac_Header=\$ac_header_preproc"
11008 ac_res=`eval echo '${'$as_ac_Header'}'`
11009 { echo "$as_me:$LINENO: result: $ac_res" >&5
11010 echo "${ECHO_T}$ac_res" >&6; }
11013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11014 cat >>confdefs.h <<_ACEOF
11015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11020 for ac_header in readline/history.h
11022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 ac_res=`eval echo '${'$as_ac_Header'}'`
11030 { echo "$as_me:$LINENO: result: $ac_res" >&5
11031 echo "${ECHO_T}$ac_res" >&6; }
11033 # Is the header compilable?
11034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11036 cat >conftest.$ac_ext <<_ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 $ac_includes_default
11043 #include <$ac_header>
11045 rm -f conftest.$ac_objext
11046 if { (ac_try="$ac_compile"
11047 case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052 (eval "$ac_compile") 2>conftest.er1
11054 grep -v '^ *+' conftest.er1 >conftest.err
11056 cat conftest.err >&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } && {
11059 test -z "$ac_c_werror_flag" ||
11060 test ! -s conftest.err
11061 } && test -s conftest.$ac_objext; then
11062 ac_header_compiler=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_header_compiler=no
11070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11072 echo "${ECHO_T}$ac_header_compiler" >&6; }
11074 # Is the header present?
11075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11077 cat >conftest.$ac_ext <<_ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11083 #include <$ac_header>
11085 if { (ac_try="$ac_cpp conftest.$ac_ext"
11086 case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11093 grep -v '^ *+' conftest.er1 >conftest.err
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } >/dev/null && {
11098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11099 test ! -s conftest.err
11101 ac_header_preproc=yes
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11106 ac_header_preproc=no
11109 rm -f conftest.err conftest.$ac_ext
11110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11111 echo "${ECHO_T}$ac_header_preproc" >&6; }
11113 # So? What about this header?
11114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11120 ac_header_preproc=yes
11123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11136 ## ---------------------------------------- ##
11137 ## Report this to pgsql-bugs@postgresql.org ##
11138 ## ---------------------------------------- ##
11140 ) | sed "s/^/$as_me: WARNING: /" >&2
11143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 eval "$as_ac_Header=\$ac_header_preproc"
11150 ac_res=`eval echo '${'$as_ac_Header'}'`
11151 { echo "$as_me:$LINENO: result: $ac_res" >&5
11152 echo "${ECHO_T}$ac_res" >&6; }
11155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11156 cat >>confdefs.h <<_ACEOF
11157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11174 if test "$with_zlib" = yes; then
11175 if test "${ac_cv_header_zlib_h+set}" = set; then
11176 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11177 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11178 if test "${ac_cv_header_zlib_h+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11182 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11184 # Is the header compilable?
11185 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11186 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11187 cat >conftest.$ac_ext <<_ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 $ac_includes_default
11196 rm -f conftest.$ac_objext
11197 if { (ac_try="$ac_compile"
11198 case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_compile") 2>conftest.er1
11205 grep -v '^ *+' conftest.er1 >conftest.err
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } && {
11210 test -z "$ac_c_werror_flag" ||
11211 test ! -s conftest.err
11212 } && test -s conftest.$ac_objext; then
11213 ac_header_compiler=yes
11215 echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11218 ac_header_compiler=no
11221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11223 echo "${ECHO_T}$ac_header_compiler" >&6; }
11225 # Is the header present?
11226 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11227 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11228 cat >conftest.$ac_ext <<_ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11236 if { (ac_try="$ac_cpp conftest.$ac_ext"
11237 case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11244 grep -v '^ *+' conftest.er1 >conftest.err
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } >/dev/null && {
11249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11250 test ! -s conftest.err
11252 ac_header_preproc=yes
11254 echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11257 ac_header_preproc=no
11260 rm -f conftest.err conftest.$ac_ext
11261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262 echo "${ECHO_T}$ac_header_preproc" >&6; }
11264 # So? What about this header?
11265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11267 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11268 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11270 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11271 ac_header_preproc=yes
11274 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11275 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11277 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11279 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11281 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11283 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11285 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11287 ## ---------------------------------------- ##
11288 ## Report this to pgsql-bugs@postgresql.org ##
11289 ## ---------------------------------------- ##
11291 ) | sed "s/^/$as_me: WARNING: /" >&2
11294 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11295 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11296 if test "${ac_cv_header_zlib_h+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 ac_cv_header_zlib_h=$ac_header_preproc
11301 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11302 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11305 if test $ac_cv_header_zlib_h = yes; then
11308 { { echo "$as_me:$LINENO: error: zlib header not found
11309 If you have zlib already installed, see config.log for details on the
11310 failure. It is possible the compiler isn't looking in the proper directory.
11311 Use --without-zlib to disable zlib support." >&5
11312 echo "$as_me: error: zlib header not found
11313 If you have zlib already installed, see config.log for details on the
11314 failure. It is possible the compiler isn't looking in the proper directory.
11315 Use --without-zlib to disable zlib support." >&2;}
11316 { (exit 1); exit 1; }; }
11322 if test "$with_gssapi" = yes ; then
11324 for ac_header in gssapi/gssapi.h
11326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 ac_res=`eval echo '${'$as_ac_Header'}'`
11334 { echo "$as_me:$LINENO: result: $ac_res" >&5
11335 echo "${ECHO_T}$ac_res" >&6; }
11337 # Is the header compilable?
11338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11340 cat >conftest.$ac_ext <<_ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h. */
11346 $ac_includes_default
11347 #include <$ac_header>
11349 rm -f conftest.$ac_objext
11350 if { (ac_try="$ac_compile"
11351 case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_compile") 2>conftest.er1
11358 grep -v '^ *+' conftest.er1 >conftest.err
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } && {
11363 test -z "$ac_c_werror_flag" ||
11364 test ! -s conftest.err
11365 } && test -s conftest.$ac_objext; then
11366 ac_header_compiler=yes
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11371 ac_header_compiler=no
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11376 echo "${ECHO_T}$ac_header_compiler" >&6; }
11378 # Is the header present?
11379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11381 cat >conftest.$ac_ext <<_ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11387 #include <$ac_header>
11389 if { (ac_try="$ac_cpp conftest.$ac_ext"
11390 case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11397 grep -v '^ *+' conftest.er1 >conftest.err
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } >/dev/null && {
11402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11403 test ! -s conftest.err
11405 ac_header_preproc=yes
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 ac_header_preproc=no
11413 rm -f conftest.err conftest.$ac_ext
11414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11415 echo "${ECHO_T}$ac_header_preproc" >&6; }
11417 # So? What about this header?
11418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11424 ac_header_preproc=yes
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11440 ## ---------------------------------------- ##
11441 ## Report this to pgsql-bugs@postgresql.org ##
11442 ## ---------------------------------------- ##
11444 ) | sed "s/^/$as_me: WARNING: /" >&2
11447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 eval "$as_ac_Header=\$ac_header_preproc"
11454 ac_res=`eval echo '${'$as_ac_Header'}'`
11455 { echo "$as_me:$LINENO: result: $ac_res" >&5
11456 echo "${ECHO_T}$ac_res" >&6; }
11459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11460 cat >>confdefs.h <<_ACEOF
11461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11466 for ac_header in gssapi.h
11468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 ac_res=`eval echo '${'$as_ac_Header'}'`
11476 { echo "$as_me:$LINENO: result: $ac_res" >&5
11477 echo "${ECHO_T}$ac_res" >&6; }
11479 # Is the header compilable?
11480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11482 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 $ac_includes_default
11489 #include <$ac_header>
11491 rm -f conftest.$ac_objext
11492 if { (ac_try="$ac_compile"
11493 case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_compile") 2>conftest.er1
11500 grep -v '^ *+' conftest.er1 >conftest.err
11502 cat conftest.err >&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } && {
11505 test -z "$ac_c_werror_flag" ||
11506 test ! -s conftest.err
11507 } && test -s conftest.$ac_objext; then
11508 ac_header_compiler=yes
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ac_header_compiler=no
11516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11518 echo "${ECHO_T}$ac_header_compiler" >&6; }
11520 # Is the header present?
11521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 #include <$ac_header>
11531 if { (ac_try="$ac_cpp conftest.$ac_ext"
11532 case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11539 grep -v '^ *+' conftest.er1 >conftest.err
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } >/dev/null && {
11544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11545 test ! -s conftest.err
11547 ac_header_preproc=yes
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11552 ac_header_preproc=no
11555 rm -f conftest.err conftest.$ac_ext
11556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11557 echo "${ECHO_T}$ac_header_preproc" >&6; }
11559 # So? What about this header?
11560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11566 ac_header_preproc=yes
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11582 ## ---------------------------------------- ##
11583 ## Report this to pgsql-bugs@postgresql.org ##
11584 ## ---------------------------------------- ##
11586 ) | sed "s/^/$as_me: WARNING: /" >&2
11589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 eval "$as_ac_Header=\$ac_header_preproc"
11596 ac_res=`eval echo '${'$as_ac_Header'}'`
11597 { echo "$as_me:$LINENO: result: $ac_res" >&5
11598 echo "${ECHO_T}$ac_res" >&6; }
11601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11602 cat >>confdefs.h <<_ACEOF
11603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11607 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11608 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11609 { (exit 1); exit 1; }; }
11620 if test "$with_krb5" = yes ; then
11621 if test "${ac_cv_header_krb5_h+set}" = set; then
11622 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11623 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11624 if test "${ac_cv_header_krb5_h+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11628 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11630 # Is the header compilable?
11631 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11632 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11633 cat >conftest.$ac_ext <<_ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11639 $ac_includes_default
11642 rm -f conftest.$ac_objext
11643 if { (ac_try="$ac_compile"
11644 case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_compile") 2>conftest.er1
11651 grep -v '^ *+' conftest.er1 >conftest.err
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } && {
11656 test -z "$ac_c_werror_flag" ||
11657 test ! -s conftest.err
11658 } && test -s conftest.$ac_objext; then
11659 ac_header_compiler=yes
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 ac_header_compiler=no
11667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11669 echo "${ECHO_T}$ac_header_compiler" >&6; }
11671 # Is the header present?
11672 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11673 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11674 cat >conftest.$ac_ext <<_ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11682 if { (ac_try="$ac_cpp conftest.$ac_ext"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11690 grep -v '^ *+' conftest.er1 >conftest.err
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } >/dev/null && {
11695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11698 ac_header_preproc=yes
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 ac_header_preproc=no
11706 rm -f conftest.err conftest.$ac_ext
11707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11708 echo "${ECHO_T}$ac_header_preproc" >&6; }
11710 # So? What about this header?
11711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11713 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11714 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11716 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11717 ac_header_preproc=yes
11720 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11721 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11723 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11725 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11727 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11729 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11731 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11733 ## ---------------------------------------- ##
11734 ## Report this to pgsql-bugs@postgresql.org ##
11735 ## ---------------------------------------- ##
11737 ) | sed "s/^/$as_me: WARNING: /" >&2
11740 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11741 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11742 if test "${ac_cv_header_krb5_h+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 ac_cv_header_krb5_h=$ac_header_preproc
11747 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11748 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11751 if test $ac_cv_header_krb5_h = yes; then
11754 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11755 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11756 { (exit 1); exit 1; }; }
11762 if test "$with_openssl" = yes ; then
11763 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11764 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11765 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11766 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11770 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11772 # Is the header compilable?
11773 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11774 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11775 cat >conftest.$ac_ext <<_ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 $ac_includes_default
11782 #include <openssl/ssl.h>
11784 rm -f conftest.$ac_objext
11785 if { (ac_try="$ac_compile"
11786 case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_compile") 2>conftest.er1
11793 grep -v '^ *+' conftest.er1 >conftest.err
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } && {
11798 test -z "$ac_c_werror_flag" ||
11799 test ! -s conftest.err
11800 } && test -s conftest.$ac_objext; then
11801 ac_header_compiler=yes
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_header_compiler=no
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11811 echo "${ECHO_T}$ac_header_compiler" >&6; }
11813 # Is the header present?
11814 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11815 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 #include <openssl/ssl.h>
11824 if { (ac_try="$ac_cpp conftest.$ac_ext"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11832 grep -v '^ *+' conftest.er1 >conftest.err
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } >/dev/null && {
11837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11840 ac_header_preproc=yes
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 ac_header_preproc=no
11848 rm -f conftest.err conftest.$ac_ext
11849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11850 echo "${ECHO_T}$ac_header_preproc" >&6; }
11852 # So? What about this header?
11853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11855 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11856 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11858 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11859 ac_header_preproc=yes
11862 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11863 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11865 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11866 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11867 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11868 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11869 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11871 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11873 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11875 ## ---------------------------------------- ##
11876 ## Report this to pgsql-bugs@postgresql.org ##
11877 ## ---------------------------------------- ##
11879 ) | sed "s/^/$as_me: WARNING: /" >&2
11882 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11883 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11884 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11889 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11890 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11893 if test $ac_cv_header_openssl_ssl_h = yes; then
11896 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11897 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11898 { (exit 1); exit 1; }; }
11902 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11903 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11904 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11905 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11909 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11911 # Is the header compilable?
11912 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11913 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11914 cat >conftest.$ac_ext <<_ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 $ac_includes_default
11921 #include <openssl/err.h>
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_compile") 2>conftest.er1
11932 grep -v '^ *+' conftest.er1 >conftest.err
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } && {
11937 test -z "$ac_c_werror_flag" ||
11938 test ! -s conftest.err
11939 } && test -s conftest.$ac_objext; then
11940 ac_header_compiler=yes
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ac_header_compiler=no
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11950 echo "${ECHO_T}$ac_header_compiler" >&6; }
11952 # Is the header present?
11953 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11954 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11955 cat >conftest.$ac_ext <<_ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 #include <openssl/err.h>
11963 if { (ac_try="$ac_cpp conftest.$ac_ext"
11964 case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11971 grep -v '^ *+' conftest.er1 >conftest.err
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } >/dev/null && {
11976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11979 ac_header_preproc=yes
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 ac_header_preproc=no
11987 rm -f conftest.err conftest.$ac_ext
11988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11989 echo "${ECHO_T}$ac_header_preproc" >&6; }
11991 # So? What about this header?
11992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11994 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11995 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11997 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11998 ac_header_preproc=yes
12001 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12002 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12004 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12006 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12007 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12008 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12010 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12012 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12014 ## ---------------------------------------- ##
12015 ## Report this to pgsql-bugs@postgresql.org ##
12016 ## ---------------------------------------- ##
12018 ) | sed "s/^/$as_me: WARNING: /" >&2
12021 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12022 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12023 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 ac_cv_header_openssl_err_h=$ac_header_preproc
12028 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12029 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12032 if test $ac_cv_header_openssl_err_h = yes; then
12035 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12036 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12037 { (exit 1); exit 1; }; }
12042 for ac_func in ERR_set_mark
12044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 cat >conftest.$ac_ext <<_ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12058 #define $ac_func innocuous_$ac_func
12060 /* System header to define __stub macros and hopefully few prototypes,
12061 which can conflict with char $ac_func (); below.
12062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12063 <limits.h> exists even on freestanding compilers. */
12066 # include <limits.h>
12068 # include <assert.h>
12073 /* Override any GCC internal prototype to avoid an error.
12074 Use char because int might match the return type of a GCC
12075 builtin and then its argument prototype would still apply. */
12080 /* The GNU C library defines this for functions which it implements
12081 to always fail with ENOSYS. Some functions are actually named
12082 something starting with __ and the normal name is an alias. */
12083 #if defined __stub_$ac_func || defined __stub___$ac_func
12090 return $ac_func ();
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (ac_try="$ac_link"
12097 case "(($ac_try" in
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099 *) ac_try_echo=$ac_try;;
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102 (eval "$ac_link") 2>conftest.er1
12104 grep -v '^ *+' conftest.er1 >conftest.err
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && {
12109 test -z "$ac_c_werror_flag" ||
12110 test ! -s conftest.err
12111 } && test -s conftest$ac_exeext &&
12112 $as_test_x conftest$ac_exeext; then
12113 eval "$as_ac_var=yes"
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12118 eval "$as_ac_var=no"
12121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12122 conftest$ac_exeext conftest.$ac_ext
12124 ac_res=`eval echo '${'$as_ac_var'}'`
12125 { echo "$as_me:$LINENO: result: $ac_res" >&5
12126 echo "${ECHO_T}$ac_res" >&6; }
12127 if test `eval echo '${'$as_ac_var'}'` = yes; then
12128 cat >>confdefs.h <<_ACEOF
12129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12137 if test "$with_pam" = yes ; then
12139 for ac_header in security/pam_appl.h
12141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 ac_res=`eval echo '${'$as_ac_Header'}'`
12149 { echo "$as_me:$LINENO: result: $ac_res" >&5
12150 echo "${ECHO_T}$ac_res" >&6; }
12152 # Is the header compilable?
12153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12155 cat >conftest.$ac_ext <<_ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 $ac_includes_default
12162 #include <$ac_header>
12164 rm -f conftest.$ac_objext
12165 if { (ac_try="$ac_compile"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_compile") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1 >conftest.err
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest.$ac_objext; then
12181 ac_header_compiler=yes
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 ac_header_compiler=no
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12191 echo "${ECHO_T}$ac_header_compiler" >&6; }
12193 # Is the header present?
12194 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12196 cat >conftest.$ac_ext <<_ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202 #include <$ac_header>
12204 if { (ac_try="$ac_cpp conftest.$ac_ext"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12212 grep -v '^ *+' conftest.er1 >conftest.err
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } >/dev/null && {
12217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12218 test ! -s conftest.err
12220 ac_header_preproc=yes
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 ac_header_preproc=no
12228 rm -f conftest.err conftest.$ac_ext
12229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12230 echo "${ECHO_T}$ac_header_preproc" >&6; }
12232 # So? What about this header?
12233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12239 ac_header_preproc=yes
12242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12249 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12255 ## ---------------------------------------- ##
12256 ## Report this to pgsql-bugs@postgresql.org ##
12257 ## ---------------------------------------- ##
12259 ) | sed "s/^/$as_me: WARNING: /" >&2
12262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 eval "$as_ac_Header=\$ac_header_preproc"
12269 ac_res=`eval echo '${'$as_ac_Header'}'`
12270 { echo "$as_me:$LINENO: result: $ac_res" >&5
12271 echo "${ECHO_T}$ac_res" >&6; }
12274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12275 cat >>confdefs.h <<_ACEOF
12276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12281 for ac_header in pam/pam_appl.h
12283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 ac_res=`eval echo '${'$as_ac_Header'}'`
12291 { echo "$as_me:$LINENO: result: $ac_res" >&5
12292 echo "${ECHO_T}$ac_res" >&6; }
12294 # Is the header compilable?
12295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12297 cat >conftest.$ac_ext <<_ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 $ac_includes_default
12304 #include <$ac_header>
12306 rm -f conftest.$ac_objext
12307 if { (ac_try="$ac_compile"
12308 case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_compile") 2>conftest.er1
12315 grep -v '^ *+' conftest.er1 >conftest.err
12317 cat conftest.err >&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && {
12320 test -z "$ac_c_werror_flag" ||
12321 test ! -s conftest.err
12322 } && test -s conftest.$ac_objext; then
12323 ac_header_compiler=yes
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 ac_header_compiler=no
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12333 echo "${ECHO_T}$ac_header_compiler" >&6; }
12335 # Is the header present?
12336 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12338 cat >conftest.$ac_ext <<_ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12344 #include <$ac_header>
12346 if { (ac_try="$ac_cpp conftest.$ac_ext"
12347 case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12354 grep -v '^ *+' conftest.er1 >conftest.err
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } >/dev/null && {
12359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12360 test ! -s conftest.err
12362 ac_header_preproc=yes
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_header_preproc=no
12370 rm -f conftest.err conftest.$ac_ext
12371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12372 echo "${ECHO_T}$ac_header_preproc" >&6; }
12374 # So? What about this header?
12375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12381 ac_header_preproc=yes
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12397 ## ---------------------------------------- ##
12398 ## Report this to pgsql-bugs@postgresql.org ##
12399 ## ---------------------------------------- ##
12401 ) | sed "s/^/$as_me: WARNING: /" >&2
12404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 eval "$as_ac_Header=\$ac_header_preproc"
12411 ac_res=`eval echo '${'$as_ac_Header'}'`
12412 { echo "$as_me:$LINENO: result: $ac_res" >&5
12413 echo "${ECHO_T}$ac_res" >&6; }
12416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12417 cat >>confdefs.h <<_ACEOF
12418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12422 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12423 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12424 { (exit 1); exit 1; }; }
12435 if test "$with_libxml" = yes ; then
12436 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12437 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12438 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12439 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12443 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12445 # Is the header compilable?
12446 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12447 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12448 cat >conftest.$ac_ext <<_ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12454 $ac_includes_default
12455 #include <libxml/parser.h>
12457 rm -f conftest.$ac_objext
12458 if { (ac_try="$ac_compile"
12459 case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_compile") 2>conftest.er1
12466 grep -v '^ *+' conftest.er1 >conftest.err
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } && {
12471 test -z "$ac_c_werror_flag" ||
12472 test ! -s conftest.err
12473 } && test -s conftest.$ac_objext; then
12474 ac_header_compiler=yes
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 ac_header_compiler=no
12482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12484 echo "${ECHO_T}$ac_header_compiler" >&6; }
12486 # Is the header present?
12487 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12488 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12489 cat >conftest.$ac_ext <<_ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 #include <libxml/parser.h>
12497 if { (ac_try="$ac_cpp conftest.$ac_ext"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12505 grep -v '^ *+' conftest.er1 >conftest.err
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } >/dev/null && {
12510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12511 test ! -s conftest.err
12513 ac_header_preproc=yes
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 ac_header_preproc=no
12521 rm -f conftest.err conftest.$ac_ext
12522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12523 echo "${ECHO_T}$ac_header_preproc" >&6; }
12525 # So? What about this header?
12526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12528 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12529 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12530 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12531 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12532 ac_header_preproc=yes
12535 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12536 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12537 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12538 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12539 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12540 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12542 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12544 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12545 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12546 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12548 ## ---------------------------------------- ##
12549 ## Report this to pgsql-bugs@postgresql.org ##
12550 ## ---------------------------------------- ##
12552 ) | sed "s/^/$as_me: WARNING: /" >&2
12555 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12556 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12557 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 ac_cv_header_libxml_parser_h=$ac_header_preproc
12562 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12563 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12566 if test $ac_cv_header_libxml_parser_h = yes; then
12569 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12570 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12571 { (exit 1); exit 1; }; }
12577 if test "$with_libxslt" = yes ; then
12578 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12579 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12580 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12581 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12585 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12587 # Is the header compilable?
12588 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12589 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12590 cat >conftest.$ac_ext <<_ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596 $ac_includes_default
12597 #include <libxslt/xslt.h>
12599 rm -f conftest.$ac_objext
12600 if { (ac_try="$ac_compile"
12601 case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_compile") 2>conftest.er1
12608 grep -v '^ *+' conftest.er1 >conftest.err
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest.$ac_objext; then
12616 ac_header_compiler=yes
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 ac_header_compiler=no
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12626 echo "${ECHO_T}$ac_header_compiler" >&6; }
12628 # Is the header present?
12629 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12630 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12631 cat >conftest.$ac_ext <<_ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 #include <libxslt/xslt.h>
12639 if { (ac_try="$ac_cpp conftest.$ac_ext"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12647 grep -v '^ *+' conftest.er1 >conftest.err
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } >/dev/null && {
12652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12653 test ! -s conftest.err
12655 ac_header_preproc=yes
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12660 ac_header_preproc=no
12663 rm -f conftest.err conftest.$ac_ext
12664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12665 echo "${ECHO_T}$ac_header_preproc" >&6; }
12667 # So? What about this header?
12668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12670 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12671 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12673 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12674 ac_header_preproc=yes
12677 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12678 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12680 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12682 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12684 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12686 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12688 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12690 ## ---------------------------------------- ##
12691 ## Report this to pgsql-bugs@postgresql.org ##
12692 ## ---------------------------------------- ##
12694 ) | sed "s/^/$as_me: WARNING: /" >&2
12697 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12698 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12699 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12704 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12705 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12708 if test $ac_cv_header_libxslt_xslt_h = yes; then
12711 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12712 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12713 { (exit 1); exit 1; }; }
12719 if test "$with_ldap" = yes ; then
12720 if test "$PORTNAME" != "win32"; then
12722 for ac_header in ldap.h
12724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 ac_res=`eval echo '${'$as_ac_Header'}'`
12732 { echo "$as_me:$LINENO: result: $ac_res" >&5
12733 echo "${ECHO_T}$ac_res" >&6; }
12735 # Is the header compilable?
12736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12738 cat >conftest.$ac_ext <<_ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12744 $ac_includes_default
12745 #include <$ac_header>
12747 rm -f conftest.$ac_objext
12748 if { (ac_try="$ac_compile"
12749 case "(($ac_try" in
12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754 (eval "$ac_compile") 2>conftest.er1
12756 grep -v '^ *+' conftest.er1 >conftest.err
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && {
12761 test -z "$ac_c_werror_flag" ||
12762 test ! -s conftest.err
12763 } && test -s conftest.$ac_objext; then
12764 ac_header_compiler=yes
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 ac_header_compiler=no
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12774 echo "${ECHO_T}$ac_header_compiler" >&6; }
12776 # Is the header present?
12777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12779 cat >conftest.$ac_ext <<_ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12785 #include <$ac_header>
12787 if { (ac_try="$ac_cpp conftest.$ac_ext"
12788 case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12795 grep -v '^ *+' conftest.er1 >conftest.err
12797 cat conftest.err >&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } >/dev/null && {
12800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12801 test ! -s conftest.err
12803 ac_header_preproc=yes
12805 echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 ac_header_preproc=no
12811 rm -f conftest.err conftest.$ac_ext
12812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12813 echo "${ECHO_T}$ac_header_preproc" >&6; }
12815 # So? What about this header?
12816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12822 ac_header_preproc=yes
12825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12838 ## ---------------------------------------- ##
12839 ## Report this to pgsql-bugs@postgresql.org ##
12840 ## ---------------------------------------- ##
12842 ) | sed "s/^/$as_me: WARNING: /" >&2
12845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 eval "$as_ac_Header=\$ac_header_preproc"
12852 ac_res=`eval echo '${'$as_ac_Header'}'`
12853 { echo "$as_me:$LINENO: result: $ac_res" >&5
12854 echo "${ECHO_T}$ac_res" >&6; }
12857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12858 cat >>confdefs.h <<_ACEOF
12859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12863 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12864 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12865 { (exit 1); exit 1; }; }
12872 for ac_header in winldap.h
12874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 cat >conftest.$ac_ext <<_ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 $ac_includes_default
12887 #include <windows.h>
12890 #include <$ac_header>
12892 rm -f conftest.$ac_objext
12893 if { (ac_try="$ac_compile"
12894 case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_compile") 2>conftest.er1
12901 grep -v '^ *+' conftest.er1 >conftest.err
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest.$ac_objext; then
12909 eval "$as_ac_Header=yes"
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 eval "$as_ac_Header=no"
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919 ac_res=`eval echo '${'$as_ac_Header'}'`
12920 { echo "$as_me:$LINENO: result: $ac_res" >&5
12921 echo "${ECHO_T}$ac_res" >&6; }
12922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12923 cat >>confdefs.h <<_ACEOF
12924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12928 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12929 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12930 { (exit 1); exit 1; }; }
12938 if test "$with_bonjour" = yes ; then
12939 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12940 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12941 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12942 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12946 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12948 # Is the header compilable?
12949 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12950 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12951 cat >conftest.$ac_ext <<_ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 $ac_includes_default
12958 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12960 rm -f conftest.$ac_objext
12961 if { (ac_try="$ac_compile"
12962 case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_compile") 2>conftest.er1
12969 grep -v '^ *+' conftest.er1 >conftest.err
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } && {
12974 test -z "$ac_c_werror_flag" ||
12975 test ! -s conftest.err
12976 } && test -s conftest.$ac_objext; then
12977 ac_header_compiler=yes
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 ac_header_compiler=no
12985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12987 echo "${ECHO_T}$ac_header_compiler" >&6; }
12989 # Is the header present?
12990 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12991 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12992 cat >conftest.$ac_ext <<_ACEOF
12995 cat confdefs.h >>conftest.$ac_ext
12996 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h. */
12998 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13000 if { (ac_try="$ac_cpp conftest.$ac_ext"
13001 case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13008 grep -v '^ *+' conftest.er1 >conftest.err
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } >/dev/null && {
13013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13014 test ! -s conftest.err
13016 ac_header_preproc=yes
13018 echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13021 ac_header_preproc=no
13024 rm -f conftest.err conftest.$ac_ext
13025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13026 echo "${ECHO_T}$ac_header_preproc" >&6; }
13028 # So? What about this header?
13029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13031 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13032 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13033 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13034 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13035 ac_header_preproc=yes
13038 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13039 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13040 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13041 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13042 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13043 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13044 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13045 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13047 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13049 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13051 ## ---------------------------------------- ##
13052 ## Report this to pgsql-bugs@postgresql.org ##
13053 ## ---------------------------------------- ##
13055 ) | sed "s/^/$as_me: WARNING: /" >&2
13058 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13059 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13060 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13065 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13066 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13069 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13072 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13073 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13074 { (exit 1); exit 1; }; }
13080 # for contrib/uuid-ossp
13081 if test "$with_ossp_uuid" = yes ; then
13083 for ac_header in ossp/uuid.h
13085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 ac_res=`eval echo '${'$as_ac_Header'}'`
13093 { echo "$as_me:$LINENO: result: $ac_res" >&5
13094 echo "${ECHO_T}$ac_res" >&6; }
13096 # Is the header compilable?
13097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13099 cat >conftest.$ac_ext <<_ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13105 $ac_includes_default
13106 #include <$ac_header>
13108 rm -f conftest.$ac_objext
13109 if { (ac_try="$ac_compile"
13110 case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_compile") 2>conftest.er1
13117 grep -v '^ *+' conftest.er1 >conftest.err
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } && {
13122 test -z "$ac_c_werror_flag" ||
13123 test ! -s conftest.err
13124 } && test -s conftest.$ac_objext; then
13125 ac_header_compiler=yes
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13130 ac_header_compiler=no
13133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13135 echo "${ECHO_T}$ac_header_compiler" >&6; }
13137 # Is the header present?
13138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13140 cat >conftest.$ac_ext <<_ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13146 #include <$ac_header>
13148 if { (ac_try="$ac_cpp conftest.$ac_ext"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13156 grep -v '^ *+' conftest.er1 >conftest.err
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } >/dev/null && {
13161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13162 test ! -s conftest.err
13164 ac_header_preproc=yes
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 ac_header_preproc=no
13172 rm -f conftest.err conftest.$ac_ext
13173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13174 echo "${ECHO_T}$ac_header_preproc" >&6; }
13176 # So? What about this header?
13177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13183 ac_header_preproc=yes
13186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13199 ## ---------------------------------------- ##
13200 ## Report this to pgsql-bugs@postgresql.org ##
13201 ## ---------------------------------------- ##
13203 ) | sed "s/^/$as_me: WARNING: /" >&2
13206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 eval "$as_ac_Header=\$ac_header_preproc"
13213 ac_res=`eval echo '${'$as_ac_Header'}'`
13214 { echo "$as_me:$LINENO: result: $ac_res" >&5
13215 echo "${ECHO_T}$ac_res" >&6; }
13218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13219 cat >>confdefs.h <<_ACEOF
13220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13226 for ac_header in uuid.h
13228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 ac_res=`eval echo '${'$as_ac_Header'}'`
13236 { echo "$as_me:$LINENO: result: $ac_res" >&5
13237 echo "${ECHO_T}$ac_res" >&6; }
13239 # Is the header compilable?
13240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13242 cat >conftest.$ac_ext <<_ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 $ac_includes_default
13249 #include <$ac_header>
13251 rm -f conftest.$ac_objext
13252 if { (ac_try="$ac_compile"
13253 case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_compile") 2>conftest.er1
13260 grep -v '^ *+' conftest.er1 >conftest.err
13262 cat conftest.err >&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && {
13265 test -z "$ac_c_werror_flag" ||
13266 test ! -s conftest.err
13267 } && test -s conftest.$ac_objext; then
13268 ac_header_compiler=yes
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13273 ac_header_compiler=no
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13278 echo "${ECHO_T}$ac_header_compiler" >&6; }
13280 # Is the header present?
13281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13283 cat >conftest.$ac_ext <<_ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13289 #include <$ac_header>
13291 if { (ac_try="$ac_cpp conftest.$ac_ext"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13299 grep -v '^ *+' conftest.er1 >conftest.err
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } >/dev/null && {
13304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13305 test ! -s conftest.err
13307 ac_header_preproc=yes
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_header_preproc=no
13315 rm -f conftest.err conftest.$ac_ext
13316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13317 echo "${ECHO_T}$ac_header_preproc" >&6; }
13319 # So? What about this header?
13320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13326 ac_header_preproc=yes
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13342 ## ---------------------------------------- ##
13343 ## Report this to pgsql-bugs@postgresql.org ##
13344 ## ---------------------------------------- ##
13346 ) | sed "s/^/$as_me: WARNING: /" >&2
13349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 eval "$as_ac_Header=\$ac_header_preproc"
13356 ac_res=`eval echo '${'$as_ac_Header'}'`
13357 { echo "$as_me:$LINENO: result: $ac_res" >&5
13358 echo "${ECHO_T}$ac_res" >&6; }
13361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13362 cat >>confdefs.h <<_ACEOF
13363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13367 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13368 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13369 { (exit 1); exit 1; }; }
13382 ## Types, structures, compiler characteristics
13385 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13386 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13387 if test "${ac_cv_c_bigendian+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 # See if sys/param.h defines the BYTE_ORDER macro.
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 #include <sys/types.h>
13398 #include <sys/param.h>
13403 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13404 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13405 bogus endian macros
13412 rm -f conftest.$ac_objext
13413 if { (ac_try="$ac_compile"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_compile") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } && {
13426 test -z "$ac_c_werror_flag" ||
13427 test ! -s conftest.err
13428 } && test -s conftest.$ac_objext; then
13429 # It does; now see whether it defined to BIG_ENDIAN or not.
13430 cat >conftest.$ac_ext <<_ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436 #include <sys/types.h>
13437 #include <sys/param.h>
13442 #if BYTE_ORDER != BIG_ENDIAN
13450 rm -f conftest.$ac_objext
13451 if { (ac_try="$ac_compile"
13452 case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_compile") 2>conftest.er1
13459 grep -v '^ *+' conftest.er1 >conftest.err
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } && {
13464 test -z "$ac_c_werror_flag" ||
13465 test ! -s conftest.err
13466 } && test -s conftest.$ac_objext; then
13467 ac_cv_c_bigendian=yes
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13472 ac_cv_c_bigendian=no
13475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 # It does not; compile a test program.
13481 if test "$cross_compiling" = yes; then
13482 # try to guess the endianness by grepping values into an object file
13483 ac_cv_c_bigendian=unknown
13484 cat >conftest.$ac_ext <<_ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13490 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13491 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13492 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13493 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13494 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13495 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13499 _ascii (); _ebcdic ();
13504 rm -f conftest.$ac_objext
13505 if { (ac_try="$ac_compile"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_compile") 2>conftest.er1
13513 grep -v '^ *+' conftest.er1 >conftest.err
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest.$ac_objext; then
13521 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13522 ac_cv_c_bigendian=yes
13524 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13525 if test "$ac_cv_c_bigendian" = unknown; then
13526 ac_cv_c_bigendian=no
13528 # finding both strings is unlikely to happen, but who knows?
13529 ac_cv_c_bigendian=unknown
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541 cat >conftest.$ac_ext <<_ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 $ac_includes_default
13552 /* Are we little or big endian? From Harbison&Steele. */
13556 char c[sizeof (long int)];
13559 return u.c[sizeof (long int) - 1] == 1;
13565 rm -f conftest$ac_exeext
13566 if { (ac_try="$ac_link"
13567 case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_link") 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13576 { (case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_try") 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 ac_cv_c_bigendian=no
13587 echo "$as_me: program exited with status $ac_status" >&5
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ( exit $ac_status )
13592 ac_cv_c_bigendian=yes
13594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13603 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13604 case $ac_cv_c_bigendian in
13607 cat >>confdefs.h <<\_ACEOF
13608 #define WORDS_BIGENDIAN 1
13614 { { echo "$as_me:$LINENO: error: unknown endianness
13615 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13616 echo "$as_me: error: unknown endianness
13617 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13618 { (exit 1); exit 1; }; } ;;
13621 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13622 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13623 if test "${ac_cv_c_const+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 cat >conftest.$ac_ext <<_ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13636 /* FIXME: Include the comments suggested by Paul. */
13637 #ifndef __cplusplus
13638 /* Ultrix mips cc rejects this. */
13639 typedef int charset[2];
13641 /* SunOS 4.1.1 cc rejects this. */
13642 char const *const *pcpcc;
13644 /* NEC SVR4.0.2 mips cc rejects this. */
13645 struct point {int x, y;};
13646 static struct point const zero = {0,0};
13647 /* AIX XL C 1.02.0.0 rejects this.
13648 It does not let you subtract one const X* pointer from another in
13649 an arm of an if-expression whose if-part is not a constant
13651 const char *g = "string";
13652 pcpcc = &g + (g ? g-g : 0);
13653 /* HPUX 7.0 cc rejects these. */
13655 ppc = (char**) pcpcc;
13656 pcpcc = (char const *const *) ppc;
13657 { /* SCO 3.2v4 cc rejects this. */
13659 char const *s = 0 ? (char *) 0 : (char const *) 0;
13664 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13665 int x[] = {25, 17};
13666 const int *foo = &x[0];
13669 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13670 typedef const int *iptr;
13674 { /* AIX XL C 1.02.0.0 rejects this saying
13675 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13676 struct s { int j; const int *ap[3]; };
13677 struct s *b; b->j = 5;
13679 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13680 const int foo = 10;
13681 if (!foo) return 0;
13683 return !cs[0] && !zero.x;
13690 rm -f conftest.$ac_objext
13691 if { (ac_try="$ac_compile"
13692 case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_compile") 2>conftest.er1
13699 grep -v '^ *+' conftest.er1 >conftest.err
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } && {
13704 test -z "$ac_c_werror_flag" ||
13705 test ! -s conftest.err
13706 } && test -s conftest.$ac_objext; then
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13718 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13719 if test $ac_cv_c_const = no; then
13721 cat >>confdefs.h <<\_ACEOF
13727 { echo "$as_me:$LINENO: checking for inline" >&5
13728 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13729 if test "${ac_cv_c_inline+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 for ac_kw in inline __inline__ __inline; do
13734 cat >conftest.$ac_ext <<_ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13740 #ifndef __cplusplus
13742 static $ac_kw foo_t static_foo () {return 0; }
13743 $ac_kw foo_t foo () {return 0; }
13747 rm -f conftest.$ac_objext
13748 if { (ac_try="$ac_compile"
13749 case "(($ac_try" in
13750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13751 *) ac_try_echo=$ac_try;;
13753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13754 (eval "$ac_compile") 2>conftest.er1
13756 grep -v '^ *+' conftest.er1 >conftest.err
13758 cat conftest.err >&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } && {
13761 test -z "$ac_c_werror_flag" ||
13762 test ! -s conftest.err
13763 } && test -s conftest.$ac_objext; then
13764 ac_cv_c_inline=$ac_kw
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773 test "$ac_cv_c_inline" != no && break
13777 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13778 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13781 case $ac_cv_c_inline in
13784 case $ac_cv_c_inline in
13786 *) ac_val=$ac_cv_c_inline;;
13788 cat >>confdefs.h <<_ACEOF
13789 #ifndef __cplusplus
13790 #define inline $ac_val
13796 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13797 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13798 if test "${ac_cv_c_stringize+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 cat >conftest.$ac_ext <<_ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13809 char *s = x(teststring);
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "#teststring" >/dev/null 2>&1; then
13813 ac_cv_c_stringize=no
13815 ac_cv_c_stringize=yes
13820 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13821 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13822 if test $ac_cv_c_stringize = yes; then
13824 cat >>confdefs.h <<\_ACEOF
13825 #define HAVE_STRINGIZE 1
13830 { echo "$as_me:$LINENO: checking for signed types" >&5
13831 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13832 if test "${pgac_cv_c_signed+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 cat >conftest.$ac_ext <<_ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13845 signed char c; signed short s; signed int i;
13850 rm -f conftest.$ac_objext
13851 if { (ac_try="$ac_compile"
13852 case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_compile") 2>conftest.er1
13859 grep -v '^ *+' conftest.er1 >conftest.err
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } && {
13864 test -z "$ac_c_werror_flag" ||
13865 test ! -s conftest.err
13866 } && test -s conftest.$ac_objext; then
13867 pgac_cv_c_signed=yes
13869 echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13872 pgac_cv_c_signed=no
13875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13877 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13878 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13879 if test x"$pgac_cv_c_signed" = xno ; then
13881 cat >>confdefs.h <<\_ACEOF
13886 { echo "$as_me:$LINENO: checking for working volatile" >&5
13887 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13888 if test "${ac_cv_c_volatile+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 cat >conftest.$ac_ext <<_ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13903 int * volatile y = (int *) 0;
13909 rm -f conftest.$ac_objext
13910 if { (ac_try="$ac_compile"
13911 case "(($ac_try" in
13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913 *) ac_try_echo=$ac_try;;
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_compile") 2>conftest.er1
13918 grep -v '^ *+' conftest.er1 >conftest.err
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } && {
13923 test -z "$ac_c_werror_flag" ||
13924 test ! -s conftest.err
13925 } && test -s conftest.$ac_objext; then
13926 ac_cv_c_volatile=yes
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13931 ac_cv_c_volatile=no
13934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13936 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13937 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13938 if test $ac_cv_c_volatile = no; then
13940 cat >>confdefs.h <<\_ACEOF
13946 { echo "$as_me:$LINENO: checking for __func__" >&5
13947 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13948 if test "${pgac_cv_funcname_func_support+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 cat >conftest.$ac_ext <<_ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13961 printf("%s\n", __func__);
13966 rm -f conftest.$ac_objext
13967 if { (ac_try="$ac_compile"
13968 case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_compile") 2>conftest.er1
13975 grep -v '^ *+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } && {
13980 test -z "$ac_c_werror_flag" ||
13981 test ! -s conftest.err
13982 } && test -s conftest.$ac_objext; then
13983 pgac_cv_funcname_func_support=yes
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13988 pgac_cv_funcname_func_support=no
13991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13994 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13995 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13997 cat >>confdefs.h <<\_ACEOF
13998 #define HAVE_FUNCNAME__FUNC 1
14002 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14003 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14004 if test "${pgac_cv_funcname_function_support+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 cat >conftest.$ac_ext <<_ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14017 printf("%s\n", __FUNCTION__);
14022 rm -f conftest.$ac_objext
14023 if { (ac_try="$ac_compile"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_compile") 2>conftest.er1
14031 grep -v '^ *+' conftest.er1 >conftest.err
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } && {
14036 test -z "$ac_c_werror_flag" ||
14037 test ! -s conftest.err
14038 } && test -s conftest.$ac_objext; then
14039 pgac_cv_funcname_function_support=yes
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 pgac_cv_funcname_function_support=no
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14050 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14051 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14053 cat >>confdefs.h <<\_ACEOF
14054 #define HAVE_FUNCNAME__FUNCTION 1
14059 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14060 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14061 if test "${ac_cv_struct_tm+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 cat >conftest.$ac_ext <<_ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14070 #include <sys/types.h>
14077 int *p = &tm.tm_sec;
14083 rm -f conftest.$ac_objext
14084 if { (ac_try="$ac_compile"
14085 case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_compile") 2>conftest.er1
14092 grep -v '^ *+' conftest.er1 >conftest.err
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && {
14097 test -z "$ac_c_werror_flag" ||
14098 test ! -s conftest.err
14099 } && test -s conftest.$ac_objext; then
14100 ac_cv_struct_tm=time.h
14102 echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14105 ac_cv_struct_tm=sys/time.h
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14111 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14112 if test $ac_cv_struct_tm = sys/time.h; then
14114 cat >>confdefs.h <<\_ACEOF
14115 #define TM_IN_SYS_TIME 1
14120 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14121 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14122 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 cat >conftest.$ac_ext <<_ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 #include <sys/types.h>
14132 #include <$ac_cv_struct_tm>
14138 static struct tm ac_aggr;
14139 if (ac_aggr.tm_zone)
14145 rm -f conftest.$ac_objext
14146 if { (ac_try="$ac_compile"
14147 case "(($ac_try" in
14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149 *) ac_try_echo=$ac_try;;
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_compile") 2>conftest.er1
14154 grep -v '^ *+' conftest.er1 >conftest.err
14156 cat conftest.err >&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } && {
14159 test -z "$ac_c_werror_flag" ||
14160 test ! -s conftest.err
14161 } && test -s conftest.$ac_objext; then
14162 ac_cv_member_struct_tm_tm_zone=yes
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 cat >conftest.$ac_ext <<_ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14173 #include <sys/types.h>
14174 #include <$ac_cv_struct_tm>
14180 static struct tm ac_aggr;
14181 if (sizeof ac_aggr.tm_zone)
14187 rm -f conftest.$ac_objext
14188 if { (ac_try="$ac_compile"
14189 case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_compile") 2>conftest.er1
14196 grep -v '^ *+' conftest.er1 >conftest.err
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } && {
14201 test -z "$ac_c_werror_flag" ||
14202 test ! -s conftest.err
14203 } && test -s conftest.$ac_objext; then
14204 ac_cv_member_struct_tm_tm_zone=yes
14206 echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14209 ac_cv_member_struct_tm_tm_zone=no
14212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14217 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14218 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14219 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14221 cat >>confdefs.h <<_ACEOF
14222 #define HAVE_STRUCT_TM_TM_ZONE 1
14228 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14230 cat >>confdefs.h <<\_ACEOF
14231 #define HAVE_TM_ZONE 1
14235 { echo "$as_me:$LINENO: checking for tzname" >&5
14236 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14237 if test "${ac_cv_var_tzname+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 cat >conftest.$ac_ext <<_ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14247 #ifndef tzname /* For SGI. */
14248 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14259 rm -f conftest.$ac_objext conftest$ac_exeext
14260 if { (ac_try="$ac_link"
14261 case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_link") 2>conftest.er1
14268 grep -v '^ *+' conftest.er1 >conftest.err
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } && {
14273 test -z "$ac_c_werror_flag" ||
14274 test ! -s conftest.err
14275 } && test -s conftest$ac_exeext &&
14276 $as_test_x conftest$ac_exeext; then
14277 ac_cv_var_tzname=yes
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14282 ac_cv_var_tzname=no
14285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14286 conftest$ac_exeext conftest.$ac_ext
14288 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14289 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14290 if test $ac_cv_var_tzname = yes; then
14292 cat >>confdefs.h <<\_ACEOF
14293 #define HAVE_TZNAME 1
14298 { echo "$as_me:$LINENO: checking for union semun" >&5
14299 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14300 if test "${ac_cv_type_union_semun+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 cat >conftest.$ac_ext <<_ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 #include <sys/types.h>
14310 #include <sys/ipc.h>
14311 #include <sys/sem.h>
14313 typedef union semun ac__type_new_;
14317 if ((ac__type_new_ *) 0)
14319 if (sizeof (ac__type_new_))
14325 rm -f conftest.$ac_objext
14326 if { (ac_try="$ac_compile"
14327 case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_compile") 2>conftest.er1
14334 grep -v '^ *+' conftest.er1 >conftest.err
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest.$ac_objext; then
14342 ac_cv_type_union_semun=yes
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 ac_cv_type_union_semun=no
14350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14353 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14354 if test $ac_cv_type_union_semun = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define HAVE_UNION_SEMUN 1
14363 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14364 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14365 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 cat >conftest.$ac_ext <<_ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 #include <sys/types.h>
14375 #ifdef HAVE_SYS_UN_H
14376 #include <sys/un.h>
14380 typedef struct sockaddr_un ac__type_new_;
14384 if ((ac__type_new_ *) 0)
14386 if (sizeof (ac__type_new_))
14392 rm -f conftest.$ac_objext
14393 if { (ac_try="$ac_compile"
14394 case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_compile") 2>conftest.er1
14401 grep -v '^ *+' conftest.er1 >conftest.err
14403 cat conftest.err >&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } && {
14406 test -z "$ac_c_werror_flag" ||
14407 test ! -s conftest.err
14408 } && test -s conftest.$ac_objext; then
14409 ac_cv_type_struct_sockaddr_un=yes
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 ac_cv_type_struct_sockaddr_un=no
14417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14420 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14421 if test $ac_cv_type_struct_sockaddr_un = yes; then
14423 cat >>confdefs.h <<_ACEOF
14424 #define HAVE_STRUCT_SOCKADDR_UN 1
14428 cat >>confdefs.h <<\_ACEOF
14429 #define HAVE_UNIX_SOCKETS 1
14434 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14435 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14436 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 #include <sys/types.h>
14446 #ifdef HAVE_SYS_SOCKET_H
14447 #include <sys/socket.h>
14451 typedef struct sockaddr_storage ac__type_new_;
14455 if ((ac__type_new_ *) 0)
14457 if (sizeof (ac__type_new_))
14463 rm -f conftest.$ac_objext
14464 if { (ac_try="$ac_compile"
14465 case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_compile") 2>conftest.er1
14472 grep -v '^ *+' conftest.er1 >conftest.err
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } && {
14477 test -z "$ac_c_werror_flag" ||
14478 test ! -s conftest.err
14479 } && test -s conftest.$ac_objext; then
14480 ac_cv_type_struct_sockaddr_storage=yes
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14485 ac_cv_type_struct_sockaddr_storage=no
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14490 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14491 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14492 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14494 cat >>confdefs.h <<_ACEOF
14495 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14501 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14502 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14503 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 cat >conftest.$ac_ext <<_ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 #include <sys/types.h>
14513 #ifdef HAVE_SYS_SOCKET_H
14514 #include <sys/socket.h>
14521 static struct sockaddr_storage ac_aggr;
14522 if (ac_aggr.ss_family)
14528 rm -f conftest.$ac_objext
14529 if { (ac_try="$ac_compile"
14530 case "(($ac_try" in
14531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532 *) ac_try_echo=$ac_try;;
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535 (eval "$ac_compile") 2>conftest.er1
14537 grep -v '^ *+' conftest.er1 >conftest.err
14539 cat conftest.err >&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } && {
14542 test -z "$ac_c_werror_flag" ||
14543 test ! -s conftest.err
14544 } && test -s conftest.$ac_objext; then
14545 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
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/types.h>
14557 #ifdef HAVE_SYS_SOCKET_H
14558 #include <sys/socket.h>
14565 static struct sockaddr_storage ac_aggr;
14566 if (sizeof ac_aggr.ss_family)
14572 rm -f conftest.$ac_objext
14573 if { (ac_try="$ac_compile"
14574 case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_compile") 2>conftest.er1
14581 grep -v '^ *+' conftest.er1 >conftest.err
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } && {
14586 test -z "$ac_c_werror_flag" ||
14587 test ! -s conftest.err
14588 } && test -s conftest.$ac_objext; then
14589 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14594 ac_cv_member_struct_sockaddr_storage_ss_family=no
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14603 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14604 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14606 cat >>confdefs.h <<_ACEOF
14607 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14612 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14613 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14614 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 cat >conftest.$ac_ext <<_ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 #include <sys/types.h>
14624 #ifdef HAVE_SYS_SOCKET_H
14625 #include <sys/socket.h>
14632 static struct sockaddr_storage ac_aggr;
14633 if (ac_aggr.__ss_family)
14639 rm -f conftest.$ac_objext
14640 if { (ac_try="$ac_compile"
14641 case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_compile") 2>conftest.er1
14648 grep -v '^ *+' conftest.er1 >conftest.err
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } && {
14653 test -z "$ac_c_werror_flag" ||
14654 test ! -s conftest.err
14655 } && test -s conftest.$ac_objext; then
14656 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14661 cat >conftest.$ac_ext <<_ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 #include <sys/types.h>
14668 #ifdef HAVE_SYS_SOCKET_H
14669 #include <sys/socket.h>
14676 static struct sockaddr_storage ac_aggr;
14677 if (sizeof ac_aggr.__ss_family)
14683 rm -f conftest.$ac_objext
14684 if { (ac_try="$ac_compile"
14685 case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_compile") 2>conftest.er1
14692 grep -v '^ *+' conftest.er1 >conftest.err
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } && {
14697 test -z "$ac_c_werror_flag" ||
14698 test ! -s conftest.err
14699 } && test -s conftest.$ac_objext; then
14700 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14705 ac_cv_member_struct_sockaddr_storage___ss_family=no
14708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14714 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14715 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14717 cat >>confdefs.h <<_ACEOF
14718 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14723 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14724 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14725 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 cat >conftest.$ac_ext <<_ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 #include <sys/types.h>
14735 #ifdef HAVE_SYS_SOCKET_H
14736 #include <sys/socket.h>
14743 static struct sockaddr_storage ac_aggr;
14744 if (ac_aggr.ss_len)
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14759 grep -v '^ *+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest.$ac_objext; then
14767 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 cat >conftest.$ac_ext <<_ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 #include <sys/types.h>
14779 #ifdef HAVE_SYS_SOCKET_H
14780 #include <sys/socket.h>
14787 static struct sockaddr_storage ac_aggr;
14788 if (sizeof ac_aggr.ss_len)
14794 rm -f conftest.$ac_objext
14795 if { (ac_try="$ac_compile"
14796 case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_compile") 2>conftest.er1
14803 grep -v '^ *+' conftest.er1 >conftest.err
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest.$ac_objext; then
14811 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_cv_member_struct_sockaddr_storage_ss_len=no
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14825 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14826 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14828 cat >>confdefs.h <<_ACEOF
14829 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14834 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14835 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14836 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 cat >conftest.$ac_ext <<_ACEOF
14842 cat confdefs.h >>conftest.$ac_ext
14843 cat >>conftest.$ac_ext <<_ACEOF
14844 /* end confdefs.h. */
14845 #include <sys/types.h>
14846 #ifdef HAVE_SYS_SOCKET_H
14847 #include <sys/socket.h>
14854 static struct sockaddr_storage ac_aggr;
14855 if (ac_aggr.__ss_len)
14861 rm -f conftest.$ac_objext
14862 if { (ac_try="$ac_compile"
14863 case "(($ac_try" in
14864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14865 *) ac_try_echo=$ac_try;;
14867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14868 (eval "$ac_compile") 2>conftest.er1
14870 grep -v '^ *+' conftest.er1 >conftest.err
14872 cat conftest.err >&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } && {
14875 test -z "$ac_c_werror_flag" ||
14876 test ! -s conftest.err
14877 } && test -s conftest.$ac_objext; then
14878 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14883 cat >conftest.$ac_ext <<_ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14889 #include <sys/types.h>
14890 #ifdef HAVE_SYS_SOCKET_H
14891 #include <sys/socket.h>
14898 static struct sockaddr_storage ac_aggr;
14899 if (sizeof ac_aggr.__ss_len)
14905 rm -f conftest.$ac_objext
14906 if { (ac_try="$ac_compile"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_compile") 2>conftest.er1
14914 grep -v '^ *+' conftest.er1 >conftest.err
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } && {
14919 test -z "$ac_c_werror_flag" ||
14920 test ! -s conftest.err
14921 } && test -s conftest.$ac_objext; then
14922 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_cv_member_struct_sockaddr_storage___ss_len=no
14930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14935 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14936 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14937 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14939 cat >>confdefs.h <<_ACEOF
14940 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14945 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14946 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14947 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14950 cat >conftest.$ac_ext <<_ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14956 #include <sys/types.h>
14957 #ifdef HAVE_SYS_SOCKET_H
14958 #include <sys/socket.h>
14965 static struct sockaddr ac_aggr;
14966 if (ac_aggr.sa_len)
14972 rm -f conftest.$ac_objext
14973 if { (ac_try="$ac_compile"
14974 case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_compile") 2>conftest.er1
14981 grep -v '^ *+' conftest.er1 >conftest.err
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } && {
14986 test -z "$ac_c_werror_flag" ||
14987 test ! -s conftest.err
14988 } && test -s conftest.$ac_objext; then
14989 ac_cv_member_struct_sockaddr_sa_len=yes
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 cat >conftest.$ac_ext <<_ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 #include <sys/types.h>
15001 #ifdef HAVE_SYS_SOCKET_H
15002 #include <sys/socket.h>
15009 static struct sockaddr ac_aggr;
15010 if (sizeof ac_aggr.sa_len)
15016 rm -f conftest.$ac_objext
15017 if { (ac_try="$ac_compile"
15018 case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_compile") 2>conftest.er1
15025 grep -v '^ *+' conftest.er1 >conftest.err
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } && {
15030 test -z "$ac_c_werror_flag" ||
15031 test ! -s conftest.err
15032 } && test -s conftest.$ac_objext; then
15033 ac_cv_member_struct_sockaddr_sa_len=yes
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15038 ac_cv_member_struct_sockaddr_sa_len=no
15041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15047 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15048 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15050 cat >>confdefs.h <<_ACEOF
15051 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15057 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15058 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15059 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15060 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 cat >conftest.$ac_ext <<_ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 #include <sys/types.h>
15069 #include <sys/socket.h>
15073 typedef struct addrinfo ac__type_new_;
15077 if ((ac__type_new_ *) 0)
15079 if (sizeof (ac__type_new_))
15085 rm -f conftest.$ac_objext
15086 if { (ac_try="$ac_compile"
15087 case "(($ac_try" in
15088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092 (eval "$ac_compile") 2>conftest.er1
15094 grep -v '^ *+' conftest.er1 >conftest.err
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } && {
15099 test -z "$ac_c_werror_flag" ||
15100 test ! -s conftest.err
15101 } && test -s conftest.$ac_objext; then
15102 ac_cv_type_struct_addrinfo=yes
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_cv_type_struct_addrinfo=no
15110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15113 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15114 if test $ac_cv_type_struct_addrinfo = yes; then
15116 cat >>confdefs.h <<_ACEOF
15117 #define HAVE_STRUCT_ADDRINFO 1
15124 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15125 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15126 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 cat >conftest.$ac_ext <<_ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15135 #include <sys/param.h>
15136 #include <sys/types.h>
15137 #include <sys/socket.h>
15138 #include <sys/ucred.h>
15140 typedef struct cmsgcred ac__type_new_;
15144 if ((ac__type_new_ *) 0)
15146 if (sizeof (ac__type_new_))
15152 rm -f conftest.$ac_objext
15153 if { (ac_try="$ac_compile"
15154 case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_compile") 2>conftest.er1
15161 grep -v '^ *+' conftest.er1 >conftest.err
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } && {
15166 test -z "$ac_c_werror_flag" ||
15167 test ! -s conftest.err
15168 } && test -s conftest.$ac_objext; then
15169 ac_cv_type_struct_cmsgcred=yes
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15174 ac_cv_type_struct_cmsgcred=no
15177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15179 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15180 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15181 if test $ac_cv_type_struct_cmsgcred = yes; then
15183 cat >>confdefs.h <<_ACEOF
15184 #define HAVE_STRUCT_CMSGCRED 1
15189 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15190 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15191 if test "${ac_cv_type_struct_fcred+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 #include <sys/param.h>
15201 #include <sys/types.h>
15202 #include <sys/socket.h>
15203 #include <sys/ucred.h>
15205 typedef struct fcred ac__type_new_;
15209 if ((ac__type_new_ *) 0)
15211 if (sizeof (ac__type_new_))
15217 rm -f conftest.$ac_objext
15218 if { (ac_try="$ac_compile"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_compile") 2>conftest.er1
15226 grep -v '^ *+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } && {
15231 test -z "$ac_c_werror_flag" ||
15232 test ! -s conftest.err
15233 } && test -s conftest.$ac_objext; then
15234 ac_cv_type_struct_fcred=yes
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 ac_cv_type_struct_fcred=no
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15245 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15246 if test $ac_cv_type_struct_fcred = yes; then
15248 cat >>confdefs.h <<_ACEOF
15249 #define HAVE_STRUCT_FCRED 1
15254 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15255 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15256 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 cat >conftest.$ac_ext <<_ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 #include <sys/param.h>
15266 #include <sys/types.h>
15267 #include <sys/socket.h>
15268 #include <sys/ucred.h>
15270 typedef struct sockcred ac__type_new_;
15274 if ((ac__type_new_ *) 0)
15276 if (sizeof (ac__type_new_))
15282 rm -f conftest.$ac_objext
15283 if { (ac_try="$ac_compile"
15284 case "(($ac_try" in
15285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15286 *) ac_try_echo=$ac_try;;
15288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15289 (eval "$ac_compile") 2>conftest.er1
15291 grep -v '^ *+' conftest.er1 >conftest.err
15293 cat conftest.err >&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } && {
15296 test -z "$ac_c_werror_flag" ||
15297 test ! -s conftest.err
15298 } && test -s conftest.$ac_objext; then
15299 ac_cv_type_struct_sockcred=yes
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 ac_cv_type_struct_sockcred=no
15307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15309 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15310 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15311 if test $ac_cv_type_struct_sockcred = yes; then
15313 cat >>confdefs.h <<_ACEOF
15314 #define HAVE_STRUCT_SOCKCRED 1
15321 { echo "$as_me:$LINENO: checking for struct option" >&5
15322 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15323 if test "${ac_cv_type_struct_option+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 cat >conftest.$ac_ext <<_ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 #ifdef HAVE_GETOPT_H
15333 #include <getopt.h>
15336 typedef struct option ac__type_new_;
15340 if ((ac__type_new_ *) 0)
15342 if (sizeof (ac__type_new_))
15348 rm -f conftest.$ac_objext
15349 if { (ac_try="$ac_compile"
15350 case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_compile") 2>conftest.er1
15357 grep -v '^ *+' conftest.er1 >conftest.err
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && {
15362 test -z "$ac_c_werror_flag" ||
15363 test ! -s conftest.err
15364 } && test -s conftest.$ac_objext; then
15365 ac_cv_type_struct_option=yes
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ac_cv_type_struct_option=no
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15376 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15377 if test $ac_cv_type_struct_option = yes; then
15379 cat >>confdefs.h <<_ACEOF
15380 #define HAVE_STRUCT_OPTION 1
15387 if test "$with_zlib" = yes; then
15388 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15389 # did not). While we could work around the lack of z_streamp, it
15390 # seems unwise to encourage people to use such old zlib versions...
15391 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15392 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15393 if test "${ac_cv_type_z_streamp+set}" = set; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15396 cat >conftest.$ac_ext <<_ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15404 typedef z_streamp ac__type_new_;
15408 if ((ac__type_new_ *) 0)
15410 if (sizeof (ac__type_new_))
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_compile") 2>conftest.er1
15425 grep -v '^ *+' conftest.er1 >conftest.err
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest.$ac_objext; then
15433 ac_cv_type_z_streamp=yes
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15438 ac_cv_type_z_streamp=no
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15443 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15444 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15445 if test $ac_cv_type_z_streamp = yes; then
15448 { { echo "$as_me:$LINENO: error: zlib version is too old
15449 Use --without-zlib to disable zlib support." >&5
15450 echo "$as_me: error: zlib version is too old
15451 Use --without-zlib to disable zlib support." >&2;}
15452 { (exit 1); exit 1; }; }
15457 if test "$with_krb5" = yes; then
15458 # Check for differences between MIT and Heimdal (KTH) releases
15459 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15460 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15461 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 cat >conftest.$ac_ext <<_ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15475 static krb5_ticket ac_aggr;
15476 if (ac_aggr.enc_part2)
15482 rm -f conftest.$ac_objext
15483 if { (ac_try="$ac_compile"
15484 case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_compile") 2>conftest.er1
15491 grep -v '^ *+' conftest.er1 >conftest.err
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } && {
15496 test -z "$ac_c_werror_flag" ||
15497 test ! -s conftest.err
15498 } && test -s conftest.$ac_objext; then
15499 ac_cv_member_krb5_ticket_enc_part2=yes
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 cat >conftest.$ac_ext <<_ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15515 static krb5_ticket ac_aggr;
15516 if (sizeof ac_aggr.enc_part2)
15522 rm -f conftest.$ac_objext
15523 if { (ac_try="$ac_compile"
15524 case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_compile") 2>conftest.er1
15531 grep -v '^ *+' conftest.er1 >conftest.err
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } && {
15536 test -z "$ac_c_werror_flag" ||
15537 test ! -s conftest.err
15538 } && test -s conftest.$ac_objext; then
15539 ac_cv_member_krb5_ticket_enc_part2=yes
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_cv_member_krb5_ticket_enc_part2=no
15547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15552 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15553 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15554 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15556 cat >>confdefs.h <<_ACEOF
15557 #define HAVE_KRB5_TICKET_ENC_PART2 1
15562 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15563 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15564 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 cat >conftest.$ac_ext <<_ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15578 static krb5_ticket ac_aggr;
15579 if (ac_aggr.client)
15585 rm -f conftest.$ac_objext
15586 if { (ac_try="$ac_compile"
15587 case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_compile") 2>conftest.er1
15594 grep -v '^ *+' conftest.er1 >conftest.err
15596 cat conftest.err >&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } && {
15599 test -z "$ac_c_werror_flag" ||
15600 test ! -s conftest.err
15601 } && test -s conftest.$ac_objext; then
15602 ac_cv_member_krb5_ticket_client=yes
15604 echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15607 cat >conftest.$ac_ext <<_ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h. */
15618 static krb5_ticket ac_aggr;
15619 if (sizeof ac_aggr.client)
15625 rm -f conftest.$ac_objext
15626 if { (ac_try="$ac_compile"
15627 case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_compile") 2>conftest.er1
15634 grep -v '^ *+' conftest.er1 >conftest.err
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } && {
15639 test -z "$ac_c_werror_flag" ||
15640 test ! -s conftest.err
15641 } && test -s conftest.$ac_objext; then
15642 ac_cv_member_krb5_ticket_client=yes
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 ac_cv_member_krb5_ticket_client=no
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15655 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15656 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15657 if test $ac_cv_member_krb5_ticket_client = yes; then
15659 cat >>confdefs.h <<_ACEOF
15660 #define HAVE_KRB5_TICKET_CLIENT 1
15665 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15666 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15667 { (exit 1); exit 1; }; }
15672 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15673 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15674 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15688 static krb5_error ac_aggr;
15689 if (ac_aggr.text.data)
15695 rm -f conftest.$ac_objext
15696 if { (ac_try="$ac_compile"
15697 case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_compile") 2>conftest.er1
15704 grep -v '^ *+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } && {
15709 test -z "$ac_c_werror_flag" ||
15710 test ! -s conftest.err
15711 } && test -s conftest.$ac_objext; then
15712 ac_cv_member_krb5_error_text_data=yes
15714 echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15717 cat >conftest.$ac_ext <<_ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15728 static krb5_error ac_aggr;
15729 if (sizeof ac_aggr.text.data)
15735 rm -f conftest.$ac_objext
15736 if { (ac_try="$ac_compile"
15737 case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_compile") 2>conftest.er1
15744 grep -v '^ *+' conftest.er1 >conftest.err
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } && {
15749 test -z "$ac_c_werror_flag" ||
15750 test ! -s conftest.err
15751 } && test -s conftest.$ac_objext; then
15752 ac_cv_member_krb5_error_text_data=yes
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15757 ac_cv_member_krb5_error_text_data=no
15760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15766 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15767 if test $ac_cv_member_krb5_error_text_data = yes; then
15769 cat >>confdefs.h <<_ACEOF
15770 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15775 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15776 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15777 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 cat >conftest.$ac_ext <<_ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15791 static krb5_error ac_aggr;
15792 if (ac_aggr.e_data)
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_compile") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest.$ac_objext; then
15815 ac_cv_member_krb5_error_e_data=yes
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 cat >conftest.$ac_ext <<_ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h. */
15831 static krb5_error ac_aggr;
15832 if (sizeof ac_aggr.e_data)
15838 rm -f conftest.$ac_objext
15839 if { (ac_try="$ac_compile"
15840 case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_compile") 2>conftest.er1
15847 grep -v '^ *+' conftest.er1 >conftest.err
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } && {
15852 test -z "$ac_c_werror_flag" ||
15853 test ! -s conftest.err
15854 } && test -s conftest.$ac_objext; then
15855 ac_cv_member_krb5_error_e_data=yes
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 ac_cv_member_krb5_error_e_data=no
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15868 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15869 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15870 if test $ac_cv_member_krb5_error_e_data = yes; then
15872 cat >>confdefs.h <<_ACEOF
15873 #define HAVE_KRB5_ERROR_E_DATA 1
15878 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15879 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15880 { (exit 1); exit 1; }; }
15886 # Win32 requires headers to be loaded for __stdcall, so can't use
15887 # AC_CHECK_FUNCS here.
15888 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15889 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15890 cat >conftest.$ac_ext <<_ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15900 krb5_free_unparsed_name(NULL,NULL);
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (ac_try="$ac_link"
15907 case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15912 (eval "$ac_link") 2>conftest.er1
15914 grep -v '^ *+' conftest.er1 >conftest.err
15916 cat conftest.err >&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } && {
15919 test -z "$ac_c_werror_flag" ||
15920 test ! -s conftest.err
15921 } && test -s conftest$ac_exeext &&
15922 $as_test_x conftest$ac_exeext; then
15924 cat >>confdefs.h <<\_ACEOF
15925 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15928 { echo "$as_me:$LINENO: result: yes" >&5
15929 echo "${ECHO_T}yes" >&6; }
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 { echo "$as_me:$LINENO: result: no" >&5
15935 echo "${ECHO_T}no" >&6; }
15938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15939 conftest$ac_exeext conftest.$ac_ext
15944 ## Functions, global variables
15947 { echo "$as_me:$LINENO: checking for int timezone" >&5
15948 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15949 if test "${pgac_cv_var_int_timezone+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 cat >conftest.$ac_ext <<_ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15964 res = timezone / 60;
15966 res = _timezone / 60;
15972 rm -f conftest.$ac_objext conftest$ac_exeext
15973 if { (ac_try="$ac_link"
15974 case "(($ac_try" in
15975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976 *) ac_try_echo=$ac_try;;
15978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15979 (eval "$ac_link") 2>conftest.er1
15981 grep -v '^ *+' conftest.er1 >conftest.err
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } && {
15986 test -z "$ac_c_werror_flag" ||
15987 test ! -s conftest.err
15988 } && test -s conftest$ac_exeext &&
15989 $as_test_x conftest$ac_exeext; then
15990 pgac_cv_var_int_timezone=yes
15992 echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15995 pgac_cv_var_int_timezone=no
15998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15999 conftest$ac_exeext conftest.$ac_ext
16001 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16002 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16003 if test x"$pgac_cv_var_int_timezone" = xyes ; then
16005 cat >>confdefs.h <<\_ACEOF
16006 #define HAVE_INT_TIMEZONE
16010 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16011 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16012 if test "${ac_cv_func_accept_return+set}" = set; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16015 if test "${ac_cv_func_accept_arg1+set}" = set; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 if test "${ac_cv_func_accept_arg2+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 if test "${ac_cv_func_accept_arg3+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
16025 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
16026 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16027 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 #ifdef HAVE_SYS_TYPES_H
16035 #include <sys/types.h>
16037 #ifdef HAVE_SYS_SOCKET_H
16038 #include <sys/socket.h>
16040 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16049 rm -f conftest.$ac_objext
16050 if { (ac_try="$ac_compile"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_compile") 2>conftest.er1
16058 grep -v '^ *+' conftest.er1 >conftest.err
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && {
16063 test -z "$ac_c_werror_flag" ||
16064 test ! -s conftest.err
16065 } && test -s conftest.$ac_objext; then
16066 ac_not_found=no; break 4
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079 if test "$ac_not_found" = yes; then
16080 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16081 echo "$as_me: error: could not determine argument types" >&2;}
16082 { (exit 1); exit 1; }; }
16084 if test "$ac_cv_func_accept_arg3" = "void"; then
16085 ac_cv_func_accept_arg3=int
16095 { 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
16096 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16098 cat >>confdefs.h <<_ACEOF
16099 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16103 cat >>confdefs.h <<_ACEOF
16104 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16108 cat >>confdefs.h <<_ACEOF
16109 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16113 cat >>confdefs.h <<_ACEOF
16114 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16118 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16119 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16120 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16123 cat >conftest.$ac_ext <<_ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 #include <sys/time.h>
16133 struct timeval *tp;
16134 struct timezone *tzp;
16135 gettimeofday(tp,tzp);
16140 rm -f conftest.$ac_objext
16141 if { (ac_try="$ac_compile"
16142 case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_compile") 2>conftest.er1
16149 grep -v '^ *+' conftest.er1 >conftest.err
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } && {
16154 test -z "$ac_c_werror_flag" ||
16155 test ! -s conftest.err
16156 } && test -s conftest.$ac_objext; then
16157 pgac_cv_func_gettimeofday_1arg=no
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 pgac_cv_func_gettimeofday_1arg=yes
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16168 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16169 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
16171 cat >>confdefs.h <<\_ACEOF
16172 #define GETTIMEOFDAY_1ARG
16200 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
16202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16203 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 cat >conftest.$ac_ext <<_ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16216 #define $ac_func innocuous_$ac_func
16218 /* System header to define __stub macros and hopefully few prototypes,
16219 which can conflict with char $ac_func (); below.
16220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16221 <limits.h> exists even on freestanding compilers. */
16224 # include <limits.h>
16226 # include <assert.h>
16231 /* Override any GCC internal prototype to avoid an error.
16232 Use char because int might match the return type of a GCC
16233 builtin and then its argument prototype would still apply. */
16238 /* The GNU C library defines this for functions which it implements
16239 to always fail with ENOSYS. Some functions are actually named
16240 something starting with __ and the normal name is an alias. */
16241 #if defined __stub_$ac_func || defined __stub___$ac_func
16248 return $ac_func ();
16253 rm -f conftest.$ac_objext conftest$ac_exeext
16254 if { (ac_try="$ac_link"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_link") 2>conftest.er1
16262 grep -v '^ *+' conftest.er1 >conftest.err
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest$ac_exeext &&
16270 $as_test_x conftest$ac_exeext; then
16271 eval "$as_ac_var=yes"
16273 echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16276 eval "$as_ac_var=no"
16279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16280 conftest$ac_exeext conftest.$ac_ext
16282 ac_res=`eval echo '${'$as_ac_var'}'`
16283 { echo "$as_me:$LINENO: result: $ac_res" >&5
16284 echo "${ECHO_T}$ac_res" >&6; }
16285 if test `eval echo '${'$as_ac_var'}'` = yes; then
16286 cat >>confdefs.h <<_ACEOF
16287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16294 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16295 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16296 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 cat >conftest.$ac_ext <<_ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 #include <unistd.h>
16318 rm -f conftest.$ac_objext
16319 if { (ac_try="$ac_compile"
16320 case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_compile") 2>conftest.er1
16327 grep -v '^ *+' conftest.er1 >conftest.err
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } && {
16332 test -z "$ac_c_werror_flag" ||
16333 test ! -s conftest.err
16334 } && test -s conftest.$ac_objext; then
16335 ac_cv_have_decl_fdatasync=yes
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ac_cv_have_decl_fdatasync=no
16343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16346 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16347 if test $ac_cv_have_decl_fdatasync = yes; then
16349 cat >>confdefs.h <<_ACEOF
16350 #define HAVE_DECL_FDATASYNC 1
16355 cat >>confdefs.h <<_ACEOF
16356 #define HAVE_DECL_FDATASYNC 0
16363 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16364 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16365 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16379 #ifndef posix_fadvise
16380 (void) posix_fadvise;
16387 rm -f conftest.$ac_objext
16388 if { (ac_try="$ac_compile"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_compile") 2>conftest.er1
16396 grep -v '^ *+' conftest.er1 >conftest.err
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } && {
16401 test -z "$ac_c_werror_flag" ||
16402 test ! -s conftest.err
16403 } && test -s conftest.$ac_objext; then
16404 ac_cv_have_decl_posix_fadvise=yes
16406 echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16409 ac_cv_have_decl_posix_fadvise=no
16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16414 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16415 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16416 if test $ac_cv_have_decl_posix_fadvise = yes; then
16418 cat >>confdefs.h <<_ACEOF
16419 #define HAVE_DECL_POSIX_FADVISE 1
16424 cat >>confdefs.h <<_ACEOF
16425 #define HAVE_DECL_POSIX_FADVISE 0
16432 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16433 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16434 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 cat >conftest.$ac_ext <<_ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16443 $ac_includes_default
16455 rm -f conftest.$ac_objext
16456 if { (ac_try="$ac_compile"
16457 case "(($ac_try" in
16458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459 *) ac_try_echo=$ac_try;;
16461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16462 (eval "$ac_compile") 2>conftest.er1
16464 grep -v '^ *+' conftest.er1 >conftest.err
16466 cat conftest.err >&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } && {
16469 test -z "$ac_c_werror_flag" ||
16470 test ! -s conftest.err
16471 } && test -s conftest.$ac_objext; then
16472 ac_cv_have_decl_strlcat=yes
16474 echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16477 ac_cv_have_decl_strlcat=no
16480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16482 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16483 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16484 if test $ac_cv_have_decl_strlcat = yes; then
16486 cat >>confdefs.h <<_ACEOF
16487 #define HAVE_DECL_STRLCAT 1
16492 cat >>confdefs.h <<_ACEOF
16493 #define HAVE_DECL_STRLCAT 0
16498 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16499 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16500 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 cat >conftest.$ac_ext <<_ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 $ac_includes_default
16521 rm -f conftest.$ac_objext
16522 if { (ac_try="$ac_compile"
16523 case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_compile") 2>conftest.er1
16530 grep -v '^ *+' conftest.er1 >conftest.err
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } && {
16535 test -z "$ac_c_werror_flag" ||
16536 test ! -s conftest.err
16537 } && test -s conftest.$ac_objext; then
16538 ac_cv_have_decl_strlcpy=yes
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 ac_cv_have_decl_strlcpy=no
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16548 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16549 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16550 if test $ac_cv_have_decl_strlcpy = yes; then
16552 cat >>confdefs.h <<_ACEOF
16553 #define HAVE_DECL_STRLCPY 1
16558 cat >>confdefs.h <<_ACEOF
16559 #define HAVE_DECL_STRLCPY 0
16566 # This is probably only present on Darwin, but may as well check always
16567 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16568 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16569 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 cat >conftest.$ac_ext <<_ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16583 #ifndef F_FULLFSYNC
16584 (void) F_FULLFSYNC;
16591 rm -f conftest.$ac_objext
16592 if { (ac_try="$ac_compile"
16593 case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_compile") 2>conftest.er1
16600 grep -v '^ *+' conftest.er1 >conftest.err
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } && {
16605 test -z "$ac_c_werror_flag" ||
16606 test ! -s conftest.err
16607 } && test -s conftest.$ac_objext; then
16608 ac_cv_have_decl_F_FULLFSYNC=yes
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16613 ac_cv_have_decl_F_FULLFSYNC=no
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16619 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16620 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16622 cat >>confdefs.h <<_ACEOF
16623 #define HAVE_DECL_F_FULLFSYNC 1
16628 cat >>confdefs.h <<_ACEOF
16629 #define HAVE_DECL_F_FULLFSYNC 0
16638 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16639 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16640 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 cat >conftest.$ac_ext <<_ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16649 $ac_includes_default
16650 #include <netinet/in.h>
16652 typedef struct sockaddr_in6 ac__type_new_;
16656 if ((ac__type_new_ *) 0)
16658 if (sizeof (ac__type_new_))
16664 rm -f conftest.$ac_objext
16665 if { (ac_try="$ac_compile"
16666 case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_compile") 2>conftest.er1
16673 grep -v '^ *+' conftest.er1 >conftest.err
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } && {
16678 test -z "$ac_c_werror_flag" ||
16679 test ! -s conftest.err
16680 } && test -s conftest.$ac_objext; then
16681 ac_cv_type_struct_sockaddr_in6=yes
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16686 ac_cv_type_struct_sockaddr_in6=no
16689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16691 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16692 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16693 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16695 cat >>confdefs.h <<\_ACEOF
16696 #define HAVE_IPV6 1
16704 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16705 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16706 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 cat >conftest.$ac_ext <<_ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 #include <machine/vmparam.h>
16716 #include <sys/exec.h>
16721 PS_STRINGS->ps_nargvstr = 1;
16722 PS_STRINGS->ps_argvstr = "foo";
16727 rm -f conftest.$ac_objext conftest$ac_exeext
16728 if { (ac_try="$ac_link"
16729 case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_link") 2>conftest.er1
16736 grep -v '^ *+' conftest.er1 >conftest.err
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } && {
16741 test -z "$ac_c_werror_flag" ||
16742 test ! -s conftest.err
16743 } && test -s conftest$ac_exeext &&
16744 $as_test_x conftest$ac_exeext; then
16745 pgac_cv_var_PS_STRINGS=yes
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16750 pgac_cv_var_PS_STRINGS=no
16753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16754 conftest$ac_exeext conftest.$ac_ext
16756 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16757 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16758 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16760 cat >>confdefs.h <<\_ACEOF
16761 #define HAVE_PS_STRINGS
16767 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16768 # is missing. Yes, there are machines that have only one. We may
16769 # also decide to use snprintf.c if snprintf() is present but does not
16770 # have all the features we need --- see below.
16772 if test "$PORTNAME" = "win32"; then
16773 # Win32 gets snprintf.c built unconditionally.
16775 # To properly translate all NLS languages strings, we must support the
16776 # *printf() %$ format, which allows *printf() arguments to be selected
16777 # by position in the translated string.
16779 # libintl versions < 0.13 use the native *printf() functions, and Win32
16780 # *printf() doesn't understand %$, so we must use our /port versions,
16781 # which do understand %$. libintl versions >= 0.13 include their own
16782 # *printf versions on Win32. The libintl 0.13 release note text is:
16784 # C format strings with positions, as they arise when a translator
16785 # needs to reorder a sentence, are now supported on all platforms.
16786 # On those few platforms (NetBSD and Woe32) for which the native
16787 # printf()/fprintf()/... functions don't support such format
16788 # strings, replacements are provided through <libintl.h>.
16790 # We could use libintl >= 0.13's *printf() if we were sure that we had
16791 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16792 # to guarantee that, it is best to just use our own, so we are sure to
16793 # get %$ support. In include/port.h we disable the *printf() macros
16794 # that might have been defined by libintl.
16796 # We do this unconditionally whether NLS is used or not so we are sure
16797 # that all Win32 libraries and binaries behave the same.
16798 pgac_need_repl_snprintf=yes
16800 pgac_need_repl_snprintf=no
16802 for ac_func in snprintf
16804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16810 cat >conftest.$ac_ext <<_ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16818 #define $ac_func innocuous_$ac_func
16820 /* System header to define __stub macros and hopefully few prototypes,
16821 which can conflict with char $ac_func (); below.
16822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16823 <limits.h> exists even on freestanding compilers. */
16826 # include <limits.h>
16828 # include <assert.h>
16833 /* Override any GCC internal prototype to avoid an error.
16834 Use char because int might match the return type of a GCC
16835 builtin and then its argument prototype would still apply. */
16840 /* The GNU C library defines this for functions which it implements
16841 to always fail with ENOSYS. Some functions are actually named
16842 something starting with __ and the normal name is an alias. */
16843 #if defined __stub_$ac_func || defined __stub___$ac_func
16850 return $ac_func ();
16855 rm -f conftest.$ac_objext conftest$ac_exeext
16856 if { (ac_try="$ac_link"
16857 case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_link") 2>conftest.er1
16864 grep -v '^ *+' conftest.er1 >conftest.err
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } && {
16869 test -z "$ac_c_werror_flag" ||
16870 test ! -s conftest.err
16871 } && test -s conftest$ac_exeext &&
16872 $as_test_x conftest$ac_exeext; then
16873 eval "$as_ac_var=yes"
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 eval "$as_ac_var=no"
16881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16882 conftest$ac_exeext conftest.$ac_ext
16884 ac_res=`eval echo '${'$as_ac_var'}'`
16885 { echo "$as_me:$LINENO: result: $ac_res" >&5
16886 echo "${ECHO_T}$ac_res" >&6; }
16887 if test `eval echo '${'$as_ac_var'}'` = yes; then
16888 cat >>confdefs.h <<_ACEOF
16889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16893 pgac_need_repl_snprintf=yes
16898 for ac_func in vsnprintf
16900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 cat >conftest.$ac_ext <<_ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16914 #define $ac_func innocuous_$ac_func
16916 /* System header to define __stub macros and hopefully few prototypes,
16917 which can conflict with char $ac_func (); below.
16918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16919 <limits.h> exists even on freestanding compilers. */
16922 # include <limits.h>
16924 # include <assert.h>
16929 /* Override any GCC internal prototype to avoid an error.
16930 Use char because int might match the return type of a GCC
16931 builtin and then its argument prototype would still apply. */
16936 /* The GNU C library defines this for functions which it implements
16937 to always fail with ENOSYS. Some functions are actually named
16938 something starting with __ and the normal name is an alias. */
16939 #if defined __stub_$ac_func || defined __stub___$ac_func
16946 return $ac_func ();
16951 rm -f conftest.$ac_objext conftest$ac_exeext
16952 if { (ac_try="$ac_link"
16953 case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_link") 2>conftest.er1
16960 grep -v '^ *+' conftest.er1 >conftest.err
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } && {
16965 test -z "$ac_c_werror_flag" ||
16966 test ! -s conftest.err
16967 } && test -s conftest$ac_exeext &&
16968 $as_test_x conftest$ac_exeext; then
16969 eval "$as_ac_var=yes"
16971 echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16974 eval "$as_ac_var=no"
16977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16978 conftest$ac_exeext conftest.$ac_ext
16980 ac_res=`eval echo '${'$as_ac_var'}'`
16981 { echo "$as_me:$LINENO: result: $ac_res" >&5
16982 echo "${ECHO_T}$ac_res" >&6; }
16983 if test `eval echo '${'$as_ac_var'}'` = yes; then
16984 cat >>confdefs.h <<_ACEOF
16985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16989 pgac_need_repl_snprintf=yes
16996 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16997 # include/c.h will provide declarations. Note this is a separate test
16998 # from whether the functions exist in the C library --- there are
16999 # systems that have the functions but don't bother to declare them :-(
17001 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17002 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17003 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 cat >conftest.$ac_ext <<_ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 $ac_includes_default
17024 rm -f conftest.$ac_objext
17025 if { (ac_try="$ac_compile"
17026 case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_compile") 2>conftest.er1
17033 grep -v '^ *+' conftest.er1 >conftest.err
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } && {
17038 test -z "$ac_c_werror_flag" ||
17039 test ! -s conftest.err
17040 } && test -s conftest.$ac_objext; then
17041 ac_cv_have_decl_snprintf=yes
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17046 ac_cv_have_decl_snprintf=no
17049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17051 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17052 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17053 if test $ac_cv_have_decl_snprintf = yes; then
17055 cat >>confdefs.h <<_ACEOF
17056 #define HAVE_DECL_SNPRINTF 1
17061 cat >>confdefs.h <<_ACEOF
17062 #define HAVE_DECL_SNPRINTF 0
17067 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17068 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17069 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 cat >conftest.$ac_ext <<_ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 $ac_includes_default
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_compile") 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } && {
17104 test -z "$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17106 } && test -s conftest.$ac_objext; then
17107 ac_cv_have_decl_vsnprintf=yes
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 ac_cv_have_decl_vsnprintf=no
17115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17118 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17119 if test $ac_cv_have_decl_vsnprintf = yes; then
17121 cat >>confdefs.h <<_ACEOF
17122 #define HAVE_DECL_VSNPRINTF 1
17127 cat >>confdefs.h <<_ACEOF
17128 #define HAVE_DECL_VSNPRINTF 0
17137 { echo "$as_me:$LINENO: checking for isinf" >&5
17138 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17139 if test "${ac_cv_func_isinf+set}" = set; then
17140 echo $ECHO_N "(cached) $ECHO_C" >&6
17142 cat >conftest.$ac_ext <<_ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17150 double glob_double;
17155 return isinf(glob_double) ? 0 : 1;
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (ac_try="$ac_link"
17162 case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_link") 2>conftest.er1
17169 grep -v '^ *+' conftest.er1 >conftest.err
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } && {
17174 test -z "$ac_c_werror_flag" ||
17175 test ! -s conftest.err
17176 } && test -s conftest$ac_exeext &&
17177 $as_test_x conftest$ac_exeext; then
17178 ac_cv_func_isinf=yes
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_func_isinf=no
17186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17187 conftest$ac_exeext conftest.$ac_ext
17189 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17190 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17192 if test $ac_cv_func_isinf = yes ; then
17194 cat >>confdefs.h <<\_ACEOF
17195 #define HAVE_ISINF 1
17199 case " $LIBOBJS " in
17200 *" isinf.$ac_objext "* ) ;;
17201 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
17205 # Look for a way to implement a substitute for isinf()
17210 for ac_func in fpclass fp_class fp_class_d class
17212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 cat >conftest.$ac_ext <<_ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17226 #define $ac_func innocuous_$ac_func
17228 /* System header to define __stub macros and hopefully few prototypes,
17229 which can conflict with char $ac_func (); below.
17230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17231 <limits.h> exists even on freestanding compilers. */
17234 # include <limits.h>
17236 # include <assert.h>
17241 /* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17248 /* The GNU C library defines this for functions which it implements
17249 to always fail with ENOSYS. Some functions are actually named
17250 something starting with __ and the normal name is an alias. */
17251 #if defined __stub_$ac_func || defined __stub___$ac_func
17258 return $ac_func ();
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (ac_try="$ac_link"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17272 grep -v '^ *+' conftest.er1 >conftest.err
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest$ac_exeext &&
17280 $as_test_x conftest$ac_exeext; then
17281 eval "$as_ac_var=yes"
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17286 eval "$as_ac_var=no"
17289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17290 conftest$ac_exeext conftest.$ac_ext
17292 ac_res=`eval echo '${'$as_ac_var'}'`
17293 { echo "$as_me:$LINENO: result: $ac_res" >&5
17294 echo "${ECHO_T}$ac_res" >&6; }
17295 if test `eval echo '${'$as_ac_var'}'` = yes; then
17296 cat >>confdefs.h <<_ACEOF
17297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17305 # Some versions of libedit contain strlcpy(); so disregard that library while
17306 # checking for these standard libc functions.
17307 pgac_save_LIBS="$LIBS"
17308 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17324 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
17326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17327 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17329 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 cat >conftest.$ac_ext <<_ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17340 #define $ac_func innocuous_$ac_func
17342 /* System header to define __stub macros and hopefully few prototypes,
17343 which can conflict with char $ac_func (); below.
17344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17345 <limits.h> exists even on freestanding compilers. */
17348 # include <limits.h>
17350 # include <assert.h>
17355 /* Override any GCC internal prototype to avoid an error.
17356 Use char because int might match the return type of a GCC
17357 builtin and then its argument prototype would still apply. */
17362 /* The GNU C library defines this for functions which it implements
17363 to always fail with ENOSYS. Some functions are actually named
17364 something starting with __ and the normal name is an alias. */
17365 #if defined __stub_$ac_func || defined __stub___$ac_func
17372 return $ac_func ();
17377 rm -f conftest.$ac_objext conftest$ac_exeext
17378 if { (ac_try="$ac_link"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_link") 2>conftest.er1
17386 grep -v '^ *+' conftest.er1 >conftest.err
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } && {
17391 test -z "$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17393 } && test -s conftest$ac_exeext &&
17394 $as_test_x conftest$ac_exeext; then
17395 eval "$as_ac_var=yes"
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17400 eval "$as_ac_var=no"
17403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17404 conftest$ac_exeext conftest.$ac_ext
17406 ac_res=`eval echo '${'$as_ac_var'}'`
17407 { echo "$as_me:$LINENO: result: $ac_res" >&5
17408 echo "${ECHO_T}$ac_res" >&6; }
17409 if test `eval echo '${'$as_ac_var'}'` = yes; then
17410 cat >>confdefs.h <<_ACEOF
17411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17415 case " $LIBOBJS " in
17416 *" $ac_func.$ac_objext "* ) ;;
17417 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17426 LIBS="$pgac_save_LIBS"
17428 # System's version of getaddrinfo(), if any, may be used only if we found
17429 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17430 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17431 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17432 # because we want to use our own getaddrinfo.c on Windows anyway.)
17433 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17435 for ac_func in getaddrinfo
17437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 cat >conftest.$ac_ext <<_ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17451 #define $ac_func innocuous_$ac_func
17453 /* System header to define __stub macros and hopefully few prototypes,
17454 which can conflict with char $ac_func (); below.
17455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17456 <limits.h> exists even on freestanding compilers. */
17459 # include <limits.h>
17461 # include <assert.h>
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17473 /* The GNU C library defines this for functions which it implements
17474 to always fail with ENOSYS. Some functions are actually named
17475 something starting with __ and the normal name is an alias. */
17476 #if defined __stub_$ac_func || defined __stub___$ac_func
17483 return $ac_func ();
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (ac_try="$ac_link"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_link") 2>conftest.er1
17497 grep -v '^ *+' conftest.er1 >conftest.err
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } && {
17502 test -z "$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17504 } && test -s conftest$ac_exeext &&
17505 $as_test_x conftest$ac_exeext; then
17506 eval "$as_ac_var=yes"
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 eval "$as_ac_var=no"
17514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17515 conftest$ac_exeext conftest.$ac_ext
17517 ac_res=`eval echo '${'$as_ac_var'}'`
17518 { echo "$as_me:$LINENO: result: $ac_res" >&5
17519 echo "${ECHO_T}$ac_res" >&6; }
17520 if test `eval echo '${'$as_ac_var'}'` = yes; then
17521 cat >>confdefs.h <<_ACEOF
17522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17526 case " $LIBOBJS " in
17527 *" $ac_func.$ac_objext "* ) ;;
17528 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17537 case " $LIBOBJS " in
17538 *" getaddrinfo.$ac_objext "* ) ;;
17539 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17545 # Similarly, use system's getopt_long() only if system provides struct option.
17546 # Solaris' getopt() doesn't do what we want for long options, so always use
17547 # our versions on that platform.
17548 if test "$PORTNAME" = "solaris"; then
17549 case " $LIBOBJS " in
17550 *" getopt.$ac_objext "* ) ;;
17551 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17555 case " $LIBOBJS " in
17556 *" getopt_long.$ac_objext "* ) ;;
17557 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17561 elif test x"$ac_cv_type_struct_option" = xyes ; then
17563 for ac_func in getopt_long
17565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 cat >conftest.$ac_ext <<_ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17579 #define $ac_func innocuous_$ac_func
17581 /* System header to define __stub macros and hopefully few prototypes,
17582 which can conflict with char $ac_func (); below.
17583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17584 <limits.h> exists even on freestanding compilers. */
17587 # include <limits.h>
17589 # include <assert.h>
17594 /* Override any GCC internal prototype to avoid an error.
17595 Use char because int might match the return type of a GCC
17596 builtin and then its argument prototype would still apply. */
17601 /* The GNU C library defines this for functions which it implements
17602 to always fail with ENOSYS. Some functions are actually named
17603 something starting with __ and the normal name is an alias. */
17604 #if defined __stub_$ac_func || defined __stub___$ac_func
17611 return $ac_func ();
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (ac_try="$ac_link"
17618 case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_link") 2>conftest.er1
17625 grep -v '^ *+' conftest.er1 >conftest.err
17627 cat conftest.err >&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } && {
17630 test -z "$ac_c_werror_flag" ||
17631 test ! -s conftest.err
17632 } && test -s conftest$ac_exeext &&
17633 $as_test_x conftest$ac_exeext; then
17634 eval "$as_ac_var=yes"
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 eval "$as_ac_var=no"
17642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17643 conftest$ac_exeext conftest.$ac_ext
17645 ac_res=`eval echo '${'$as_ac_var'}'`
17646 { echo "$as_me:$LINENO: result: $ac_res" >&5
17647 echo "${ECHO_T}$ac_res" >&6; }
17648 if test `eval echo '${'$as_ac_var'}'` = yes; then
17649 cat >>confdefs.h <<_ACEOF
17650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17654 case " $LIBOBJS " in
17655 *" $ac_func.$ac_objext "* ) ;;
17656 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17665 case " $LIBOBJS " in
17666 *" getopt_long.$ac_objext "* ) ;;
17667 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17674 if test "$PORTNAME" = "win32"; then
17676 for ac_func in gettimeofday
17678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 cat >conftest.$ac_ext <<_ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17692 #define $ac_func innocuous_$ac_func
17694 /* System header to define __stub macros and hopefully few prototypes,
17695 which can conflict with char $ac_func (); below.
17696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17697 <limits.h> exists even on freestanding compilers. */
17700 # include <limits.h>
17702 # include <assert.h>
17707 /* Override any GCC internal prototype to avoid an error.
17708 Use char because int might match the return type of a GCC
17709 builtin and then its argument prototype would still apply. */
17714 /* The GNU C library defines this for functions which it implements
17715 to always fail with ENOSYS. Some functions are actually named
17716 something starting with __ and the normal name is an alias. */
17717 #if defined __stub_$ac_func || defined __stub___$ac_func
17724 return $ac_func ();
17729 rm -f conftest.$ac_objext conftest$ac_exeext
17730 if { (ac_try="$ac_link"
17731 case "(($ac_try" in
17732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733 *) ac_try_echo=$ac_try;;
17735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17736 (eval "$ac_link") 2>conftest.er1
17738 grep -v '^ *+' conftest.er1 >conftest.err
17740 cat conftest.err >&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } && {
17743 test -z "$ac_c_werror_flag" ||
17744 test ! -s conftest.err
17745 } && test -s conftest$ac_exeext &&
17746 $as_test_x conftest$ac_exeext; then
17747 eval "$as_ac_var=yes"
17749 echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17752 eval "$as_ac_var=no"
17755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17756 conftest$ac_exeext conftest.$ac_ext
17758 ac_res=`eval echo '${'$as_ac_var'}'`
17759 { echo "$as_me:$LINENO: result: $ac_res" >&5
17760 echo "${ECHO_T}$ac_res" >&6; }
17761 if test `eval echo '${'$as_ac_var'}'` = yes; then
17762 cat >>confdefs.h <<_ACEOF
17763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17767 case " $LIBOBJS " in
17768 *" $ac_func.$ac_objext "* ) ;;
17769 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17777 case " $LIBOBJS " in
17778 *" kill.$ac_objext "* ) ;;
17779 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17783 case " $LIBOBJS " in
17784 *" open.$ac_objext "* ) ;;
17785 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17789 case " $LIBOBJS " in
17790 *" rand.$ac_objext "* ) ;;
17791 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17795 case " $LIBOBJS " in
17796 *" win32error.$ac_objext "* ) ;;
17797 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17802 cat >>confdefs.h <<\_ACEOF
17803 #define HAVE_SYMLINK 1
17808 if test "$with_readline" = yes; then
17809 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17810 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17811 cat >conftest.$ac_ext <<_ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17818 #ifdef HAVE_READLINE_READLINE_H
17819 # include <readline/readline.h>
17820 #elif defined(HAVE_READLINE_H)
17821 # include <readline.h>
17827 rl_completion_append_character = 'x';
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest$ac_exeext &&
17849 $as_test_x conftest$ac_exeext; then
17850 { echo "$as_me:$LINENO: result: yes" >&5
17851 echo "${ECHO_T}yes" >&6; }
17853 cat >>confdefs.h <<\_ACEOF
17854 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17861 { echo "$as_me:$LINENO: result: no" >&5
17862 echo "${ECHO_T}no" >&6; }
17865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866 conftest$ac_exeext conftest.$ac_ext
17869 for ac_func in rl_completion_matches rl_filename_completion_function
17871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17877 cat >conftest.$ac_ext <<_ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h. */
17883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17885 #define $ac_func innocuous_$ac_func
17887 /* System header to define __stub macros and hopefully few prototypes,
17888 which can conflict with char $ac_func (); below.
17889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17890 <limits.h> exists even on freestanding compilers. */
17893 # include <limits.h>
17895 # include <assert.h>
17900 /* Override any GCC internal prototype to avoid an error.
17901 Use char because int might match the return type of a GCC
17902 builtin and then its argument prototype would still apply. */
17907 /* The GNU C library defines this for functions which it implements
17908 to always fail with ENOSYS. Some functions are actually named
17909 something starting with __ and the normal name is an alias. */
17910 #if defined __stub_$ac_func || defined __stub___$ac_func
17917 return $ac_func ();
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (ac_try="$ac_link"
17924 case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_link") 2>conftest.er1
17931 grep -v '^ *+' conftest.er1 >conftest.err
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } && {
17936 test -z "$ac_c_werror_flag" ||
17937 test ! -s conftest.err
17938 } && test -s conftest$ac_exeext &&
17939 $as_test_x conftest$ac_exeext; then
17940 eval "$as_ac_var=yes"
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 eval "$as_ac_var=no"
17948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17949 conftest$ac_exeext conftest.$ac_ext
17951 ac_res=`eval echo '${'$as_ac_var'}'`
17952 { echo "$as_me:$LINENO: result: $ac_res" >&5
17953 echo "${ECHO_T}$ac_res" >&6; }
17954 if test `eval echo '${'$as_ac_var'}'` = yes; then
17955 cat >>confdefs.h <<_ACEOF
17956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17963 for ac_func in replace_history_entry
17965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 cat >conftest.$ac_ext <<_ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17979 #define $ac_func innocuous_$ac_func
17981 /* System header to define __stub macros and hopefully few prototypes,
17982 which can conflict with char $ac_func (); below.
17983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17984 <limits.h> exists even on freestanding compilers. */
17987 # include <limits.h>
17989 # include <assert.h>
17994 /* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
18001 /* The GNU C library defines this for functions which it implements
18002 to always fail with ENOSYS. Some functions are actually named
18003 something starting with __ and the normal name is an alias. */
18004 #if defined __stub_$ac_func || defined __stub___$ac_func
18011 return $ac_func ();
18016 rm -f conftest.$ac_objext conftest$ac_exeext
18017 if { (ac_try="$ac_link"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_link") 2>conftest.er1
18025 grep -v '^ *+' conftest.er1 >conftest.err
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } && {
18030 test -z "$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 } && test -s conftest$ac_exeext &&
18033 $as_test_x conftest$ac_exeext; then
18034 eval "$as_ac_var=yes"
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 eval "$as_ac_var=no"
18042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18043 conftest$ac_exeext conftest.$ac_ext
18045 ac_res=`eval echo '${'$as_ac_var'}'`
18046 { echo "$as_me:$LINENO: result: $ac_res" >&5
18047 echo "${ECHO_T}$ac_res" >&6; }
18048 if test `eval echo '${'$as_ac_var'}'` = yes; then
18049 cat >>confdefs.h <<_ACEOF
18050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18059 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18060 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18061 cat >conftest.$ac_ext <<_ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18067 #include <setjmp.h>
18071 sigjmp_buf x; sigsetjmp(x, 1);
18076 rm -f conftest.$ac_objext conftest$ac_exeext
18077 if { (ac_try="$ac_link"
18078 case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_link") 2>conftest.er1
18085 grep -v '^ *+' conftest.er1 >conftest.err
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } && {
18090 test -z "$ac_c_werror_flag" ||
18091 test ! -s conftest.err
18092 } && test -s conftest$ac_exeext &&
18093 $as_test_x conftest$ac_exeext; then
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE_SIGSETJMP 1
18099 { echo "$as_me:$LINENO: result: yes" >&5
18100 echo "${ECHO_T}yes" >&6; }
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 { echo "$as_me:$LINENO: result: no" >&5
18106 echo "${ECHO_T}no" >&6; }
18109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18110 conftest$ac_exeext conftest.$ac_ext
18112 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18113 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18114 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18117 cat >conftest.$ac_ext <<_ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123 #include <signal.h>
18124 /* NetBSD declares sys_siglist in unistd.h. */
18125 #ifdef HAVE_UNISTD_H
18126 # include <unistd.h>
18133 #ifndef sys_siglist
18134 (void) sys_siglist;
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_compile") 2>conftest.er1
18150 grep -v '^ *+' conftest.er1 >conftest.err
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } && {
18155 test -z "$ac_c_werror_flag" ||
18156 test ! -s conftest.err
18157 } && test -s conftest.$ac_objext; then
18158 ac_cv_have_decl_sys_siglist=yes
18160 echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18163 ac_cv_have_decl_sys_siglist=no
18166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18168 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18169 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18170 if test $ac_cv_have_decl_sys_siglist = yes; then
18172 cat >>confdefs.h <<_ACEOF
18173 #define HAVE_DECL_SYS_SIGLIST 1
18178 cat >>confdefs.h <<_ACEOF
18179 #define HAVE_DECL_SYS_SIGLIST 0
18188 { echo "$as_me:$LINENO: checking for syslog" >&5
18189 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18190 if test "${ac_cv_func_syslog+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 cat >conftest.$ac_ext <<_ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18199 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18201 #define syslog innocuous_syslog
18203 /* System header to define __stub macros and hopefully few prototypes,
18204 which can conflict with char syslog (); below.
18205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18206 <limits.h> exists even on freestanding compilers. */
18209 # include <limits.h>
18211 # include <assert.h>
18216 /* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18223 /* The GNU C library defines this for functions which it implements
18224 to always fail with ENOSYS. Some functions are actually named
18225 something starting with __ and the normal name is an alias. */
18226 #if defined __stub_syslog || defined __stub___syslog
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18247 grep -v '^ *+' conftest.er1 >conftest.err
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest$ac_exeext &&
18255 $as_test_x conftest$ac_exeext; then
18256 ac_cv_func_syslog=yes
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18261 ac_cv_func_syslog=no
18264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18265 conftest$ac_exeext conftest.$ac_ext
18267 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18268 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18269 if test $ac_cv_func_syslog = yes; then
18270 if test "${ac_cv_header_syslog_h+set}" = set; then
18271 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18272 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18273 if test "${ac_cv_header_syslog_h+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18277 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18279 # Is the header compilable?
18280 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18281 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18282 cat >conftest.$ac_ext <<_ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 $ac_includes_default
18289 #include <syslog.h>
18291 rm -f conftest.$ac_objext
18292 if { (ac_try="$ac_compile"
18293 case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_compile") 2>conftest.er1
18300 grep -v '^ *+' conftest.er1 >conftest.err
18302 cat conftest.err >&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } && {
18305 test -z "$ac_c_werror_flag" ||
18306 test ! -s conftest.err
18307 } && test -s conftest.$ac_objext; then
18308 ac_header_compiler=yes
18310 echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18313 ac_header_compiler=no
18316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18318 echo "${ECHO_T}$ac_header_compiler" >&6; }
18320 # Is the header present?
18321 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18322 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18323 cat >conftest.$ac_ext <<_ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18329 #include <syslog.h>
18331 if { (ac_try="$ac_cpp conftest.$ac_ext"
18332 case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18339 grep -v '^ *+' conftest.er1 >conftest.err
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } >/dev/null && {
18344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18345 test ! -s conftest.err
18347 ac_header_preproc=yes
18349 echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18352 ac_header_preproc=no
18355 rm -f conftest.err conftest.$ac_ext
18356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18357 echo "${ECHO_T}$ac_header_preproc" >&6; }
18359 # So? What about this header?
18360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18362 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18363 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18365 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18366 ac_header_preproc=yes
18369 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18370 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18371 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18372 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18373 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18374 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18375 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18376 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18377 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18378 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18379 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18380 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18382 ## ---------------------------------------- ##
18383 ## Report this to pgsql-bugs@postgresql.org ##
18384 ## ---------------------------------------- ##
18386 ) | sed "s/^/$as_me: WARNING: /" >&2
18389 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18390 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18391 if test "${ac_cv_header_syslog_h+set}" = set; then
18392 echo $ECHO_N "(cached) $ECHO_C" >&6
18394 ac_cv_header_syslog_h=$ac_header_preproc
18396 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18397 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18400 if test $ac_cv_header_syslog_h = yes; then
18402 cat >>confdefs.h <<\_ACEOF
18403 #define HAVE_SYSLOG 1
18412 { echo "$as_me:$LINENO: checking for optreset" >&5
18413 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18414 if test "${pgac_cv_var_int_optreset+set}" = set; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18417 cat >conftest.$ac_ext <<_ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 #include <unistd.h>
18427 extern int optreset; optreset = 1;
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_link") 2>conftest.er1
18441 grep -v '^ *+' conftest.er1 >conftest.err
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } && {
18446 test -z "$ac_c_werror_flag" ||
18447 test ! -s conftest.err
18448 } && test -s conftest$ac_exeext &&
18449 $as_test_x conftest$ac_exeext; then
18450 pgac_cv_var_int_optreset=yes
18452 echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18455 pgac_cv_var_int_optreset=no
18458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18459 conftest$ac_exeext conftest.$ac_ext
18461 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18462 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18463 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18465 cat >>confdefs.h <<\_ACEOF
18466 #define HAVE_INT_OPTRESET 1
18473 for ac_func in strtoll strtoq
18475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 cat >conftest.$ac_ext <<_ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18489 #define $ac_func innocuous_$ac_func
18491 /* System header to define __stub macros and hopefully few prototypes,
18492 which can conflict with char $ac_func (); below.
18493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18494 <limits.h> exists even on freestanding compilers. */
18497 # include <limits.h>
18499 # include <assert.h>
18504 /* Override any GCC internal prototype to avoid an error.
18505 Use char because int might match the return type of a GCC
18506 builtin and then its argument prototype would still apply. */
18511 /* The GNU C library defines this for functions which it implements
18512 to always fail with ENOSYS. Some functions are actually named
18513 something starting with __ and the normal name is an alias. */
18514 #if defined __stub_$ac_func || defined __stub___$ac_func
18521 return $ac_func ();
18526 rm -f conftest.$ac_objext conftest$ac_exeext
18527 if { (ac_try="$ac_link"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_link") 2>conftest.er1
18535 grep -v '^ *+' conftest.er1 >conftest.err
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest$ac_exeext &&
18543 $as_test_x conftest$ac_exeext; then
18544 eval "$as_ac_var=yes"
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18549 eval "$as_ac_var=no"
18552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18553 conftest$ac_exeext conftest.$ac_ext
18555 ac_res=`eval echo '${'$as_ac_var'}'`
18556 { echo "$as_me:$LINENO: result: $ac_res" >&5
18557 echo "${ECHO_T}$ac_res" >&6; }
18558 if test `eval echo '${'$as_ac_var'}'` = yes; then
18559 cat >>confdefs.h <<_ACEOF
18560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18568 for ac_func in strtoull strtouq
18570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 cat >conftest.$ac_ext <<_ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18584 #define $ac_func innocuous_$ac_func
18586 /* System header to define __stub macros and hopefully few prototypes,
18587 which can conflict with char $ac_func (); below.
18588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18589 <limits.h> exists even on freestanding compilers. */
18592 # include <limits.h>
18594 # include <assert.h>
18599 /* Override any GCC internal prototype to avoid an error.
18600 Use char because int might match the return type of a GCC
18601 builtin and then its argument prototype would still apply. */
18606 /* The GNU C library defines this for functions which it implements
18607 to always fail with ENOSYS. Some functions are actually named
18608 something starting with __ and the normal name is an alias. */
18609 #if defined __stub_$ac_func || defined __stub___$ac_func
18616 return $ac_func ();
18621 rm -f conftest.$ac_objext conftest$ac_exeext
18622 if { (ac_try="$ac_link"
18623 case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_link") 2>conftest.er1
18630 grep -v '^ *+' conftest.er1 >conftest.err
18632 cat conftest.err >&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } && {
18635 test -z "$ac_c_werror_flag" ||
18636 test ! -s conftest.err
18637 } && test -s conftest$ac_exeext &&
18638 $as_test_x conftest$ac_exeext; then
18639 eval "$as_ac_var=yes"
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18644 eval "$as_ac_var=no"
18647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18648 conftest$ac_exeext conftest.$ac_ext
18650 ac_res=`eval echo '${'$as_ac_var'}'`
18651 { echo "$as_me:$LINENO: result: $ac_res" >&5
18652 echo "${ECHO_T}$ac_res" >&6; }
18653 if test `eval echo '${'$as_ac_var'}'` = yes; then
18654 cat >>confdefs.h <<_ACEOF
18655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18662 # Check for one of atexit() or on_exit()
18664 for ac_func in atexit
18666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18672 cat >conftest.$ac_ext <<_ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18680 #define $ac_func innocuous_$ac_func
18682 /* System header to define __stub macros and hopefully few prototypes,
18683 which can conflict with char $ac_func (); below.
18684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18685 <limits.h> exists even on freestanding compilers. */
18688 # include <limits.h>
18690 # include <assert.h>
18695 /* Override any GCC internal prototype to avoid an error.
18696 Use char because int might match the return type of a GCC
18697 builtin and then its argument prototype would still apply. */
18702 /* The GNU C library defines this for functions which it implements
18703 to always fail with ENOSYS. Some functions are actually named
18704 something starting with __ and the normal name is an alias. */
18705 #if defined __stub_$ac_func || defined __stub___$ac_func
18712 return $ac_func ();
18717 rm -f conftest.$ac_objext conftest$ac_exeext
18718 if { (ac_try="$ac_link"
18719 case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_link") 2>conftest.er1
18726 grep -v '^ *+' conftest.er1 >conftest.err
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } && {
18731 test -z "$ac_c_werror_flag" ||
18732 test ! -s conftest.err
18733 } && test -s conftest$ac_exeext &&
18734 $as_test_x conftest$ac_exeext; then
18735 eval "$as_ac_var=yes"
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 eval "$as_ac_var=no"
18743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18744 conftest$ac_exeext conftest.$ac_ext
18746 ac_res=`eval echo '${'$as_ac_var'}'`
18747 { echo "$as_me:$LINENO: result: $ac_res" >&5
18748 echo "${ECHO_T}$ac_res" >&6; }
18749 if test `eval echo '${'$as_ac_var'}'` = yes; then
18750 cat >>confdefs.h <<_ACEOF
18751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18756 for ac_func in on_exit
18758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 cat >conftest.$ac_ext <<_ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18772 #define $ac_func innocuous_$ac_func
18774 /* System header to define __stub macros and hopefully few prototypes,
18775 which can conflict with char $ac_func (); below.
18776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18777 <limits.h> exists even on freestanding compilers. */
18780 # include <limits.h>
18782 # include <assert.h>
18787 /* Override any GCC internal prototype to avoid an error.
18788 Use char because int might match the return type of a GCC
18789 builtin and then its argument prototype would still apply. */
18794 /* The GNU C library defines this for functions which it implements
18795 to always fail with ENOSYS. Some functions are actually named
18796 something starting with __ and the normal name is an alias. */
18797 #if defined __stub_$ac_func || defined __stub___$ac_func
18804 return $ac_func ();
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (ac_try="$ac_link"
18811 case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_link") 2>conftest.er1
18818 grep -v '^ *+' conftest.er1 >conftest.err
18820 cat conftest.err >&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } && {
18823 test -z "$ac_c_werror_flag" ||
18824 test ! -s conftest.err
18825 } && test -s conftest$ac_exeext &&
18826 $as_test_x conftest$ac_exeext; then
18827 eval "$as_ac_var=yes"
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18832 eval "$as_ac_var=no"
18835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18836 conftest$ac_exeext conftest.$ac_ext
18838 ac_res=`eval echo '${'$as_ac_var'}'`
18839 { echo "$as_me:$LINENO: result: $ac_res" >&5
18840 echo "${ECHO_T}$ac_res" >&6; }
18841 if test `eval echo '${'$as_ac_var'}'` = yes; then
18842 cat >>confdefs.h <<_ACEOF
18843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18847 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18848 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18849 { (exit 1); exit 1; }; }
18858 for ac_func in fseeko
18860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 cat >conftest.$ac_ext <<_ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h. */
18872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18874 #define $ac_func innocuous_$ac_func
18876 /* System header to define __stub macros and hopefully few prototypes,
18877 which can conflict with char $ac_func (); below.
18878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18879 <limits.h> exists even on freestanding compilers. */
18882 # include <limits.h>
18884 # include <assert.h>
18889 /* Override any GCC internal prototype to avoid an error.
18890 Use char because int might match the return type of a GCC
18891 builtin and then its argument prototype would still apply. */
18896 /* The GNU C library defines this for functions which it implements
18897 to always fail with ENOSYS. Some functions are actually named
18898 something starting with __ and the normal name is an alias. */
18899 #if defined __stub_$ac_func || defined __stub___$ac_func
18906 return $ac_func ();
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (ac_try="$ac_link"
18913 case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_link") 2>conftest.er1
18920 grep -v '^ *+' conftest.er1 >conftest.err
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } && {
18925 test -z "$ac_c_werror_flag" ||
18926 test ! -s conftest.err
18927 } && test -s conftest$ac_exeext &&
18928 $as_test_x conftest$ac_exeext; then
18929 eval "$as_ac_var=yes"
18931 echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18934 eval "$as_ac_var=no"
18937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18938 conftest$ac_exeext conftest.$ac_ext
18940 ac_res=`eval echo '${'$as_ac_var'}'`
18941 { echo "$as_me:$LINENO: result: $ac_res" >&5
18942 echo "${ECHO_T}$ac_res" >&6; }
18943 if test `eval echo '${'$as_ac_var'}'` = yes; then
18944 cat >>confdefs.h <<_ACEOF
18945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18949 case " $LIBOBJS " in
18950 *" $ac_func.$ac_objext "* ) ;;
18951 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18960 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18963 cat >>confdefs.h <<\_ACEOF
18964 #define HAVE_FSEEKO 1
18967 ac_cv_func_fseeko=yes;;
18969 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18970 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18971 if test "${ac_cv_sys_largefile_source+set}" = set; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18975 cat >conftest.$ac_ext <<_ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 #include <sys/types.h> /* for off_t */
18986 int (*fp) (FILE *, off_t, int) = fseeko;
18987 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_link") 2>conftest.er1
19001 grep -v '^ *+' conftest.er1 >conftest.err
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } && {
19006 test -z "$ac_c_werror_flag" ||
19007 test ! -s conftest.err
19008 } && test -s conftest$ac_exeext &&
19009 $as_test_x conftest$ac_exeext; then
19010 ac_cv_sys_largefile_source=no; break
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19019 conftest$ac_exeext conftest.$ac_ext
19020 cat >conftest.$ac_ext <<_ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19026 #define _LARGEFILE_SOURCE 1
19027 #include <sys/types.h> /* for off_t */
19032 int (*fp) (FILE *, off_t, int) = fseeko;
19033 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19047 grep -v '^ *+' conftest.er1 >conftest.err
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } && {
19052 test -z "$ac_c_werror_flag" ||
19053 test ! -s conftest.err
19054 } && test -s conftest$ac_exeext &&
19055 $as_test_x conftest$ac_exeext; then
19056 ac_cv_sys_largefile_source=1; break
19058 echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19065 conftest$ac_exeext conftest.$ac_ext
19066 ac_cv_sys_largefile_source=unknown
19070 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19071 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19072 case $ac_cv_sys_largefile_source in #(
19075 cat >>confdefs.h <<_ACEOF
19076 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19082 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19083 # in glibc 2.1.3, but that breaks too many other things.
19084 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19085 if test $ac_cv_sys_largefile_source != unknown; then
19087 cat >>confdefs.h <<\_ACEOF
19088 #define HAVE_FSEEKO 1
19099 # For each platform, we need to know about any special compile and link
19100 # libraries, and whether the normal C function names are thread-safe.
19101 # See the comment at the top of src/port/thread.c for more information.
19102 # WIN32 doesn't need the pthread tests; it always uses threads
19103 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19108 ac_cpp='$CPP $CPPFLAGS'
19109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19115 # We used to check for pthread.h first, but this fails if pthread.h
19116 # requires special compiler flags (e.g. on True64 or Sequent).
19117 # It gets checked for in the link test anyway.
19119 # First of all, check if the user has set any of the PTHREAD_LIBS,
19120 # etcetera environment variables, and if threads linking works using
19122 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19123 save_CFLAGS="$CFLAGS"
19124 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19126 LIBS="$PTHREAD_LIBS $LIBS"
19127 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19128 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19129 cat >conftest.$ac_ext <<_ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19136 /* Override any GCC internal prototype to avoid an error.
19137 Use char because int might match the return type of a GCC
19138 builtin and then its argument prototype would still apply. */
19142 char pthread_join ();
19146 return pthread_join ();
19151 rm -f conftest.$ac_objext conftest$ac_exeext
19152 if { (ac_try="$ac_link"
19153 case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_link") 2>conftest.er1
19160 grep -v '^ *+' conftest.er1 >conftest.err
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } && {
19165 test -z "$ac_c_werror_flag" ||
19166 test ! -s conftest.err
19167 } && test -s conftest$ac_exeext &&
19168 $as_test_x conftest$ac_exeext; then
19171 echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19178 conftest$ac_exeext conftest.$ac_ext
19179 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19180 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19181 if test x"$acx_pthread_ok" = xno; then
19186 CFLAGS="$save_CFLAGS"
19189 # We must check for the threads library under a number of different
19190 # names; the ordering is very important because some systems
19191 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19192 # libraries is broken (non-POSIX).
19194 # Create a list of thread flags to try. Items starting with a "-" are
19195 # C compiler flags, and other items are library names, except for "none"
19196 # which indicates that we try without any flags at all, and "pthread-config"
19197 # which is a program returning the flags for the Pth emulation library.
19199 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19201 # The ordering *is* (sometimes) important. Some notes on the
19202 # individual items follow:
19204 # pthreads: AIX (must check this before -lpthread)
19205 # none: in case threads are in libc; should be tried before -Kthread and
19206 # other compiler flags to prevent continual compiler warnings
19207 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19208 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19209 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19210 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19211 # -pthreads: Solaris/gcc
19212 # -mthreads: Mingw32/gcc, Lynx/gcc
19213 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19214 # doesn't hurt to check since this sometimes defines pthreads too;
19215 # also defines -D_REENTRANT)
19216 # pthread: Linux, etcetera
19217 # --thread-safe: KAI C++
19218 # pthread-config: use pthread-config program (for GNU Pth library)
19220 case "${host_cpu}-${host_os}" in
19223 # On Solaris (at least, for some versions), libc contains stubbed
19224 # (non-functional) versions of the pthreads routines, so link-based
19225 # tests will erroneously succeed. (We need to link with -pthread or
19226 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19227 # a function called by this macro, so we could check for that, but
19228 # who knows whether they'll stub that too in a future libc.) So,
19229 # we'll just look for -pthreads and -lpthread first:
19231 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19235 if test x"$acx_pthread_ok" = xno; then
19236 for flag in $acx_pthread_flags; do
19238 tryPTHREAD_CFLAGS=""
19242 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19243 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19247 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19248 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19249 tryPTHREAD_CFLAGS="$flag"
19253 # skip this if we already have flags defined, for PostgreSQL
19254 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
19255 # Extract the first word of "pthread-config", so it can be a program name with args.
19256 set dummy pthread-config; ac_word=$2
19257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19259 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19262 if test -n "$acx_pthread_config"; then
19263 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19266 for as_dir in $PATH
19269 test -z "$as_dir" && as_dir=.
19270 for ac_exec_ext in '' $ac_executable_extensions; do
19271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19272 ac_cv_prog_acx_pthread_config="yes"
19273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19280 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19283 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19284 if test -n "$acx_pthread_config"; then
19285 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19286 echo "${ECHO_T}$acx_pthread_config" >&6; }
19288 { echo "$as_me:$LINENO: result: no" >&5
19289 echo "${ECHO_T}no" >&6; }
19293 if test x"$acx_pthread_config" = xno; then continue; fi
19294 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
19295 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19299 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19300 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19301 tryPTHREAD_LIBS="-l$flag"
19306 save_CFLAGS="$CFLAGS"
19307 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19308 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19310 # Check for various functions. We must include pthread.h,
19311 # since some functions may be macros. (On the Sequent, we
19312 # need a special flag -Kthread to make this header compile.)
19313 # We check for pthread_join because it is in -lpthread on IRIX
19314 # while pthread_create is in libc. We check for pthread_attr_init
19315 # due to DEC craziness with -lpthreads. We check for
19316 # pthread_cleanup_push because it is one of the few pthread
19317 # functions on Solaris that doesn't have a non-functional libc stub.
19318 # We try pthread_create on general principles.
19319 cat >conftest.$ac_ext <<_ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 #include <pthread.h>
19329 pthread_t th; pthread_join(th, 0);
19330 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19331 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19336 rm -f conftest.$ac_objext conftest$ac_exeext
19337 if { (ac_try="$ac_link"
19338 case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_link") 2>conftest.er1
19345 grep -v '^ *+' conftest.er1 >conftest.err
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest$ac_exeext &&
19353 $as_test_x conftest$ac_exeext; then
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19363 conftest$ac_exeext conftest.$ac_ext
19365 if test "x$acx_pthread_ok" = xyes; then
19366 # Don't use options that are ignored by the compiler.
19367 # We find them by checking stderror.
19368 cat >conftest.$ac_ext <<_ACEOF
19370 main (int argc, char **argv)
19377 rm -f conftest.$ac_objext conftest$ac_exeext
19378 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19379 # we continue with more flags because Linux needs -lpthread
19380 # for libpq builds on PostgreSQL. The test above only
19381 # tests for building binaries, not shared libraries.
19382 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19383 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19384 else acx_pthread_ok=no
19389 CFLAGS="$save_CFLAGS"
19391 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19392 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19396 # Various other checks:
19397 if test "x$acx_pthread_ok" = xyes; then
19399 LIBS="$PTHREAD_LIBS $LIBS"
19400 save_CFLAGS="$CFLAGS"
19401 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19403 # Detect AIX lossage: threads are created detached by default
19404 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19405 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19406 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19407 cat >conftest.$ac_ext <<_ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 #include <pthread.h>
19417 int attr=PTHREAD_CREATE_JOINABLE;
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_link") 2>conftest.er1
19431 grep -v '^ *+' conftest.er1 >conftest.err
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && {
19436 test -z "$ac_c_werror_flag" ||
19437 test ! -s conftest.err
19438 } && test -s conftest$ac_exeext &&
19439 $as_test_x conftest$ac_exeext; then
19440 ok=PTHREAD_CREATE_JOINABLE
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19449 conftest$ac_exeext conftest.$ac_ext
19450 if test x"$ok" = xunknown; then
19451 cat >conftest.$ac_ext <<_ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 #include <pthread.h>
19461 int attr=PTHREAD_CREATE_UNDETACHED;
19466 rm -f conftest.$ac_objext conftest$ac_exeext
19467 if { (ac_try="$ac_link"
19468 case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473 (eval "$ac_link") 2>conftest.er1
19475 grep -v '^ *+' conftest.er1 >conftest.err
19477 cat conftest.err >&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } && {
19480 test -z "$ac_c_werror_flag" ||
19481 test ! -s conftest.err
19482 } && test -s conftest$ac_exeext &&
19483 $as_test_x conftest$ac_exeext; then
19484 ok=PTHREAD_CREATE_UNDETACHED
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19493 conftest$ac_exeext conftest.$ac_ext
19495 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19497 cat >>confdefs.h <<\_ACEOF
19498 #define PTHREAD_CREATE_JOINABLE $ok
19502 { echo "$as_me:$LINENO: result: ${ok}" >&5
19503 echo "${ECHO_T}${ok}" >&6; }
19504 if test x"$ok" = xunknown; then
19505 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19506 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19509 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19510 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19512 # We always add these in PostgreSQL
19513 # case "${host_cpu}-${host_os}" in
19514 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19515 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19517 { echo "$as_me:$LINENO: result: ${flag}" >&5
19518 echo "${ECHO_T}${flag}" >&6; }
19519 if test "x$flag" != xno; then
19520 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19524 CFLAGS="$save_CFLAGS"
19526 # Supporting cc_r would require a special CC in all places that
19527 # use libpq, and that is ugly, so we don't do it. Users can still
19528 # define their compiler as cc_r to do thread builds of everything.
19529 # More AIX lossage: must compile with cc_r
19530 # Extract the first word of "cc_r", so it can be a program name with args.
19531 set dummy cc_r; ac_word=$2
19532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19534 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19537 if test -n "$PTHREAD_CC"; then
19538 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19541 for as_dir in $PATH
19544 test -z "$as_dir" && as_dir=.
19545 for ac_exec_ext in '' $ac_executable_extensions; do
19546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19547 ac_cv_prog_PTHREAD_CC="cc_r"
19548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19555 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19558 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19559 if test -n "$PTHREAD_CC"; then
19560 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19561 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19563 { echo "$as_me:$LINENO: result: no" >&5
19564 echo "${ECHO_T}no" >&6; }
19576 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19577 if test x"$acx_pthread_ok" = xyes; then
19579 cat >>confdefs.h <<\_ACEOF
19580 #define HAVE_PTHREAD 1
19589 ac_cpp='$CPP $CPPFLAGS'
19590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19596 # Some platforms use these, so just define them. They can't hurt if they
19597 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19598 # enables 5-arg getpwuid_r, among other things.
19599 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19602 # At this point, we don't want to muck with the compiler name for threading.
19603 # Let's see who fails, perhaps AIX. 2004-04-23
19604 if test "$PTHREAD_CC" != "$CC"; then
19605 { { echo "$as_me:$LINENO: error:
19606 PostgreSQL does not support platforms that require a special compiler
19607 for thread safety." >&5
19608 echo "$as_me: error:
19609 PostgreSQL does not support platforms that require a special compiler
19610 for thread safety." >&2;}
19611 { (exit 1); exit 1; }; }
19614 if test "$THREAD_SUPPORT" = no; then
19615 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19616 This platform is known to not support thread-safe programs. For details,
19617 compile and run src/bin/pg_thread_test." >&5
19618 echo "$as_me: error: cannot enable threads on this platform
19619 This platform is known to not support thread-safe programs. For details,
19620 compile and run src/bin/pg_thread_test." >&2;}
19621 { (exit 1); exit 1; }; }
19624 # Check for *_r functions
19627 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19628 LIBS="$LIBS $PTHREAD_LIBS"
19630 if test "$PORTNAME" != "win32"; then
19631 if test "${ac_cv_header_pthread_h+set}" = set; then
19632 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19633 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19634 if test "${ac_cv_header_pthread_h+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19638 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19640 # Is the header compilable?
19641 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19642 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19643 cat >conftest.$ac_ext <<_ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19649 $ac_includes_default
19650 #include <pthread.h>
19652 rm -f conftest.$ac_objext
19653 if { (ac_try="$ac_compile"
19654 case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_compile") 2>conftest.er1
19661 grep -v '^ *+' conftest.er1 >conftest.err
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest.$ac_objext; then
19669 ac_header_compiler=yes
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19674 ac_header_compiler=no
19677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19679 echo "${ECHO_T}$ac_header_compiler" >&6; }
19681 # Is the header present?
19682 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19683 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19684 cat >conftest.$ac_ext <<_ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 #include <pthread.h>
19692 if { (ac_try="$ac_cpp conftest.$ac_ext"
19693 case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19700 grep -v '^ *+' conftest.er1 >conftest.err
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } >/dev/null && {
19705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19706 test ! -s conftest.err
19708 ac_header_preproc=yes
19710 echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19713 ac_header_preproc=no
19716 rm -f conftest.err conftest.$ac_ext
19717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19718 echo "${ECHO_T}$ac_header_preproc" >&6; }
19720 # So? What about this header?
19721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19723 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19724 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19725 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19726 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19727 ac_header_preproc=yes
19730 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19731 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19732 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19733 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19735 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19736 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19737 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19738 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19739 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19740 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19741 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19743 ## ---------------------------------------- ##
19744 ## Report this to pgsql-bugs@postgresql.org ##
19745 ## ---------------------------------------- ##
19747 ) | sed "s/^/$as_me: WARNING: /" >&2
19750 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19751 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19752 if test "${ac_cv_header_pthread_h+set}" = set; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19755 ac_cv_header_pthread_h=$ac_header_preproc
19757 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19758 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19761 if test $ac_cv_header_pthread_h = yes; then
19764 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19765 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19766 { (exit 1); exit 1; }; }
19775 for ac_func in strerror_r getpwuid_r gethostbyname_r
19777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 cat >conftest.$ac_ext <<_ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19791 #define $ac_func innocuous_$ac_func
19793 /* System header to define __stub macros and hopefully few prototypes,
19794 which can conflict with char $ac_func (); below.
19795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19796 <limits.h> exists even on freestanding compilers. */
19799 # include <limits.h>
19801 # include <assert.h>
19806 /* Override any GCC internal prototype to avoid an error.
19807 Use char because int might match the return type of a GCC
19808 builtin and then its argument prototype would still apply. */
19813 /* The GNU C library defines this for functions which it implements
19814 to always fail with ENOSYS. Some functions are actually named
19815 something starting with __ and the normal name is an alias. */
19816 #if defined __stub_$ac_func || defined __stub___$ac_func
19823 return $ac_func ();
19828 rm -f conftest.$ac_objext conftest$ac_exeext
19829 if { (ac_try="$ac_link"
19830 case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_link") 2>conftest.er1
19837 grep -v '^ *+' conftest.er1 >conftest.err
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } && {
19842 test -z "$ac_c_werror_flag" ||
19843 test ! -s conftest.err
19844 } && test -s conftest$ac_exeext &&
19845 $as_test_x conftest$ac_exeext; then
19846 eval "$as_ac_var=yes"
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19851 eval "$as_ac_var=no"
19854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19855 conftest$ac_exeext conftest.$ac_ext
19857 ac_res=`eval echo '${'$as_ac_var'}'`
19858 { echo "$as_me:$LINENO: result: $ac_res" >&5
19859 echo "${ECHO_T}$ac_res" >&6; }
19860 if test `eval echo '${'$as_ac_var'}'` = yes; then
19861 cat >>confdefs.h <<_ACEOF
19862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19869 # Do test here with the proper thread flags
19870 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19871 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19872 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 cat >conftest.$ac_ext <<_ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19881 #include <sys/types.h>
19887 struct passwd *space;
19890 struct passwd **result;
19891 getpwuid_r(uid, space, buf, bufsize, result);
19896 rm -f conftest.$ac_objext
19897 if { (ac_try="$ac_compile"
19898 case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_compile") 2>conftest.er1
19905 grep -v '^ *+' conftest.er1 >conftest.err
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } && {
19910 test -z "$ac_c_werror_flag" ||
19911 test ! -s conftest.err
19912 } && test -s conftest.$ac_objext; then
19913 pgac_cv_func_getpwuid_r_5arg=yes
19915 echo "$as_me: failed program was:" >&5
19916 sed 's/^/| /' conftest.$ac_ext >&5
19918 pgac_cv_func_getpwuid_r_5arg=no
19921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19924 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19925 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19927 cat >>confdefs.h <<\_ACEOF
19928 #define GETPWUID_R_5ARG
19933 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19934 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19935 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 cat >conftest.$ac_ext <<_ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944 #include <string.h>
19949 int strerror_r(int, char *, size_t);
19951 /* Older AIX has 'int' for the third argument so we don't test the args. */
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965 (eval "$ac_compile") 2>conftest.er1
19967 grep -v '^ *+' conftest.er1 >conftest.err
19969 cat conftest.err >&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } && {
19972 test -z "$ac_c_werror_flag" ||
19973 test ! -s conftest.err
19974 } && test -s conftest.$ac_objext; then
19975 pgac_cv_func_strerror_r_int=yes
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 pgac_cv_func_strerror_r_int=no
19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19985 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19986 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19987 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
19989 cat >>confdefs.h <<\_ACEOF
19990 #define STRERROR_R_INT
20000 # do not use values from template file
20009 # We can test for libldap_r only after we know PTHREAD_LIBS
20010 if test "$with_ldap" = yes ; then
20012 if test "$PORTNAME" != "win32"; then
20014 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20015 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20016 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20017 echo $ECHO_N "(cached) $ECHO_C" >&6
20019 ac_check_lib_save_LIBS=$LIBS
20020 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20028 /* Override any GCC internal prototype to avoid an error.
20029 Use char because int might match the return type of a GCC
20030 builtin and then its argument prototype would still apply. */
20038 return ldap_bind ();
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (ac_try="$ac_link"
20045 case "(($ac_try" in
20046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050 (eval "$ac_link") 2>conftest.er1
20052 grep -v '^ *+' conftest.er1 >conftest.err
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } && {
20057 test -z "$ac_c_werror_flag" ||
20058 test ! -s conftest.err
20059 } && test -s conftest$ac_exeext &&
20060 $as_test_x conftest$ac_exeext; then
20061 ac_cv_lib_ldap_ldap_bind=yes
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 ac_cv_lib_ldap_ldap_bind=no
20069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20070 conftest$ac_exeext conftest.$ac_ext
20071 LIBS=$ac_check_lib_save_LIBS
20073 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20074 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20075 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20076 cat >>confdefs.h <<_ACEOF
20077 #define HAVE_LIBLDAP 1
20080 LIBS="-lldap $LIBS"
20083 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20084 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20085 { (exit 1); exit 1; }; }
20088 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
20089 if test "$enable_thread_safety" = yes; then
20090 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20092 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20093 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20094 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
20097 ac_check_lib_save_LIBS=$LIBS
20098 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20099 cat >conftest.$ac_ext <<_ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20106 /* Override any GCC internal prototype to avoid an error.
20107 Use char because int might match the return type of a GCC
20108 builtin and then its argument prototype would still apply. */
20112 char ldap_simple_bind ();
20116 return ldap_simple_bind ();
20121 rm -f conftest.$ac_objext conftest$ac_exeext
20122 if { (ac_try="$ac_link"
20123 case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_link") 2>conftest.er1
20130 grep -v '^ *+' conftest.er1 >conftest.err
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } && {
20135 test -z "$ac_c_werror_flag" ||
20136 test ! -s conftest.err
20137 } && test -s conftest$ac_exeext &&
20138 $as_test_x conftest$ac_exeext; then
20139 ac_cv_lib_ldap_r_ldap_simple_bind=yes
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ac_cv_lib_ldap_r_ldap_simple_bind=no
20147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20148 conftest$ac_exeext conftest.$ac_ext
20149 LIBS=$ac_check_lib_save_LIBS
20151 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20152 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20153 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20154 cat >>confdefs.h <<_ACEOF
20155 #define HAVE_LIBLDAP_R 1
20158 LIBS="-lldap_r $LIBS"
20161 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20162 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20163 { (exit 1); exit 1; }; }
20166 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
20168 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
20172 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20173 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20174 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 ac_check_lib_save_LIBS=$LIBS
20178 LIBS="-lwldap32 $LIBS"
20179 cat >conftest.$ac_ext <<_ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20186 /* Override any GCC internal prototype to avoid an error.
20187 Use char because int might match the return type of a GCC
20188 builtin and then its argument prototype would still apply. */
20196 return ldap_bind ();
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (ac_try="$ac_link"
20203 case "(($ac_try" in
20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208 (eval "$ac_link") 2>conftest.er1
20210 grep -v '^ *+' conftest.er1 >conftest.err
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } && {
20215 test -z "$ac_c_werror_flag" ||
20216 test ! -s conftest.err
20217 } && test -s conftest$ac_exeext &&
20218 $as_test_x conftest$ac_exeext; then
20219 ac_cv_lib_wldap32_ldap_bind=yes
20221 echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20224 ac_cv_lib_wldap32_ldap_bind=no
20227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20228 conftest$ac_exeext conftest.$ac_ext
20229 LIBS=$ac_check_lib_save_LIBS
20231 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20232 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20233 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20234 cat >>confdefs.h <<_ACEOF
20235 #define HAVE_LIBWLDAP32 1
20238 LIBS="-lwldap32 $LIBS"
20241 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20242 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20243 { (exit 1); exit 1; }; }
20246 LDAP_LIBS_FE="-lwldap32"
20247 LDAP_LIBS_BE="-lwldap32"
20255 # This test makes sure that run tests work at all. Sometimes a shared
20256 # library is found by the linker, but the runtime linker can't find it.
20257 # This check should come after all modifications of compiler or linker
20258 # variables, and before any other run tests.
20259 { echo "$as_me:$LINENO: checking test program" >&5
20260 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20261 if test "$cross_compiling" = yes; then
20262 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20263 echo "${ECHO_T}cross-compiling" >&6; }
20265 cat >conftest.$ac_ext <<_ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 int main() { return 0; }
20273 rm -f conftest$ac_exeext
20274 if { (ac_try="$ac_link"
20275 case "(($ac_try" in
20276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277 *) ac_try_echo=$ac_try;;
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280 (eval "$ac_link") 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20284 { (case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_try") 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 { echo "$as_me:$LINENO: result: ok" >&5
20294 echo "${ECHO_T}ok" >&6; }
20296 echo "$as_me: program exited with status $ac_status" >&5
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ( exit $ac_status )
20301 { echo "$as_me:$LINENO: result: failed" >&5
20302 echo "${ECHO_T}failed" >&6; }
20303 { { echo "$as_me:$LINENO: error:
20304 Could not execute a simple test program. This may be a problem
20305 related to locating shared libraries. Check the file 'config.log'
20306 for the exact reason." >&5
20307 echo "$as_me: error:
20308 Could not execute a simple test program. This may be a problem
20309 related to locating shared libraries. Check the file 'config.log'
20310 for the exact reason." >&2;}
20311 { (exit 1); exit 1; }; }
20313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20318 # --------------------
20319 # Run tests below here
20320 # --------------------
20322 # Force use of our snprintf if system's doesn't do arg control
20323 # See comment above at snprintf test for details.
20324 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
20325 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20326 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20327 if test "${pgac_cv_printf_arg_control+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20330 if test "$cross_compiling" = yes; then
20331 pgac_cv_printf_arg_control=cross
20333 cat >conftest.$ac_ext <<_ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20340 #include <string.h>
20346 /* can it swap arguments? */
20347 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20348 if (strcmp(buf, "4 3") != 0)
20353 rm -f conftest$ac_exeext
20354 if { (ac_try="$ac_link"
20355 case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360 (eval "$ac_link") 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20364 { (case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_try") 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 pgac_cv_printf_arg_control=yes
20375 echo "$as_me: program exited with status $ac_status" >&5
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ( exit $ac_status )
20380 pgac_cv_printf_arg_control=no
20382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20388 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20389 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20391 if test $pgac_cv_printf_arg_control != yes ; then
20392 pgac_need_repl_snprintf=yes
20398 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20399 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20400 if test "${pgac_cv_type_long_int_64+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 if test "$cross_compiling" = yes; then
20404 # If cross-compiling, check the size reported by the compiler and
20405 # trust that the arithmetic works.
20406 cat >conftest.$ac_ext <<_ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20416 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20423 rm -f conftest.$ac_objext
20424 if { (ac_try="$ac_compile"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_compile") 2>conftest.er1
20432 grep -v '^ *+' conftest.er1 >conftest.err
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } && {
20437 test -z "$ac_c_werror_flag" ||
20438 test ! -s conftest.err
20439 } && test -s conftest.$ac_objext; then
20440 pgac_cv_type_long_int_64=yes
20442 echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20445 pgac_cv_type_long_int_64=no
20448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20450 cat >conftest.$ac_ext <<_ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 typedef long int ac_int64;
20459 * These are globals to discourage the compiler from folding all the
20460 * arithmetic tests down to compile-time constants.
20462 ac_int64 a = 20000001;
20463 ac_int64 b = 40000005;
20465 int does_int64_work()
20469 if (sizeof(ac_int64) != 8)
20470 return 0; /* definitely not the right size */
20472 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20480 exit(! does_int64_work());
20483 rm -f conftest$ac_exeext
20484 if { (ac_try="$ac_link"
20485 case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_link") 2>&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20494 { (case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_try") 2>&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
20503 pgac_cv_type_long_int_64=yes
20505 echo "$as_me: program exited with status $ac_status" >&5
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 ( exit $ac_status )
20510 pgac_cv_type_long_int_64=no
20512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20517 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20518 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20520 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20521 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20523 cat >>confdefs.h <<\_ACEOF
20524 #define HAVE_LONG_INT_64 1
20530 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20531 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20532 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20533 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 if test "$cross_compiling" = yes; then
20537 # If cross-compiling, check the size reported by the compiler and
20538 # trust that the arithmetic works.
20539 cat >conftest.$ac_ext <<_ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20549 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20556 rm -f conftest.$ac_objext
20557 if { (ac_try="$ac_compile"
20558 case "(($ac_try" in
20559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560 *) ac_try_echo=$ac_try;;
20562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563 (eval "$ac_compile") 2>conftest.er1
20565 grep -v '^ *+' conftest.er1 >conftest.err
20567 cat conftest.err >&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } && {
20570 test -z "$ac_c_werror_flag" ||
20571 test ! -s conftest.err
20572 } && test -s conftest.$ac_objext; then
20573 pgac_cv_type_long_long_int_64=yes
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 pgac_cv_type_long_long_int_64=no
20581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20589 typedef long long int ac_int64;
20592 * These are globals to discourage the compiler from folding all the
20593 * arithmetic tests down to compile-time constants.
20595 ac_int64 a = 20000001;
20596 ac_int64 b = 40000005;
20598 int does_int64_work()
20602 if (sizeof(ac_int64) != 8)
20603 return 0; /* definitely not the right size */
20605 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20613 exit(! does_int64_work());
20616 rm -f conftest$ac_exeext
20617 if { (ac_try="$ac_link"
20618 case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_link") 2>&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20627 { (case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_try") 2>&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20636 pgac_cv_type_long_long_int_64=yes
20638 echo "$as_me: program exited with status $ac_status" >&5
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20642 ( exit $ac_status )
20643 pgac_cv_type_long_long_int_64=no
20645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20651 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20653 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20654 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20656 cat >>confdefs.h <<\_ACEOF
20657 #define HAVE_LONG_LONG_INT_64 1
20666 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20667 cat >conftest.$ac_ext <<_ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20674 #define INT64CONST(x) x##LL
20675 long long int foo = INT64CONST(0x1234567890123456);
20685 rm -f conftest.$ac_objext
20686 if { (ac_try="$ac_compile"
20687 case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692 (eval "$ac_compile") 2>conftest.er1
20694 grep -v '^ *+' conftest.er1 >conftest.err
20696 cat conftest.err >&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } && {
20699 test -z "$ac_c_werror_flag" ||
20700 test ! -s conftest.err
20701 } && test -s conftest.$ac_objext; then
20703 cat >>confdefs.h <<\_ACEOF
20704 #define HAVE_LL_CONSTANTS 1
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 # If we found "long int" is 64 bits, assume snprintf handles it. If
20719 # we found we need to use "long long int", better check. We cope with
20720 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20721 # work, fall back to our own snprintf emulation (which we know uses %lld).
20723 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20724 if test $pgac_need_repl_snprintf = no; then
20725 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20726 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20727 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20728 echo $ECHO_N "(cached) $ECHO_C" >&6
20730 for pgac_format in '%lld' '%qd' '%I64d'; do
20731 if test "$cross_compiling" = yes; then
20732 pgac_cv_snprintf_long_long_int_format=cross; break
20734 cat >conftest.$ac_ext <<_ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20741 typedef long long int ac_int64;
20742 #define INT64_FORMAT "$pgac_format"
20744 ac_int64 a = 20000001;
20745 ac_int64 b = 40000005;
20747 int does_int64_snprintf_work()
20752 if (sizeof(ac_int64) != 8)
20753 return 0; /* doesn't look like the right size */
20756 snprintf(buf, 100, INT64_FORMAT, c);
20757 if (strcmp(buf, "800000140000005") != 0)
20758 return 0; /* either multiply or snprintf is busted */
20762 exit(! does_int64_snprintf_work());
20765 rm -f conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_link") 2>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20776 { (case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_try") 2>&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; }; then
20785 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20787 echo "$as_me: program exited with status $ac_status" >&5
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20799 LONG_LONG_INT_FORMAT=''
20801 case $pgac_cv_snprintf_long_long_int_format in
20802 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20803 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20804 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20805 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20806 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20807 *) { echo "$as_me:$LINENO: result: none" >&5
20808 echo "${ECHO_T}none" >&6; };;
20810 if test "$LONG_LONG_INT_FORMAT" = ""; then
20811 # Force usage of our own snprintf, since system snprintf is broken
20812 pgac_need_repl_snprintf=yes
20813 LONG_LONG_INT_FORMAT='%lld'
20816 # Here if we previously decided we needed to use our own snprintf
20817 LONG_LONG_INT_FORMAT='%lld'
20819 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20820 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20821 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20823 # Here if we are not using 'long long int' at all
20824 INT64_FORMAT='"%ld"'
20825 UINT64_FORMAT='"%lu"'
20829 cat >>confdefs.h <<_ACEOF
20830 #define INT64_FORMAT $INT64_FORMAT
20835 cat >>confdefs.h <<_ACEOF
20836 #define UINT64_FORMAT $UINT64_FORMAT
20840 # Now we have checked all the reasons to replace snprintf
20841 if test $pgac_need_repl_snprintf = yes; then
20843 cat >>confdefs.h <<\_ACEOF
20844 #define USE_REPL_SNPRINTF 1
20847 case " $LIBOBJS " in
20848 *" snprintf.$ac_objext "* ) ;;
20849 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20855 # Need a #define for the size of Datum (unsigned long)
20856 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20857 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20858 if test "${ac_cv_type_unsigned_long+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 cat >conftest.$ac_ext <<_ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 $ac_includes_default
20868 typedef unsigned long ac__type_new_;
20872 if ((ac__type_new_ *) 0)
20874 if (sizeof (ac__type_new_))
20880 rm -f conftest.$ac_objext
20881 if { (ac_try="$ac_compile"
20882 case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_compile") 2>conftest.er1
20889 grep -v '^ *+' conftest.er1 >conftest.err
20891 cat conftest.err >&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } && {
20894 test -z "$ac_c_werror_flag" ||
20895 test ! -s conftest.err
20896 } && test -s conftest.$ac_objext; then
20897 ac_cv_type_unsigned_long=yes
20899 echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902 ac_cv_type_unsigned_long=no
20905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20908 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20910 # The cast to long int works around a bug in the HP C Compiler
20911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20913 # This bug is HP SR number 8606223364.
20914 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20915 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20916 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 if test "$cross_compiling" = yes; then
20920 # Depending upon the size, compute the lo and hi bounds.
20921 cat >conftest.$ac_ext <<_ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h. */
20927 $ac_includes_default
20928 typedef unsigned long ac__type_sizeof_;
20932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20939 rm -f conftest.$ac_objext
20940 if { (ac_try="$ac_compile"
20941 case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_compile") 2>conftest.er1
20948 grep -v '^ *+' conftest.er1 >conftest.err
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } && {
20953 test -z "$ac_c_werror_flag" ||
20954 test ! -s conftest.err
20955 } && test -s conftest.$ac_objext; then
20958 cat >conftest.$ac_ext <<_ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 $ac_includes_default
20965 typedef unsigned long ac__type_sizeof_;
20969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20976 rm -f conftest.$ac_objext
20977 if { (ac_try="$ac_compile"
20978 case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_compile") 2>conftest.er1
20985 grep -v '^ *+' conftest.er1 >conftest.err
20987 cat conftest.err >&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } && {
20990 test -z "$ac_c_werror_flag" ||
20991 test ! -s conftest.err
20992 } && test -s conftest.$ac_objext; then
20993 ac_hi=$ac_mid; break
20995 echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20998 ac_lo=`expr $ac_mid + 1`
20999 if test $ac_lo -le $ac_mid; then
21003 ac_mid=`expr 2 '*' $ac_mid + 1`
21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 cat >conftest.$ac_ext <<_ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21018 $ac_includes_default
21019 typedef unsigned long ac__type_sizeof_;
21023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21030 rm -f conftest.$ac_objext
21031 if { (ac_try="$ac_compile"
21032 case "(($ac_try" in
21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034 *) ac_try_echo=$ac_try;;
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037 (eval "$ac_compile") 2>conftest.er1
21039 grep -v '^ *+' conftest.er1 >conftest.err
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } && {
21044 test -z "$ac_c_werror_flag" ||
21045 test ! -s conftest.err
21046 } && test -s conftest.$ac_objext; then
21049 cat >conftest.$ac_ext <<_ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21055 $ac_includes_default
21056 typedef unsigned long ac__type_sizeof_;
21060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_compile") 2>conftest.er1
21076 grep -v '^ *+' conftest.er1 >conftest.err
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } && {
21081 test -z "$ac_c_werror_flag" ||
21082 test ! -s conftest.err
21083 } && test -s conftest.$ac_objext; then
21084 ac_lo=$ac_mid; break
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21089 ac_hi=`expr '(' $ac_mid ')' - 1`
21090 if test $ac_mid -le $ac_hi; then
21094 ac_mid=`expr 2 '*' $ac_mid`
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 # Binary search between lo and hi bounds.
21111 while test "x$ac_lo" != "x$ac_hi"; do
21112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21113 cat >conftest.$ac_ext <<_ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119 $ac_includes_default
21120 typedef unsigned long ac__type_sizeof_;
21124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21131 rm -f conftest.$ac_objext
21132 if { (ac_try="$ac_compile"
21133 case "(($ac_try" in
21134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21135 *) ac_try_echo=$ac_try;;
21137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21138 (eval "$ac_compile") 2>conftest.er1
21140 grep -v '^ *+' conftest.er1 >conftest.err
21142 cat conftest.err >&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); } && {
21145 test -z "$ac_c_werror_flag" ||
21146 test ! -s conftest.err
21147 } && test -s conftest.$ac_objext; then
21150 echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21153 ac_lo=`expr '(' $ac_mid ')' + 1`
21156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21159 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21160 '') if test "$ac_cv_type_unsigned_long" = yes; then
21161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21162 See \`config.log' for more details." >&5
21163 echo "$as_me: error: cannot compute sizeof (unsigned long)
21164 See \`config.log' for more details." >&2;}
21165 { (exit 77); exit 77; }; }
21167 ac_cv_sizeof_unsigned_long=0
21171 cat >conftest.$ac_ext <<_ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h. */
21177 $ac_includes_default
21178 typedef unsigned long ac__type_sizeof_;
21179 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21180 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21182 #include <stdlib.h>
21187 FILE *f = fopen ("conftest.val", "w");
21190 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21192 long int i = longval ();
21193 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21195 fprintf (f, "%ld\n", i);
21199 unsigned long int i = ulongval ();
21200 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21202 fprintf (f, "%lu\n", i);
21204 return ferror (f) || fclose (f) != 0;
21210 rm -f conftest$ac_exeext
21211 if { (ac_try="$ac_link"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_link") 2>&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21221 { (case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_try") 2>&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 ac_cv_sizeof_unsigned_long=`cat conftest.val`
21232 echo "$as_me: program exited with status $ac_status" >&5
21233 echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21236 ( exit $ac_status )
21237 if test "$ac_cv_type_unsigned_long" = yes; then
21238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21239 See \`config.log' for more details." >&5
21240 echo "$as_me: error: cannot compute sizeof (unsigned long)
21241 See \`config.log' for more details." >&2;}
21242 { (exit 77); exit 77; }; }
21244 ac_cv_sizeof_unsigned_long=0
21247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21251 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
21252 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21256 cat >>confdefs.h <<_ACEOF
21257 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21262 # And one for the size of size_t (enables tweaks for > 32bit address space)
21263 { echo "$as_me:$LINENO: checking for size_t" >&5
21264 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21265 if test "${ac_cv_type_size_t+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 $ac_includes_default
21275 typedef size_t ac__type_new_;
21279 if ((ac__type_new_ *) 0)
21281 if (sizeof (ac__type_new_))
21287 rm -f conftest.$ac_objext
21288 if { (ac_try="$ac_compile"
21289 case "(($ac_try" in
21290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21291 *) ac_try_echo=$ac_try;;
21293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21294 (eval "$ac_compile") 2>conftest.er1
21296 grep -v '^ *+' conftest.er1 >conftest.err
21298 cat conftest.err >&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } && {
21301 test -z "$ac_c_werror_flag" ||
21302 test ! -s conftest.err
21303 } && test -s conftest.$ac_objext; then
21304 ac_cv_type_size_t=yes
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21309 ac_cv_type_size_t=no
21312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21315 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21317 # The cast to long int works around a bug in the HP C Compiler
21318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21320 # This bug is HP SR number 8606223364.
21321 { echo "$as_me:$LINENO: checking size of size_t" >&5
21322 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21323 if test "${ac_cv_sizeof_size_t+set}" = set; then
21324 echo $ECHO_N "(cached) $ECHO_C" >&6
21326 if test "$cross_compiling" = yes; then
21327 # Depending upon the size, compute the lo and hi bounds.
21328 cat >conftest.$ac_ext <<_ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 $ac_includes_default
21335 typedef size_t ac__type_sizeof_;
21339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21346 rm -f conftest.$ac_objext
21347 if { (ac_try="$ac_compile"
21348 case "(($ac_try" in
21349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350 *) ac_try_echo=$ac_try;;
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353 (eval "$ac_compile") 2>conftest.er1
21355 grep -v '^ *+' conftest.er1 >conftest.err
21357 cat conftest.err >&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } && {
21360 test -z "$ac_c_werror_flag" ||
21361 test ! -s conftest.err
21362 } && test -s conftest.$ac_objext; then
21365 cat >conftest.$ac_ext <<_ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21371 $ac_includes_default
21372 typedef size_t ac__type_sizeof_;
21376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21390 (eval "$ac_compile") 2>conftest.er1
21392 grep -v '^ *+' conftest.er1 >conftest.err
21394 cat conftest.err >&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); } && {
21397 test -z "$ac_c_werror_flag" ||
21398 test ! -s conftest.err
21399 } && test -s conftest.$ac_objext; then
21400 ac_hi=$ac_mid; break
21402 echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21405 ac_lo=`expr $ac_mid + 1`
21406 if test $ac_lo -le $ac_mid; then
21410 ac_mid=`expr 2 '*' $ac_mid + 1`
21413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21419 cat >conftest.$ac_ext <<_ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21425 $ac_includes_default
21426 typedef size_t ac__type_sizeof_;
21430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21437 rm -f conftest.$ac_objext
21438 if { (ac_try="$ac_compile"
21439 case "(($ac_try" in
21440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441 *) ac_try_echo=$ac_try;;
21443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444 (eval "$ac_compile") 2>conftest.er1
21446 grep -v '^ *+' conftest.er1 >conftest.err
21448 cat conftest.err >&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } && {
21451 test -z "$ac_c_werror_flag" ||
21452 test ! -s conftest.err
21453 } && test -s conftest.$ac_objext; then
21456 cat >conftest.$ac_ext <<_ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h. */
21462 $ac_includes_default
21463 typedef size_t ac__type_sizeof_;
21467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21474 rm -f conftest.$ac_objext
21475 if { (ac_try="$ac_compile"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_compile") 2>conftest.er1
21483 grep -v '^ *+' conftest.er1 >conftest.err
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } && {
21488 test -z "$ac_c_werror_flag" ||
21489 test ! -s conftest.err
21490 } && test -s conftest.$ac_objext; then
21491 ac_lo=$ac_mid; break
21493 echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21496 ac_hi=`expr '(' $ac_mid ')' - 1`
21497 if test $ac_mid -le $ac_hi; then
21501 ac_mid=`expr 2 '*' $ac_mid`
21504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21507 echo "$as_me: failed program was:" >&5
21508 sed 's/^/| /' conftest.$ac_ext >&5
21513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21517 # Binary search between lo and hi bounds.
21518 while test "x$ac_lo" != "x$ac_hi"; do
21519 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21520 cat >conftest.$ac_ext <<_ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h. */
21526 $ac_includes_default
21527 typedef size_t ac__type_sizeof_;
21531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21538 rm -f conftest.$ac_objext
21539 if { (ac_try="$ac_compile"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_compile") 2>conftest.er1
21547 grep -v '^ *+' conftest.er1 >conftest.err
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } && {
21552 test -z "$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21554 } && test -s conftest.$ac_objext; then
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21560 ac_lo=`expr '(' $ac_mid ')' + 1`
21563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21567 '') if test "$ac_cv_type_size_t" = yes; then
21568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21569 See \`config.log' for more details." >&5
21570 echo "$as_me: error: cannot compute sizeof (size_t)
21571 See \`config.log' for more details." >&2;}
21572 { (exit 77); exit 77; }; }
21574 ac_cv_sizeof_size_t=0
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 $ac_includes_default
21585 typedef size_t ac__type_sizeof_;
21586 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21587 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21589 #include <stdlib.h>
21594 FILE *f = fopen ("conftest.val", "w");
21597 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21599 long int i = longval ();
21600 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21602 fprintf (f, "%ld\n", i);
21606 unsigned long int i = ulongval ();
21607 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21609 fprintf (f, "%lu\n", i);
21611 return ferror (f) || fclose (f) != 0;
21617 rm -f conftest$ac_exeext
21618 if { (ac_try="$ac_link"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_link") 2>&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21628 { (case "(($ac_try" in
21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630 *) ac_try_echo=$ac_try;;
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633 (eval "$ac_try") 2>&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; }; then
21637 ac_cv_sizeof_size_t=`cat conftest.val`
21639 echo "$as_me: program exited with status $ac_status" >&5
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21643 ( exit $ac_status )
21644 if test "$ac_cv_type_size_t" = yes; then
21645 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21646 See \`config.log' for more details." >&5
21647 echo "$as_me: error: cannot compute sizeof (size_t)
21648 See \`config.log' for more details." >&2;}
21649 { (exit 77); exit 77; }; }
21651 ac_cv_sizeof_size_t=0
21654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21658 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21659 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21663 cat >>confdefs.h <<_ACEOF
21664 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21669 # Decide whether float4 is passed by value: user-selectable, enabled by default
21670 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21671 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21673 pgac_args="$pgac_args enable_float4_byval"
21675 # Check whether --enable-float4-byval was given.
21676 if test "${enable_float4_byval+set}" = set; then
21677 enableval=$enable_float4_byval;
21681 cat >>confdefs.h <<\_ACEOF
21682 #define USE_FLOAT4_BYVAL 1
21685 float4passbyval=true
21688 float4passbyval=false
21691 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21692 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21693 { (exit 1); exit 1; }; }
21698 enable_float4_byval=yes
21700 cat >>confdefs.h <<\_ACEOF
21701 #define USE_FLOAT4_BYVAL 1
21704 float4passbyval=true
21708 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21709 echo "${ECHO_T}$enable_float4_byval" >&6; }
21711 cat >>confdefs.h <<_ACEOF
21712 #define FLOAT4PASSBYVAL $float4passbyval
21716 # Decide whether float8 is passed by value.
21717 # Note: this setting also controls int8 and related types such as timestamp.
21718 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21719 # If not, trying to select it is an error.
21720 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21721 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21722 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21724 pgac_args="$pgac_args enable_float8_byval"
21726 # Check whether --enable-float8-byval was given.
21727 if test "${enable_float8_byval+set}" = set; then
21728 enableval=$enable_float8_byval;
21737 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21738 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21739 { (exit 1); exit 1; }; }
21744 enable_float8_byval=yes
21751 pgac_args="$pgac_args enable_float8_byval"
21753 # Check whether --enable-float8-byval was given.
21754 if test "${enable_float8_byval+set}" = set; then
21755 enableval=$enable_float8_byval;
21764 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21765 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21766 { (exit 1); exit 1; }; }
21771 enable_float8_byval=no
21776 if test "$enable_float8_byval" = yes ; then
21777 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21778 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21779 { (exit 1); exit 1; }; }
21782 if test "$enable_float8_byval" = yes ; then
21784 cat >>confdefs.h <<\_ACEOF
21785 #define USE_FLOAT8_BYVAL 1
21788 float8passbyval=true
21790 float8passbyval=false
21792 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21793 echo "${ECHO_T}$enable_float8_byval" >&6; }
21795 cat >>confdefs.h <<_ACEOF
21796 #define FLOAT8PASSBYVAL $float8passbyval
21800 # Determine memory alignment requirements for the basic C data types.
21802 { echo "$as_me:$LINENO: checking for short" >&5
21803 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21804 if test "${ac_cv_type_short+set}" = set; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21807 cat >conftest.$ac_ext <<_ACEOF
21810 cat confdefs.h >>conftest.$ac_ext
21811 cat >>conftest.$ac_ext <<_ACEOF
21812 /* end confdefs.h. */
21813 $ac_includes_default
21814 typedef short ac__type_new_;
21818 if ((ac__type_new_ *) 0)
21820 if (sizeof (ac__type_new_))
21826 rm -f conftest.$ac_objext
21827 if { (ac_try="$ac_compile"
21828 case "(($ac_try" in
21829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830 *) ac_try_echo=$ac_try;;
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833 (eval "$ac_compile") 2>conftest.er1
21835 grep -v '^ *+' conftest.er1 >conftest.err
21837 cat conftest.err >&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } && {
21840 test -z "$ac_c_werror_flag" ||
21841 test ! -s conftest.err
21842 } && test -s conftest.$ac_objext; then
21843 ac_cv_type_short=yes
21845 echo "$as_me: failed program was:" >&5
21846 sed 's/^/| /' conftest.$ac_ext >&5
21848 ac_cv_type_short=no
21851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21854 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21856 # The cast to long int works around a bug in the HP C Compiler,
21857 # see AC_CHECK_SIZEOF for more information.
21858 { echo "$as_me:$LINENO: checking alignment of short" >&5
21859 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21860 if test "${ac_cv_alignof_short+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 if test "$cross_compiling" = yes; then
21864 # Depending upon the size, compute the lo and hi bounds.
21865 cat >conftest.$ac_ext <<_ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 $ac_includes_default
21873 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21875 typedef struct { char x; short y; } ac__type_alignof_;
21879 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21886 rm -f conftest.$ac_objext
21887 if { (ac_try="$ac_compile"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_compile") 2>conftest.er1
21895 grep -v '^ *+' conftest.er1 >conftest.err
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } && {
21900 test -z "$ac_c_werror_flag" ||
21901 test ! -s conftest.err
21902 } && test -s conftest.$ac_objext; then
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; short y; } ac__type_alignof_;
21919 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21926 rm -f conftest.$ac_objext
21927 if { (ac_try="$ac_compile"
21928 case "(($ac_try" in
21929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930 *) ac_try_echo=$ac_try;;
21932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21933 (eval "$ac_compile") 2>conftest.er1
21935 grep -v '^ *+' conftest.er1 >conftest.err
21937 cat conftest.err >&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } && {
21940 test -z "$ac_c_werror_flag" ||
21941 test ! -s conftest.err
21942 } && test -s conftest.$ac_objext; then
21943 ac_hi=$ac_mid; break
21945 echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21948 ac_lo=`expr $ac_mid + 1`
21949 if test $ac_lo -le $ac_mid; then
21953 ac_mid=`expr 2 '*' $ac_mid + 1`
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 cat >conftest.$ac_ext <<_ACEOF
21965 cat confdefs.h >>conftest.$ac_ext
21966 cat >>conftest.$ac_ext <<_ACEOF
21967 /* end confdefs.h. */
21968 $ac_includes_default
21970 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21972 typedef struct { char x; short y; } ac__type_alignof_;
21976 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21983 rm -f conftest.$ac_objext
21984 if { (ac_try="$ac_compile"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_compile") 2>conftest.er1
21992 grep -v '^ *+' conftest.er1 >conftest.err
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } && {
21997 test -z "$ac_c_werror_flag" ||
21998 test ! -s conftest.err
21999 } && test -s conftest.$ac_objext; then
22002 cat >conftest.$ac_ext <<_ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22008 $ac_includes_default
22010 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22012 typedef struct { char x; short y; } ac__type_alignof_;
22016 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22023 rm -f conftest.$ac_objext
22024 if { (ac_try="$ac_compile"
22025 case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_compile") 2>conftest.er1
22032 grep -v '^ *+' conftest.er1 >conftest.err
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } && {
22037 test -z "$ac_c_werror_flag" ||
22038 test ! -s conftest.err
22039 } && test -s conftest.$ac_objext; then
22040 ac_lo=$ac_mid; break
22042 echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22045 ac_hi=`expr '(' $ac_mid ')' - 1`
22046 if test $ac_mid -le $ac_hi; then
22050 ac_mid=`expr 2 '*' $ac_mid`
22053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22066 # Binary search between lo and hi bounds.
22067 while test "x$ac_lo" != "x$ac_hi"; do
22068 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22069 cat >conftest.$ac_ext <<_ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h. */
22075 $ac_includes_default
22077 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22079 typedef struct { char x; short y; } ac__type_alignof_;
22083 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22090 rm -f conftest.$ac_objext
22091 if { (ac_try="$ac_compile"
22092 case "(($ac_try" in
22093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094 *) ac_try_echo=$ac_try;;
22096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097 (eval "$ac_compile") 2>conftest.er1
22099 grep -v '^ *+' conftest.er1 >conftest.err
22101 cat conftest.err >&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } && {
22104 test -z "$ac_c_werror_flag" ||
22105 test ! -s conftest.err
22106 } && test -s conftest.$ac_objext; then
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22112 ac_lo=`expr '(' $ac_mid ')' + 1`
22115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22118 ?*) ac_cv_alignof_short=$ac_lo;;
22119 '') if test "$ac_cv_type_short" = yes; then
22120 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22121 See \`config.log' for more details." >&5
22122 echo "$as_me: error: cannot compute alignment of short
22123 See \`config.log' for more details." >&2;}
22124 { (exit 77); exit 77; }; }
22126 ac_cv_alignof_short=0
22130 cat >conftest.$ac_ext <<_ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h. */
22136 $ac_includes_default
22138 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22140 typedef struct { char x; short y; } ac__type_alignof_;
22141 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22142 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22144 #include <stdlib.h>
22149 FILE *f = fopen ("conftest.val", "w");
22152 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22154 long int i = longval ();
22155 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22157 fprintf (f, "%ld\n", i);
22161 unsigned long int i = ulongval ();
22162 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22164 fprintf (f, "%lu\n", i);
22166 return ferror (f) || fclose (f) != 0;
22172 rm -f conftest$ac_exeext
22173 if { (ac_try="$ac_link"
22174 case "(($ac_try" in
22175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176 *) ac_try_echo=$ac_try;;
22178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179 (eval "$ac_link") 2>&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22183 { (case "(($ac_try" in
22184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185 *) ac_try_echo=$ac_try;;
22187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22188 (eval "$ac_try") 2>&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; }; then
22192 ac_cv_alignof_short=`cat conftest.val`
22194 echo "$as_me: program exited with status $ac_status" >&5
22195 echo "$as_me: failed program was:" >&5
22196 sed 's/^/| /' conftest.$ac_ext >&5
22198 ( exit $ac_status )
22199 if test "$ac_cv_type_short" = yes; then
22200 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22201 See \`config.log' for more details." >&5
22202 echo "$as_me: error: cannot compute alignment of short
22203 See \`config.log' for more details." >&2;}
22204 { (exit 77); exit 77; }; }
22206 ac_cv_alignof_short=0
22209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22213 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
22214 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
22218 cat >>confdefs.h <<_ACEOF
22219 #define ALIGNOF_SHORT $ac_cv_alignof_short
22223 { echo "$as_me:$LINENO: checking for int" >&5
22224 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22225 if test "${ac_cv_type_int+set}" = set; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22228 cat >conftest.$ac_ext <<_ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22234 $ac_includes_default
22235 typedef int ac__type_new_;
22239 if ((ac__type_new_ *) 0)
22241 if (sizeof (ac__type_new_))
22247 rm -f conftest.$ac_objext
22248 if { (ac_try="$ac_compile"
22249 case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_compile") 2>conftest.er1
22256 grep -v '^ *+' conftest.er1 >conftest.err
22258 cat conftest.err >&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } && {
22261 test -z "$ac_c_werror_flag" ||
22262 test ! -s conftest.err
22263 } && test -s conftest.$ac_objext; then
22266 echo "$as_me: failed program was:" >&5
22267 sed 's/^/| /' conftest.$ac_ext >&5
22272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22274 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22275 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22277 # The cast to long int works around a bug in the HP C Compiler,
22278 # see AC_CHECK_SIZEOF for more information.
22279 { echo "$as_me:$LINENO: checking alignment of int" >&5
22280 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
22281 if test "${ac_cv_alignof_int+set}" = set; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22284 if test "$cross_compiling" = yes; then
22285 # Depending upon the size, compute the lo and hi bounds.
22286 cat >conftest.$ac_ext <<_ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h. */
22292 $ac_includes_default
22294 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22296 typedef struct { char x; int y; } ac__type_alignof_;
22300 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22307 rm -f conftest.$ac_objext
22308 if { (ac_try="$ac_compile"
22309 case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_compile") 2>conftest.er1
22316 grep -v '^ *+' conftest.er1 >conftest.err
22318 cat conftest.err >&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } && {
22321 test -z "$ac_c_werror_flag" ||
22322 test ! -s conftest.err
22323 } && test -s conftest.$ac_objext; then
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; int y; } ac__type_alignof_;
22340 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22347 rm -f conftest.$ac_objext
22348 if { (ac_try="$ac_compile"
22349 case "(($ac_try" in
22350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351 *) ac_try_echo=$ac_try;;
22353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22354 (eval "$ac_compile") 2>conftest.er1
22356 grep -v '^ *+' conftest.er1 >conftest.err
22358 cat conftest.err >&5
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } && {
22361 test -z "$ac_c_werror_flag" ||
22362 test ! -s conftest.err
22363 } && test -s conftest.$ac_objext; then
22364 ac_hi=$ac_mid; break
22366 echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22369 ac_lo=`expr $ac_mid + 1`
22370 if test $ac_lo -le $ac_mid; then
22374 ac_mid=`expr 2 '*' $ac_mid + 1`
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22380 echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22383 cat >conftest.$ac_ext <<_ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h. */
22389 $ac_includes_default
22391 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22393 typedef struct { char x; int y; } ac__type_alignof_;
22397 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22404 rm -f conftest.$ac_objext
22405 if { (ac_try="$ac_compile"
22406 case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_compile") 2>conftest.er1
22413 grep -v '^ *+' conftest.er1 >conftest.err
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && {
22418 test -z "$ac_c_werror_flag" ||
22419 test ! -s conftest.err
22420 } && test -s conftest.$ac_objext; then
22423 cat >conftest.$ac_ext <<_ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 $ac_includes_default
22431 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22433 typedef struct { char x; int y; } ac__type_alignof_;
22437 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
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_lo=$ac_mid; break
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22466 ac_hi=`expr '(' $ac_mid ')' - 1`
22467 if test $ac_mid -le $ac_hi; then
22471 ac_mid=`expr 2 '*' $ac_mid`
22474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22477 echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 # Binary search between lo and hi bounds.
22488 while test "x$ac_lo" != "x$ac_hi"; do
22489 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22490 cat >conftest.$ac_ext <<_ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22496 $ac_includes_default
22498 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22500 typedef struct { char x; int y; } ac__type_alignof_;
22504 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22511 rm -f conftest.$ac_objext
22512 if { (ac_try="$ac_compile"
22513 case "(($ac_try" in
22514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515 *) ac_try_echo=$ac_try;;
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518 (eval "$ac_compile") 2>conftest.er1
22520 grep -v '^ *+' conftest.er1 >conftest.err
22522 cat conftest.err >&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } && {
22525 test -z "$ac_c_werror_flag" ||
22526 test ! -s conftest.err
22527 } && test -s conftest.$ac_objext; then
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22533 ac_lo=`expr '(' $ac_mid ')' + 1`
22536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 ?*) ac_cv_alignof_int=$ac_lo;;
22540 '') if test "$ac_cv_type_int" = yes; then
22541 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22542 See \`config.log' for more details." >&5
22543 echo "$as_me: error: cannot compute alignment of int
22544 See \`config.log' for more details." >&2;}
22545 { (exit 77); exit 77; }; }
22547 ac_cv_alignof_int=0
22551 cat >conftest.$ac_ext <<_ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h. */
22557 $ac_includes_default
22559 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22561 typedef struct { char x; int y; } ac__type_alignof_;
22562 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22563 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22565 #include <stdlib.h>
22570 FILE *f = fopen ("conftest.val", "w");
22573 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22575 long int i = longval ();
22576 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22578 fprintf (f, "%ld\n", i);
22582 unsigned long int i = ulongval ();
22583 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22585 fprintf (f, "%lu\n", i);
22587 return ferror (f) || fclose (f) != 0;
22593 rm -f conftest$ac_exeext
22594 if { (ac_try="$ac_link"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600 (eval "$ac_link") 2>&5
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22604 { (case "(($ac_try" in
22605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606 *) ac_try_echo=$ac_try;;
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609 (eval "$ac_try") 2>&5
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); }; }; then
22613 ac_cv_alignof_int=`cat conftest.val`
22615 echo "$as_me: program exited with status $ac_status" >&5
22616 echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ( exit $ac_status )
22620 if test "$ac_cv_type_int" = yes; then
22621 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22622 See \`config.log' for more details." >&5
22623 echo "$as_me: error: cannot compute alignment of int
22624 See \`config.log' for more details." >&2;}
22625 { (exit 77); exit 77; }; }
22627 ac_cv_alignof_int=0
22630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22634 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
22635 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22639 cat >>confdefs.h <<_ACEOF
22640 #define ALIGNOF_INT $ac_cv_alignof_int
22644 { echo "$as_me:$LINENO: checking for long" >&5
22645 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22646 if test "${ac_cv_type_long+set}" = set; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22649 cat >conftest.$ac_ext <<_ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h. */
22655 $ac_includes_default
22656 typedef long ac__type_new_;
22660 if ((ac__type_new_ *) 0)
22662 if (sizeof (ac__type_new_))
22668 rm -f conftest.$ac_objext
22669 if { (ac_try="$ac_compile"
22670 case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_compile") 2>conftest.er1
22677 grep -v '^ *+' conftest.er1 >conftest.err
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } && {
22682 test -z "$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22684 } && test -s conftest.$ac_objext; then
22685 ac_cv_type_long=yes
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22695 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22696 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22698 # The cast to long int works around a bug in the HP C Compiler,
22699 # see AC_CHECK_SIZEOF for more information.
22700 { echo "$as_me:$LINENO: checking alignment of long" >&5
22701 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22702 if test "${ac_cv_alignof_long+set}" = set; then
22703 echo $ECHO_N "(cached) $ECHO_C" >&6
22705 if test "$cross_compiling" = yes; then
22706 # Depending upon the size, compute the lo and hi bounds.
22707 cat >conftest.$ac_ext <<_ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22713 $ac_includes_default
22715 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22717 typedef struct { char x; long y; } ac__type_alignof_;
22721 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22728 rm -f conftest.$ac_objext
22729 if { (ac_try="$ac_compile"
22730 case "(($ac_try" in
22731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732 *) ac_try_echo=$ac_try;;
22734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22735 (eval "$ac_compile") 2>conftest.er1
22737 grep -v '^ *+' conftest.er1 >conftest.err
22739 cat conftest.err >&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); } && {
22742 test -z "$ac_c_werror_flag" ||
22743 test ! -s conftest.err
22744 } && test -s conftest.$ac_objext; then
22747 cat >conftest.$ac_ext <<_ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22753 $ac_includes_default
22755 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22757 typedef struct { char x; long y; } ac__type_alignof_;
22761 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22768 rm -f conftest.$ac_objext
22769 if { (ac_try="$ac_compile"
22770 case "(($ac_try" in
22771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772 *) ac_try_echo=$ac_try;;
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775 (eval "$ac_compile") 2>conftest.er1
22777 grep -v '^ *+' conftest.er1 >conftest.err
22779 cat conftest.err >&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } && {
22782 test -z "$ac_c_werror_flag" ||
22783 test ! -s conftest.err
22784 } && test -s conftest.$ac_objext; then
22785 ac_hi=$ac_mid; break
22787 echo "$as_me: failed program was:" >&5
22788 sed 's/^/| /' conftest.$ac_ext >&5
22790 ac_lo=`expr $ac_mid + 1`
22791 if test $ac_lo -le $ac_mid; then
22795 ac_mid=`expr 2 '*' $ac_mid + 1`
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22804 cat >conftest.$ac_ext <<_ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h. */
22810 $ac_includes_default
22812 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22814 typedef struct { char x; long y; } ac__type_alignof_;
22818 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22825 rm -f conftest.$ac_objext
22826 if { (ac_try="$ac_compile"
22827 case "(($ac_try" in
22828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829 *) ac_try_echo=$ac_try;;
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_compile") 2>conftest.er1
22834 grep -v '^ *+' conftest.er1 >conftest.err
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } && {
22839 test -z "$ac_c_werror_flag" ||
22840 test ! -s conftest.err
22841 } && test -s conftest.$ac_objext; then
22844 cat >conftest.$ac_ext <<_ACEOF
22847 cat confdefs.h >>conftest.$ac_ext
22848 cat >>conftest.$ac_ext <<_ACEOF
22849 /* end confdefs.h. */
22850 $ac_includes_default
22852 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22854 typedef struct { char x; long y; } ac__type_alignof_;
22858 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22865 rm -f conftest.$ac_objext
22866 if { (ac_try="$ac_compile"
22867 case "(($ac_try" in
22868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869 *) ac_try_echo=$ac_try;;
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872 (eval "$ac_compile") 2>conftest.er1
22874 grep -v '^ *+' conftest.er1 >conftest.err
22876 cat conftest.err >&5
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } && {
22879 test -z "$ac_c_werror_flag" ||
22880 test ! -s conftest.err
22881 } && test -s conftest.$ac_objext; then
22882 ac_lo=$ac_mid; break
22884 echo "$as_me: failed program was:" >&5
22885 sed 's/^/| /' conftest.$ac_ext >&5
22887 ac_hi=`expr '(' $ac_mid ')' - 1`
22888 if test $ac_mid -le $ac_hi; then
22892 ac_mid=`expr 2 '*' $ac_mid`
22895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22908 # Binary search between lo and hi bounds.
22909 while test "x$ac_lo" != "x$ac_hi"; do
22910 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22911 cat >conftest.$ac_ext <<_ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 $ac_includes_default
22919 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22921 typedef struct { char x; long y; } ac__type_alignof_;
22925 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22932 rm -f conftest.$ac_objext
22933 if { (ac_try="$ac_compile"
22934 case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_compile") 2>conftest.er1
22941 grep -v '^ *+' conftest.er1 >conftest.err
22943 cat conftest.err >&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); } && {
22946 test -z "$ac_c_werror_flag" ||
22947 test ! -s conftest.err
22948 } && test -s conftest.$ac_objext; then
22951 echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22954 ac_lo=`expr '(' $ac_mid ')' + 1`
22957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22960 ?*) ac_cv_alignof_long=$ac_lo;;
22961 '') if test "$ac_cv_type_long" = yes; then
22962 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22963 See \`config.log' for more details." >&5
22964 echo "$as_me: error: cannot compute alignment of long
22965 See \`config.log' for more details." >&2;}
22966 { (exit 77); exit 77; }; }
22968 ac_cv_alignof_long=0
22972 cat >conftest.$ac_ext <<_ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h. */
22978 $ac_includes_default
22980 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22982 typedef struct { char x; long y; } ac__type_alignof_;
22983 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22984 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22986 #include <stdlib.h>
22991 FILE *f = fopen ("conftest.val", "w");
22994 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22996 long int i = longval ();
22997 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22999 fprintf (f, "%ld\n", i);
23003 unsigned long int i = ulongval ();
23004 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23006 fprintf (f, "%lu\n", i);
23008 return ferror (f) || fclose (f) != 0;
23014 rm -f conftest$ac_exeext
23015 if { (ac_try="$ac_link"
23016 case "(($ac_try" in
23017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018 *) ac_try_echo=$ac_try;;
23020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23021 (eval "$ac_link") 2>&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; }; then
23034 ac_cv_alignof_long=`cat conftest.val`
23036 echo "$as_me: program exited with status $ac_status" >&5
23037 echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23040 ( exit $ac_status )
23041 if test "$ac_cv_type_long" = yes; then
23042 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23043 See \`config.log' for more details." >&5
23044 echo "$as_me: error: cannot compute alignment of long
23045 See \`config.log' for more details." >&2;}
23046 { (exit 77); exit 77; }; }
23048 ac_cv_alignof_long=0
23051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23055 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23056 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23060 cat >>confdefs.h <<_ACEOF
23061 #define ALIGNOF_LONG $ac_cv_alignof_long
23065 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23066 { echo "$as_me:$LINENO: checking for long long int" >&5
23067 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23068 if test "${ac_cv_type_long_long_int+set}" = set; then
23069 echo $ECHO_N "(cached) $ECHO_C" >&6
23071 cat >conftest.$ac_ext <<_ACEOF
23074 cat confdefs.h >>conftest.$ac_ext
23075 cat >>conftest.$ac_ext <<_ACEOF
23076 /* end confdefs.h. */
23077 $ac_includes_default
23078 typedef long long int ac__type_new_;
23082 if ((ac__type_new_ *) 0)
23084 if (sizeof (ac__type_new_))
23090 rm -f conftest.$ac_objext
23091 if { (ac_try="$ac_compile"
23092 case "(($ac_try" in
23093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23094 *) ac_try_echo=$ac_try;;
23096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23097 (eval "$ac_compile") 2>conftest.er1
23099 grep -v '^ *+' conftest.er1 >conftest.err
23101 cat conftest.err >&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } && {
23104 test -z "$ac_c_werror_flag" ||
23105 test ! -s conftest.err
23106 } && test -s conftest.$ac_objext; then
23107 ac_cv_type_long_long_int=yes
23109 echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23112 ac_cv_type_long_long_int=no
23115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23118 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23120 # The cast to long int works around a bug in the HP C Compiler,
23121 # see AC_CHECK_SIZEOF for more information.
23122 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23123 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23124 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23127 if test "$cross_compiling" = yes; then
23128 # Depending upon the size, compute the lo and hi bounds.
23129 cat >conftest.$ac_ext <<_ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h. */
23135 $ac_includes_default
23137 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23139 typedef struct { char x; long long int y; } ac__type_alignof_;
23143 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23150 rm -f conftest.$ac_objext
23151 if { (ac_try="$ac_compile"
23152 case "(($ac_try" in
23153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23154 *) ac_try_echo=$ac_try;;
23156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23157 (eval "$ac_compile") 2>conftest.er1
23159 grep -v '^ *+' conftest.er1 >conftest.err
23161 cat conftest.err >&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); } && {
23164 test -z "$ac_c_werror_flag" ||
23165 test ! -s conftest.err
23166 } && test -s conftest.$ac_objext; then
23169 cat >conftest.$ac_ext <<_ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h. */
23175 $ac_includes_default
23177 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23179 typedef struct { char x; long long int y; } ac__type_alignof_;
23183 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23190 rm -f conftest.$ac_objext
23191 if { (ac_try="$ac_compile"
23192 case "(($ac_try" in
23193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23194 *) ac_try_echo=$ac_try;;
23196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23197 (eval "$ac_compile") 2>conftest.er1
23199 grep -v '^ *+' conftest.er1 >conftest.err
23201 cat conftest.err >&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); } && {
23204 test -z "$ac_c_werror_flag" ||
23205 test ! -s conftest.err
23206 } && test -s conftest.$ac_objext; then
23207 ac_hi=$ac_mid; break
23209 echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23212 ac_lo=`expr $ac_mid + 1`
23213 if test $ac_lo -le $ac_mid; then
23217 ac_mid=`expr 2 '*' $ac_mid + 1`
23220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 cat >conftest.$ac_ext <<_ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23232 $ac_includes_default
23234 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23236 typedef struct { char x; long long int y; } ac__type_alignof_;
23240 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23247 rm -f conftest.$ac_objext
23248 if { (ac_try="$ac_compile"
23249 case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23254 (eval "$ac_compile") 2>conftest.er1
23256 grep -v '^ *+' conftest.er1 >conftest.err
23258 cat conftest.err >&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); } && {
23261 test -z "$ac_c_werror_flag" ||
23262 test ! -s conftest.err
23263 } && test -s conftest.$ac_objext; then
23266 cat >conftest.$ac_ext <<_ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 $ac_includes_default
23274 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23276 typedef struct { char x; long long int y; } ac__type_alignof_;
23280 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23287 rm -f conftest.$ac_objext
23288 if { (ac_try="$ac_compile"
23289 case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23294 (eval "$ac_compile") 2>conftest.er1
23296 grep -v '^ *+' conftest.er1 >conftest.err
23298 cat conftest.err >&5
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); } && {
23301 test -z "$ac_c_werror_flag" ||
23302 test ! -s conftest.err
23303 } && test -s conftest.$ac_objext; then
23304 ac_lo=$ac_mid; break
23306 echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23309 ac_hi=`expr '(' $ac_mid ')' - 1`
23310 if test $ac_mid -le $ac_hi; then
23314 ac_mid=`expr 2 '*' $ac_mid`
23317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23330 # Binary search between lo and hi bounds.
23331 while test "x$ac_lo" != "x$ac_hi"; do
23332 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23333 cat >conftest.$ac_ext <<_ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h. */
23339 $ac_includes_default
23341 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23343 typedef struct { char x; long long int y; } ac__type_alignof_;
23347 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23354 rm -f conftest.$ac_objext
23355 if { (ac_try="$ac_compile"
23356 case "(($ac_try" in
23357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23358 *) ac_try_echo=$ac_try;;
23360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23361 (eval "$ac_compile") 2>conftest.er1
23363 grep -v '^ *+' conftest.er1 >conftest.err
23365 cat conftest.err >&5
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); } && {
23368 test -z "$ac_c_werror_flag" ||
23369 test ! -s conftest.err
23370 } && test -s conftest.$ac_objext; then
23373 echo "$as_me: failed program was:" >&5
23374 sed 's/^/| /' conftest.$ac_ext >&5
23376 ac_lo=`expr '(' $ac_mid ')' + 1`
23379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23382 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
23383 '') if test "$ac_cv_type_long_long_int" = yes; then
23384 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23385 See \`config.log' for more details." >&5
23386 echo "$as_me: error: cannot compute alignment of long long int
23387 See \`config.log' for more details." >&2;}
23388 { (exit 77); exit 77; }; }
23390 ac_cv_alignof_long_long_int=0
23394 cat >conftest.$ac_ext <<_ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h. */
23400 $ac_includes_default
23402 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23404 typedef struct { char x; long long int y; } ac__type_alignof_;
23405 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23406 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23408 #include <stdlib.h>
23413 FILE *f = fopen ("conftest.val", "w");
23416 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23418 long int i = longval ();
23419 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23421 fprintf (f, "%ld\n", i);
23425 unsigned long int i = ulongval ();
23426 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23428 fprintf (f, "%lu\n", i);
23430 return ferror (f) || fclose (f) != 0;
23436 rm -f conftest$ac_exeext
23437 if { (ac_try="$ac_link"
23438 case "(($ac_try" in
23439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23440 *) ac_try_echo=$ac_try;;
23442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23443 (eval "$ac_link") 2>&5
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23447 { (case "(($ac_try" in
23448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23449 *) ac_try_echo=$ac_try;;
23451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23452 (eval "$ac_try") 2>&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; }; then
23456 ac_cv_alignof_long_long_int=`cat conftest.val`
23458 echo "$as_me: program exited with status $ac_status" >&5
23459 echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23462 ( exit $ac_status )
23463 if test "$ac_cv_type_long_long_int" = yes; then
23464 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23465 See \`config.log' for more details." >&5
23466 echo "$as_me: error: cannot compute alignment of long long int
23467 See \`config.log' for more details." >&2;}
23468 { (exit 77); exit 77; }; }
23470 ac_cv_alignof_long_long_int=0
23473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23477 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23478 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23482 cat >>confdefs.h <<_ACEOF
23483 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23488 { echo "$as_me:$LINENO: checking for double" >&5
23489 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23490 if test "${ac_cv_type_double+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23493 cat >conftest.$ac_ext <<_ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h. */
23499 $ac_includes_default
23500 typedef double ac__type_new_;
23504 if ((ac__type_new_ *) 0)
23506 if (sizeof (ac__type_new_))
23512 rm -f conftest.$ac_objext
23513 if { (ac_try="$ac_compile"
23514 case "(($ac_try" in
23515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23516 *) ac_try_echo=$ac_try;;
23518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23519 (eval "$ac_compile") 2>conftest.er1
23521 grep -v '^ *+' conftest.er1 >conftest.err
23523 cat conftest.err >&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } && {
23526 test -z "$ac_c_werror_flag" ||
23527 test ! -s conftest.err
23528 } && test -s conftest.$ac_objext; then
23529 ac_cv_type_double=yes
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 ac_cv_type_double=no
23537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23540 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23542 # The cast to long int works around a bug in the HP C Compiler,
23543 # see AC_CHECK_SIZEOF for more information.
23544 { echo "$as_me:$LINENO: checking alignment of double" >&5
23545 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23546 if test "${ac_cv_alignof_double+set}" = set; then
23547 echo $ECHO_N "(cached) $ECHO_C" >&6
23549 if test "$cross_compiling" = yes; then
23550 # Depending upon the size, compute the lo and hi bounds.
23551 cat >conftest.$ac_ext <<_ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23557 $ac_includes_default
23559 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23561 typedef struct { char x; double y; } ac__type_alignof_;
23565 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23572 rm -f conftest.$ac_objext
23573 if { (ac_try="$ac_compile"
23574 case "(($ac_try" in
23575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576 *) ac_try_echo=$ac_try;;
23578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579 (eval "$ac_compile") 2>conftest.er1
23581 grep -v '^ *+' conftest.er1 >conftest.err
23583 cat conftest.err >&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } && {
23586 test -z "$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23588 } && test -s conftest.$ac_objext; then
23591 cat >conftest.$ac_ext <<_ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597 $ac_includes_default
23599 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23601 typedef struct { char x; double y; } ac__type_alignof_;
23605 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23612 rm -f conftest.$ac_objext
23613 if { (ac_try="$ac_compile"
23614 case "(($ac_try" in
23615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616 *) ac_try_echo=$ac_try;;
23618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619 (eval "$ac_compile") 2>conftest.er1
23621 grep -v '^ *+' conftest.er1 >conftest.err
23623 cat conftest.err >&5
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); } && {
23626 test -z "$ac_c_werror_flag" ||
23627 test ! -s conftest.err
23628 } && test -s conftest.$ac_objext; then
23629 ac_hi=$ac_mid; break
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23634 ac_lo=`expr $ac_mid + 1`
23635 if test $ac_lo -le $ac_mid; then
23639 ac_mid=`expr 2 '*' $ac_mid + 1`
23642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645 echo "$as_me: failed program was:" >&5
23646 sed 's/^/| /' conftest.$ac_ext >&5
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23654 $ac_includes_default
23656 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23658 typedef struct { char x; double y; } ac__type_alignof_;
23662 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23669 rm -f conftest.$ac_objext
23670 if { (ac_try="$ac_compile"
23671 case "(($ac_try" in
23672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673 *) ac_try_echo=$ac_try;;
23675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23676 (eval "$ac_compile") 2>conftest.er1
23678 grep -v '^ *+' conftest.er1 >conftest.err
23680 cat conftest.err >&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); } && {
23683 test -z "$ac_c_werror_flag" ||
23684 test ! -s conftest.err
23685 } && test -s conftest.$ac_objext; then
23688 cat >conftest.$ac_ext <<_ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h. */
23694 $ac_includes_default
23696 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23698 typedef struct { char x; double y; } ac__type_alignof_;
23702 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23709 rm -f conftest.$ac_objext
23710 if { (ac_try="$ac_compile"
23711 case "(($ac_try" in
23712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713 *) ac_try_echo=$ac_try;;
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716 (eval "$ac_compile") 2>conftest.er1
23718 grep -v '^ *+' conftest.er1 >conftest.err
23720 cat conftest.err >&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } && {
23723 test -z "$ac_c_werror_flag" ||
23724 test ! -s conftest.err
23725 } && test -s conftest.$ac_objext; then
23726 ac_lo=$ac_mid; break
23728 echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23731 ac_hi=`expr '(' $ac_mid ')' - 1`
23732 if test $ac_mid -le $ac_hi; then
23736 ac_mid=`expr 2 '*' $ac_mid`
23739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23752 # Binary search between lo and hi bounds.
23753 while test "x$ac_lo" != "x$ac_hi"; do
23754 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23755 cat >conftest.$ac_ext <<_ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23761 $ac_includes_default
23763 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23765 typedef struct { char x; double y; } ac__type_alignof_;
23769 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23776 rm -f conftest.$ac_objext
23777 if { (ac_try="$ac_compile"
23778 case "(($ac_try" in
23779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23780 *) ac_try_echo=$ac_try;;
23782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23783 (eval "$ac_compile") 2>conftest.er1
23785 grep -v '^ *+' conftest.er1 >conftest.err
23787 cat conftest.err >&5
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } && {
23790 test -z "$ac_c_werror_flag" ||
23791 test ! -s conftest.err
23792 } && test -s conftest.$ac_objext; then
23795 echo "$as_me: failed program was:" >&5
23796 sed 's/^/| /' conftest.$ac_ext >&5
23798 ac_lo=`expr '(' $ac_mid ')' + 1`
23801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23804 ?*) ac_cv_alignof_double=$ac_lo;;
23805 '') if test "$ac_cv_type_double" = yes; then
23806 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23807 See \`config.log' for more details." >&5
23808 echo "$as_me: error: cannot compute alignment of double
23809 See \`config.log' for more details." >&2;}
23810 { (exit 77); exit 77; }; }
23812 ac_cv_alignof_double=0
23816 cat >conftest.$ac_ext <<_ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h. */
23822 $ac_includes_default
23824 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23826 typedef struct { char x; double y; } ac__type_alignof_;
23827 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23828 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23830 #include <stdlib.h>
23835 FILE *f = fopen ("conftest.val", "w");
23838 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23840 long int i = longval ();
23841 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23843 fprintf (f, "%ld\n", i);
23847 unsigned long int i = ulongval ();
23848 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23850 fprintf (f, "%lu\n", i);
23852 return ferror (f) || fclose (f) != 0;
23858 rm -f conftest$ac_exeext
23859 if { (ac_try="$ac_link"
23860 case "(($ac_try" in
23861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862 *) ac_try_echo=$ac_try;;
23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865 (eval "$ac_link") 2>&5
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23869 { (case "(($ac_try" in
23870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871 *) ac_try_echo=$ac_try;;
23873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23874 (eval "$ac_try") 2>&5
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); }; }; then
23878 ac_cv_alignof_double=`cat conftest.val`
23880 echo "$as_me: program exited with status $ac_status" >&5
23881 echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23884 ( exit $ac_status )
23885 if test "$ac_cv_type_double" = yes; then
23886 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23887 See \`config.log' for more details." >&5
23888 echo "$as_me: error: cannot compute alignment of double
23889 See \`config.log' for more details." >&2;}
23890 { (exit 77); exit 77; }; }
23892 ac_cv_alignof_double=0
23895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23899 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23900 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23904 cat >>confdefs.h <<_ACEOF
23905 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23910 # Compute maximum alignment of any basic type.
23911 # We assume long's alignment is at least as strong as char, short, or int;
23912 # but we must check long long (if it exists) and double.
23914 MAX_ALIGNOF=$ac_cv_alignof_long
23915 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23916 MAX_ALIGNOF=$ac_cv_alignof_double
23918 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23919 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23922 cat >>confdefs.h <<_ACEOF
23923 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23928 # Some platforms predefine the types int8, int16, etc. Only check
23929 # a (hopefully) representative subset.
23930 { echo "$as_me:$LINENO: checking for int8" >&5
23931 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23932 if test "${ac_cv_type_int8+set}" = set; then
23933 echo $ECHO_N "(cached) $ECHO_C" >&6
23935 cat >conftest.$ac_ext <<_ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h. */
23942 #ifdef HAVE_SUPPORTDEFS_H
23943 #include <SupportDefs.h>
23946 typedef int8 ac__type_new_;
23950 if ((ac__type_new_ *) 0)
23952 if (sizeof (ac__type_new_))
23958 rm -f conftest.$ac_objext
23959 if { (ac_try="$ac_compile"
23960 case "(($ac_try" in
23961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23962 *) ac_try_echo=$ac_try;;
23964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23965 (eval "$ac_compile") 2>conftest.er1
23967 grep -v '^ *+' conftest.er1 >conftest.err
23969 cat conftest.err >&5
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); } && {
23972 test -z "$ac_c_werror_flag" ||
23973 test ! -s conftest.err
23974 } && test -s conftest.$ac_objext; then
23975 ac_cv_type_int8=yes
23977 echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.$ac_ext >&5
23983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23985 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23986 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23987 if test $ac_cv_type_int8 = yes; then
23989 cat >>confdefs.h <<_ACEOF
23990 #define HAVE_INT8 1
23995 { echo "$as_me:$LINENO: checking for uint8" >&5
23996 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23997 if test "${ac_cv_type_uint8+set}" = set; then
23998 echo $ECHO_N "(cached) $ECHO_C" >&6
24000 cat >conftest.$ac_ext <<_ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h. */
24007 #ifdef HAVE_SUPPORTDEFS_H
24008 #include <SupportDefs.h>
24011 typedef uint8 ac__type_new_;
24015 if ((ac__type_new_ *) 0)
24017 if (sizeof (ac__type_new_))
24023 rm -f conftest.$ac_objext
24024 if { (ac_try="$ac_compile"
24025 case "(($ac_try" in
24026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24027 *) ac_try_echo=$ac_try;;
24029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24030 (eval "$ac_compile") 2>conftest.er1
24032 grep -v '^ *+' conftest.er1 >conftest.err
24034 cat conftest.err >&5
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); } && {
24037 test -z "$ac_c_werror_flag" ||
24038 test ! -s conftest.err
24039 } && test -s conftest.$ac_objext; then
24040 ac_cv_type_uint8=yes
24042 echo "$as_me: failed program was:" >&5
24043 sed 's/^/| /' conftest.$ac_ext >&5
24045 ac_cv_type_uint8=no
24048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24050 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24051 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24052 if test $ac_cv_type_uint8 = yes; then
24054 cat >>confdefs.h <<_ACEOF
24055 #define HAVE_UINT8 1
24060 { echo "$as_me:$LINENO: checking for int64" >&5
24061 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24062 if test "${ac_cv_type_int64+set}" = set; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24065 cat >conftest.$ac_ext <<_ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h. */
24072 #ifdef HAVE_SUPPORTDEFS_H
24073 #include <SupportDefs.h>
24076 typedef int64 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_int64=yes
24107 echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24110 ac_cv_type_int64=no
24113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24115 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24116 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24117 if test $ac_cv_type_int64 = yes; then
24119 cat >>confdefs.h <<_ACEOF
24120 #define HAVE_INT64 1
24125 { echo "$as_me:$LINENO: checking for uint64" >&5
24126 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24127 if test "${ac_cv_type_uint64+set}" = set; then
24128 echo $ECHO_N "(cached) $ECHO_C" >&6
24130 cat >conftest.$ac_ext <<_ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h. */
24137 #ifdef HAVE_SUPPORTDEFS_H
24138 #include <SupportDefs.h>
24141 typedef uint64 ac__type_new_;
24145 if ((ac__type_new_ *) 0)
24147 if (sizeof (ac__type_new_))
24153 rm -f conftest.$ac_objext
24154 if { (ac_try="$ac_compile"
24155 case "(($ac_try" in
24156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24157 *) ac_try_echo=$ac_try;;
24159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24160 (eval "$ac_compile") 2>conftest.er1
24162 grep -v '^ *+' conftest.er1 >conftest.err
24164 cat conftest.err >&5
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); } && {
24167 test -z "$ac_c_werror_flag" ||
24168 test ! -s conftest.err
24169 } && test -s conftest.$ac_objext; then
24170 ac_cv_type_uint64=yes
24172 echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24175 ac_cv_type_uint64=no
24178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24181 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24182 if test $ac_cv_type_uint64 = yes; then
24184 cat >>confdefs.h <<_ACEOF
24185 #define HAVE_UINT64 1
24192 # We also check for sig_atomic_t, which *should* be defined per ANSI
24193 # C, but is missing on some old platforms.
24194 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
24195 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
24196 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24197 echo $ECHO_N "(cached) $ECHO_C" >&6
24199 cat >conftest.$ac_ext <<_ACEOF
24202 cat confdefs.h >>conftest.$ac_ext
24203 cat >>conftest.$ac_ext <<_ACEOF
24204 /* end confdefs.h. */
24205 #include <signal.h>
24207 typedef sig_atomic_t ac__type_new_;
24211 if ((ac__type_new_ *) 0)
24213 if (sizeof (ac__type_new_))
24219 rm -f conftest.$ac_objext
24220 if { (ac_try="$ac_compile"
24221 case "(($ac_try" in
24222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24223 *) ac_try_echo=$ac_try;;
24225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24226 (eval "$ac_compile") 2>conftest.er1
24228 grep -v '^ *+' conftest.er1 >conftest.err
24230 cat conftest.err >&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); } && {
24233 test -z "$ac_c_werror_flag" ||
24234 test ! -s conftest.err
24235 } && test -s conftest.$ac_objext; then
24236 ac_cv_type_sig_atomic_t=yes
24238 echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24241 ac_cv_type_sig_atomic_t=no
24244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24246 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24247 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24248 if test $ac_cv_type_sig_atomic_t = yes; then
24250 cat >>confdefs.h <<_ACEOF
24251 #define HAVE_SIG_ATOMIC_T 1
24259 # If the user did not disable integer datetimes, check that
24260 # there is a working 64-bit integral type to use.
24261 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
24262 test x"$HAVE_LONG_INT_64" = x"no" &&
24263 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
24264 test x"$HAVE_INT64" = x"no" ; then
24265 { { echo "$as_me:$LINENO: error:
24266 Integer-based datetime support requires a 64-bit integer type,
24267 but no such type could be found. The --disable-integer-datetimes
24268 configure option can be used to disable integer-based storage
24269 of datetime values." >&5
24270 echo "$as_me: error:
24271 Integer-based datetime support requires a 64-bit integer type,
24272 but no such type could be found. The --disable-integer-datetimes
24273 configure option can be used to disable integer-based storage
24274 of datetime values." >&2;}
24275 { (exit 1); exit 1; }; }
24279 if test "$PORTNAME" != "win32"
24281 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
24282 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
24283 if test "${pgac_cv_func_posix_signals+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24286 cat >conftest.$ac_ext <<_ACEOF
24289 cat confdefs.h >>conftest.$ac_ext
24290 cat >>conftest.$ac_ext <<_ACEOF
24291 /* end confdefs.h. */
24292 #include <signal.h>
24297 struct sigaction act, oact;
24298 sigemptyset(&act.sa_mask);
24299 act.sa_flags = SA_RESTART;
24300 sigaction(0, &act, &oact);
24305 rm -f conftest.$ac_objext conftest$ac_exeext
24306 if { (ac_try="$ac_link"
24307 case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312 (eval "$ac_link") 2>conftest.er1
24314 grep -v '^ *+' conftest.er1 >conftest.err
24316 cat conftest.err >&5
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest$ac_exeext &&
24322 $as_test_x conftest$ac_exeext; then
24323 pgac_cv_func_posix_signals=yes
24325 echo "$as_me: failed program was:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24328 pgac_cv_func_posix_signals=no
24331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24332 conftest$ac_exeext conftest.$ac_ext
24334 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
24335 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
24336 if test x"$pgac_cv_func_posix_signals" = xyes ; then
24338 cat >>confdefs.h <<\_ACEOF
24339 #define HAVE_POSIX_SIGNALS
24343 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
24345 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
24346 { { echo "$as_me:$LINENO: error:
24347 Thread-safety requires POSIX signals, which are not supported by this
24348 operating system." >&5
24349 echo "$as_me: error:
24350 Thread-safety requires POSIX signals, which are not supported by this
24351 operating system." >&2;}
24352 { (exit 1); exit 1; }; }
24356 if test $ac_cv_func_fseeko = yes; then
24357 # Check whether --enable-largefile was given.
24358 if test "${enable_largefile+set}" = set; then
24359 enableval=$enable_largefile;
24362 if test "$enable_largefile" != no; then
24364 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
24365 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
24366 if test "${ac_cv_sys_largefile_CC+set}" = set; then
24367 echo $ECHO_N "(cached) $ECHO_C" >&6
24369 ac_cv_sys_largefile_CC=no
24370 if test "$GCC" != yes; then
24373 # IRIX 6.2 and later do not support large files by default,
24374 # so use the C compiler's -n32 option if that helps.
24375 cat >conftest.$ac_ext <<_ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24381 #include <sys/types.h>
24382 /* Check that off_t can represent 2**63 - 1 correctly.
24383 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24384 since some C++ compilers masquerading as C compilers
24385 incorrectly reject 9223372036854775807. */
24386 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24387 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24388 && LARGE_OFF_T % 2147483647 == 1)
24398 rm -f conftest.$ac_objext
24399 if { (ac_try="$ac_compile"
24400 case "(($ac_try" in
24401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24402 *) ac_try_echo=$ac_try;;
24404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24405 (eval "$ac_compile") 2>conftest.er1
24407 grep -v '^ *+' conftest.er1 >conftest.err
24409 cat conftest.err >&5
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); } && {
24412 test -z "$ac_c_werror_flag" ||
24413 test ! -s conftest.err
24414 } && test -s conftest.$ac_objext; then
24417 echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24423 rm -f core conftest.err conftest.$ac_objext
24425 rm -f conftest.$ac_objext
24426 if { (ac_try="$ac_compile"
24427 case "(($ac_try" in
24428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429 *) ac_try_echo=$ac_try;;
24431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24432 (eval "$ac_compile") 2>conftest.er1
24434 grep -v '^ *+' conftest.er1 >conftest.err
24436 cat conftest.err >&5
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); } && {
24439 test -z "$ac_c_werror_flag" ||
24440 test ! -s conftest.err
24441 } && test -s conftest.$ac_objext; then
24442 ac_cv_sys_largefile_CC=' -n32'; break
24444 echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24450 rm -f core conftest.err conftest.$ac_objext
24454 rm -f conftest.$ac_ext
24457 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24458 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24459 if test "$ac_cv_sys_largefile_CC" != no; then
24460 CC=$CC$ac_cv_sys_largefile_CC
24463 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24464 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24465 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24466 echo $ECHO_N "(cached) $ECHO_C" >&6
24469 cat >conftest.$ac_ext <<_ACEOF
24472 cat confdefs.h >>conftest.$ac_ext
24473 cat >>conftest.$ac_ext <<_ACEOF
24474 /* end confdefs.h. */
24475 #include <sys/types.h>
24476 /* Check that off_t can represent 2**63 - 1 correctly.
24477 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24478 since some C++ compilers masquerading as C compilers
24479 incorrectly reject 9223372036854775807. */
24480 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24481 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24482 && LARGE_OFF_T % 2147483647 == 1)
24492 rm -f conftest.$ac_objext
24493 if { (ac_try="$ac_compile"
24494 case "(($ac_try" in
24495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499 (eval "$ac_compile") 2>conftest.er1
24501 grep -v '^ *+' conftest.er1 >conftest.err
24503 cat conftest.err >&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); } && {
24506 test -z "$ac_c_werror_flag" ||
24507 test ! -s conftest.err
24508 } && test -s conftest.$ac_objext; then
24509 ac_cv_sys_file_offset_bits=no; break
24511 echo "$as_me: failed program was:" >&5
24512 sed 's/^/| /' conftest.$ac_ext >&5
24517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24518 cat >conftest.$ac_ext <<_ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h. */
24524 #define _FILE_OFFSET_BITS 64
24525 #include <sys/types.h>
24526 /* Check that off_t can represent 2**63 - 1 correctly.
24527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24528 since some C++ compilers masquerading as C compilers
24529 incorrectly reject 9223372036854775807. */
24530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24532 && LARGE_OFF_T % 2147483647 == 1)
24542 rm -f conftest.$ac_objext
24543 if { (ac_try="$ac_compile"
24544 case "(($ac_try" in
24545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549 (eval "$ac_compile") 2>conftest.er1
24551 grep -v '^ *+' conftest.er1 >conftest.err
24553 cat conftest.err >&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } && {
24556 test -z "$ac_c_werror_flag" ||
24557 test ! -s conftest.err
24558 } && test -s conftest.$ac_objext; then
24559 ac_cv_sys_file_offset_bits=64; break
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24568 ac_cv_sys_file_offset_bits=unknown
24572 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24573 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24574 case $ac_cv_sys_file_offset_bits in #(
24577 cat >>confdefs.h <<_ACEOF
24578 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24583 if test $ac_cv_sys_file_offset_bits = unknown; then
24584 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24585 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24586 if test "${ac_cv_sys_large_files+set}" = set; then
24587 echo $ECHO_N "(cached) $ECHO_C" >&6
24590 cat >conftest.$ac_ext <<_ACEOF
24593 cat confdefs.h >>conftest.$ac_ext
24594 cat >>conftest.$ac_ext <<_ACEOF
24595 /* end confdefs.h. */
24596 #include <sys/types.h>
24597 /* Check that off_t can represent 2**63 - 1 correctly.
24598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24599 since some C++ compilers masquerading as C compilers
24600 incorrectly reject 9223372036854775807. */
24601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24603 && LARGE_OFF_T % 2147483647 == 1)
24613 rm -f conftest.$ac_objext
24614 if { (ac_try="$ac_compile"
24615 case "(($ac_try" in
24616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24617 *) ac_try_echo=$ac_try;;
24619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24620 (eval "$ac_compile") 2>conftest.er1
24622 grep -v '^ *+' conftest.er1 >conftest.err
24624 cat conftest.err >&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } && {
24627 test -z "$ac_c_werror_flag" ||
24628 test ! -s conftest.err
24629 } && test -s conftest.$ac_objext; then
24630 ac_cv_sys_large_files=no; break
24632 echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24639 cat >conftest.$ac_ext <<_ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24645 #define _LARGE_FILES 1
24646 #include <sys/types.h>
24647 /* Check that off_t can represent 2**63 - 1 correctly.
24648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24649 since some C++ compilers masquerading as C compilers
24650 incorrectly reject 9223372036854775807. */
24651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24653 && LARGE_OFF_T % 2147483647 == 1)
24663 rm -f conftest.$ac_objext
24664 if { (ac_try="$ac_compile"
24665 case "(($ac_try" in
24666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667 *) ac_try_echo=$ac_try;;
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_compile") 2>conftest.er1
24672 grep -v '^ *+' conftest.er1 >conftest.err
24674 cat conftest.err >&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } && {
24677 test -z "$ac_c_werror_flag" ||
24678 test ! -s conftest.err
24679 } && test -s conftest.$ac_objext; then
24680 ac_cv_sys_large_files=1; break
24682 echo "$as_me: failed program was:" >&5
24683 sed 's/^/| /' conftest.$ac_ext >&5
24688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24689 ac_cv_sys_large_files=unknown
24693 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24694 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24695 case $ac_cv_sys_large_files in #(
24698 cat >>confdefs.h <<_ACEOF
24699 #define _LARGE_FILES $ac_cv_sys_large_files
24709 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24710 { echo "$as_me:$LINENO: checking for off_t" >&5
24711 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24712 if test "${ac_cv_type_off_t+set}" = set; then
24713 echo $ECHO_N "(cached) $ECHO_C" >&6
24715 cat >conftest.$ac_ext <<_ACEOF
24718 cat confdefs.h >>conftest.$ac_ext
24719 cat >>conftest.$ac_ext <<_ACEOF
24720 /* end confdefs.h. */
24721 $ac_includes_default
24722 typedef off_t ac__type_new_;
24726 if ((ac__type_new_ *) 0)
24728 if (sizeof (ac__type_new_))
24734 rm -f conftest.$ac_objext
24735 if { (ac_try="$ac_compile"
24736 case "(($ac_try" in
24737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738 *) ac_try_echo=$ac_try;;
24740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24741 (eval "$ac_compile") 2>conftest.er1
24743 grep -v '^ *+' conftest.er1 >conftest.err
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } && {
24748 test -z "$ac_c_werror_flag" ||
24749 test ! -s conftest.err
24750 } && test -s conftest.$ac_objext; then
24751 ac_cv_type_off_t=yes
24753 echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24756 ac_cv_type_off_t=no
24759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24761 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24762 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24764 # The cast to long int works around a bug in the HP C Compiler
24765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24767 # This bug is HP SR number 8606223364.
24768 { echo "$as_me:$LINENO: checking size of off_t" >&5
24769 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24770 if test "${ac_cv_sizeof_off_t+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24773 if test "$cross_compiling" = yes; then
24774 # Depending upon the size, compute the lo and hi bounds.
24775 cat >conftest.$ac_ext <<_ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h. */
24781 $ac_includes_default
24782 typedef off_t ac__type_sizeof_;
24786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24793 rm -f conftest.$ac_objext
24794 if { (ac_try="$ac_compile"
24795 case "(($ac_try" in
24796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797 *) ac_try_echo=$ac_try;;
24799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800 (eval "$ac_compile") 2>conftest.er1
24802 grep -v '^ *+' conftest.er1 >conftest.err
24804 cat conftest.err >&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); } && {
24807 test -z "$ac_c_werror_flag" ||
24808 test ! -s conftest.err
24809 } && test -s conftest.$ac_objext; then
24812 cat >conftest.$ac_ext <<_ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24818 $ac_includes_default
24819 typedef off_t ac__type_sizeof_;
24823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24830 rm -f conftest.$ac_objext
24831 if { (ac_try="$ac_compile"
24832 case "(($ac_try" in
24833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24834 *) ac_try_echo=$ac_try;;
24836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24837 (eval "$ac_compile") 2>conftest.er1
24839 grep -v '^ *+' conftest.er1 >conftest.err
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } && {
24844 test -z "$ac_c_werror_flag" ||
24845 test ! -s conftest.err
24846 } && test -s conftest.$ac_objext; then
24847 ac_hi=$ac_mid; break
24849 echo "$as_me: failed program was:" >&5
24850 sed 's/^/| /' conftest.$ac_ext >&5
24852 ac_lo=`expr $ac_mid + 1`
24853 if test $ac_lo -le $ac_mid; then
24857 ac_mid=`expr 2 '*' $ac_mid + 1`
24860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24863 echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24866 cat >conftest.$ac_ext <<_ACEOF
24869 cat confdefs.h >>conftest.$ac_ext
24870 cat >>conftest.$ac_ext <<_ACEOF
24871 /* end confdefs.h. */
24872 $ac_includes_default
24873 typedef off_t ac__type_sizeof_;
24877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24884 rm -f conftest.$ac_objext
24885 if { (ac_try="$ac_compile"
24886 case "(($ac_try" in
24887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888 *) ac_try_echo=$ac_try;;
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891 (eval "$ac_compile") 2>conftest.er1
24893 grep -v '^ *+' conftest.er1 >conftest.err
24895 cat conftest.err >&5
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } && {
24898 test -z "$ac_c_werror_flag" ||
24899 test ! -s conftest.err
24900 } && test -s conftest.$ac_objext; then
24903 cat >conftest.$ac_ext <<_ACEOF
24906 cat confdefs.h >>conftest.$ac_ext
24907 cat >>conftest.$ac_ext <<_ACEOF
24908 /* end confdefs.h. */
24909 $ac_includes_default
24910 typedef off_t ac__type_sizeof_;
24914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24921 rm -f conftest.$ac_objext
24922 if { (ac_try="$ac_compile"
24923 case "(($ac_try" in
24924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925 *) ac_try_echo=$ac_try;;
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928 (eval "$ac_compile") 2>conftest.er1
24930 grep -v '^ *+' conftest.er1 >conftest.err
24932 cat conftest.err >&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } && {
24935 test -z "$ac_c_werror_flag" ||
24936 test ! -s conftest.err
24937 } && test -s conftest.$ac_objext; then
24938 ac_lo=$ac_mid; break
24940 echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24943 ac_hi=`expr '(' $ac_mid ')' - 1`
24944 if test $ac_mid -le $ac_hi; then
24948 ac_mid=`expr 2 '*' $ac_mid`
24951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24954 echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24964 # Binary search between lo and hi bounds.
24965 while test "x$ac_lo" != "x$ac_hi"; do
24966 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24967 cat >conftest.$ac_ext <<_ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h. */
24973 $ac_includes_default
24974 typedef off_t ac__type_sizeof_;
24978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24985 rm -f conftest.$ac_objext
24986 if { (ac_try="$ac_compile"
24987 case "(($ac_try" in
24988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992 (eval "$ac_compile") 2>conftest.er1
24994 grep -v '^ *+' conftest.er1 >conftest.err
24996 cat conftest.err >&5
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } && {
24999 test -z "$ac_c_werror_flag" ||
25000 test ! -s conftest.err
25001 } && test -s conftest.$ac_objext; then
25004 echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25007 ac_lo=`expr '(' $ac_mid ')' + 1`
25010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25013 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25014 '') if test "$ac_cv_type_off_t" = yes; then
25015 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25016 See \`config.log' for more details." >&5
25017 echo "$as_me: error: cannot compute sizeof (off_t)
25018 See \`config.log' for more details." >&2;}
25019 { (exit 77); exit 77; }; }
25021 ac_cv_sizeof_off_t=0
25025 cat >conftest.$ac_ext <<_ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h. */
25031 $ac_includes_default
25032 typedef off_t ac__type_sizeof_;
25033 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25034 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25036 #include <stdlib.h>
25041 FILE *f = fopen ("conftest.val", "w");
25044 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25046 long int i = longval ();
25047 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25049 fprintf (f, "%ld\n", i);
25053 unsigned long int i = ulongval ();
25054 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25056 fprintf (f, "%lu\n", i);
25058 return ferror (f) || fclose (f) != 0;
25064 rm -f conftest$ac_exeext
25065 if { (ac_try="$ac_link"
25066 case "(($ac_try" in
25067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25068 *) ac_try_echo=$ac_try;;
25070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25071 (eval "$ac_link") 2>&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25075 { (case "(($ac_try" in
25076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077 *) ac_try_echo=$ac_try;;
25079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25080 (eval "$ac_try") 2>&5
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); }; }; then
25084 ac_cv_sizeof_off_t=`cat conftest.val`
25086 echo "$as_me: program exited with status $ac_status" >&5
25087 echo "$as_me: failed program was:" >&5
25088 sed 's/^/| /' conftest.$ac_ext >&5
25090 ( exit $ac_status )
25091 if test "$ac_cv_type_off_t" = yes; then
25092 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25093 See \`config.log' for more details." >&5
25094 echo "$as_me: error: cannot compute sizeof (off_t)
25095 See \`config.log' for more details." >&2;}
25096 { (exit 77); exit 77; }; }
25098 ac_cv_sizeof_off_t=0
25101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25105 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25106 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25110 cat >>confdefs.h <<_ACEOF
25111 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25116 # If we don't have largefile support, can't handle segsize >= 2GB.
25117 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25118 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25119 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25120 { (exit 1); exit 1; }; }
25123 # SunOS doesn't handle negative byte comparisons properly with +/- return
25124 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25125 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25126 if test "${ac_cv_func_memcmp_working+set}" = set; then
25127 echo $ECHO_N "(cached) $ECHO_C" >&6
25129 if test "$cross_compiling" = yes; then
25130 ac_cv_func_memcmp_working=no
25132 cat >conftest.$ac_ext <<_ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h. */
25138 $ac_includes_default
25143 /* Some versions of memcmp are not 8-bit clean. */
25144 char c0 = '\100', c1 = '\200', c2 = '\201';
25145 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25148 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25149 or more and with at least one buffer not starting on a 4-byte boundary.
25150 William Lewis provided this test program. */
25155 for (i = 0; i < 4; i++)
25159 strcpy (a, "--------01111111");
25160 strcpy (b, "--------10000000");
25161 if (memcmp (a, b, 16) >= 0)
25171 rm -f conftest$ac_exeext
25172 if { (ac_try="$ac_link"
25173 case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25178 (eval "$ac_link") 2>&5
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25182 { (case "(($ac_try" in
25183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184 *) ac_try_echo=$ac_try;;
25186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25187 (eval "$ac_try") 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; }; then
25191 ac_cv_func_memcmp_working=yes
25193 echo "$as_me: program exited with status $ac_status" >&5
25194 echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25197 ( exit $ac_status )
25198 ac_cv_func_memcmp_working=no
25200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25205 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25206 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25207 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25208 *" memcmp.$ac_objext "* ) ;;
25209 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25216 # Select semaphore implementation type.
25217 if test "$PORTNAME" != "win32"; then
25218 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
25220 cat >>confdefs.h <<\_ACEOF
25221 #define USE_NAMED_POSIX_SEMAPHORES 1
25224 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25226 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
25228 cat >>confdefs.h <<\_ACEOF
25229 #define USE_UNNAMED_POSIX_SEMAPHORES 1
25232 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25235 cat >>confdefs.h <<\_ACEOF
25236 #define USE_SYSV_SEMAPHORES 1
25239 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
25244 cat >>confdefs.h <<\_ACEOF
25245 #define USE_WIN32_SEMAPHORES 1
25248 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
25252 # Select shared-memory implementation type.
25253 if test "$PORTNAME" != "win32"; then
25255 cat >>confdefs.h <<\_ACEOF
25256 #define USE_SYSV_SHARED_MEMORY 1
25259 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
25262 cat >>confdefs.h <<\_ACEOF
25263 #define USE_WIN32_SHARED_MEMORY 1
25266 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
25269 # If not set in template file, set bytes to use libc memset()
25270 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
25271 MEMSET_LOOP_LIMIT=1024
25274 cat >>confdefs.h <<_ACEOF
25275 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
25280 if test "$enable_nls" = yes ; then
25282 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
25283 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
25284 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25287 ac_func_search_save_LIBS=$LIBS
25288 cat >conftest.$ac_ext <<_ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h. */
25295 /* Override any GCC internal prototype to avoid an error.
25296 Use char because int might match the return type of a GCC
25297 builtin and then its argument prototype would still apply. */
25301 char bind_textdomain_codeset ();
25305 return bind_textdomain_codeset ();
25310 for ac_lib in '' intl; do
25311 if test -z "$ac_lib"; then
25312 ac_res="none required"
25315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25317 rm -f conftest.$ac_objext conftest$ac_exeext
25318 if { (ac_try="$ac_link"
25319 case "(($ac_try" in
25320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25321 *) ac_try_echo=$ac_try;;
25323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25324 (eval "$ac_link") 2>conftest.er1
25326 grep -v '^ *+' conftest.er1 >conftest.err
25328 cat conftest.err >&5
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } && {
25331 test -z "$ac_c_werror_flag" ||
25332 test ! -s conftest.err
25333 } && test -s conftest$ac_exeext &&
25334 $as_test_x conftest$ac_exeext; then
25335 ac_cv_search_bind_textdomain_codeset=$ac_res
25337 echo "$as_me: failed program was:" >&5
25338 sed 's/^/| /' conftest.$ac_ext >&5
25343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25345 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25349 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25352 ac_cv_search_bind_textdomain_codeset=no
25354 rm conftest.$ac_ext
25355 LIBS=$ac_func_search_save_LIBS
25357 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25358 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25359 ac_res=$ac_cv_search_bind_textdomain_codeset
25360 if test "$ac_res" != no; then
25361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25364 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25365 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25366 { (exit 1); exit 1; }; }
25369 if test "${ac_cv_header_libintl_h+set}" = set; then
25370 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25371 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25372 if test "${ac_cv_header_libintl_h+set}" = set; then
25373 echo $ECHO_N "(cached) $ECHO_C" >&6
25375 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25376 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25378 # Is the header compilable?
25379 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25380 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25381 cat >conftest.$ac_ext <<_ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25387 $ac_includes_default
25388 #include <libintl.h>
25390 rm -f conftest.$ac_objext
25391 if { (ac_try="$ac_compile"
25392 case "(($ac_try" in
25393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394 *) ac_try_echo=$ac_try;;
25396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25397 (eval "$ac_compile") 2>conftest.er1
25399 grep -v '^ *+' conftest.er1 >conftest.err
25401 cat conftest.err >&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } && {
25404 test -z "$ac_c_werror_flag" ||
25405 test ! -s conftest.err
25406 } && test -s conftest.$ac_objext; then
25407 ac_header_compiler=yes
25409 echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25412 ac_header_compiler=no
25415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25417 echo "${ECHO_T}$ac_header_compiler" >&6; }
25419 # Is the header present?
25420 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25421 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25422 cat >conftest.$ac_ext <<_ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h. */
25428 #include <libintl.h>
25430 if { (ac_try="$ac_cpp conftest.$ac_ext"
25431 case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25438 grep -v '^ *+' conftest.er1 >conftest.err
25440 cat conftest.err >&5
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } >/dev/null && {
25443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25444 test ! -s conftest.err
25446 ac_header_preproc=yes
25448 echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25451 ac_header_preproc=no
25454 rm -f conftest.err conftest.$ac_ext
25455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25456 echo "${ECHO_T}$ac_header_preproc" >&6; }
25458 # So? What about this header?
25459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25461 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25462 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25463 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25464 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25465 ac_header_preproc=yes
25468 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25469 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25470 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25471 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25472 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25473 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25474 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25475 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25476 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25477 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25478 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25479 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25481 ## ---------------------------------------- ##
25482 ## Report this to pgsql-bugs@postgresql.org ##
25483 ## ---------------------------------------- ##
25485 ) | sed "s/^/$as_me: WARNING: /" >&2
25488 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25489 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25490 if test "${ac_cv_header_libintl_h+set}" = set; then
25491 echo $ECHO_N "(cached) $ECHO_C" >&6
25493 ac_cv_header_libintl_h=$ac_header_preproc
25495 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25496 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25499 if test $ac_cv_header_libintl_h = yes; then
25502 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25503 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25504 { (exit 1); exit 1; }; }
25508 for ac_prog in msgfmt
25510 # Extract the first word of "$ac_prog", so it can be a program name with args.
25511 set dummy $ac_prog; ac_word=$2
25512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25514 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25515 echo $ECHO_N "(cached) $ECHO_C" >&6
25517 if test -n "$MSGFMT"; then
25518 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
25520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25521 for as_dir in $PATH
25524 test -z "$as_dir" && as_dir=.
25525 for ac_exec_ext in '' $ac_executable_extensions; do
25526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25527 ac_cv_prog_MSGFMT="$ac_prog"
25528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25537 MSGFMT=$ac_cv_prog_MSGFMT
25538 if test -n "$MSGFMT"; then
25539 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25540 echo "${ECHO_T}$MSGFMT" >&6; }
25542 { echo "$as_me:$LINENO: result: no" >&5
25543 echo "${ECHO_T}no" >&6; }
25547 test -n "$MSGFMT" && break
25550 if test -z "$MSGFMT"; then
25551 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25552 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25553 { (exit 1); exit 1; }; }
25555 for ac_prog in msgmerge
25557 # Extract the first word of "$ac_prog", so it can be a program name with args.
25558 set dummy $ac_prog; ac_word=$2
25559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25561 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25562 echo $ECHO_N "(cached) $ECHO_C" >&6
25564 if test -n "$MSGMERGE"; then
25565 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
25567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25568 for as_dir in $PATH
25571 test -z "$as_dir" && as_dir=.
25572 for ac_exec_ext in '' $ac_executable_extensions; do
25573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25574 ac_cv_prog_MSGMERGE="$ac_prog"
25575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25584 MSGMERGE=$ac_cv_prog_MSGMERGE
25585 if test -n "$MSGMERGE"; then
25586 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25587 echo "${ECHO_T}$MSGMERGE" >&6; }
25589 { echo "$as_me:$LINENO: result: no" >&5
25590 echo "${ECHO_T}no" >&6; }
25594 test -n "$MSGMERGE" && break
25597 for ac_prog in xgettext
25599 # Extract the first word of "$ac_prog", so it can be a program name with args.
25600 set dummy $ac_prog; ac_word=$2
25601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25603 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25604 echo $ECHO_N "(cached) $ECHO_C" >&6
25606 if test -n "$XGETTEXT"; then
25607 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
25609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25610 for as_dir in $PATH
25613 test -z "$as_dir" && as_dir=.
25614 for ac_exec_ext in '' $ac_executable_extensions; do
25615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25616 ac_cv_prog_XGETTEXT="$ac_prog"
25617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25626 XGETTEXT=$ac_cv_prog_XGETTEXT
25627 if test -n "$XGETTEXT"; then
25628 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25629 echo "${ECHO_T}$XGETTEXT" >&6; }
25631 { echo "$as_me:$LINENO: result: no" >&5
25632 echo "${ECHO_T}no" >&6; }
25636 test -n "$XGETTEXT" && break
25642 # Check for Tcl configuration script tclConfig.sh
25643 if test "$with_tcl" = yes; then
25644 for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25646 # Extract the first word of "$ac_prog", so it can be a program name with args.
25647 set dummy $ac_prog; ac_word=$2
25648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25650 if test "${ac_cv_path_TCLSH+set}" = set; then
25651 echo $ECHO_N "(cached) $ECHO_C" >&6
25655 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25659 for as_dir in $PATH
25662 test -z "$as_dir" && as_dir=.
25663 for ac_exec_ext in '' $ac_executable_extensions; do
25664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25665 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25676 TCLSH=$ac_cv_path_TCLSH
25677 if test -n "$TCLSH"; then
25678 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25679 echo "${ECHO_T}$TCLSH" >&6; }
25681 { echo "$as_me:$LINENO: result: no" >&5
25682 echo "${ECHO_T}no" >&6; }
25686 test -n "$TCLSH" && break
25689 if test x"$TCLSH" = x""; then
25690 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25691 echo "$as_me: error: Tcl shell not found" >&2;}
25692 { (exit 1); exit 1; }; }
25695 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25696 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25697 # Let user override test
25698 if test -z "$TCL_CONFIG_SH"; then
25699 pgac_test_dirs="$with_tclconfig"
25701 set X $pgac_test_dirs; shift
25702 if test $# -eq 0; then
25703 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25704 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25705 { (exit 1); exit 1; }; }
25706 set X `echo 'puts $auto_path' | $TCLSH`; shift
25710 if test -r "$pgac_dir/tclConfig.sh"; then
25711 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25717 if test -z "$TCL_CONFIG_SH"; then
25718 { echo "$as_me:$LINENO: result: no" >&5
25719 echo "${ECHO_T}no" >&6; }
25720 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25721 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25722 { (exit 1); exit 1; }; }
25724 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25725 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25731 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25732 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25733 eval TCL_LIBS=\"$TCL_LIBS\"
25734 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25735 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25737 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25738 ac_save_CPPFLAGS=$CPPFLAGS
25739 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25740 if test "${ac_cv_header_tcl_h+set}" = set; then
25741 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25742 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25743 if test "${ac_cv_header_tcl_h+set}" = set; then
25744 echo $ECHO_N "(cached) $ECHO_C" >&6
25746 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25747 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25749 # Is the header compilable?
25750 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25751 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25752 cat >conftest.$ac_ext <<_ACEOF
25755 cat confdefs.h >>conftest.$ac_ext
25756 cat >>conftest.$ac_ext <<_ACEOF
25757 /* end confdefs.h. */
25758 $ac_includes_default
25761 rm -f conftest.$ac_objext
25762 if { (ac_try="$ac_compile"
25763 case "(($ac_try" in
25764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25765 *) ac_try_echo=$ac_try;;
25767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25768 (eval "$ac_compile") 2>conftest.er1
25770 grep -v '^ *+' conftest.er1 >conftest.err
25772 cat conftest.err >&5
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); } && {
25775 test -z "$ac_c_werror_flag" ||
25776 test ! -s conftest.err
25777 } && test -s conftest.$ac_objext; then
25778 ac_header_compiler=yes
25780 echo "$as_me: failed program was:" >&5
25781 sed 's/^/| /' conftest.$ac_ext >&5
25783 ac_header_compiler=no
25786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25788 echo "${ECHO_T}$ac_header_compiler" >&6; }
25790 # Is the header present?
25791 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25792 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25793 cat >conftest.$ac_ext <<_ACEOF
25796 cat confdefs.h >>conftest.$ac_ext
25797 cat >>conftest.$ac_ext <<_ACEOF
25798 /* end confdefs.h. */
25801 if { (ac_try="$ac_cpp conftest.$ac_ext"
25802 case "(($ac_try" in
25803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804 *) ac_try_echo=$ac_try;;
25806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25809 grep -v '^ *+' conftest.er1 >conftest.err
25811 cat conftest.err >&5
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); } >/dev/null && {
25814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25815 test ! -s conftest.err
25817 ac_header_preproc=yes
25819 echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25822 ac_header_preproc=no
25825 rm -f conftest.err conftest.$ac_ext
25826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25827 echo "${ECHO_T}$ac_header_preproc" >&6; }
25829 # So? What about this header?
25830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25832 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25833 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25834 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25835 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25836 ac_header_preproc=yes
25839 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25840 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25841 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25842 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25843 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25844 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25845 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25846 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25847 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25848 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25849 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25850 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25852 ## ---------------------------------------- ##
25853 ## Report this to pgsql-bugs@postgresql.org ##
25854 ## ---------------------------------------- ##
25856 ) | sed "s/^/$as_me: WARNING: /" >&2
25859 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25860 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25861 if test "${ac_cv_header_tcl_h+set}" = set; then
25862 echo $ECHO_N "(cached) $ECHO_C" >&6
25864 ac_cv_header_tcl_h=$ac_header_preproc
25866 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25867 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25870 if test $ac_cv_header_tcl_h = yes; then
25873 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25874 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25875 { (exit 1); exit 1; }; }
25879 CPPFLAGS=$ac_save_CPPFLAGS
25883 # Check for DocBook and tools
25885 for ac_prog in onsgmls nsgmls
25887 # Extract the first word of "$ac_prog", so it can be a program name with args.
25888 set dummy $ac_prog; ac_word=$2
25889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25891 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25892 echo $ECHO_N "(cached) $ECHO_C" >&6
25894 if test -n "$NSGMLS"; then
25895 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25898 for as_dir in $PATH
25901 test -z "$as_dir" && as_dir=.
25902 for ac_exec_ext in '' $ac_executable_extensions; do
25903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25904 ac_cv_prog_NSGMLS="$ac_prog"
25905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25914 NSGMLS=$ac_cv_prog_NSGMLS
25915 if test -n "$NSGMLS"; then
25916 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25917 echo "${ECHO_T}$NSGMLS" >&6; }
25919 { echo "$as_me:$LINENO: result: no" >&5
25920 echo "${ECHO_T}no" >&6; }
25924 test -n "$NSGMLS" && break
25927 for ac_prog in openjade jade
25929 # Extract the first word of "$ac_prog", so it can be a program name with args.
25930 set dummy $ac_prog; ac_word=$2
25931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25933 if test "${ac_cv_prog_JADE+set}" = set; then
25934 echo $ECHO_N "(cached) $ECHO_C" >&6
25936 if test -n "$JADE"; then
25937 ac_cv_prog_JADE="$JADE" # Let the user override the test.
25939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25940 for as_dir in $PATH
25943 test -z "$as_dir" && as_dir=.
25944 for ac_exec_ext in '' $ac_executable_extensions; do
25945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25946 ac_cv_prog_JADE="$ac_prog"
25947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25956 JADE=$ac_cv_prog_JADE
25957 if test -n "$JADE"; then
25958 { echo "$as_me:$LINENO: result: $JADE" >&5
25959 echo "${ECHO_T}$JADE" >&6; }
25961 { echo "$as_me:$LINENO: result: no" >&5
25962 echo "${ECHO_T}no" >&6; }
25966 test -n "$JADE" && break
25970 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25971 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25972 if test "${pgac_cv_check_docbook+set}" = set; then
25973 echo $ECHO_N "(cached) $ECHO_C" >&6
25975 cat >conftest.sgml <<EOF
25976 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25978 <title>test</title>
25980 <title>random</title>
25982 <title>testsect</title>
25989 pgac_cv_check_docbook=no
25991 if test -n "$NSGMLS"; then
25992 $NSGMLS -s conftest.sgml 1>&5 2>&1
25993 if test $? -eq 0; then
25994 pgac_cv_check_docbook=yes
25997 rm -f conftest.sgml
25999 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26000 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26002 have_docbook=$pgac_cv_check_docbook
26005 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26006 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26007 if test "${pgac_cv_path_stylesheets+set}" = set; then
26008 echo $ECHO_N "(cached) $ECHO_C" >&6
26010 if test -n "$DOCBOOKSTYLE"; then
26011 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26013 for pgac_prefix in /usr /usr/local /opt /sw; do
26014 for pgac_infix in share lib; do
26015 for pgac_postfix in \
26016 sgml/stylesheets/nwalsh-modular \
26017 sgml/stylesheets/docbook \
26018 sgml/stylesheets/dsssl/docbook \
26019 sgml/docbook-dsssl \
26020 sgml/docbook/dsssl/modular \
26021 sgml/docbook/stylesheet/dsssl/modular \
26022 sgml/docbook/dsssl-stylesheets \
26023 sgml/dsssl/docbook-dsssl-nwalsh
26025 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26026 if test -r "$pgac_candidate/html/docbook.dsl" \
26027 && test -r "$pgac_candidate/print/docbook.dsl"
26029 pgac_cv_path_stylesheets=$pgac_candidate
26038 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26040 if test -n "$DOCBOOKSTYLE"; then
26041 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26042 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26044 { echo "$as_me:$LINENO: result: no" >&5
26045 echo "${ECHO_T}no" >&6; }
26047 if test -n "$DOCBOOKSTYLE"; then
26048 for ac_prog in collateindex.pl
26050 # Extract the first word of "$ac_prog", so it can be a program name with args.
26051 set dummy $ac_prog; ac_word=$2
26052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26054 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26055 echo $ECHO_N "(cached) $ECHO_C" >&6
26057 case $COLLATEINDEX in
26059 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26063 for as_dir in $DOCBOOKSTYLE/bin $PATH
26066 test -z "$as_dir" && as_dir=.
26067 for ac_exec_ext in '' $ac_executable_extensions; do
26068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26069 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26080 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26081 if test -n "$COLLATEINDEX"; then
26082 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26083 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26085 { echo "$as_me:$LINENO: result: no" >&5
26086 echo "${ECHO_T}no" >&6; }
26090 test -n "$COLLATEINDEX" && break
26094 for ac_prog in collateindex.pl
26096 # Extract the first word of "$ac_prog", so it can be a program name with args.
26097 set dummy $ac_prog; ac_word=$2
26098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26100 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26101 echo $ECHO_N "(cached) $ECHO_C" >&6
26103 case $COLLATEINDEX in
26105 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26109 for as_dir in $PATH
26112 test -z "$as_dir" && as_dir=.
26113 for ac_exec_ext in '' $ac_executable_extensions; do
26114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26115 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26126 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26127 if test -n "$COLLATEINDEX"; then
26128 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26129 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26131 { echo "$as_me:$LINENO: result: no" >&5
26132 echo "${ECHO_T}no" >&6; }
26136 test -n "$COLLATEINDEX" && break
26140 for ac_prog in sgmlspl
26142 # Extract the first word of "$ac_prog", so it can be a program name with args.
26143 set dummy $ac_prog; ac_word=$2
26144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26146 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26147 echo $ECHO_N "(cached) $ECHO_C" >&6
26149 if test -n "$SGMLSPL"; then
26150 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26153 for as_dir in $PATH
26156 test -z "$as_dir" && as_dir=.
26157 for ac_exec_ext in '' $ac_executable_extensions; do
26158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26159 ac_cv_prog_SGMLSPL="$ac_prog"
26160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26169 SGMLSPL=$ac_cv_prog_SGMLSPL
26170 if test -n "$SGMLSPL"; then
26171 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26172 echo "${ECHO_T}$SGMLSPL" >&6; }
26174 { echo "$as_me:$LINENO: result: no" >&5
26175 echo "${ECHO_T}no" >&6; }
26179 test -n "$SGMLSPL" && break
26182 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26183 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26184 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26185 echo $ECHO_N "(cached) $ECHO_C" >&6
26187 if test -z "$DOCBOOK2MAN"; then
26188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26189 for as_dir in $PATH
26192 test -z "$as_dir" && as_dir=.
26193 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
26194 ac_path="$as_dir/$ac_prog"
26195 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
26196 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
26197 ac_cv_path_DOCBOOK2MAN=$ac_path
26205 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
26208 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
26209 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
26210 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
26216 # We have to run the thread test near the end so we have all our symbols
26217 # defined. Cross compiling throws a warning.
26219 if test "$enable_thread_safety_force" = yes; then
26220 if test "$PORTNAME" != "win32"
26222 { echo "$as_me:$LINENO: WARNING:
26223 *** Skipping thread test program. --enable-thread-safety-force was used.
26224 *** Run the program in src/test/thread on the your machine and add proper
26225 *** locking function calls to your applications to guarantee thread safety.
26227 echo "$as_me: WARNING:
26228 *** Skipping thread test program. --enable-thread-safety-force was used.
26229 *** Run the program in src/test/thread on the your machine and add proper
26230 *** locking function calls to your applications to guarantee thread safety.
26233 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26234 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26236 elif test "$enable_thread_safety" = yes; then
26237 if test "$PORTNAME" != "win32"
26239 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
26240 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
26244 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
26245 LIBS="$LIBS $PTHREAD_LIBS"
26246 if test "$cross_compiling" = yes; then
26247 { echo "$as_me:$LINENO: result: maybe" >&5
26248 echo "${ECHO_T}maybe" >&6; }
26249 { echo "$as_me:$LINENO: WARNING:
26250 *** Skipping thread test program because of cross-compile build.
26251 *** Run the program in src/test/thread on the target machine.
26253 echo "$as_me: WARNING:
26254 *** Skipping thread test program because of cross-compile build.
26255 *** Run the program in src/test/thread on the target machine.
26258 cat >conftest.$ac_ext <<_ACEOF
26261 cat confdefs.h >>conftest.$ac_ext
26262 cat >>conftest.$ac_ext <<_ACEOF
26263 /* end confdefs.h. */
26264 #include "$srcdir/src/test/thread/thread_test.c"
26266 rm -f conftest$ac_exeext
26267 if { (ac_try="$ac_link"
26268 case "(($ac_try" in
26269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26270 *) ac_try_echo=$ac_try;;
26272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26273 (eval "$ac_link") 2>&5
26275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26277 { (case "(($ac_try" in
26278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26279 *) ac_try_echo=$ac_try;;
26281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26282 (eval "$ac_try") 2>&5
26284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285 (exit $ac_status); }; }; then
26286 { echo "$as_me:$LINENO: result: yes" >&5
26287 echo "${ECHO_T}yes" >&6; }
26289 echo "$as_me: program exited with status $ac_status" >&5
26290 echo "$as_me: failed program was:" >&5
26291 sed 's/^/| /' conftest.$ac_ext >&5
26293 ( exit $ac_status )
26294 { echo "$as_me:$LINENO: result: no" >&5
26295 echo "${ECHO_T}no" >&6; }
26296 { { echo "$as_me:$LINENO: error: thread test program failed
26297 This platform is not thread-safe. Check the file 'config.log' for the
26300 You can use the configure option --enable-thread-safety-force to force
26301 threads to be enabled. But you must then run the program in
26302 src/test/thread and add locking function calls to your applications to
26303 guarantee thread safety." >&5
26304 echo "$as_me: error: thread test program failed
26305 This platform is not thread-safe. Check the file 'config.log' for the
26308 You can use the configure option --enable-thread-safety-force to force
26309 threads to be enabled. But you must then run the program in
26310 src/test/thread and add locking function calls to your applications to
26311 guarantee thread safety." >&2;}
26312 { (exit 1); exit 1; }; }
26314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26321 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26322 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26326 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26327 # This is much easier than trying to filter LIBS to the minimum for each
26328 # executable. (Note that shared library links won't use this switch, though.)
26329 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26330 # libreadline; therefore we postpone testing it until we know what library
26331 # dependencies readline has. The test code will try to link with $LIBS.
26332 if test "$with_readline" = yes; then
26333 link_test_func=readline
26335 link_test_func=exit
26337 if test "$PORTNAME" != "darwin"; then
26338 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26339 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26340 pgac_save_LDFLAGS=$LDFLAGS
26341 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
26342 if test "$cross_compiling" = yes; then
26343 LDFLAGS="$pgac_save_LDFLAGS"
26344 { echo "$as_me:$LINENO: result: assuming no" >&5
26345 echo "${ECHO_T}assuming no" >&6; }
26347 cat >conftest.$ac_ext <<_ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h. */
26353 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26362 rm -f conftest$ac_exeext
26363 if { (ac_try="$ac_link"
26364 case "(($ac_try" in
26365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26366 *) ac_try_echo=$ac_try;;
26368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26369 (eval "$ac_link") 2>&5
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26373 { (case "(($ac_try" in
26374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26375 *) ac_try_echo=$ac_try;;
26377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26378 (eval "$ac_try") 2>&5
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); }; }; then
26382 { echo "$as_me:$LINENO: result: yes" >&5
26383 echo "${ECHO_T}yes" >&6; }
26385 echo "$as_me: program exited with status $ac_status" >&5
26386 echo "$as_me: failed program was:" >&5
26387 sed 's/^/| /' conftest.$ac_ext >&5
26389 ( exit $ac_status )
26390 LDFLAGS="$pgac_save_LDFLAGS"
26391 { echo "$as_me:$LINENO: result: no" >&5
26392 echo "${ECHO_T}no" >&6; }
26394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26400 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26401 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26402 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26403 pgac_save_LDFLAGS=$LDFLAGS
26404 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26405 if test "$cross_compiling" = yes; then
26406 LDFLAGS="$pgac_save_LDFLAGS"
26407 { echo "$as_me:$LINENO: result: assuming no" >&5
26408 echo "${ECHO_T}assuming no" >&6; }
26410 cat >conftest.$ac_ext <<_ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h. */
26416 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26425 rm -f conftest$ac_exeext
26426 if { (ac_try="$ac_link"
26427 case "(($ac_try" in
26428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26429 *) ac_try_echo=$ac_try;;
26431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26432 (eval "$ac_link") 2>&5
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26436 { (case "(($ac_try" in
26437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438 *) ac_try_echo=$ac_try;;
26440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26441 (eval "$ac_try") 2>&5
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); }; }; then
26445 { echo "$as_me:$LINENO: result: yes" >&5
26446 echo "${ECHO_T}yes" >&6; }
26448 echo "$as_me: program exited with status $ac_status" >&5
26449 echo "$as_me: failed program was:" >&5
26450 sed 's/^/| /' conftest.$ac_ext >&5
26452 ( exit $ac_status )
26453 LDFLAGS="$pgac_save_LDFLAGS"
26454 { echo "$as_me:$LINENO: result: no" >&5
26455 echo "${ECHO_T}no" >&6; }
26457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26465 # Begin output steps
26467 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26468 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26469 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26470 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26471 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26472 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26474 # prepare build tree if outside source tree
26475 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26476 # Note 2: /bin/pwd might be better than shell's built-in at getting
26477 # a symlink-free name.
26478 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26482 if test "$no_create" != yes; then
26483 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26484 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
26485 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26486 || { { echo "$as_me:$LINENO: error: failed" >&5
26487 echo "$as_me: error: failed" >&2;}
26488 { (exit 1); exit 1; }; }
26489 { echo "$as_me:$LINENO: result: done" >&5
26490 echo "${ECHO_T}done" >&6; }
26496 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
26499 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}"
26502 if test "$PORTNAME" = "win32"; then
26503 ac_config_commands="$ac_config_commands check_win32_symlinks"
26507 ac_config_headers="$ac_config_headers src/include/pg_config.h"
26510 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26513 cat >confcache <<\_ACEOF
26514 # This file is a shell script that caches the results of configure
26515 # tests run on this system so they can be shared between configure
26516 # scripts and configure runs, see configure's option --config-cache.
26517 # It is not useful on other systems. If it contains results you don't
26518 # want to keep, you may remove or edit it.
26520 # config.status only pays attention to the cache file if you give it
26521 # the --recheck option to rerun configure.
26523 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26525 # following values.
26529 # The following way of writing the cache mishandles newlines in values,
26530 # but we know of no workaround that is simple, portable, and efficient.
26531 # So, we kill variables containing newlines.
26532 # Ultrix sh set writes to stderr and can't be redirected directly,
26533 # and sets the high bit in the cache file unless we assign to the vars.
26535 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26536 eval ac_val=\$$ac_var
26540 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26541 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26544 _ | IFS | as_nl) ;; #(
26545 *) $as_unset $ac_var ;;
26551 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26552 *${as_nl}ac_space=\ *)
26553 # `set' does not quote correctly, so add quotes (double-quote
26554 # substitution turns \\\\ into \\, and sed turns \\ into \).
26557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26560 # `set' quotes correctly as required by POSIX, so do not add quotes.
26561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26574 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26575 if test -w "$cache_file"; then
26576 test "x$cache_file" != "x/dev/null" &&
26577 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26578 echo "$as_me: updating cache $cache_file" >&6;}
26579 cat confcache >$cache_file
26581 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26582 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26588 # Let make expand exec_prefix.
26589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26591 DEFS=-DHAVE_CONFIG_H
26595 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26596 # 1. Remove the extension, and $U if already installed.
26597 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26598 ac_i=`echo "$ac_i" | sed "$ac_script"`
26599 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26600 # will be set to the directory where LIBOBJS objects are built.
26601 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26602 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26604 LIBOBJS=$ac_libobjs
26606 LTLIBOBJS=$ac_ltlibobjs
26610 : ${CONFIG_STATUS=./config.status}
26611 ac_clean_files_save=$ac_clean_files
26612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26613 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26614 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26615 cat >$CONFIG_STATUS <<_ACEOF
26617 # Generated by $as_me.
26618 # Run this file to recreate the current configuration.
26619 # Compiler output produced by configure, useful for debugging
26620 # configure, is in config.log if it exists.
26623 ac_cs_recheck=false
26625 SHELL=\${CONFIG_SHELL-$SHELL}
26628 cat >>$CONFIG_STATUS <<\_ACEOF
26629 ## --------------------- ##
26630 ## M4sh Initialization. ##
26631 ## --------------------- ##
26633 # Be more Bourne compatible
26634 DUALCASE=1; export DUALCASE # for MKS sh
26635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26638 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26639 # is contrary to our usage. Disable this feature.
26640 alias -g '${1+"$@"}'='"$@"'
26641 setopt NO_GLOB_SUBST
26643 case `(set -o) 2>/dev/null` in
26644 *posix*) set -o posix ;;
26653 # Avoid depending upon Character Ranges.
26654 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26655 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26656 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26657 as_cr_digits='0123456789'
26658 as_cr_alnum=$as_cr_Letters$as_cr_digits
26660 # The user is always right.
26661 if test "${PATH_SEPARATOR+set}" != set; then
26662 echo "#! /bin/sh" >conf$$.sh
26663 echo "exit 0" >>conf$$.sh
26665 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26673 # Support unset when possible.
26674 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26682 # We need space, tab and new line, in precisely that order. Quoting is
26683 # there to prevent editors from complaining about space-tab.
26684 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26685 # splitting by setting IFS to empty value.)
26690 # Find who we are. Look in the path if we contain no directory separator.
26692 *[\\/]* ) as_myself=$0 ;;
26693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26694 for as_dir in $PATH
26697 test -z "$as_dir" && as_dir=.
26698 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26704 # We did not find ourselves, most probably we were run as `sh COMMAND'
26705 # in which case we are not to be found in the path.
26706 if test "x$as_myself" = x; then
26709 if test ! -f "$as_myself"; then
26710 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26711 { (exit 1); exit 1; }
26714 # Work around bugs in pre-3.0 UWIN ksh.
26715 for as_var in ENV MAIL MAILPATH
26716 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26724 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26725 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26726 LC_TELEPHONE LC_TIME
26728 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26729 eval $as_var=C; export $as_var
26731 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26735 # Required to use basename.
26736 if expr a : '\(a\)' >/dev/null 2>&1 &&
26737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26743 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26744 as_basename=basename
26750 # Name of the executable.
26751 as_me=`$as_basename -- "$0" ||
26752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26753 X"$0" : 'X\(//\)$' \| \
26754 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26756 sed '/^.*\/\([^/][^/]*\)\/*$/{
26775 as_lineno_1=$LINENO
26776 as_lineno_2=$LINENO
26777 test "x$as_lineno_1" != "x$as_lineno_2" &&
26778 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26780 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26781 # uniformly replaced by the line number. The first 'sed' inserts a
26782 # line-number line after each line using $LINENO; the second 'sed'
26783 # does the real work. The second script uses 'N' to pair each
26784 # line-number line with the line containing $LINENO, and appends
26785 # trailing '-' during substitution so that $LINENO is not a special
26786 # case at line end.
26787 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26788 # scripts with optimization help from Paolo Bonzini. Blame Lee
26789 # E. McMahon (1931-1989) for sed's syntax. :-)
26801 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26804 ' >$as_me.lineno &&
26805 chmod +x "$as_me.lineno" ||
26806 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26807 { (exit 1); exit 1; }; }
26809 # Don't try to exec as it changes $[0], causing all sort of problems
26810 # (the dirname of $[0] is not the place where we might find the
26811 # original and so on. Autoconf is especially sensitive to this).
26812 . "./$as_me.lineno"
26813 # Exit status is that of the last command.
26818 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26824 ECHO_C= ECHO_N= ECHO_T=
26825 case `echo -n x` in
26827 case `echo 'x\c'` in
26828 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26835 if expr a : '\(a\)' >/dev/null 2>&1 &&
26836 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26842 rm -f conf$$ conf$$.exe conf$$.file
26843 if test -d conf$$.dir; then
26844 rm -f conf$$.dir/conf$$.file
26850 if ln -s conf$$.file conf$$ 2>/dev/null; then
26852 # ... but there are two gotchas:
26853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26855 # In both cases, we have to default to `cp -p'.
26856 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26858 elif ln conf$$.file conf$$ 2>/dev/null; then
26863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26864 rmdir conf$$.dir 2>/dev/null
26866 if mkdir -p . 2>/dev/null; then
26869 test -d ./-p && rmdir ./-p
26873 if test -x / >/dev/null 2>&1; then
26874 as_test_x='test -x'
26876 if ls -dL / >/dev/null 2>&1; then
26883 if test -d "$1"; then
26889 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26890 ???[sx]*):;;*)false;;esac;fi
26894 as_executable_p=$as_test_x
26896 # Sed expression to map a string onto a valid CPP name.
26897 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26899 # Sed expression to map a string onto a valid variable name.
26900 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26905 # Save the log message, to keep $[0] and so on meaningful, and to
26906 # report actual input values of CONFIG_FILES etc. instead of their
26907 # values after options handling.
26909 This file was extended by PostgreSQL $as_me 8.4devel, which was
26910 generated by GNU Autoconf 2.61. Invocation command line was
26912 CONFIG_FILES = $CONFIG_FILES
26913 CONFIG_HEADERS = $CONFIG_HEADERS
26914 CONFIG_LINKS = $CONFIG_LINKS
26915 CONFIG_COMMANDS = $CONFIG_COMMANDS
26918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26923 cat >>$CONFIG_STATUS <<_ACEOF
26924 # Files that config.status was made for.
26925 config_files="$ac_config_files"
26926 config_headers="$ac_config_headers"
26927 config_links="$ac_config_links"
26928 config_commands="$ac_config_commands"
26932 cat >>$CONFIG_STATUS <<\_ACEOF
26934 \`$as_me' instantiates files from templates according to the
26935 current configuration.
26937 Usage: $0 [OPTIONS] [FILE]...
26939 -h, --help print this help, then exit
26940 -V, --version print version number and configuration settings, then exit
26941 -q, --quiet do not print progress messages
26942 -d, --debug don't remove temporary files
26943 --recheck update $as_me by reconfiguring in the same conditions
26944 --file=FILE[:TEMPLATE]
26945 instantiate the configuration file FILE
26946 --header=FILE[:TEMPLATE]
26947 instantiate the configuration header FILE
26949 Configuration files:
26952 Configuration headers:
26955 Configuration links:
26958 Configuration commands:
26961 Report bugs to <bug-autoconf@gnu.org>."
26964 cat >>$CONFIG_STATUS <<_ACEOF
26966 PostgreSQL config.status 8.4devel
26967 configured by $0, generated by GNU Autoconf 2.61,
26968 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26970 Copyright (C) 2006 Free Software Foundation, Inc.
26971 This config.status script is free software; the Free Software Foundation
26972 gives unlimited permission to copy, distribute and modify it."
26978 cat >>$CONFIG_STATUS <<\_ACEOF
26979 # If no file are specified by the user, then we need to provide default
26980 # value. By we need to know if files were specified by the user.
26986 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26987 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26998 # Handling of the options.
26999 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27001 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27002 echo "$ac_cs_version"; exit ;;
27003 --debug | --debu | --deb | --de | --d | -d )
27005 --file | --fil | --fi | --f )
27007 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27008 ac_need_defaults=false;;
27009 --header | --heade | --head | --hea )
27011 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27012 ac_need_defaults=false;;
27014 # Conflict between --help and --header
27015 { echo "$as_me: error: ambiguous option: $1
27016 Try \`$0 --help' for more information." >&2
27017 { (exit 1); exit 1; }; };;
27018 --help | --hel | -h )
27019 echo "$ac_cs_usage"; exit ;;
27020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27021 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27024 # This is an error.
27025 -*) { echo "$as_me: error: unrecognized option: $1
27026 Try \`$0 --help' for more information." >&2
27027 { (exit 1); exit 1; }; } ;;
27029 *) ac_config_targets="$ac_config_targets $1"
27030 ac_need_defaults=false ;;
27036 ac_configure_extra_args=
27038 if $ac_cs_silent; then
27040 ac_configure_extra_args="$ac_configure_extra_args --silent"
27044 cat >>$CONFIG_STATUS <<_ACEOF
27045 if \$ac_cs_recheck; then
27046 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27047 CONFIG_SHELL=$SHELL
27048 export CONFIG_SHELL
27049 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27053 cat >>$CONFIG_STATUS <<\_ACEOF
27057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27058 ## Running $as_me. ##
27064 cat >>$CONFIG_STATUS <<_ACEOF
27067 cat >>$CONFIG_STATUS <<\_ACEOF
27069 # Handling of arguments.
27070 for ac_config_target in $ac_config_targets
27072 case $ac_config_target in
27073 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27074 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
27075 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
27076 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27077 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27078 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27079 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27080 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27081 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27082 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
27083 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
27084 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27086 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27087 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27088 { (exit 1); exit 1; }; };;
27093 # If the user did not use the arguments to specify the items to instantiate,
27094 # then the envvar interface is used. Set only those that are not.
27095 # We use the long form for the default assignment because of an extremely
27096 # bizarre bug on SunOS 4.1.3.
27097 if $ac_need_defaults; then
27098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27100 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27104 # Have a temporary directory for convenience. Make it in the build tree
27105 # simply because there is no reason against having it here, and in addition,
27106 # creating and moving files from /tmp can sometimes cause problems.
27107 # Hook for its removal unless debugging.
27108 # Note that there is a small window in which the directory will not be cleaned:
27109 # after its creation but before its name has been assigned to `$tmp'.
27113 trap 'exit_status=$?
27114 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27116 trap '{ (exit 1); exit 1; }' 1 2 13 15
27118 # Create a (secure) tmp directory for tmp files.
27121 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27122 test -n "$tmp" && test -d "$tmp"
27125 tmp=./conf$$-$RANDOM
27126 (umask 077 && mkdir "$tmp")
27129 echo "$me: cannot create a temporary directory in ." >&2
27130 { (exit 1); exit 1; }
27134 # Set up the sed scripts for CONFIG_FILES section.
27137 # No need to generate the scripts if there are no CONFIG_FILES.
27138 # This happens for instance when ./config.status config.h
27139 if test -n "$CONFIG_FILES"; then
27146 for ac_last_try in false false false false false :; do
27147 cat >conf$$subs.sed <<_ACEOF
27148 SHELL!$SHELL$ac_delim
27149 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27150 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27151 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27152 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27153 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27154 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27155 exec_prefix!$exec_prefix$ac_delim
27156 prefix!$prefix$ac_delim
27157 program_transform_name!$program_transform_name$ac_delim
27158 bindir!$bindir$ac_delim
27159 sbindir!$sbindir$ac_delim
27160 libexecdir!$libexecdir$ac_delim
27161 datarootdir!$datarootdir$ac_delim
27162 datadir!$datadir$ac_delim
27163 sysconfdir!$sysconfdir$ac_delim
27164 sharedstatedir!$sharedstatedir$ac_delim
27165 localstatedir!$localstatedir$ac_delim
27166 includedir!$includedir$ac_delim
27167 oldincludedir!$oldincludedir$ac_delim
27168 docdir!$docdir$ac_delim
27169 infodir!$infodir$ac_delim
27170 htmldir!$htmldir$ac_delim
27171 dvidir!$dvidir$ac_delim
27172 pdfdir!$pdfdir$ac_delim
27173 psdir!$psdir$ac_delim
27174 libdir!$libdir$ac_delim
27175 localedir!$localedir$ac_delim
27176 mandir!$mandir$ac_delim
27177 DEFS!$DEFS$ac_delim
27178 ECHO_C!$ECHO_C$ac_delim
27179 ECHO_N!$ECHO_N$ac_delim
27180 ECHO_T!$ECHO_T$ac_delim
27181 LIBS!$LIBS$ac_delim
27182 build_alias!$build_alias$ac_delim
27183 host_alias!$host_alias$ac_delim
27184 target_alias!$target_alias$ac_delim
27185 configure_args!$configure_args$ac_delim
27186 build!$build$ac_delim
27187 build_cpu!$build_cpu$ac_delim
27188 build_vendor!$build_vendor$ac_delim
27189 build_os!$build_os$ac_delim
27190 host!$host$ac_delim
27191 host_cpu!$host_cpu$ac_delim
27192 host_vendor!$host_vendor$ac_delim
27193 host_os!$host_os$ac_delim
27194 PORTNAME!$PORTNAME$ac_delim
27195 enable_nls!$enable_nls$ac_delim
27196 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
27197 default_port!$default_port$ac_delim
27198 enable_shared!$enable_shared$ac_delim
27199 enable_rpath!$enable_rpath$ac_delim
27200 enable_debug!$enable_debug$ac_delim
27201 enable_profiling!$enable_profiling$ac_delim
27202 GCOV!$GCOV$ac_delim
27203 LCOV!$LCOV$ac_delim
27204 GENHTML!$GENHTML$ac_delim
27205 enable_coverage!$enable_coverage$ac_delim
27206 DTRACE!$DTRACE$ac_delim
27207 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
27208 enable_dtrace!$enable_dtrace$ac_delim
27210 CFLAGS!$CFLAGS$ac_delim
27211 LDFLAGS!$LDFLAGS$ac_delim
27212 CPPFLAGS!$CPPFLAGS$ac_delim
27213 ac_ct_CC!$ac_ct_CC$ac_delim
27214 EXEEXT!$EXEEXT$ac_delim
27215 OBJEXT!$OBJEXT$ac_delim
27216 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
27220 autodepend!$autodepend$ac_delim
27221 INCLUDES!$INCLUDES$ac_delim
27222 enable_thread_safety!$enable_thread_safety$ac_delim
27223 with_tcl!$with_tcl$ac_delim
27224 with_perl!$with_perl$ac_delim
27225 with_python!$with_python$ac_delim
27226 with_gssapi!$with_gssapi$ac_delim
27227 with_krb5!$with_krb5$ac_delim
27228 krb_srvtab!$krb_srvtab$ac_delim
27229 with_pam!$with_pam$ac_delim
27230 with_ldap!$with_ldap$ac_delim
27231 with_bonjour!$with_bonjour$ac_delim
27232 with_openssl!$with_openssl$ac_delim
27233 with_ossp_uuid!$with_ossp_uuid$ac_delim
27234 XML2_CONFIG!$XML2_CONFIG$ac_delim
27235 with_libxml!$with_libxml$ac_delim
27236 with_libxslt!$with_libxslt$ac_delim
27237 with_system_tzdata!$with_system_tzdata$ac_delim
27238 with_zlib!$with_zlib$ac_delim
27239 GREP!$GREP$ac_delim
27240 EGREP!$EGREP$ac_delim
27241 ELF_SYS!$ELF_SYS$ac_delim
27242 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
27244 with_gnu_ld!$with_gnu_ld$ac_delim
27247 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27249 elif $ac_last_try; then
27250 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27251 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27252 { (exit 1); exit 1; }; }
27254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27258 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27259 if test -n "$ac_eof"; then
27260 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27261 ac_eof=`expr $ac_eof + 1`
27264 cat >>$CONFIG_STATUS <<_ACEOF
27265 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27269 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27270 s/^/s,@/; s/!/@,|#_!!_#|/
27273 s/'"$ac_delim"'$/,g/; t
27275 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27276 ' >>$CONFIG_STATUS <conf$$subs.sed
27277 rm -f conf$$subs.sed
27278 cat >>$CONFIG_STATUS <<_ACEOF
27284 for ac_last_try in false false false false false :; do
27285 cat >conf$$subs.sed <<_ACEOF
27286 ld_R_works!$ld_R_works$ac_delim
27287 RANLIB!$RANLIB$ac_delim
27288 STRIP!$STRIP$ac_delim
27289 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
27290 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
27292 DLLTOOL!$DLLTOOL$ac_delim
27293 DLLWRAP!$DLLWRAP$ac_delim
27294 WINDRES!$WINDRES$ac_delim
27296 LN_S!$LN_S$ac_delim
27298 BISON!$BISON$ac_delim
27299 BISONFLAGS!$BISONFLAGS$ac_delim
27300 FLEX!$FLEX$ac_delim
27301 FLEXFLAGS!$FLEXFLAGS$ac_delim
27302 PERL!$PERL$ac_delim
27303 perl_archlibexp!$perl_archlibexp$ac_delim
27304 perl_privlibexp!$perl_privlibexp$ac_delim
27305 perl_useshrplib!$perl_useshrplib$ac_delim
27306 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27307 PYTHON!$PYTHON$ac_delim
27308 python_version!$python_version$ac_delim
27309 python_configdir!$python_configdir$ac_delim
27310 python_includespec!$python_includespec$ac_delim
27311 python_libdir!$python_libdir$ac_delim
27312 python_libspec!$python_libspec$ac_delim
27313 python_additional_libs!$python_additional_libs$ac_delim
27314 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27315 HAVE_IPV6!$HAVE_IPV6$ac_delim
27316 LIBOBJS!$LIBOBJS$ac_delim
27317 acx_pthread_config!$acx_pthread_config$ac_delim
27318 PTHREAD_CC!$PTHREAD_CC$ac_delim
27319 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27320 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27321 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27322 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27323 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27324 MSGFMT!$MSGFMT$ac_delim
27325 MSGMERGE!$MSGMERGE$ac_delim
27326 XGETTEXT!$XGETTEXT$ac_delim
27327 TCLSH!$TCLSH$ac_delim
27328 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27329 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27330 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27331 TCL_LIBS!$TCL_LIBS$ac_delim
27332 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27333 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27334 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27335 NSGMLS!$NSGMLS$ac_delim
27336 JADE!$JADE$ac_delim
27337 have_docbook!$have_docbook$ac_delim
27338 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27339 COLLATEINDEX!$COLLATEINDEX$ac_delim
27340 SGMLSPL!$SGMLSPL$ac_delim
27341 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27342 vpath_build!$vpath_build$ac_delim
27343 LTLIBOBJS!$LTLIBOBJS$ac_delim
27346 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
27348 elif $ac_last_try; then
27349 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27350 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27351 { (exit 1); exit 1; }; }
27353 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27357 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27358 if test -n "$ac_eof"; then
27359 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27360 ac_eof=`expr $ac_eof + 1`
27363 cat >>$CONFIG_STATUS <<_ACEOF
27364 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27365 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27368 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27369 s/^/s,@/; s/!/@,|#_!!_#|/
27372 s/'"$ac_delim"'$/,g/; t
27374 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27375 ' >>$CONFIG_STATUS <conf$$subs.sed
27376 rm -f conf$$subs.sed
27377 cat >>$CONFIG_STATUS <<_ACEOF
27384 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27385 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27386 # trailing colons and then remove the whole line if VPATH becomes empty
27387 # (actually we leave an empty line to preserve line numbers).
27388 if test "x$srcdir" = x.; then
27389 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27390 s/:*\$(srcdir):*/:/
27391 s/:*\${srcdir}:*/:/
27393 s/^\([^=]*=[ ]*\):*/\1/
27399 cat >>$CONFIG_STATUS <<\_ACEOF
27400 fi # test -n "$CONFIG_FILES"
27403 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
27406 :[FHLC]) ac_mode=$ac_tag; continue;;
27408 case $ac_mode$ac_tag in
27410 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27411 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27412 { (exit 1); exit 1; }; };;
27413 :[FH]-) ac_tag=-:-;;
27414 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27431 -) ac_f="$tmp/stdin";;
27432 *) # Look for the file first in the build tree, then in the source tree
27433 # (if the path is not absolute). The absolute path cannot be DOS-style,
27434 # because $ac_f cannot contain `:'.
27438 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27440 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27441 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27442 { (exit 1); exit 1; }; };;
27444 ac_file_inputs="$ac_file_inputs $ac_f"
27447 # Let's still pretend it is `configure' which instantiates (i.e., don't
27448 # use $as_me), people would be surprised to read:
27449 # /* config.h. Generated by config.status. */
27450 configure_input="Generated from "`IFS=:
27451 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27452 if test x"$ac_file" != x-; then
27453 configure_input="$ac_file. $configure_input"
27454 { echo "$as_me:$LINENO: creating $ac_file" >&5
27455 echo "$as_me: creating $ac_file" >&6;}
27459 *:-:* | *:-) cat >"$tmp/stdin";;
27464 ac_dir=`$as_dirname -- "$ac_file" ||
27465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27466 X"$ac_file" : 'X\(//\)[^/]' \| \
27467 X"$ac_file" : 'X\(//\)$' \| \
27468 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27474 /^X\(\/\/\)[^/].*/{
27489 -*) as_dir=./$as_dir;;
27491 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27495 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27496 *) as_qdir=$as_dir;;
27498 as_dirs="'$as_qdir' $as_dirs"
27499 as_dir=`$as_dirname -- "$as_dir" ||
27500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27501 X"$as_dir" : 'X\(//\)[^/]' \| \
27502 X"$as_dir" : 'X\(//\)$' \| \
27503 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27509 /^X\(\/\/\)[^/].*/{
27522 test -d "$as_dir" && break
27524 test -z "$as_dirs" || eval "mkdir $as_dirs"
27525 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27526 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27527 { (exit 1); exit 1; }; }; }
27531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27534 # A ".." for each directory in $ac_dir_suffix.
27535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27536 case $ac_top_builddir_sub in
27537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27541 ac_abs_top_builddir=$ac_pwd
27542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27543 # for backward compatibility:
27544 ac_top_builddir=$ac_top_build_prefix
27547 .) # We are building in place.
27549 ac_top_srcdir=$ac_top_builddir_sub
27550 ac_abs_top_srcdir=$ac_pwd ;;
27551 [\\/]* | ?:[\\/]* ) # Absolute name.
27552 ac_srcdir=$srcdir$ac_dir_suffix;
27553 ac_top_srcdir=$srcdir
27554 ac_abs_top_srcdir=$srcdir ;;
27555 *) # Relative name.
27556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27557 ac_top_srcdir=$ac_top_build_prefix$srcdir
27558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27571 cat >>$CONFIG_STATUS <<\_ACEOF
27572 # If the template does not know about datarootdir, expand it.
27573 # FIXME: This hack should be removed a few years after 2.60.
27574 ac_datarootdir_hack=; ac_datarootdir_seen=
27576 case `sed -n '/datarootdir/ {
27585 ' $ac_file_inputs` in
27586 *datarootdir*) ac_datarootdir_seen=yes;;
27587 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27588 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27589 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27591 cat >>$CONFIG_STATUS <<_ACEOF
27592 ac_datarootdir_hack='
27593 s&@datadir@&$datadir&g
27594 s&@docdir@&$docdir&g
27595 s&@infodir@&$infodir&g
27596 s&@localedir@&$localedir&g
27597 s&@mandir@&$mandir&g
27598 s&\\\${datarootdir}&$datarootdir&g' ;;
27602 # Neutralize VPATH when `$srcdir' = `.'.
27603 # Shell code in configure.ac might set extrasub.
27604 # FIXME: do we really want to maintain this feature?
27605 cat >>$CONFIG_STATUS <<_ACEOF
27609 cat >>$CONFIG_STATUS <<\_ACEOF
27611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27612 s&@configure_input@&$configure_input&;t t
27613 s&@top_builddir@&$ac_top_builddir_sub&;t t
27614 s&@srcdir@&$ac_srcdir&;t t
27615 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27616 s&@top_srcdir@&$ac_top_srcdir&;t t
27617 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27618 s&@builddir@&$ac_builddir&;t t
27619 s&@abs_builddir@&$ac_abs_builddir&;t t
27620 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27621 $ac_datarootdir_hack
27622 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27624 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27625 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27626 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27627 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27628 which seems to be undefined. Please make sure it is defined." >&5
27629 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27630 which seems to be undefined. Please make sure it is defined." >&2;}
27634 -) cat "$tmp/out"; rm -f "$tmp/out";;
27635 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27644 # Transform confdefs.h into a sed script `conftest.defines', that
27645 # substitutes the proper values into config.h.in to produce config.h.
27646 rm -f conftest.defines conftest.tail
27647 # First, append a space to every undef/define line, to ease matching.
27648 echo 's/$/ /' >conftest.defines
27649 # Then, protect against being on the right side of a sed subst, or in
27650 # an unquoted here document, in config.status. If some macros were
27651 # called several times there might be several #defines for the same
27652 # symbol, which is useless. But do not sort them, since the last
27653 # AC_DEFINE must be honored.
27654 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27655 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27656 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27657 # PARAMS is the parameter list in the macro definition--in most cases, it's
27658 # just an empty string.
27659 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27660 ac_dB='\\)[ (].*,\\1define\\2'
27668 s/^[ ]*#[ ]*define[ ][ ]*//
27673 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27674 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27675 ' >>conftest.defines
27677 # Remove the space that was appended to ease matching.
27678 # Then replace #undef with comments. This is necessary, for
27679 # example, in the case of _POSIX_SOURCE, which is predefined and required
27680 # on some systems where configure will not decide to define it.
27681 # (The regexp can be short, since the line contains either #define or #undef.)
27683 s,^[ #]*u.*,/* & */,' >>conftest.defines
27685 # Break up conftest.defines:
27686 ac_max_sed_lines=50
27688 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27689 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27690 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27692 ac_in='$ac_file_inputs'
27693 ac_out='"$tmp/out1"'
27694 ac_nxt='"$tmp/out2"'
27698 # Write a here document:
27699 cat >>$CONFIG_STATUS <<_ACEOF
27700 # First, check the format of the line:
27701 cat >"\$tmp/defines.sed" <<\\CEOF
27702 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27703 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27707 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27709 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27710 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27711 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27712 grep . conftest.tail >/dev/null || break
27713 rm -f conftest.defines
27714 mv conftest.tail conftest.defines
27716 rm -f conftest.defines conftest.tail
27718 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27719 cat >>$CONFIG_STATUS <<\_ACEOF
27720 if test x"$ac_file" != x-; then
27721 echo "/* $configure_input */" >"$tmp/config.h"
27722 cat "$ac_result" >>"$tmp/config.h"
27723 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27724 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27725 echo "$as_me: $ac_file is unchanged" >&6;}
27728 mv "$tmp/config.h" $ac_file
27731 echo "/* $configure_input */"
27741 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27742 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27744 if test ! -r "$srcdir/$ac_source"; then
27745 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27746 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27747 { (exit 1); exit 1; }; }
27751 # Try a relative symlink, then a hard link, then a copy.
27753 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27754 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
27756 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27757 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
27758 cp -p "$srcdir/$ac_source" "$ac_file" ||
27759 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27760 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27761 { (exit 1); exit 1; }; }
27763 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27764 echo "$as_me: executing $ac_file commands" >&6;}
27769 case $ac_file$ac_mode in
27770 "check_win32_symlinks":C)
27771 # Links sometimes fail undetected on Mingw -
27772 # so here we detect it and warn the user
27773 for FILE in $CONFIG_LINKS
27775 # test -e works for symlinks in the MinGW console
27776 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27777 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27780 "src/include/pg_config.h":H)
27781 # Update timestamp for pg_config.h (see Makefile.global)
27782 echo >src/include/stamp-h
27789 { (exit 0); exit 0; }
27791 chmod +x $CONFIG_STATUS
27792 ac_clean_files=$ac_clean_files_save
27795 # configure is writing to config.log, and then calls config.status.
27796 # config.status does its own redirection, appending to config.log.
27797 # Unfortunately, on DOS this fails, as config.log is still kept open
27798 # by configure, so config.status won't be able to write to it; its
27799 # output is simply discarded. So we exec the FD to /dev/null,
27800 # effectively closing config.log, so it can be properly (re)opened and
27801 # appended to by config.status. When coming back to configure, we
27802 # need to make the FD available again.
27803 if test "$no_create" != yes; then
27805 ac_config_status_args=
27806 test "$silent" = yes &&
27807 ac_config_status_args="$ac_config_status_args --quiet"
27809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27812 # would make configure fail if this is the last instruction.
27813 $ac_cs_success || { (exit 1); exit 1; }
27817 # Warn about unknown options
27818 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27819 for pgac_arg in $pgac_args with_gnu_ld; do
27820 if test "$pgac_var" = "$pgac_arg"; then
27824 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
27825 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27826 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}