2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2008, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir=.
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
262 CONFIG_SHELL=$as_shell
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
290 as_func_ret_success () {
293 as_func_ret_failure () {
298 if as_func_success; then
302 echo as_func_success failed.
305 if as_func_failure; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
476 ECHO_C= ECHO_N= ECHO_T=
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 elif ln conf$$.file conf$$ 2>/dev/null; then
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
521 test -d ./-p && rmdir ./-p
525 if test -x / >/dev/null 2>&1; then
528 if ls -dL / >/dev/null 2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev/null 6>&1
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 ac_default_prefix=/usr/local
568 ac_config_libobj_dir=.
574 SHELL=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME='PostgreSQL'
578 PACKAGE_TARNAME='postgresql'
579 PACKAGE_VERSION='8.4devel'
580 PACKAGE_STRING='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
583 ac_unique_file="src/backend/access/common/heaptuple.c"
584 ac_default_prefix=/usr/local/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
630 program_transform_name
736 python_additional_libs
767 ac_precious_vars='build_alias
780 # Initialize some variables set by options.
782 ac_init_version=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name=s,x,x,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885 { (exit 1); exit 1; }; }
886 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
887 eval enable_$ac_feature=no ;;
889 -docdir | --docdir | --docdi | --doc | --do)
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 -enable-* | --enable-*)
900 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
903 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904 { (exit 1); exit 1; }; }
905 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
906 eval enable_$ac_feature=\$ac_optarg ;;
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
921 -help | --help | --hel | --he | -h)
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 htmldir=$ac_optarg ;;
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
951 -libdir | --libdir | --libdi | --libd)
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
963 -localedir | --localedir | --localedi | --localed | --locale)
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 # Obsolete; use --without-fp.
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1042 -psdir | --psdir | --psdi | --psd | --ps)
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 sbindir=$ac_optarg ;;
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 sharedstatedir=$ac_optarg ;;
1068 -site | --site | --sit)
1070 -site=* | --site=* | --sit=*)
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1097 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid package name: $ac_package" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1103 eval with_$ac_package=\$ac_optarg ;;
1105 -without-* | --without-*)
1106 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1112 eval with_$ac_package=no ;;
1115 # Obsolete; use --with-x.
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 { echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
1163 # Be sure to have absolute directory names.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val=\$$ac_var
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175 { (exit 1); exit 1; }; }
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1183 target=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199 test "$silent" = yes && exec 6>/dev/null
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 { echo "$as_me: error: Working directory cannot be determined" >&2
1206 { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 { echo "$as_me: error: pwd does not report name of working directory" >&2
1209 { (exit 1); exit 1; }; }
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
1215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$0" : 'X\(//\)[^/]' \| \
1219 X"$0" : 'X\(//\)$' \| \
1220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1244 ac_srcdir_defaulted=no
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249 { (exit 1); exit 1; }; }
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254 { (exit 1); exit 1; }; }
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1280 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1338 --build=BUILD configure for building on BUILD [guessed]
1339 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1343 if test -n "$ac_init_help"; then
1344 case $ac_init_help in
1345 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1352 --disable-integer-datetimes disable 64-bit integer date/time support
1353 --enable-nls[=LANGUAGES] enable Native Language Support
1354 --disable-shared do not build shared libraries
1355 --disable-rpath do not embed shared library search path in executables
1356 --disable-spinlocks do not use spinlocks
1357 --enable-debug build with debugging symbols (-g)
1358 --enable-profiling build with profiling enabled
1359 --enable-dtrace build with DTrace support
1360 --disable-segmented-files disable data file segmentation (requires largefile support)
1361 --enable-depend turn on automatic dependency tracking
1362 --enable-cassert enable assertion checks (for debugging)
1363 --enable-thread-safety make client libraries thread-safe
1364 --enable-thread-safety-force force thread-safety despite thread test failure
1365 --disable-largefile omit support for large files
1368 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1369 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1371 --with-includes=DIRS look for additional header files in DIRS
1372 --with-libraries=DIRS look for additional libraries in DIRS
1373 --with-libs=DIRS alternative spelling of --with-libraries
1374 --with-pgport=PORTNUM change default port number [5432]
1375 --with-tcl build Tcl modules (PL/Tcl)
1376 --with-tclconfig=DIR tclConfig.sh is in DIR
1377 --with-perl build Perl modules (PL/Perl)
1378 --with-python build Python modules (PL/Python)
1379 --with-gssapi build with GSSAPI support
1380 --with-krb5 build with Kerberos 5 support
1381 --with-krb-srvnam=NAME default service principal name in Kerberos [postgres]
1382 --with-pam build with PAM support
1383 --with-ldap build with LDAP support
1384 --with-bonjour build with Bonjour support
1385 --with-openssl build with OpenSSL support
1386 --without-readline do not use GNU Readline nor BSD Libedit for editing
1387 --with-libedit-preferred prefer BSD Libedit over GNU Readline
1388 --with-ossp-uuid use OSSP UUID library when building contrib/uuid-ossp
1389 --with-libxml build with XML support
1390 --with-libxslt use XSLT support when building contrib/xml2
1391 --with-system-tzdata=DIR use system time zone data in DIR
1392 --without-zlib do not use Zlib
1393 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1395 Some influential environment variables:
1396 CC C compiler command
1397 CFLAGS C compiler flags
1398 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1399 nonstandard directory <lib dir>
1400 LIBS libraries to pass to the linker, e.g. -l<library>
1401 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1402 you have headers in a nonstandard directory <include dir>
1406 location of DocBook stylesheets
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1411 Report bugs to <pgsql-bugs@postgresql.org>.
1416 if test "$ac_init_help" = "recursive"; then
1417 # If there are subdirs, report their specific --help.
1418 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419 test -d "$ac_dir" || continue
1423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1426 # A ".." for each directory in $ac_dir_suffix.
1427 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1428 case $ac_top_builddir_sub in
1429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433 ac_abs_top_builddir=$ac_pwd
1434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1435 # for backward compatibility:
1436 ac_top_builddir=$ac_top_build_prefix
1439 .) # We are building in place.
1441 ac_top_srcdir=$ac_top_builddir_sub
1442 ac_abs_top_srcdir=$ac_pwd ;;
1443 [\\/]* | ?:[\\/]* ) # Absolute name.
1444 ac_srcdir=$srcdir$ac_dir_suffix;
1445 ac_top_srcdir=$srcdir
1446 ac_abs_top_srcdir=$srcdir ;;
1448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1449 ac_top_srcdir=$ac_top_build_prefix$srcdir
1450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1454 cd "$ac_dir" || { ac_status=$?; continue; }
1455 # Check for guested configure.
1456 if test -f "$ac_srcdir/configure.gnu"; then
1458 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1459 elif test -f "$ac_srcdir/configure"; then
1461 $SHELL "$ac_srcdir/configure" --help=recursive
1463 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1465 cd "$ac_pwd" || { ac_status=$?; break; }
1469 test -n "$ac_init_help" && exit $ac_status
1470 if $ac_init_version; then
1472 PostgreSQL configure 8.4devel
1473 generated by GNU Autoconf 2.61
1475 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1476 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1477 This configure script is free software; the Free Software Foundation
1478 gives unlimited permission to copy, distribute and modify it.
1480 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1484 cat >config.log <<_ACEOF
1485 This file contains any messages produced by compilers while
1486 running configure, to aid debugging if configure makes a mistake.
1488 It was created by PostgreSQL $as_me 8.4devel, which was
1489 generated by GNU Autoconf 2.61. Invocation command line was
1501 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1510 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1511 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1512 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1513 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1514 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1515 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1516 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 test -z "$as_dir" && as_dir=.
1525 echo "PATH: $as_dir"
1541 # Keep a trace of the command line.
1542 # Strip out --no-create and --no-recursion so they do not pile up.
1543 # Strip out --silent because we don't want to record it for future runs.
1544 # Also quote any args containing shell meta-characters.
1545 # Make two passes to allow for proper duplicate-argument suppression.
1549 ac_must_keep_next=false
1555 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557 | -silent | --silent | --silen | --sile | --sil)
1560 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1565 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566 if test $ac_must_keep_next = true; then
1567 ac_must_keep_next=false # Got value, back to normal.
1570 *=* | --config-cache | -C | -disable-* | --disable-* \
1571 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573 | -with-* | --with-* | -without-* | --without-* | --x)
1574 case "$ac_configure_args0 " in
1575 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 -* ) ac_must_keep_next=true ;;
1581 ac_configure_args="$ac_configure_args '$ac_arg'"
1586 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589 # When interrupted or exit'd, cleanup temporary files, and complete
1590 # config.log. We remove comments because anyway the quotes in there
1591 # would cause problems or look ugly.
1592 # WARNING: Use '\'' to represent an apostrophe within the trap.
1593 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1594 trap 'exit_status=$?
1595 # Save into config.log some information that might help in debugging.
1600 ## ---------------- ##
1601 ## Cache variables. ##
1602 ## ---------------- ##
1605 # The following way of writing the cache mishandles newlines in values,
1607 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608 eval ac_val=\$$ac_var
1612 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1613 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616 _ | IFS | as_nl) ;; #(
1617 *) $as_unset $ac_var ;;
1622 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1623 *${as_nl}ac_space=\ *)
1625 "s/'\''/'\''\\\\'\'''\''/g;
1626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1637 ## ----------------- ##
1638 ## Output variables. ##
1639 ## ----------------- ##
1642 for ac_var in $ac_subst_vars
1644 eval ac_val=\$$ac_var
1646 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 echo "$ac_var='\''$ac_val'\''"
1652 if test -n "$ac_subst_files"; then
1654 ## ------------------- ##
1655 ## File substitutions. ##
1656 ## ------------------- ##
1659 for ac_var in $ac_subst_files
1661 eval ac_val=\$$ac_var
1663 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665 echo "$ac_var='\''$ac_val'\''"
1670 if test -s confdefs.h; then
1680 test "$ac_signal" != 0 &&
1681 echo "$as_me: caught signal $ac_signal"
1682 echo "$as_me: exit $exit_status"
1684 rm -f core *.core core.conftest.* &&
1685 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1688 for ac_signal in 1 2 13 15; do
1689 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1693 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1694 rm -f -r conftest* confdefs.h
1696 # Predefined preprocessor variables.
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_NAME "$PACKAGE_NAME"
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_STRING "$PACKAGE_STRING"
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1723 # Let the site file select an alternate cache file if it wants to.
1724 # Prefer explicitly selected file to automatically selected ones.
1725 if test -n "$CONFIG_SITE"; then
1726 set x "$CONFIG_SITE"
1727 elif test "x$prefix" != xNONE; then
1728 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1730 set x "$ac_default_prefix/share/config.site" \
1731 "$ac_default_prefix/etc/config.site"
1736 if test -r "$ac_site_file"; then
1737 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1738 echo "$as_me: loading site script $ac_site_file" >&6;}
1739 sed 's/^/| /' "$ac_site_file" >&5
1744 if test -r "$cache_file"; then
1745 # Some versions of bash will fail to source /dev/null (special
1746 # files actually), so we avoid doing that.
1747 if test -f "$cache_file"; then
1748 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1749 echo "$as_me: loading cache $cache_file" >&6;}
1751 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1752 *) . "./$cache_file";;
1756 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1757 echo "$as_me: creating cache $cache_file" >&6;}
1761 # Check that the precious variables saved in the cache have kept the same
1763 ac_cache_corrupted=false
1764 for ac_var in $ac_precious_vars; do
1765 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1766 eval ac_new_set=\$ac_env_${ac_var}_set
1767 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1768 eval ac_new_val=\$ac_env_${ac_var}_value
1769 case $ac_old_set,$ac_new_set in
1771 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1772 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1773 ac_cache_corrupted=: ;;
1775 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1776 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1780 if test "x$ac_old_val" != "x$ac_new_val"; then
1781 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1782 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1783 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1784 echo "$as_me: former value: $ac_old_val" >&2;}
1785 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1786 echo "$as_me: current value: $ac_new_val" >&2;}
1787 ac_cache_corrupted=:
1790 # Pass precious variables to config.status.
1791 if test "$ac_new_set" = set; then
1793 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1794 *) ac_arg=$ac_var=$ac_new_val ;;
1796 case " $ac_configure_args " in
1797 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1798 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1802 if $ac_cache_corrupted; then
1803 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1804 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1805 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1806 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1807 { (exit 1); exit 1; }; }
1835 ac_cpp='$CPP $CPPFLAGS'
1836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1846 for ac_dir in config "$srcdir"/config; do
1847 if test -f "$ac_dir/install-sh"; then
1849 ac_install_sh="$ac_aux_dir/install-sh -c"
1851 elif test -f "$ac_dir/install.sh"; then
1853 ac_install_sh="$ac_aux_dir/install.sh -c"
1855 elif test -f "$ac_dir/shtool"; then
1857 ac_install_sh="$ac_aux_dir/shtool install -c"
1861 if test -z "$ac_aux_dir"; then
1862 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1863 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1864 { (exit 1); exit 1; }; }
1867 # These three variables are undocumented and unsupported,
1868 # and are intended to be withdrawn in a future Autoconf release.
1869 # They can cause serious problems if a builder's source tree is in a directory
1870 # whose full name contains unusual characters.
1871 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1872 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1873 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1877 configure_args=$ac_configure_args
1881 cat >>confdefs.h <<_ACEOF
1882 #define PG_VERSION "$PACKAGE_VERSION"
1886 # Make sure we can run config.sub.
1887 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1888 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1889 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1890 { (exit 1); exit 1; }; }
1892 { echo "$as_me:$LINENO: checking build system type" >&5
1893 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1894 if test "${ac_cv_build+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 ac_build_alias=$build_alias
1898 test "x$ac_build_alias" = x &&
1899 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1900 test "x$ac_build_alias" = x &&
1901 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1902 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1903 { (exit 1); exit 1; }; }
1904 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1905 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1906 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1907 { (exit 1); exit 1; }; }
1910 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1911 echo "${ECHO_T}$ac_cv_build" >&6; }
1912 case $ac_cv_build in
1914 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1915 echo "$as_me: error: invalid value of canonical build" >&2;}
1916 { (exit 1); exit 1; }; };;
1919 ac_save_IFS=$IFS; IFS='-'
1925 # Remember, the first character of IFS is used to create $*,
1926 # except with old shells:
1929 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1932 { echo "$as_me:$LINENO: checking host system type" >&5
1933 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1934 if test "${ac_cv_host+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test "x$host_alias" = x; then
1938 ac_cv_host=$ac_cv_build
1940 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1941 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1942 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1943 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1948 echo "${ECHO_T}$ac_cv_host" >&6; }
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1952 echo "$as_me: error: invalid value of canonical host" >&2;}
1953 { (exit 1); exit 1; }; };;
1956 ac_save_IFS=$IFS; IFS='-'
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1966 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1971 { echo "$as_me:$LINENO: checking which template to use" >&5
1972 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1975 pgac_args="$pgac_args with_template"
1978 # Check whether --with-template was given.
1979 if test "${with_template+set}" = set; then
1980 withval=$with_template;
1983 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1984 echo "$as_me: error: argument required for --with-template option" >&2;}
1985 { (exit 1); exit 1; }; }
1988 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1989 echo "$as_me: error: argument required for --with-template option" >&2;}
1990 { (exit 1); exit 1; }; }
1995 list) echo; ls "$srcdir/src/template"; exit;;
1996 *) if test -f "$srcdir/src/template/$with_template" ; then
1999 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2000 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2001 { (exit 1); exit 1; }; }
2010 # --with-template not given
2013 aix*) template=aix ;;
2014 bsdi*) template=bsdi ;;
2015 cygwin*) template=cygwin ;;
2016 darwin*) template=darwin ;;
2017 dgux*) template=dgux ;;
2018 freebsd*) template=freebsd ;;
2019 hpux*) template=hpux ;;
2020 irix*) template=irix ;;
2021 linux*|gnu*|k*bsd*-gnu)
2023 mingw*) template=win32 ;;
2024 netbsd*) template=netbsd ;;
2025 nextstep*) template=nextstep ;;
2026 openbsd*) template=openbsd ;;
2027 osf*) template=osf ;;
2028 sco*) template=sco ;;
2029 solaris*) template=solaris ;;
2030 sunos*) template=sunos4 ;;
2032 case $host_vendor in
2033 univel) template=univel ;;
2035 sysv4*) template=svr4 ;;
2036 sysv5*) template=unixware ;;
2037 ultrix*) template=ultrix4 ;;
2040 if test x"$template" = x"" ; then
2041 { { echo "$as_me:$LINENO: error:
2042 *******************************************************************
2043 PostgreSQL has apparently not been ported to your platform yet.
2044 To try a manual configuration, look into the src/template directory
2045 for a similar platform and use the '--with-template=' option.
2047 Please also contact <pgsql-ports@postgresql.org> to see about
2048 rectifying this. Include the above 'checking host system type...'
2050 *******************************************************************
2052 echo "$as_me: error:
2053 *******************************************************************
2054 PostgreSQL has apparently not been ported to your platform yet.
2055 To try a manual configuration, look into the src/template directory
2056 for a similar platform and use the '--with-template=' option.
2058 Please also contact <pgsql-ports@postgresql.org> to see about
2059 rectifying this. Include the above 'checking host system type...'
2061 *******************************************************************
2063 { (exit 1); exit 1; }; }
2071 { echo "$as_me:$LINENO: result: $template" >&5
2072 echo "${ECHO_T}$template" >&6; }
2077 # Initialize default assumption that we do not need separate assembly code
2078 # for TAS (test-and-set). This can be overridden by the template file
2079 # when it's executed.
2086 ## Command line options
2090 # Add non-standard directories to the include path
2093 pgac_args="$pgac_args with_includes"
2096 # Check whether --with-includes was given.
2097 if test "${with_includes+set}" = set; then
2098 withval=$with_includes;
2101 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2102 echo "$as_me: error: argument required for --with-includes option" >&2;}
2103 { (exit 1); exit 1; }; }
2106 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2107 echo "$as_me: error: argument required for --with-includes option" >&2;}
2108 { (exit 1); exit 1; }; }
2121 # Add non-standard directories to the library search path
2124 pgac_args="$pgac_args with_libraries"
2127 # Check whether --with-libraries was given.
2128 if test "${with_libraries+set}" = set; then
2129 withval=$with_libraries;
2132 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2133 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2134 { (exit 1); exit 1; }; }
2137 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2138 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2139 { (exit 1); exit 1; }; }
2142 LIBRARY_DIRS=$withval
2151 pgac_args="$pgac_args with_libs"
2154 # Check whether --with-libs was given.
2155 if test "${with_libs+set}" = set; then
2159 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2160 echo "$as_me: error: argument required for --with-libs option" >&2;}
2161 { (exit 1); exit 1; }; }
2164 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2165 echo "$as_me: error: argument required for --with-libs option" >&2;}
2166 { (exit 1); exit 1; }; }
2169 LIBRARY_DIRS=$withval
2179 # 64-bit integer date/time storage: enabled by default.
2181 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2182 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2184 pgac_args="$pgac_args enable_integer_datetimes"
2186 # Check whether --enable-integer-datetimes was given.
2187 if test "${enable_integer_datetimes+set}" = set; then
2188 enableval=$enable_integer_datetimes;
2192 cat >>confdefs.h <<\_ACEOF
2193 #define USE_INTEGER_DATETIMES 1
2201 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2202 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2203 { (exit 1); exit 1; }; }
2208 enable_integer_datetimes=yes
2210 cat >>confdefs.h <<\_ACEOF
2211 #define USE_INTEGER_DATETIMES 1
2217 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2218 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2224 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2225 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2227 pgac_args="$pgac_args enable_nls"
2229 # Check whether --enable-nls was given.
2230 if test "${enable_nls+set}" = set; then
2231 enableval=$enable_nls;
2241 WANTED_LANGUAGES=$enableval
2251 if test "$enable_nls" = yes; then
2253 cat >>confdefs.h <<\_ACEOF
2254 #define ENABLE_NLS 1
2259 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2260 echo "${ECHO_T}$enable_nls" >&6; }
2265 # Default port number (--with-pgport), default 5432
2267 { echo "$as_me:$LINENO: checking for default port number" >&5
2268 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2270 pgac_args="$pgac_args with_pgport"
2273 # Check whether --with-pgport was given.
2274 if test "${with_pgport+set}" = set; then
2275 withval=$with_pgport;
2278 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2279 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2280 { (exit 1); exit 1; }; }
2283 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2284 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2285 { (exit 1); exit 1; }; }
2288 default_port=$withval
2297 { echo "$as_me:$LINENO: result: $default_port" >&5
2298 echo "${ECHO_T}$default_port" >&6; }
2299 # Need both of these because some places want an integer and some a string
2301 cat >>confdefs.h <<_ACEOF
2302 #define DEF_PGPORT ${default_port}
2306 cat >>confdefs.h <<_ACEOF
2307 #define DEF_PGPORT_STR "${default_port}"
2313 # Option to disable shared libraries
2316 pgac_args="$pgac_args enable_shared"
2318 # Check whether --enable-shared was given.
2319 if test "${enable_shared+set}" = set; then
2320 enableval=$enable_shared;
2329 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2330 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2331 { (exit 1); exit 1; }; }
2344 # '-rpath'-like feature can be disabled
2347 pgac_args="$pgac_args enable_rpath"
2349 # Check whether --enable-rpath was given.
2350 if test "${enable_rpath+set}" = set; then
2351 enableval=$enable_rpath;
2360 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2361 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2362 { (exit 1); exit 1; }; }
2378 pgac_args="$pgac_args enable_spinlocks"
2380 # Check whether --enable-spinlocks was given.
2381 if test "${enable_spinlocks+set}" = set; then
2382 enableval=$enable_spinlocks;
2391 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2392 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2393 { (exit 1); exit 1; }; }
2398 enable_spinlocks=yes
2405 # --enable-debug adds -g to compiler flags
2408 pgac_args="$pgac_args enable_debug"
2410 # Check whether --enable-debug was given.
2411 if test "${enable_debug+set}" = set; then
2412 enableval=$enable_debug;
2421 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2422 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2423 { (exit 1); exit 1; }; }
2436 # --enable-profiling enables gcc profiling
2439 pgac_args="$pgac_args enable_profiling"
2441 # Check whether --enable-profiling was given.
2442 if test "${enable_profiling+set}" = set; then
2443 enableval=$enable_profiling;
2452 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2453 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2454 { (exit 1); exit 1; }; }
2470 pgac_args="$pgac_args enable_dtrace"
2472 # Check whether --enable-dtrace was given.
2473 if test "${enable_dtrace+set}" = set; then
2474 enableval=$enable_dtrace;
2478 cat >>confdefs.h <<\_ACEOF
2479 #define ENABLE_DTRACE 1
2482 for ac_prog in dtrace
2484 # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_DTRACE+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$DTRACE"; then
2492 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 ac_cv_prog_DTRACE="$ac_prog"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 DTRACE=$ac_cv_prog_DTRACE
2512 if test -n "$DTRACE"; then
2513 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2514 echo "${ECHO_T}$DTRACE" >&6; }
2516 { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2521 test -n "$DTRACE" && break
2524 if test -z "$DTRACE"; then
2525 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2526 echo "$as_me: error: dtrace not found" >&2;}
2527 { (exit 1); exit 1; }; }
2535 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2536 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2537 { (exit 1); exit 1; }; }
2550 # Data file segmentation
2553 pgac_args="$pgac_args enable_segmented_files"
2555 # Check whether --enable-segmented-files was given.
2556 if test "${enable_segmented_files+set}" = set; then
2557 enableval=$enable_segmented_files;
2566 { { echo "$as_me:$LINENO: error: no argument expected for --enable-segmented-files option" >&5
2567 echo "$as_me: error: no argument expected for --enable-segmented-files option" >&2;}
2568 { (exit 1); exit 1; }; }
2573 enable_segmented_files=yes
2583 # For historical reasons you can also use --with-CC to specify the C compiler
2584 # to use, although the standard way to do this is to set the CC environment
2587 pgac_args="$pgac_args with_CC"
2590 # Check whether --with-CC was given.
2591 if test "${with_CC+set}" = set; then
2595 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2596 echo "$as_me: error: argument required for --with-CC option" >&2;}
2597 { (exit 1); exit 1; }; }
2600 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2601 echo "$as_me: error: argument required for --with-CC option" >&2;}
2602 { (exit 1); exit 1; }; }
2614 aix) pgac_cc_list="gcc xlc";;
2615 irix) pgac_cc_list="cc";; # no gcc
2616 *) pgac_cc_list="gcc cc";;
2620 ac_cpp='$CPP $CPPFLAGS'
2621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624 if test -n "$ac_tool_prefix"; then
2625 for ac_prog in $pgac_cc_list
2627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 if test -n "$CC"; then
2656 { echo "$as_me:$LINENO: result: $CC" >&5
2657 echo "${ECHO_T}$CC" >&6; }
2659 { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2664 test -n "$CC" && break
2667 if test -z "$CC"; then
2669 for ac_prog in $pgac_cc_list
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672 set dummy $ac_prog; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 if test -n "$ac_ct_CC"; then
2679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_ac_ct_CC="$ac_prog"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2699 if test -n "$ac_ct_CC"; then
2700 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2701 echo "${ECHO_T}$ac_ct_CC" >&6; }
2703 { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2708 test -n "$ac_ct_CC" && break
2711 if test "x$ac_ct_CC" = x; then
2714 case $cross_compiling:$ac_tool_warned in
2716 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet. If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&5
2719 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2720 whose name does not start with the host triplet. If you think this
2721 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2722 ac_tool_warned=yes ;;
2729 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: no acceptable C compiler found in \$PATH
2732 See \`config.log' for more details." >&2;}
2733 { (exit 1); exit 1; }; }
2735 # Provide some information about the compiler.
2736 echo "$as_me:$LINENO: checking for C compiler version" >&5
2737 ac_compiler=`set X $ac_compile; echo $2`
2738 { (ac_try="$ac_compiler --version >&5"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compiler --version >&5") 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2748 { (ac_try="$ac_compiler -v >&5"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compiler -v >&5") 2>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }
2758 { (ac_try="$ac_compiler -V >&5"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_compiler -V >&5") 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2784 ac_clean_files_save=$ac_clean_files
2785 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2786 # Try to create an executable without -o first, disregard a.out.
2787 # It will help us diagnose broken compilers, and finding out an intuition
2789 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2790 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2793 # List of possible output files, starting from the most likely.
2794 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2795 # only as a last resort. b.out is created by i960 compilers.
2796 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2798 # The IRIX 6 linker writes into existing files which may not be
2799 # executable, retaining their permissions. Remove them first so a
2800 # subsequent execution test works.
2802 for ac_file in $ac_files
2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2811 if { (ac_try="$ac_link_default"
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_link_default") 2>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; then
2821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2822 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2823 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2824 # so that the user can short-circuit this test for compilers unknown to
2826 for ac_file in $ac_files ''
2828 test -f "$ac_file" || continue
2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2833 # We found the default executable, but exeext='' is most
2837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841 # We set ac_cv_exeext here because the later test for it is not
2842 # safe: cross compilers may not add the suffix if given an `-o'
2843 # argument, so we may need to know it at that point already.
2844 # Even if this section looks crufty: it has the advantage of
2851 test "$ac_cv_exeext" = no && ac_cv_exeext=
2857 { echo "$as_me:$LINENO: result: $ac_file" >&5
2858 echo "${ECHO_T}$ac_file" >&6; }
2859 if test -z "$ac_file"; then
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2864 See \`config.log' for more details." >&5
2865 echo "$as_me: error: C compiler cannot create executables
2866 See \`config.log' for more details." >&2;}
2867 { (exit 77); exit 77; }; }
2870 ac_exeext=$ac_cv_exeext
2872 # Check that the compiler produces executables we can run. If not, either
2873 # the compiler is broken, or we cross compile.
2874 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2875 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2876 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2877 # If not cross compiling, check that we can run a simple program.
2878 if test "$cross_compiling" != yes; then
2879 if { ac_try='./$ac_file'
2880 { (case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_try") 2>&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2891 if test "$cross_compiling" = maybe; then
2894 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2895 If you meant to cross compile, use \`--host'.
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details." >&2;}
2900 { (exit 1); exit 1; }; }
2904 { echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6; }
2907 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2908 ac_clean_files=$ac_clean_files_save
2909 # Check that the compiler produces executables we can run. If not, either
2910 # the compiler is broken, or we cross compile.
2911 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2912 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2913 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2914 echo "${ECHO_T}$cross_compiling" >&6; }
2916 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2917 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2918 if { (ac_try="$ac_link"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_link") 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
2928 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2929 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2930 # work properly (i.e., refer to `conftest.exe'), while it won't with
2932 for ac_file in conftest.exe conftest conftest.*; do
2933 test -f "$ac_file" || continue
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2943 See \`config.log' for more details." >&5
2944 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2945 See \`config.log' for more details." >&2;}
2946 { (exit 1); exit 1; }; }
2949 rm -f conftest$ac_cv_exeext
2950 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2953 rm -f conftest.$ac_ext
2954 EXEEXT=$ac_cv_exeext
2956 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2958 if test "${ac_cv_objext+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2976 rm -f conftest.o conftest.obj
2977 if { (ac_try="$ac_compile"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 for ac_file in conftest.o conftest.obj conftest.*; do
2988 test -f "$ac_file" || continue;
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2991 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3000 See \`config.log' for more details." >&5
3001 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3002 See \`config.log' for more details." >&2;}
3003 { (exit 1); exit 1; }; }
3006 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3008 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3009 echo "${ECHO_T}$ac_cv_objext" >&6; }
3010 OBJEXT=$ac_cv_objext
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } && {
3049 test -z "$ac_c_werror_flag" ||
3050 test ! -s conftest.err
3051 } && test -s conftest.$ac_objext; then
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3064 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3066 GCC=`test $ac_compiler_gnu = yes && echo yes`
3067 ac_test_CFLAGS=${CFLAGS+set}
3068 ac_save_CFLAGS=$CFLAGS
3069 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3070 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3071 if test "${ac_cv_prog_cc_g+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 ac_save_c_werror_flag=$ac_c_werror_flag
3075 ac_c_werror_flag=yes
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } && {
3107 test -z "$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } && {
3145 test -z "$ac_c_werror_flag" ||
3146 test ! -s conftest.err
3147 } && test -s conftest.$ac_objext; then
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 ac_c_werror_flag=$ac_save_c_werror_flag
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3179 grep -v '^ *+' conftest.er1 >conftest.err
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } && {
3184 test -z "$ac_c_werror_flag" ||
3185 test ! -s conftest.err
3186 } && test -s conftest.$ac_objext; then
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_c_werror_flag=$ac_save_c_werror_flag
3204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3205 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3206 if test "$ac_test_CFLAGS" = set; then
3207 CFLAGS=$ac_save_CFLAGS
3208 elif test $ac_cv_prog_cc_g = yes; then
3209 if test "$GCC" = yes; then
3215 if test "$GCC" = yes; then
3221 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3222 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3223 if test "${ac_cv_prog_cc_c89+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 ac_cv_prog_cc_c89=no
3228 cat >conftest.$ac_ext <<_ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3236 #include <sys/types.h>
3237 #include <sys/stat.h>
3238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3239 struct buf { int x; };
3240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241 static char *e (p, i)
3247 static char *f (char * (*g) (char **, int), char **p, ...)
3252 s = g (p, va_arg (v,int));
3257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3258 function prototypes and stuff, but not '\xHH' hex character constants.
3259 These don't provoke an error unfortunately, instead are silently treated
3260 as 'x'. The following induces an error, until -std is added to get
3261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3262 array size at least. It's necessary to write '\x00'==0 to get something
3263 that's true only with -std. */
3264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267 inside strings and character constants. */
3269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271 int test (int i, double x);
3272 struct s1 {int (*f) (int a);};
3273 struct s2 {int (*f) (double a);};
3274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3288 CC="$ac_save_CC $ac_arg"
3289 rm -f conftest.$ac_objext
3290 if { (ac_try="$ac_compile"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_compile") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } && {
3303 test -z "$ac_c_werror_flag" ||
3304 test ! -s conftest.err
3305 } && test -s conftest.$ac_objext; then
3306 ac_cv_prog_cc_c89=$ac_arg
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3314 rm -f core conftest.err conftest.$ac_objext
3315 test "x$ac_cv_prog_cc_c89" != "xno" && break
3317 rm -f conftest.$ac_ext
3322 case "x$ac_cv_prog_cc_c89" in
3324 { echo "$as_me:$LINENO: result: none needed" >&5
3325 echo "${ECHO_T}none needed" >&6; } ;;
3327 { echo "$as_me:$LINENO: result: unsupported" >&5
3328 echo "${ECHO_T}unsupported" >&6; } ;;
3330 CC="$CC $ac_cv_prog_cc_c89"
3331 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3332 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3344 # but has idiosyncrasies of its own. We assume icc will define
3345 # __INTEL_COMPILER regardless of CFLAGS.
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3357 #ifndef __INTEL_COMPILER
3364 rm -f conftest.$ac_objext
3365 if { (ac_try="$ac_compile"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_compile") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } && {
3378 test -z "$ac_c_werror_flag" ||
3379 test ! -s conftest.err
3380 } && test -s conftest.$ac_objext; then
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 . "$srcdir/src/template/$template" || exit
3398 # CFLAGS are selected so:
3399 # If the user specifies something in the environment, that is used.
3400 # else: If the template file set something, that is used.
3401 # else: If the compiler is GCC, then we use -O2.
3402 # else: If the compiler is something else, then we use -0.
3404 if test "$ac_env_CFLAGS_set" = set; then
3405 CFLAGS=$ac_env_CFLAGS_value
3406 elif test "${CFLAGS+set}" = set; then
3407 : # (keep what template set)
3408 elif test "$GCC" = yes; then
3411 # if the user selected debug mode, don't use -O
3412 if test "$enable_debug" != yes; then
3417 # Some versions of GCC support some additional useful warning flags.
3418 # Check whether they are supported, and add them to CFLAGS if so.
3419 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3421 if test "$GCC" = yes -a "$ICC" = no; then
3422 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
3423 # These work in some but not all gcc versions
3424 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3425 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3426 pgac_save_CFLAGS=$CFLAGS
3427 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3460 { echo "$as_me:$LINENO: result: yes" >&5
3461 echo "${ECHO_T}yes" >&6; }
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 CFLAGS="$pgac_save_CFLAGS"
3467 { echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6; }
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3474 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3475 pgac_save_CFLAGS=$CFLAGS
3476 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3477 cat >conftest.$ac_ext <<_ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3492 rm -f conftest.$ac_objext
3493 if { (ac_try="$ac_compile"
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_compile") 2>conftest.er1
3501 grep -v '^ *+' conftest.er1 >conftest.err
3503 cat conftest.err >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } && {
3506 test -z "$ac_c_werror_flag" ||
3507 test ! -s conftest.err
3508 } && test -s conftest.$ac_objext; then
3509 { echo "$as_me:$LINENO: result: yes" >&5
3510 echo "${ECHO_T}yes" >&6; }
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3515 CFLAGS="$pgac_save_CFLAGS"
3516 { echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6; }
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 # Disable strict-aliasing rules; needed for gcc 3.3+
3523 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3524 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3525 pgac_save_CFLAGS=$CFLAGS
3526 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_compile") 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } && {
3556 test -z "$ac_c_werror_flag" ||
3557 test ! -s conftest.err
3558 } && test -s conftest.$ac_objext; then
3559 { echo "$as_me:$LINENO: result: yes" >&5
3560 echo "${ECHO_T}yes" >&6; }
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 CFLAGS="$pgac_save_CFLAGS"
3566 { echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6; }
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3573 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3574 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3575 pgac_save_CFLAGS=$CFLAGS
3576 CFLAGS="$pgac_save_CFLAGS -fwrapv"
3577 cat >conftest.$ac_ext <<_ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3592 rm -f conftest.$ac_objext
3593 if { (ac_try="$ac_compile"
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_compile") 2>conftest.er1
3601 grep -v '^ *+' conftest.er1 >conftest.err
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } && {
3606 test -z "$ac_c_werror_flag" ||
3607 test ! -s conftest.err
3608 } && test -s conftest.$ac_objext; then
3609 { echo "$as_me:$LINENO: result: yes" >&5
3610 echo "${ECHO_T}yes" >&6; }
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3615 CFLAGS="$pgac_save_CFLAGS"
3616 { echo "$as_me:$LINENO: result: no" >&5
3617 echo "${ECHO_T}no" >&6; }
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 elif test "$ICC" = yes; then
3623 # Intel's compiler has a bug/misoptimization in checking for
3624 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3625 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3626 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
3627 pgac_save_CFLAGS=$CFLAGS
3628 CFLAGS="$pgac_save_CFLAGS -mp1"
3629 cat >conftest.$ac_ext <<_ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3644 rm -f conftest.$ac_objext
3645 if { (ac_try="$ac_compile"
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651 (eval "$ac_compile") 2>conftest.er1
3653 grep -v '^ *+' conftest.er1 >conftest.err
3655 cat conftest.err >&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } && {
3658 test -z "$ac_c_werror_flag" ||
3659 test ! -s conftest.err
3660 } && test -s conftest.$ac_objext; then
3661 { echo "$as_me:$LINENO: result: yes" >&5
3662 echo "${ECHO_T}yes" >&6; }
3664 echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 CFLAGS="$pgac_save_CFLAGS"
3668 { echo "$as_me:$LINENO: result: no" >&5
3669 echo "${ECHO_T}no" >&6; }
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 # Make sure strict aliasing is off (though this is said to be the default)
3675 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3676 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3677 pgac_save_CFLAGS=$CFLAGS
3678 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3679 cat >conftest.$ac_ext <<_ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3694 rm -f conftest.$ac_objext
3695 if { (ac_try="$ac_compile"
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_compile") 2>conftest.er1
3703 grep -v '^ *+' conftest.er1 >conftest.err
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } && {
3708 test -z "$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3710 } && test -s conftest.$ac_objext; then
3711 { echo "$as_me:$LINENO: result: yes" >&5
3712 echo "${ECHO_T}yes" >&6; }
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3717 CFLAGS="$pgac_save_CFLAGS"
3718 { echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6; }
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 elif test x"${CC}" = x"xlc"; then
3725 # AIX xlc has to have strict aliasing turned off too
3726 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3727 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
3728 pgac_save_CFLAGS=$CFLAGS
3729 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3730 cat >conftest.$ac_ext <<_ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3745 rm -f conftest.$ac_objext
3746 if { (ac_try="$ac_compile"
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752 (eval "$ac_compile") 2>conftest.er1
3754 grep -v '^ *+' conftest.er1 >conftest.err
3756 cat conftest.err >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } && {
3759 test -z "$ac_c_werror_flag" ||
3760 test ! -s conftest.err
3761 } && test -s conftest.$ac_objext; then
3762 { echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6; }
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3768 CFLAGS="$pgac_save_CFLAGS"
3769 { echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6; }
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 # supply -g if --enable-debug
3778 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3782 # enable profiling if --enable-profiling
3783 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3784 if test "$GCC" = yes; then
3786 cat >>confdefs.h <<\_ACEOF
3787 #define PROFILE_PID_DIR 1
3790 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
3792 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3793 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3794 { (exit 1); exit 1; }; }
3798 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3799 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3801 # We already have this in Makefile.win32, but configure needs it too
3802 if test "$PORTNAME" = "win32"; then
3803 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3806 # Check if the compiler still works with the template settings
3807 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3808 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
3809 cat >conftest.$ac_ext <<_ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (ac_try="$ac_link"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_link") 2>conftest.er1
3833 grep -v '^ *+' conftest.er1 >conftest.err
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } && {
3838 test -z "$ac_c_werror_flag" ||
3839 test ! -s conftest.err
3840 } && test -s conftest$ac_exeext &&
3841 $as_test_x conftest$ac_exeext; then
3842 { echo "$as_me:$LINENO: result: yes" >&5
3843 echo "${ECHO_T}yes" >&6; }
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 { echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6; }
3850 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3851 echo "$as_me: error: cannot proceed" >&2;}
3852 { (exit 1); exit 1; }; }
3855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3856 conftest$ac_exeext conftest.$ac_ext
3858 # Defend against gcc -ffast-math
3859 if test "$GCC" = yes; then
3860 cat >conftest.$ac_ext <<_ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3870 #ifdef __FAST_MATH__
3877 rm -f conftest.$ac_objext
3878 if { (ac_try="$ac_compile"
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3886 grep -v '^ *+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3899 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3900 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3901 { (exit 1); exit 1; }; }
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 ac_cpp='$CPP $CPPFLAGS'
3909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3913 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3914 # On Suns, sometimes $CPP names a directory.
3915 if test -n "$CPP" && test -d "$CPP"; then
3918 if test -z "$CPP"; then
3919 if test "${ac_cv_prog_CPP+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 # Double quotes because CPP needs to be expanded
3923 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3926 for ac_c_preproc_warn_flag in '' yes
3928 # Use a header file that comes with gcc, so configuring glibc
3929 # with a fresh cross-compiler works.
3930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3931 # <limits.h> exists even on freestanding compilers.
3932 # On the NeXT, cc -E runs the code through the compiler's parser,
3933 # not just through cpp. "Syntax error" is here to catch this case.
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3941 # include <limits.h>
3943 # include <assert.h>
3947 if { (ac_try="$ac_cpp conftest.$ac_ext"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3955 grep -v '^ *+' conftest.er1 >conftest.err
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } >/dev/null && {
3960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3968 # Broken: fails on valid input.
3972 rm -f conftest.err conftest.$ac_ext
3974 # OK, works on sane cases. Now check whether nonexistent headers
3975 # can be detected and how.
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #include <ac_nonexistent.h>
3984 if { (ac_try="$ac_cpp conftest.$ac_ext"
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3992 grep -v '^ *+' conftest.er1 >conftest.err
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } >/dev/null && {
3997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3998 test ! -s conftest.err
4000 # Broken: success on invalid input.
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4006 # Passes both tests.
4011 rm -f conftest.err conftest.$ac_ext
4014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4015 rm -f conftest.err conftest.$ac_ext
4016 if $ac_preproc_ok; then
4028 { echo "$as_me:$LINENO: result: $CPP" >&5
4029 echo "${ECHO_T}$CPP" >&6; }
4031 for ac_c_preproc_warn_flag in '' yes
4033 # Use a header file that comes with gcc, so configuring glibc
4034 # with a fresh cross-compiler works.
4035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4036 # <limits.h> exists even on freestanding compilers.
4037 # On the NeXT, cc -E runs the code through the compiler's parser,
4038 # not just through cpp. "Syntax error" is here to catch this case.
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4046 # include <limits.h>
4048 # include <assert.h>
4052 if { (ac_try="$ac_cpp conftest.$ac_ext"
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } >/dev/null && {
4065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4066 test ! -s conftest.err
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 # Broken: fails on valid input.
4077 rm -f conftest.err conftest.$ac_ext
4079 # OK, works on sane cases. Now check whether nonexistent headers
4080 # can be detected and how.
4081 cat >conftest.$ac_ext <<_ACEOF
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4087 #include <ac_nonexistent.h>
4089 if { (ac_try="$ac_cpp conftest.$ac_ext"
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4097 grep -v '^ *+' conftest.er1 >conftest.err
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } >/dev/null && {
4102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4103 test ! -s conftest.err
4105 # Broken: success on invalid input.
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 # Passes both tests.
4116 rm -f conftest.err conftest.$ac_ext
4119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4120 rm -f conftest.err conftest.$ac_ext
4121 if $ac_preproc_ok; then
4124 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4125 See \`config.log' for more details." >&5
4126 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4127 See \`config.log' for more details." >&2;}
4128 { (exit 1); exit 1; }; }
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 # Create compiler version string
4140 if test x"$GCC" = x"yes" ; then
4141 cc_string="GCC `${CC} --version | sed q`"
4146 cat >>confdefs.h <<_ACEOF
4147 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4153 # Set up TAS assembly code if needed; the template file has now had its
4154 # chance to request this.
4156 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4159 if test "$need_tas" = yes ; then
4168 # Automatic dependency tracking
4171 pgac_args="$pgac_args enable_depend"
4173 # Check whether --enable-depend was given.
4174 if test "${enable_depend+set}" = set; then
4175 enableval=$enable_depend;
4184 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4185 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4186 { (exit 1); exit 1; }; }
4200 # Enable assert checks
4203 pgac_args="$pgac_args enable_cassert"
4205 # Check whether --enable-cassert was given.
4206 if test "${enable_cassert+set}" = set; then
4207 enableval=$enable_cassert;
4211 cat >>confdefs.h <<\_ACEOF
4212 #define USE_ASSERT_CHECKING 1
4220 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4221 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4222 { (exit 1); exit 1; }; }
4235 # Include directories
4238 IFS="${IFS}${PATH_SEPARATOR}"
4239 # SRCH_INC comes from the template file
4240 for dir in $with_includes $SRCH_INC; do
4241 if test -d "$dir"; then
4242 INCLUDES="$INCLUDES -I$dir"
4244 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4245 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4253 # Library directories
4256 IFS="${IFS}${PATH_SEPARATOR}"
4257 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4258 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4259 if test -d "$dir"; then
4260 LIBDIRS="$LIBDIRS -L$dir"
4262 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4263 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4269 # Enable thread-safe client libraries
4271 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4272 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4273 if test "$PORTNAME" != "win32"; then
4275 pgac_args="$pgac_args enable_thread_safety"
4277 # Check whether --enable-thread-safety was given.
4278 if test "${enable_thread_safety+set}" = set; then
4279 enableval=$enable_thread_safety;
4288 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4289 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4290 { (exit 1); exit 1; }; }
4295 enable_thread_safety=no
4301 # Win32 should always use threads
4303 pgac_args="$pgac_args enable_thread_safety"
4305 # Check whether --enable-thread-safety was given.
4306 if test "${enable_thread_safety+set}" = set; then
4307 enableval=$enable_thread_safety;
4316 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4317 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4318 { (exit 1); exit 1; }; }
4323 enable_thread_safety=yes
4331 pgac_args="$pgac_args enable_thread_safety_force"
4333 # Check whether --enable-thread-safety-force was given.
4334 if test "${enable_thread_safety_force+set}" = set; then
4335 enableval=$enable_thread_safety_force;
4344 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4345 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4346 { (exit 1); exit 1; }; }
4351 enable_thread_safety_force=no
4356 if test "$enable_thread_safety" = yes -o \
4357 "$enable_thread_safety_force" = yes; then
4358 enable_thread_safety="yes" # for 'force'
4360 cat >>confdefs.h <<\_ACEOF
4361 #define ENABLE_THREAD_SAFETY 1
4365 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4366 echo "${ECHO_T}$enable_thread_safety" >&6; }
4370 # Optionally build Tcl modules (PL/Tcl)
4372 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4373 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4375 pgac_args="$pgac_args with_tcl"
4378 # Check whether --with-tcl was given.
4379 if test "${with_tcl+set}" = set; then
4389 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4390 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4391 { (exit 1); exit 1; }; }
4401 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4402 echo "${ECHO_T}$with_tcl" >&6; }
4405 # We see if the path to the Tcl/Tk configuration scripts is specified.
4406 # This will override the use of tclsh to find the paths to search.
4409 pgac_args="$pgac_args with_tclconfig"
4412 # Check whether --with-tclconfig was given.
4413 if test "${with_tclconfig+set}" = set; then
4414 withval=$with_tclconfig;
4417 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4418 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4419 { (exit 1); exit 1; }; }
4422 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4423 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4424 { (exit 1); exit 1; }; }
4436 # Optionally build Perl modules (PL/Perl)
4438 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4439 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4441 pgac_args="$pgac_args with_perl"
4444 # Check whether --with-perl was given.
4445 if test "${with_perl+set}" = set; then
4455 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4456 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4457 { (exit 1); exit 1; }; }
4467 { echo "$as_me:$LINENO: result: $with_perl" >&5
4468 echo "${ECHO_T}$with_perl" >&6; }
4472 # Optionally build Python modules (PL/Python)
4474 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4475 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4477 pgac_args="$pgac_args with_python"
4480 # Check whether --with-python was given.
4481 if test "${with_python+set}" = set; then
4482 withval=$with_python;
4491 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4492 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4493 { (exit 1); exit 1; }; }
4503 { echo "$as_me:$LINENO: result: $with_python" >&5
4504 echo "${ECHO_T}$with_python" >&6; }
4510 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4511 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4513 pgac_args="$pgac_args with_gssapi"
4516 # Check whether --with-gssapi was given.
4517 if test "${with_gssapi+set}" = set; then
4518 withval=$with_gssapi;
4523 cat >>confdefs.h <<\_ACEOF
4524 #define ENABLE_GSS 1
4527 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4534 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4535 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4536 { (exit 1); exit 1; }; }
4546 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4547 echo "${ECHO_T}$with_gssapi" >&6; }
4553 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4554 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4556 pgac_args="$pgac_args with_krb5"
4559 # Check whether --with-krb5 was given.
4560 if test "${with_krb5+set}" = set; then
4566 cat >>confdefs.h <<\_ACEOF
4570 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4577 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4578 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4579 { (exit 1); exit 1; }; }
4589 { echo "$as_me:$LINENO: result: $with_krb5" >&5
4590 echo "${ECHO_T}$with_krb5" >&6; }
4598 # Kerberos configuration parameters
4601 pgac_args="$pgac_args with_krb_srvnam"
4604 # Check whether --with-krb-srvnam was given.
4605 if test "${with_krb_srvnam+set}" = set; then
4606 withval=$with_krb_srvnam;
4609 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4610 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4611 { (exit 1); exit 1; }; }
4614 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4615 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4616 { (exit 1); exit 1; }; }
4624 with_krb_srvnam="postgres"
4629 cat >>confdefs.h <<_ACEOF
4630 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4638 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4639 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
4641 pgac_args="$pgac_args with_pam"
4644 # Check whether --with-pam was given.
4645 if test "${with_pam+set}" = set; then
4650 cat >>confdefs.h <<\_ACEOF
4659 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4660 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4661 { (exit 1); exit 1; }; }
4671 { echo "$as_me:$LINENO: result: $with_pam" >&5
4672 echo "${ECHO_T}$with_pam" >&6; }
4679 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4680 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
4682 pgac_args="$pgac_args with_ldap"
4685 # Check whether --with-ldap was given.
4686 if test "${with_ldap+set}" = set; then
4691 cat >>confdefs.h <<\_ACEOF
4700 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4701 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4702 { (exit 1); exit 1; }; }
4712 { echo "$as_me:$LINENO: result: $with_ldap" >&5
4713 echo "${ECHO_T}$with_ldap" >&6; }
4720 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4721 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
4723 pgac_args="$pgac_args with_bonjour"
4726 # Check whether --with-bonjour was given.
4727 if test "${with_bonjour+set}" = set; then
4728 withval=$with_bonjour;
4732 cat >>confdefs.h <<\_ACEOF
4733 #define USE_BONJOUR 1
4741 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4742 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4743 { (exit 1); exit 1; }; }
4753 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
4754 echo "${ECHO_T}$with_bonjour" >&6; }
4761 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4762 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
4764 pgac_args="$pgac_args with_openssl"
4767 # Check whether --with-openssl was given.
4768 if test "${with_openssl+set}" = set; then
4769 withval=$with_openssl;
4773 cat >>confdefs.h <<\_ACEOF
4782 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4783 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4784 { (exit 1); exit 1; }; }
4794 { echo "$as_me:$LINENO: result: $with_openssl" >&5
4795 echo "${ECHO_T}$with_openssl" >&6; }
4803 pgac_args="$pgac_args with_readline"
4806 # Check whether --with-readline was given.
4807 if test "${with_readline+set}" = set; then
4808 withval=$with_readline;
4817 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4818 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4819 { (exit 1); exit 1; }; }
4829 # readline on MinGW has problems with backslashes in psql and other bugs.
4830 # This is particularly a problem with non-US code pages.
4831 # Therefore disable its use until we understand the cause. 2004-07-20
4832 if test "$PORTNAME" = "win32"; then
4833 if test "$with_readline" = yes; then
4834 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4835 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4845 pgac_args="$pgac_args with_libedit_preferred"
4848 # Check whether --with-libedit-preferred was given.
4849 if test "${with_libedit_preferred+set}" = set; then
4850 withval=$with_libedit_preferred;
4859 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4860 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4861 { (exit 1); exit 1; }; }
4866 with_libedit_preferred=no
4877 pgac_args="$pgac_args with_ossp_uuid"
4880 # Check whether --with-ossp-uuid was given.
4881 if test "${with_ossp_uuid+set}" = set; then
4882 withval=$with_ossp_uuid;
4891 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
4892 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
4893 { (exit 1); exit 1; }; }
4910 pgac_args="$pgac_args with_libxml"
4913 # Check whether --with-libxml was given.
4914 if test "${with_libxml+set}" = set; then
4915 withval=$with_libxml;
4919 cat >>confdefs.h <<\_ACEOF
4920 #define USE_LIBXML 1
4928 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
4929 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
4930 { (exit 1); exit 1; }; }
4941 if test "$with_libxml" = yes ; then
4942 for ac_prog in xml2-config
4944 # Extract the first word of "$ac_prog", so it can be a program name with args.
4945 set dummy $ac_prog; ac_word=$2
4946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4948 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 if test -n "$XML2_CONFIG"; then
4952 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_prog_XML2_CONFIG="$ac_prog"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
4972 if test -n "$XML2_CONFIG"; then
4973 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
4974 echo "${ECHO_T}$XML2_CONFIG" >&6; }
4976 { echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6; }
4981 test -n "$XML2_CONFIG" && break
4984 if test -n "$XML2_CONFIG"; then
4985 for pgac_option in `$XML2_CONFIG --cflags`; do
4986 case $pgac_option in
4987 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
4990 for pgac_option in `$XML2_CONFIG --libs`; do
4991 case $pgac_option in
4992 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5004 pgac_args="$pgac_args with_libxslt"
5007 # Check whether --with-libxslt was given.
5008 if test "${with_libxslt+set}" = set; then
5009 withval=$with_libxslt;
5013 cat >>confdefs.h <<\_ACEOF
5014 #define USE_LIBXSLT 1
5022 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5023 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5024 { (exit 1); exit 1; }; }
5042 pgac_args="$pgac_args with_system_tzdata"
5045 # Check whether --with-system-tzdata was given.
5046 if test "${with_system_tzdata+set}" = set; then
5047 withval=$with_system_tzdata;
5050 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5051 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5052 { (exit 1); exit 1; }; }
5055 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5056 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5057 { (exit 1); exit 1; }; }
5073 pgac_args="$pgac_args with_zlib"
5076 # Check whether --with-zlib was given.
5077 if test "${with_zlib+set}" = set; then
5087 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5088 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5089 { (exit 1); exit 1; }; }
5105 # Assume system is ELF if it predefines __ELF__ as 1,
5106 # otherwise believe host_os based default.
5108 freebsd1*|freebsd2*) elf=no;;
5109 freebsd3*|freebsd4*) elf=yes;;
5113 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5114 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5115 if test "${ac_cv_path_GREP+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 # Extract the first word of "grep ggrep" to use in msg output
5119 if test -z "$GREP"; then
5120 set dummy grep ggrep; ac_prog_name=$2
5121 if test "${ac_cv_path_GREP+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 ac_path_GREP_found=false
5125 # Loop through the user's path and test for each of PROGNAME-LIST
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5130 test -z "$as_dir" && as_dir=.
5131 for ac_prog in grep ggrep; do
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5134 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5135 # Check for GNU ac_path_GREP and select it if it is found.
5136 # Check for GNU $ac_path_GREP
5137 case `"$ac_path_GREP" --version 2>&1` in
5139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5142 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5145 cat "conftest.in" "conftest.in" >"conftest.tmp"
5146 mv "conftest.tmp" "conftest.in"
5147 cp "conftest.in" "conftest.nl"
5148 echo 'GREP' >> "conftest.nl"
5149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5151 ac_count=`expr $ac_count + 1`
5152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5153 # Best one so far, save it but keep looking for a better one
5154 ac_cv_path_GREP="$ac_path_GREP"
5155 ac_path_GREP_max=$ac_count
5157 # 10*(2^10) chars as input seems more than enough
5158 test $ac_count -gt 10 && break
5160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5164 $ac_path_GREP_found && break 3
5174 GREP="$ac_cv_path_GREP"
5175 if test -z "$GREP"; then
5176 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5177 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5178 { (exit 1); exit 1; }; }
5182 ac_cv_path_GREP=$GREP
5187 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5188 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5189 GREP="$ac_cv_path_GREP"
5192 { echo "$as_me:$LINENO: checking for egrep" >&5
5193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_EGREP+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5198 then ac_cv_path_EGREP="$GREP -E"
5200 # Extract the first word of "egrep" to use in msg output
5201 if test -z "$EGREP"; then
5202 set dummy egrep; ac_prog_name=$2
5203 if test "${ac_cv_path_EGREP+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 ac_path_EGREP_found=false
5207 # Loop through the user's path and test for each of PROGNAME-LIST
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5212 test -z "$as_dir" && as_dir=.
5213 for ac_prog in egrep; do
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5216 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5217 # Check for GNU ac_path_EGREP and select it if it is found.
5218 # Check for GNU $ac_path_EGREP
5219 case `"$ac_path_EGREP" --version 2>&1` in
5221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5224 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5227 cat "conftest.in" "conftest.in" >"conftest.tmp"
5228 mv "conftest.tmp" "conftest.in"
5229 cp "conftest.in" "conftest.nl"
5230 echo 'EGREP' >> "conftest.nl"
5231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5233 ac_count=`expr $ac_count + 1`
5234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5235 # Best one so far, save it but keep looking for a better one
5236 ac_cv_path_EGREP="$ac_path_EGREP"
5237 ac_path_EGREP_max=$ac_count
5239 # 10*(2^10) chars as input seems more than enough
5240 test $ac_count -gt 10 && break
5242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5246 $ac_path_EGREP_found && break 3
5256 EGREP="$ac_cv_path_EGREP"
5257 if test -z "$EGREP"; then
5258 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5259 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5260 { (exit 1); exit 1; }; }
5264 ac_cv_path_EGREP=$EGREP
5270 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5271 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5272 EGREP="$ac_cv_path_EGREP"
5275 cat >conftest.$ac_ext <<_ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5287 $EGREP "yes" >/dev/null 2>&1; then
5290 if test "X$elf" = "Xyes" ; then
5304 CPPFLAGS="$CPPFLAGS $INCLUDES"
5305 LDFLAGS="$LDFLAGS $LIBDIRS"
5307 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
5308 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
5309 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
5310 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
5315 # Check whether --with-gnu-ld was given.
5316 if test "${with_gnu_ld+set}" = set; then
5317 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5323 if test "$GCC" = yes; then
5324 # Check if gcc -print-prog-name=ld gives a path.
5325 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5326 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5329 # gcc leaves a trailing carriage return which upsets mingw
5330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5335 # Accept absolute paths.
5336 [\\/]* | [A-Za-z]:[\\/]*)
5337 re_direlt='/[^/][^/]*/\.\./'
5338 # Canonicalize the path of ld
5339 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5340 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5341 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5343 test -z "$LD" && LD="$ac_prog"
5346 # If it fails, then pretend we aren't using GCC.
5350 # If it is relative, then search for the first ld in PATH.
5354 elif test "$with_gnu_ld" = yes; then
5355 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5356 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5358 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5359 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5361 if test "${ac_cv_path_LD+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 if test -z "$LD"; then
5365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5366 for ac_dir in $PATH; do
5367 test -z "$ac_dir" && ac_dir=.
5368 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5369 ac_cv_path_LD="$ac_dir/$ac_prog"
5370 # Check to see if the program is GNU ld. I'd rather use --version,
5371 # but apparently some GNU ld's only accept -v.
5372 # Break only if it was the GNU/non-GNU ld that we prefer.
5373 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5374 test "$with_gnu_ld" != no && break
5376 test "$with_gnu_ld" != yes && break
5382 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5387 if test -n "$LD"; then
5388 { echo "$as_me:$LINENO: result: $LD" >&5
5389 echo "${ECHO_T}$LD" >&6; }
5391 { echo "$as_me:$LINENO: result: no" >&5
5392 echo "${ECHO_T}no" >&6; }
5394 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5395 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5396 { (exit 1); exit 1; }; }
5397 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5398 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5399 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5403 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5404 ac_cv_prog_gnu_ld=yes
5406 ac_cv_prog_gnu_ld=no
5409 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5410 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5411 with_gnu_ld=$ac_cv_prog_gnu_ld
5416 case $host_os in sysv5*)
5417 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5418 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5419 if test "${pgac_cv_prog_ld_R+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5424 cat >conftest.$ac_ext <<_ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5439 rm -f conftest.$ac_objext conftest$ac_exeext
5440 if { (ac_try="$ac_link"
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_link") 2>conftest.er1
5448 grep -v '^ *+' conftest.er1 >conftest.err
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && {
5453 test -z "$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest$ac_exeext &&
5456 $as_test_x conftest$ac_exeext; then
5457 pgac_cv_prog_ld_R=yes
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 pgac_cv_prog_ld_R=no
5465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5466 conftest$ac_exeext conftest.$ac_ext
5467 LDFLAGS=$pgac_save_LDFLAGS
5470 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5471 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5472 ld_R_works=$pgac_cv_prog_ld_R
5475 if test -n "$ac_tool_prefix"; then
5476 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5477 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5480 if test "${ac_cv_prog_RANLIB+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 if test -n "$RANLIB"; then
5484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 RANLIB=$ac_cv_prog_RANLIB
5504 if test -n "$RANLIB"; then
5505 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5506 echo "${ECHO_T}$RANLIB" >&6; }
5508 { echo "$as_me:$LINENO: result: no" >&5
5509 echo "${ECHO_T}no" >&6; }
5514 if test -z "$ac_cv_prog_RANLIB"; then
5515 ac_ct_RANLIB=$RANLIB
5516 # Extract the first word of "ranlib", so it can be a program name with args.
5517 set dummy ranlib; ac_word=$2
5518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5520 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 if test -n "$ac_ct_RANLIB"; then
5524 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_ac_ct_RANLIB="ranlib"
5534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5544 if test -n "$ac_ct_RANLIB"; then
5545 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5546 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5548 { echo "$as_me:$LINENO: result: no" >&5
5549 echo "${ECHO_T}no" >&6; }
5552 if test "x$ac_ct_RANLIB" = x; then
5555 case $cross_compiling:$ac_tool_warned in
5557 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5558 whose name does not start with the host triplet. If you think this
5559 configuration is useful to you, please write to autoconf@gnu.org." >&5
5560 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5561 whose name does not start with the host triplet. If you think this
5562 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5563 ac_tool_warned=yes ;;
5565 RANLIB=$ac_ct_RANLIB
5568 RANLIB="$ac_cv_prog_RANLIB"
5572 if test -n "$ac_tool_prefix"; then
5573 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5574 set dummy ${ac_tool_prefix}strip; ac_word=$2
5575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5577 if test "${ac_cv_prog_STRIP+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 if test -n "$STRIP"; then
5581 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 STRIP=$ac_cv_prog_STRIP
5601 if test -n "$STRIP"; then
5602 { echo "$as_me:$LINENO: result: $STRIP" >&5
5603 echo "${ECHO_T}$STRIP" >&6; }
5605 { echo "$as_me:$LINENO: result: no" >&5
5606 echo "${ECHO_T}no" >&6; }
5611 if test -z "$ac_cv_prog_STRIP"; then
5613 # Extract the first word of "strip", so it can be a program name with args.
5614 set dummy strip; ac_word=$2
5615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5617 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 if test -n "$ac_ct_STRIP"; then
5621 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_prog_ac_ct_STRIP="strip"
5631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5641 if test -n "$ac_ct_STRIP"; then
5642 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5643 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5645 { echo "$as_me:$LINENO: result: no" >&5
5646 echo "${ECHO_T}no" >&6; }
5649 if test "x$ac_ct_STRIP" = x; then
5652 case $cross_compiling:$ac_tool_warned in
5654 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5655 whose name does not start with the host triplet. If you think this
5656 configuration is useful to you, please write to autoconf@gnu.org." >&5
5657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5658 whose name does not start with the host triplet. If you think this
5659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5660 ac_tool_warned=yes ;;
5665 STRIP="$ac_cv_prog_STRIP"
5669 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
5670 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
5671 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
5672 STRIP_STATIC_LIB="$STRIP -x"
5673 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
5674 { echo "$as_me:$LINENO: result: yes" >&5
5675 echo "${ECHO_T}yes" >&6; }
5679 { echo "$as_me:$LINENO: result: no" >&5
5680 echo "${ECHO_T}no" >&6; }
5686 # Extract the first word of "tar", so it can be a program name with args.
5687 set dummy tar; ac_word=$2
5688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5690 if test "${ac_cv_path_TAR+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 if test -n "$TAR"; then
5718 { echo "$as_me:$LINENO: result: $TAR" >&5
5719 echo "${ECHO_T}$TAR" >&6; }
5721 { echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6; }
5726 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5727 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5729 if test "$LN_S" = "ln -s"; then
5730 { echo "$as_me:$LINENO: result: yes" >&5
5731 echo "${ECHO_T}yes" >&6; }
5733 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5734 echo "${ECHO_T}no, using $LN_S" >&6; }
5737 for ac_prog in gawk mawk nawk awk
5739 # Extract the first word of "$ac_prog", so it can be a program name with args.
5740 set dummy $ac_prog; ac_word=$2
5741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5743 if test "${ac_cv_prog_AWK+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 if test -n "$AWK"; then
5747 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5756 ac_cv_prog_AWK="$ac_prog"
5757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 if test -n "$AWK"; then
5768 { echo "$as_me:$LINENO: result: $AWK" >&5
5769 echo "${ECHO_T}$AWK" >&6; }
5771 { echo "$as_me:$LINENO: result: no" >&5
5772 echo "${ECHO_T}no" >&6; }
5776 test -n "$AWK" && break
5780 # Let the user override the search
5781 if test -z "$YACC"; then
5782 for ac_prog in 'bison -y'
5784 # Extract the first word of "$ac_prog", so it can be a program name with args.
5785 set dummy $ac_prog; ac_word=$2
5786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5788 if test "${ac_cv_prog_YACC+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 if test -n "$YACC"; then
5792 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_prog_YACC="$ac_prog"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 YACC=$ac_cv_prog_YACC
5812 if test -n "$YACC"; then
5813 { echo "$as_me:$LINENO: result: $YACC" >&5
5814 echo "${ECHO_T}$YACC" >&6; }
5816 { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5821 test -n "$YACC" && break
5826 if test "$YACC"; then
5827 pgac_yacc_version=`$YACC --version 2>/dev/null | sed q`
5828 { echo "$as_me:$LINENO: using $pgac_yacc_version" >&5
5829 echo "$as_me: using $pgac_yacc_version" >&6;}
5830 if echo "$pgac_yacc_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
5832 { echo "$as_me:$LINENO: WARNING:
5833 *** The installed version of Bison is too old to use with PostgreSQL.
5834 *** Bison version 1.875 or later is required." >&5
5835 echo "$as_me: WARNING:
5836 *** The installed version of Bison is too old to use with PostgreSQL.
5837 *** Bison version 1.875 or later is required." >&2;}
5842 if test -z "$YACC"; then
5843 { echo "$as_me:$LINENO: WARNING:
5844 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5845 *** change any of the parser definition files. You can obtain Bison from
5846 *** a GNU mirror site. (If you are using the official distribution of
5847 *** PostgreSQL then you do not need to worry about this, because the Bison
5848 *** output is pre-generated.) To use a different yacc program (possible,
5849 *** but not recommended), set the environment variable YACC before running
5850 *** 'configure'." >&5
5851 echo "$as_me: WARNING:
5852 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5853 *** change any of the parser definition files. You can obtain Bison from
5854 *** a GNU mirror site. (If you are using the official distribution of
5855 *** PostgreSQL then you do not need to worry about this, because the Bison
5856 *** output is pre-generated.) To use a different yacc program (possible,
5857 *** but not recommended), set the environment variable YACC before running
5858 *** 'configure'." >&2;}
5860 # We don't need AC_SUBST(YACC) because AC_PATH_PROG did it
5863 { echo "$as_me:$LINENO: checking for flex" >&5
5864 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
5865 if test "${pgac_cv_path_flex+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 # Let the user override the test
5869 if test -n "$FLEX"; then
5870 pgac_cv_path_flex=$FLEX
5874 for pgac_dir in $PATH; do
5876 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
5879 for pgac_prog in flex lex; do
5880 pgac_candidate="$pgac_dir/$pgac_prog"
5881 if test -f "$pgac_candidate" \
5882 && $pgac_candidate --version </dev/null >/dev/null 2>&1
5884 echo '%%' > conftest.l
5885 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
5886 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
5887 pgac_broken_flex=$pgac_candidate
5891 pgac_cv_path_flex=$pgac_candidate
5897 rm -f conftest.l lex.yy.c
5898 : ${pgac_cv_path_flex=no}
5902 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
5903 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
5904 if test x"$pgac_cv_path_flex" = x"no"; then
5905 if test -n "$pgac_broken_flex"; then
5906 { echo "$as_me:$LINENO: WARNING:
5907 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5908 *** should get version 2.5.4 or later." >&5
5909 echo "$as_me: WARNING:
5910 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5911 *** should get version 2.5.4 or later." >&2;}
5914 { echo "$as_me:$LINENO: WARNING:
5915 *** Without Flex you will not be able to build PostgreSQL from CVS or
5916 *** change any of the scanner definition files. You can obtain Flex from
5917 *** a GNU mirror site. (If you are using the official distribution of
5918 *** PostgreSQL then you do not need to worry about this because the Flex
5919 *** output is pre-generated.)" >&5
5920 echo "$as_me: WARNING:
5921 *** Without Flex you will not be able to build PostgreSQL from CVS or
5922 *** change any of the scanner definition files. You can obtain Flex from
5923 *** a GNU mirror site. (If you are using the official distribution of
5924 *** PostgreSQL then you do not need to worry about this because the Flex
5925 *** output is pre-generated.)" >&2;}
5929 FLEX=$pgac_cv_path_flex
5930 pgac_flex_version=`$FLEX -V 2>/dev/null`
5931 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
5932 echo "$as_me: using $pgac_flex_version" >&6;}
5939 # Extract the first word of "perl", so it can be a program name with args.
5940 set dummy perl; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_path_PERL+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 PERL=$ac_cv_path_PERL
5970 if test -n "$PERL"; then
5971 { echo "$as_me:$LINENO: result: $PERL" >&5
5972 echo "${ECHO_T}$PERL" >&6; }
5974 { echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6; }
5979 if test "$with_perl" = yes; then
5981 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
5982 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
5983 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
5984 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
5985 echo "${ECHO_T}$perl_archlibexp" >&6; }
5986 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
5987 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
5988 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
5989 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
5990 echo "${ECHO_T}$perl_privlibexp" >&6; }
5991 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
5992 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
5993 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
5994 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
5995 echo "${ECHO_T}$perl_useshrplib" >&6; }
5997 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
5998 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
5999 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6000 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6001 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6002 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6003 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6006 if test "$with_python" = yes; then
6007 # Extract the first word of "python", so it can be a program name with args.
6008 set dummy python; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_path_PYTHON+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 PYTHON=$ac_cv_path_PYTHON
6038 if test -n "$PYTHON"; then
6039 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6040 echo "${ECHO_T}$PYTHON" >&6; }
6042 { echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6; }
6047 if test x"$PYTHON" = x""; then
6048 { { echo "$as_me:$LINENO: error: Python not found" >&5
6049 echo "$as_me: error: Python not found" >&2;}
6050 { (exit 1); exit 1; }; }
6054 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6055 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6056 if "${PYTHON}" 2>&- -c 'import distutils'
6058 { echo "$as_me:$LINENO: result: yes" >&5
6059 echo "${ECHO_T}yes" >&6; }
6061 { echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6; }
6063 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6064 echo "$as_me: error: distutils module not found" >&2;}
6065 { (exit 1); exit 1; }; }
6067 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6068 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6069 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6070 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')"`
6071 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6073 # This should be enough of a message.
6074 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6075 echo "${ECHO_T}$python_configdir" >&6; }
6078 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6079 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6081 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6082 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6083 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6084 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6086 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6088 # New way: use the official shared library
6089 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6090 python_libspec="-L${python_libdir} -l${ldlibrary}"
6092 # Old way: use libpython from python_configdir
6093 python_libdir="${python_configdir}"
6094 python_libspec="-L${python_libdir} -lpython${python_version}"
6097 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6099 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6100 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6103 # threaded python is not supported on bsd's
6104 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6105 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6106 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6107 if test "$pythreads" = "1"; then
6108 { echo "$as_me:$LINENO: result: yes" >&5
6109 echo "${ECHO_T}yes" >&6; }
6112 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6113 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6114 { (exit 1); exit 1; }; }
6118 { echo "$as_me:$LINENO: result: no" >&5
6119 echo "${ECHO_T}no" >&6; }
6125 # Supply a numeric version string for use by 3rd party add-ons
6126 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6127 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6129 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6131 cat >>confdefs.h <<_ACEOF
6132 #define PG_VERSION_NUM $PG_VERSION_NUM
6139 ## Most libraries are included only if they demonstrably provide a function
6140 ## we need, but libm is an exception: always include it, because there are
6141 ## too many compilers that play cute optimization games that will break
6142 ## probes for standard functions such as pow().
6146 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6147 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6148 if test "${ac_cv_lib_m_main+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 ac_check_lib_save_LIBS=$LIBS
6153 cat >conftest.$ac_ext <<_ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6169 rm -f conftest.$ac_objext conftest$ac_exeext
6170 if { (ac_try="$ac_link"
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6176 (eval "$ac_link") 2>conftest.er1
6178 grep -v '^ *+' conftest.er1 >conftest.err
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } && {
6183 test -z "$ac_c_werror_flag" ||
6184 test ! -s conftest.err
6185 } && test -s conftest$ac_exeext &&
6186 $as_test_x conftest$ac_exeext; then
6187 ac_cv_lib_m_main=yes
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6196 conftest$ac_exeext conftest.$ac_ext
6197 LIBS=$ac_check_lib_save_LIBS
6199 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6200 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6201 if test $ac_cv_lib_m_main = yes; then
6202 cat >>confdefs.h <<_ACEOF
6210 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6211 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6212 if test "${ac_cv_search_setproctitle+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 ac_func_search_save_LIBS=$LIBS
6216 cat >conftest.$ac_ext <<_ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6223 /* Override any GCC internal prototype to avoid an error.
6224 Use char because int might match the return type of a GCC
6225 builtin and then its argument prototype would still apply. */
6229 char setproctitle ();
6233 return setproctitle ();
6238 for ac_lib in '' util; do
6239 if test -z "$ac_lib"; then
6240 ac_res="none required"
6243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6245 rm -f conftest.$ac_objext conftest$ac_exeext
6246 if { (ac_try="$ac_link"
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252 (eval "$ac_link") 2>conftest.er1
6254 grep -v '^ *+' conftest.er1 >conftest.err
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } && {
6259 test -z "$ac_c_werror_flag" ||
6260 test ! -s conftest.err
6261 } && test -s conftest$ac_exeext &&
6262 $as_test_x conftest$ac_exeext; then
6263 ac_cv_search_setproctitle=$ac_res
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6273 if test "${ac_cv_search_setproctitle+set}" = set; then
6277 if test "${ac_cv_search_setproctitle+set}" = set; then
6280 ac_cv_search_setproctitle=no
6283 LIBS=$ac_func_search_save_LIBS
6285 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6286 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6287 ac_res=$ac_cv_search_setproctitle
6288 if test "$ac_res" != no; then
6289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6293 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6294 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6295 if test "${ac_cv_search_dlopen+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 ac_func_search_save_LIBS=$LIBS
6299 cat >conftest.$ac_ext <<_ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6306 /* Override any GCC internal prototype to avoid an error.
6307 Use char because int might match the return type of a GCC
6308 builtin and then its argument prototype would still apply. */
6321 for ac_lib in '' dl; do
6322 if test -z "$ac_lib"; then
6323 ac_res="none required"
6326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6328 rm -f conftest.$ac_objext conftest$ac_exeext
6329 if { (ac_try="$ac_link"
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_link") 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest$ac_exeext &&
6345 $as_test_x conftest$ac_exeext; then
6346 ac_cv_search_dlopen=$ac_res
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6356 if test "${ac_cv_search_dlopen+set}" = set; then
6360 if test "${ac_cv_search_dlopen+set}" = set; then
6363 ac_cv_search_dlopen=no
6366 LIBS=$ac_func_search_save_LIBS
6368 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6369 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6370 ac_res=$ac_cv_search_dlopen
6371 if test "$ac_res" != no; then
6372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6376 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6377 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6378 if test "${ac_cv_search_socket+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 ac_func_search_save_LIBS=$LIBS
6382 cat >conftest.$ac_ext <<_ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6389 /* Override any GCC internal prototype to avoid an error.
6390 Use char because int might match the return type of a GCC
6391 builtin and then its argument prototype would still apply. */
6404 for ac_lib in '' socket wsock32; do
6405 if test -z "$ac_lib"; then
6406 ac_res="none required"
6409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6411 rm -f conftest.$ac_objext conftest$ac_exeext
6412 if { (ac_try="$ac_link"
6414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6415 *) ac_try_echo=$ac_try;;
6417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6418 (eval "$ac_link") 2>conftest.er1
6420 grep -v '^ *+' conftest.er1 >conftest.err
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } && {
6425 test -z "$ac_c_werror_flag" ||
6426 test ! -s conftest.err
6427 } && test -s conftest$ac_exeext &&
6428 $as_test_x conftest$ac_exeext; then
6429 ac_cv_search_socket=$ac_res
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6439 if test "${ac_cv_search_socket+set}" = set; then
6443 if test "${ac_cv_search_socket+set}" = set; then
6446 ac_cv_search_socket=no
6449 LIBS=$ac_func_search_save_LIBS
6451 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6452 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6453 ac_res=$ac_cv_search_socket
6454 if test "$ac_res" != no; then
6455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6459 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6460 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6461 if test "${ac_cv_search_shl_load+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 ac_func_search_save_LIBS=$LIBS
6465 cat >conftest.$ac_ext <<_ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6472 /* Override any GCC internal prototype to avoid an error.
6473 Use char because int might match the return type of a GCC
6474 builtin and then its argument prototype would still apply. */
6487 for ac_lib in '' dld; do
6488 if test -z "$ac_lib"; then
6489 ac_res="none required"
6492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6494 rm -f conftest.$ac_objext conftest$ac_exeext
6495 if { (ac_try="$ac_link"
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_link") 2>conftest.er1
6503 grep -v '^ *+' conftest.er1 >conftest.err
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && {
6508 test -z "$ac_c_werror_flag" ||
6509 test ! -s conftest.err
6510 } && test -s conftest$ac_exeext &&
6511 $as_test_x conftest$ac_exeext; then
6512 ac_cv_search_shl_load=$ac_res
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6522 if test "${ac_cv_search_shl_load+set}" = set; then
6526 if test "${ac_cv_search_shl_load+set}" = set; then
6529 ac_cv_search_shl_load=no
6532 LIBS=$ac_func_search_save_LIBS
6534 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6535 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6536 ac_res=$ac_cv_search_shl_load
6537 if test "$ac_res" != no; then
6538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6542 # We only use libld in port/dynloader/aix.c
6545 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6546 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6547 if test "${ac_cv_search_ldopen+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 ac_func_search_save_LIBS=$LIBS
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6558 /* Override any GCC internal prototype to avoid an error.
6559 Use char because int might match the return type of a GCC
6560 builtin and then its argument prototype would still apply. */
6573 for ac_lib in '' ld; do
6574 if test -z "$ac_lib"; then
6575 ac_res="none required"
6578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (ac_try="$ac_link"
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_link") 2>conftest.er1
6589 grep -v '^ *+' conftest.er1 >conftest.err
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest$ac_exeext &&
6597 $as_test_x conftest$ac_exeext; then
6598 ac_cv_search_ldopen=$ac_res
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6608 if test "${ac_cv_search_ldopen+set}" = set; then
6612 if test "${ac_cv_search_ldopen+set}" = set; then
6615 ac_cv_search_ldopen=no
6618 LIBS=$ac_func_search_save_LIBS
6620 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6621 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
6622 ac_res=$ac_cv_search_ldopen
6623 if test "$ac_res" != no; then
6624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6630 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6631 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
6632 if test "${ac_cv_search_getopt_long+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 ac_func_search_save_LIBS=$LIBS
6636 cat >conftest.$ac_ext <<_ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6643 /* Override any GCC internal prototype to avoid an error.
6644 Use char because int might match the return type of a GCC
6645 builtin and then its argument prototype would still apply. */
6649 char getopt_long ();
6653 return getopt_long ();
6658 for ac_lib in '' getopt gnugetopt; do
6659 if test -z "$ac_lib"; then
6660 ac_res="none required"
6663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6665 rm -f conftest.$ac_objext conftest$ac_exeext
6666 if { (ac_try="$ac_link"
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_link") 2>conftest.er1
6674 grep -v '^ *+' conftest.er1 >conftest.err
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } && {
6679 test -z "$ac_c_werror_flag" ||
6680 test ! -s conftest.err
6681 } && test -s conftest$ac_exeext &&
6682 $as_test_x conftest$ac_exeext; then
6683 ac_cv_search_getopt_long=$ac_res
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6693 if test "${ac_cv_search_getopt_long+set}" = set; then
6697 if test "${ac_cv_search_getopt_long+set}" = set; then
6700 ac_cv_search_getopt_long=no
6703 LIBS=$ac_func_search_save_LIBS
6705 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6706 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
6707 ac_res=$ac_cv_search_getopt_long
6708 if test "$ac_res" != no; then
6709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6713 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
6714 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
6715 if test "${ac_cv_search_crypt+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 ac_func_search_save_LIBS=$LIBS
6719 cat >conftest.$ac_ext <<_ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6726 /* Override any GCC internal prototype to avoid an error.
6727 Use char because int might match the return type of a GCC
6728 builtin and then its argument prototype would still apply. */
6741 for ac_lib in '' crypt; do
6742 if test -z "$ac_lib"; then
6743 ac_res="none required"
6746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (ac_try="$ac_link"
6751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6752 *) ac_try_echo=$ac_try;;
6754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6755 (eval "$ac_link") 2>conftest.er1
6757 grep -v '^ *+' conftest.er1 >conftest.err
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } && {
6762 test -z "$ac_c_werror_flag" ||
6763 test ! -s conftest.err
6764 } && test -s conftest$ac_exeext &&
6765 $as_test_x conftest$ac_exeext; then
6766 ac_cv_search_crypt=$ac_res
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6776 if test "${ac_cv_search_crypt+set}" = set; then
6780 if test "${ac_cv_search_crypt+set}" = set; then
6783 ac_cv_search_crypt=no
6786 LIBS=$ac_func_search_save_LIBS
6788 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6789 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
6790 ac_res=$ac_cv_search_crypt
6791 if test "$ac_res" != no; then
6792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6797 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6798 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
6799 if test "${ac_cv_search_fdatasync+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 ac_func_search_save_LIBS=$LIBS
6803 cat >conftest.$ac_ext <<_ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6810 /* Override any GCC internal prototype to avoid an error.
6811 Use char because int might match the return type of a GCC
6812 builtin and then its argument prototype would still apply. */
6820 return fdatasync ();
6825 for ac_lib in '' rt posix4; do
6826 if test -z "$ac_lib"; then
6827 ac_res="none required"
6830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6832 rm -f conftest.$ac_objext conftest$ac_exeext
6833 if { (ac_try="$ac_link"
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_link") 2>conftest.er1
6841 grep -v '^ *+' conftest.er1 >conftest.err
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest$ac_exeext &&
6849 $as_test_x conftest$ac_exeext; then
6850 ac_cv_search_fdatasync=$ac_res
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6860 if test "${ac_cv_search_fdatasync+set}" = set; then
6864 if test "${ac_cv_search_fdatasync+set}" = set; then
6867 ac_cv_search_fdatasync=no
6870 LIBS=$ac_func_search_save_LIBS
6872 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6873 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
6874 ac_res=$ac_cv_search_fdatasync
6875 if test "$ac_res" != no; then
6876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6881 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
6882 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
6883 if test "${ac_cv_search_shmget+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 ac_func_search_save_LIBS=$LIBS
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6894 /* Override any GCC internal prototype to avoid an error.
6895 Use char because int might match the return type of a GCC
6896 builtin and then its argument prototype would still apply. */
6909 for ac_lib in '' cygipc; do
6910 if test -z "$ac_lib"; then
6911 ac_res="none required"
6914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6916 rm -f conftest.$ac_objext conftest$ac_exeext
6917 if { (ac_try="$ac_link"
6919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920 *) ac_try_echo=$ac_try;;
6922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923 (eval "$ac_link") 2>conftest.er1
6925 grep -v '^ *+' conftest.er1 >conftest.err
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } && {
6930 test -z "$ac_c_werror_flag" ||
6931 test ! -s conftest.err
6932 } && test -s conftest$ac_exeext &&
6933 $as_test_x conftest$ac_exeext; then
6934 ac_cv_search_shmget=$ac_res
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6944 if test "${ac_cv_search_shmget+set}" = set; then
6948 if test "${ac_cv_search_shmget+set}" = set; then
6951 ac_cv_search_shmget=no
6954 LIBS=$ac_func_search_save_LIBS
6956 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6957 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
6958 ac_res=$ac_cv_search_shmget
6959 if test "$ac_res" != no; then
6960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6965 if test "$with_readline" = yes; then
6968 if test "${pgac_cv_check_readline+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 pgac_cv_check_readline=no
6972 pgac_save_LIBS=$LIBS
6973 if test x"$with_libedit_preferred" != x"yes"
6974 then READLINE_ORDER="-lreadline -ledit"
6975 else READLINE_ORDER="-ledit -lreadline"
6977 for pgac_rllib in $READLINE_ORDER ; do
6978 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6979 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
6980 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6981 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6982 cat >conftest.$ac_ext <<_ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6989 /* Override any GCC internal prototype to avoid an error.
6990 Use char because int might match the return type of a GCC
6991 builtin and then its argument prototype would still apply. */
7004 rm -f conftest.$ac_objext conftest$ac_exeext
7005 if { (ac_try="$ac_link"
7007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008 *) ac_try_echo=$ac_try;;
7010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7011 (eval "$ac_link") 2>conftest.er1
7013 grep -v '^ *+' conftest.er1 >conftest.err
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } && {
7018 test -z "$ac_c_werror_flag" ||
7019 test ! -s conftest.err
7020 } && test -s conftest$ac_exeext &&
7021 $as_test_x conftest$ac_exeext; then
7023 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7024 # recognize dependent libraries; assume curses is needed if we didn't
7025 # find any dependency.
7027 netbsd* | openbsd* | irix*)
7028 if test x"$pgac_lib" = x"" ; then
7029 pgac_lib=" -lcurses"
7033 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7044 conftest$ac_exeext conftest.$ac_ext
7046 if test "$pgac_cv_check_readline" != no ; then
7047 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7048 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7055 LIBS=$pgac_save_LIBS
7059 if test "$pgac_cv_check_readline" != no ; then
7060 LIBS="$pgac_cv_check_readline $LIBS"
7062 cat >>confdefs.h <<\_ACEOF
7063 #define HAVE_LIBREADLINE 1
7069 if test x"$pgac_cv_check_readline" = x"no"; then
7070 { { echo "$as_me:$LINENO: error: readline library not found
7071 If you have readline already installed, see config.log for details on the
7072 failure. It is possible the compiler isn't looking in the proper directory.
7073 Use --without-readline to disable readline support." >&5
7074 echo "$as_me: error: readline library not found
7075 If you have readline already installed, see config.log for details on the
7076 failure. It is possible the compiler isn't looking in the proper directory.
7077 Use --without-readline to disable readline support." >&2;}
7078 { (exit 1); exit 1; }; }
7082 if test "$with_zlib" = yes; then
7084 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7085 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7086 if test "${ac_cv_lib_z_inflate+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 ac_check_lib_save_LIBS=$LIBS
7091 cat >conftest.$ac_ext <<_ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7098 /* Override any GCC internal prototype to avoid an error.
7099 Use char because int might match the return type of a GCC
7100 builtin and then its argument prototype would still apply. */
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (ac_try="$ac_link"
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_link") 2>conftest.er1
7122 grep -v '^ *+' conftest.er1 >conftest.err
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest$ac_exeext &&
7130 $as_test_x conftest$ac_exeext; then
7131 ac_cv_lib_z_inflate=yes
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_cv_lib_z_inflate=no
7139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7140 conftest$ac_exeext conftest.$ac_ext
7141 LIBS=$ac_check_lib_save_LIBS
7143 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7144 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7145 if test $ac_cv_lib_z_inflate = yes; then
7146 cat >>confdefs.h <<_ACEOF
7153 { { echo "$as_me:$LINENO: error: zlib library not found
7154 If you have zlib already installed, see config.log for details on the
7155 failure. It is possible the compiler isn't looking in the proper directory.
7156 Use --without-zlib to disable zlib support." >&5
7157 echo "$as_me: error: zlib library not found
7158 If you have zlib already installed, see config.log for details on the
7159 failure. It is possible the compiler isn't looking in the proper directory.
7160 Use --without-zlib to disable zlib support." >&2;}
7161 { (exit 1); exit 1; }; }
7166 if test "$enable_spinlocks" = yes; then
7168 cat >>confdefs.h <<\_ACEOF
7169 #define HAVE_SPINLOCKS 1
7173 { echo "$as_me:$LINENO: WARNING:
7174 *** Not using spinlocks will cause poor performance." >&5
7175 echo "$as_me: WARNING:
7176 *** Not using spinlocks will cause poor performance." >&2;}
7179 if test "$with_gssapi" = yes ; then
7180 if test "$PORTNAME" != "win32"; then
7181 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7182 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7183 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 ac_func_search_save_LIBS=$LIBS
7187 cat >conftest.$ac_ext <<_ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7194 /* Override any GCC internal prototype to avoid an error.
7195 Use char because int might match the return type of a GCC
7196 builtin and then its argument prototype would still apply. */
7200 char gss_init_sec_context ();
7204 return gss_init_sec_context ();
7209 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7210 if test -z "$ac_lib"; then
7211 ac_res="none required"
7214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7216 rm -f conftest.$ac_objext conftest$ac_exeext
7217 if { (ac_try="$ac_link"
7219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7220 *) ac_try_echo=$ac_try;;
7222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7223 (eval "$ac_link") 2>conftest.er1
7225 grep -v '^ *+' conftest.er1 >conftest.err
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } && {
7230 test -z "$ac_c_werror_flag" ||
7231 test ! -s conftest.err
7232 } && test -s conftest$ac_exeext &&
7233 $as_test_x conftest$ac_exeext; then
7234 ac_cv_search_gss_init_sec_context=$ac_res
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7244 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7248 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7251 ac_cv_search_gss_init_sec_context=no
7254 LIBS=$ac_func_search_save_LIBS
7256 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7257 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7258 ac_res=$ac_cv_search_gss_init_sec_context
7259 if test "$ac_res" != no; then
7260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7263 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7264 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7265 { (exit 1); exit 1; }; }
7269 LIBS="$LIBS -lgssapi32"
7273 if test "$with_krb5" = yes ; then
7274 if test "$PORTNAME" != "win32"; then
7275 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7276 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7277 if test "${ac_cv_search_com_err+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 ac_func_search_save_LIBS=$LIBS
7281 cat >conftest.$ac_ext <<_ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7288 /* Override any GCC internal prototype to avoid an error.
7289 Use char because int might match the return type of a GCC
7290 builtin and then its argument prototype would still apply. */
7303 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7304 if test -z "$ac_lib"; then
7305 ac_res="none required"
7308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7310 rm -f conftest.$ac_objext conftest$ac_exeext
7311 if { (ac_try="$ac_link"
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_link") 2>conftest.er1
7319 grep -v '^ *+' conftest.er1 >conftest.err
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } && {
7324 test -z "$ac_c_werror_flag" ||
7325 test ! -s conftest.err
7326 } && test -s conftest$ac_exeext &&
7327 $as_test_x conftest$ac_exeext; then
7328 ac_cv_search_com_err=$ac_res
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7338 if test "${ac_cv_search_com_err+set}" = set; then
7342 if test "${ac_cv_search_com_err+set}" = set; then
7345 ac_cv_search_com_err=no
7348 LIBS=$ac_func_search_save_LIBS
7350 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7351 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7352 ac_res=$ac_cv_search_com_err
7353 if test "$ac_res" != no; then
7354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7357 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7358 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7359 { (exit 1); exit 1; }; }
7362 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7363 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7364 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 ac_func_search_save_LIBS=$LIBS
7368 cat >conftest.$ac_ext <<_ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7375 /* Override any GCC internal prototype to avoid an error.
7376 Use char because int might match the return type of a GCC
7377 builtin and then its argument prototype would still apply. */
7381 char krb5_sendauth ();
7385 return krb5_sendauth ();
7390 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7391 if test -z "$ac_lib"; then
7392 ac_res="none required"
7395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7397 rm -f conftest.$ac_objext conftest$ac_exeext
7398 if { (ac_try="$ac_link"
7400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401 *) ac_try_echo=$ac_try;;
7403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404 (eval "$ac_link") 2>conftest.er1
7406 grep -v '^ *+' conftest.er1 >conftest.err
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } && {
7411 test -z "$ac_c_werror_flag" ||
7412 test ! -s conftest.err
7413 } && test -s conftest$ac_exeext &&
7414 $as_test_x conftest$ac_exeext; then
7415 ac_cv_search_krb5_sendauth=$ac_res
7417 echo "$as_me: failed program was:" >&5
7418 sed 's/^/| /' conftest.$ac_ext >&5
7423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7425 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7429 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7432 ac_cv_search_krb5_sendauth=no
7435 LIBS=$ac_func_search_save_LIBS
7437 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7438 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7439 ac_res=$ac_cv_search_krb5_sendauth
7440 if test "$ac_res" != no; then
7441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7444 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7445 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7446 { (exit 1); exit 1; }; }
7450 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7451 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7452 if test "${ac_cv_search_com_err+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 ac_func_search_save_LIBS=$LIBS
7456 cat >conftest.$ac_ext <<_ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7463 /* Override any GCC internal prototype to avoid an error.
7464 Use char because int might match the return type of a GCC
7465 builtin and then its argument prototype would still apply. */
7478 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7479 if test -z "$ac_lib"; then
7480 ac_res="none required"
7483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7485 rm -f conftest.$ac_objext conftest$ac_exeext
7486 if { (ac_try="$ac_link"
7488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7489 *) ac_try_echo=$ac_try;;
7491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7492 (eval "$ac_link") 2>conftest.er1
7494 grep -v '^ *+' conftest.er1 >conftest.err
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } && {
7499 test -z "$ac_c_werror_flag" ||
7500 test ! -s conftest.err
7501 } && test -s conftest$ac_exeext &&
7502 $as_test_x conftest$ac_exeext; then
7503 ac_cv_search_com_err=$ac_res
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7513 if test "${ac_cv_search_com_err+set}" = set; then
7517 if test "${ac_cv_search_com_err+set}" = set; then
7520 ac_cv_search_com_err=no
7523 LIBS=$ac_func_search_save_LIBS
7525 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7526 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7527 ac_res=$ac_cv_search_com_err
7528 if test "$ac_res" != no; then
7529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7532 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7533 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7534 { (exit 1); exit 1; }; }
7540 if test "$with_openssl" = yes ; then
7541 if test "$PORTNAME" != "win32"; then
7543 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7544 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7545 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 ac_check_lib_save_LIBS=$LIBS
7549 LIBS="-lcrypto $LIBS"
7550 cat >conftest.$ac_ext <<_ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7557 /* Override any GCC internal prototype to avoid an error.
7558 Use char because int might match the return type of a GCC
7559 builtin and then its argument prototype would still apply. */
7563 char CRYPTO_new_ex_data ();
7567 return CRYPTO_new_ex_data ();
7572 rm -f conftest.$ac_objext conftest$ac_exeext
7573 if { (ac_try="$ac_link"
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_link") 2>conftest.er1
7581 grep -v '^ *+' conftest.er1 >conftest.err
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest$ac_exeext &&
7589 $as_test_x conftest$ac_exeext; then
7590 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7599 conftest$ac_exeext conftest.$ac_ext
7600 LIBS=$ac_check_lib_save_LIBS
7602 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7603 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
7604 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7605 cat >>confdefs.h <<_ACEOF
7606 #define HAVE_LIBCRYPTO 1
7609 LIBS="-lcrypto $LIBS"
7612 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7613 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7614 { (exit 1); exit 1; }; }
7618 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7619 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
7620 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 ac_check_lib_save_LIBS=$LIBS
7625 cat >conftest.$ac_ext <<_ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7632 /* Override any GCC internal prototype to avoid an error.
7633 Use char because int might match the return type of a GCC
7634 builtin and then its argument prototype would still apply. */
7638 char SSL_library_init ();
7642 return SSL_library_init ();
7647 rm -f conftest.$ac_objext conftest$ac_exeext
7648 if { (ac_try="$ac_link"
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654 (eval "$ac_link") 2>conftest.er1
7656 grep -v '^ *+' conftest.er1 >conftest.err
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } && {
7661 test -z "$ac_c_werror_flag" ||
7662 test ! -s conftest.err
7663 } && test -s conftest$ac_exeext &&
7664 $as_test_x conftest$ac_exeext; then
7665 ac_cv_lib_ssl_SSL_library_init=yes
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 ac_cv_lib_ssl_SSL_library_init=no
7673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7674 conftest$ac_exeext conftest.$ac_ext
7675 LIBS=$ac_check_lib_save_LIBS
7677 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7678 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
7679 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7680 cat >>confdefs.h <<_ACEOF
7681 #define HAVE_LIBSSL 1
7687 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7688 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7689 { (exit 1); exit 1; }; }
7694 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7695 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
7696 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 ac_check_lib_save_LIBS=$LIBS
7700 LIBS="-leay32 $LIBS"
7701 cat >conftest.$ac_ext <<_ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7708 /* Override any GCC internal prototype to avoid an error.
7709 Use char because int might match the return type of a GCC
7710 builtin and then its argument prototype would still apply. */
7714 char CRYPTO_new_ex_data ();
7718 return CRYPTO_new_ex_data ();
7723 rm -f conftest.$ac_objext conftest$ac_exeext
7724 if { (ac_try="$ac_link"
7726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7727 *) ac_try_echo=$ac_try;;
7729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7730 (eval "$ac_link") 2>conftest.er1
7732 grep -v '^ *+' conftest.er1 >conftest.err
7734 cat conftest.err >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } && {
7737 test -z "$ac_c_werror_flag" ||
7738 test ! -s conftest.err
7739 } && test -s conftest$ac_exeext &&
7740 $as_test_x conftest$ac_exeext; then
7741 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7746 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7750 conftest$ac_exeext conftest.$ac_ext
7751 LIBS=$ac_check_lib_save_LIBS
7753 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7754 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
7755 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7756 cat >>confdefs.h <<_ACEOF
7757 #define HAVE_LIBEAY32 1
7760 LIBS="-leay32 $LIBS"
7763 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7764 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7765 { (exit 1); exit 1; }; }
7769 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7770 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
7771 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 ac_check_lib_save_LIBS=$LIBS
7775 LIBS="-lssleay32 $LIBS"
7776 cat >conftest.$ac_ext <<_ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7783 /* Override any GCC internal prototype to avoid an error.
7784 Use char because int might match the return type of a GCC
7785 builtin and then its argument prototype would still apply. */
7789 char SSL_library_init ();
7793 return SSL_library_init ();
7798 rm -f conftest.$ac_objext conftest$ac_exeext
7799 if { (ac_try="$ac_link"
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_link") 2>conftest.er1
7807 grep -v '^ *+' conftest.er1 >conftest.err
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } && {
7812 test -z "$ac_c_werror_flag" ||
7813 test ! -s conftest.err
7814 } && test -s conftest$ac_exeext &&
7815 $as_test_x conftest$ac_exeext; then
7816 ac_cv_lib_ssleay32_SSL_library_init=yes
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 ac_cv_lib_ssleay32_SSL_library_init=no
7824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7825 conftest$ac_exeext conftest.$ac_ext
7826 LIBS=$ac_check_lib_save_LIBS
7828 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7829 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
7830 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7831 cat >>confdefs.h <<_ACEOF
7832 #define HAVE_LIBSSLEAY32 1
7835 LIBS="-lssleay32 $LIBS"
7838 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7839 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7840 { (exit 1); exit 1; }; }
7846 if test "$with_pam" = yes ; then
7848 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7849 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
7850 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 ac_check_lib_save_LIBS=$LIBS
7855 cat >conftest.$ac_ext <<_ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7862 /* Override any GCC internal prototype to avoid an error.
7863 Use char because int might match the return type of a GCC
7864 builtin and then its argument prototype would still apply. */
7872 return pam_start ();
7877 rm -f conftest.$ac_objext conftest$ac_exeext
7878 if { (ac_try="$ac_link"
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_link") 2>conftest.er1
7886 grep -v '^ *+' conftest.er1 >conftest.err
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } && {
7891 test -z "$ac_c_werror_flag" ||
7892 test ! -s conftest.err
7893 } && test -s conftest$ac_exeext &&
7894 $as_test_x conftest$ac_exeext; then
7895 ac_cv_lib_pam_pam_start=yes
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 ac_cv_lib_pam_pam_start=no
7903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7904 conftest$ac_exeext conftest.$ac_ext
7905 LIBS=$ac_check_lib_save_LIBS
7907 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7908 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
7909 if test $ac_cv_lib_pam_pam_start = yes; then
7910 cat >>confdefs.h <<_ACEOF
7911 #define HAVE_LIBPAM 1
7917 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7918 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7919 { (exit 1); exit 1; }; }
7924 if test "$with_libxml" = yes ; then
7926 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
7927 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
7928 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 ac_check_lib_save_LIBS=$LIBS
7933 cat >conftest.$ac_ext <<_ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7940 /* Override any GCC internal prototype to avoid an error.
7941 Use char because int might match the return type of a GCC
7942 builtin and then its argument prototype would still apply. */
7946 char xmlSaveToBuffer ();
7950 return xmlSaveToBuffer ();
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>conftest.er1
7964 grep -v '^ *+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest$ac_exeext &&
7972 $as_test_x conftest$ac_exeext; then
7973 ac_cv_lib_xml2_xmlSaveToBuffer=yes
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7978 ac_cv_lib_xml2_xmlSaveToBuffer=no
7981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7982 conftest$ac_exeext conftest.$ac_ext
7983 LIBS=$ac_check_lib_save_LIBS
7985 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
7986 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
7987 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
7988 cat >>confdefs.h <<_ACEOF
7989 #define HAVE_LIBXML2 1
7995 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
7996 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
7997 { (exit 1); exit 1; }; }
8002 if test "$with_libxslt" = yes ; then
8004 { echo "$as_me:$LINENO: checking for xsltLibxmlVersion in -lxslt" >&5
8005 echo $ECHO_N "checking for xsltLibxmlVersion in -lxslt... $ECHO_C" >&6; }
8006 if test "${ac_cv_lib_xslt_xsltLibxmlVersion+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 ac_check_lib_save_LIBS=$LIBS
8011 cat >conftest.$ac_ext <<_ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8018 /* Override any GCC internal prototype to avoid an error.
8019 Use char because int might match the return type of a GCC
8020 builtin and then its argument prototype would still apply. */
8024 char xsltLibxmlVersion ();
8028 return xsltLibxmlVersion ();
8033 rm -f conftest.$ac_objext conftest$ac_exeext
8034 if { (ac_try="$ac_link"
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_link") 2>conftest.er1
8042 grep -v '^ *+' conftest.er1 >conftest.err
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } && {
8047 test -z "$ac_c_werror_flag" ||
8048 test ! -s conftest.err
8049 } && test -s conftest$ac_exeext &&
8050 $as_test_x conftest$ac_exeext; then
8051 ac_cv_lib_xslt_xsltLibxmlVersion=yes
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8056 ac_cv_lib_xslt_xsltLibxmlVersion=no
8059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8060 conftest$ac_exeext conftest.$ac_ext
8061 LIBS=$ac_check_lib_save_LIBS
8063 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltLibxmlVersion" >&5
8064 echo "${ECHO_T}$ac_cv_lib_xslt_xsltLibxmlVersion" >&6; }
8065 if test $ac_cv_lib_xslt_xsltLibxmlVersion = yes; then
8066 cat >>confdefs.h <<_ACEOF
8067 #define HAVE_LIBXSLT 1
8073 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8074 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8075 { (exit 1); exit 1; }; }
8080 # for contrib/uuid-ossp
8081 if test "$with_ossp_uuid" = yes ; then
8082 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8083 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8084 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 ac_check_lib_save_LIBS=$LIBS
8088 LIBS="-lossp-uuid $LIBS"
8089 cat >conftest.$ac_ext <<_ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8096 /* Override any GCC internal prototype to avoid an error.
8097 Use char because int might match the return type of a GCC
8098 builtin and then its argument prototype would still apply. */
8102 char uuid_export ();
8106 return uuid_export ();
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_link") 2>conftest.er1
8120 grep -v '^ *+' conftest.er1 >conftest.err
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } && {
8125 test -z "$ac_c_werror_flag" ||
8126 test ! -s conftest.err
8127 } && test -s conftest$ac_exeext &&
8128 $as_test_x conftest$ac_exeext; then
8129 ac_cv_lib_ossp_uuid_uuid_export=yes
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8134 ac_cv_lib_ossp_uuid_uuid_export=no
8137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8138 conftest$ac_exeext conftest.$ac_ext
8139 LIBS=$ac_check_lib_save_LIBS
8141 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8142 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8143 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8144 OSSP_UUID_LIBS="-lossp-uuid"
8146 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8147 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8148 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 ac_check_lib_save_LIBS=$LIBS
8153 cat >conftest.$ac_ext <<_ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8160 /* Override any GCC internal prototype to avoid an error.
8161 Use char because int might match the return type of a GCC
8162 builtin and then its argument prototype would still apply. */
8166 char uuid_export ();
8170 return uuid_export ();
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (ac_try="$ac_link"
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_link") 2>conftest.er1
8184 grep -v '^ *+' conftest.er1 >conftest.err
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } && {
8189 test -z "$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 } && test -s conftest$ac_exeext &&
8192 $as_test_x conftest$ac_exeext; then
8193 ac_cv_lib_uuid_uuid_export=yes
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_cv_lib_uuid_uuid_export=no
8201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8202 conftest$ac_exeext conftest.$ac_ext
8203 LIBS=$ac_check_lib_save_LIBS
8205 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8206 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8207 if test $ac_cv_lib_uuid_uuid_export = yes; then
8208 OSSP_UUID_LIBS="-luuid"
8210 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8211 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8212 { (exit 1); exit 1; }; }
8225 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8226 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8227 if test "${ac_cv_header_stdc+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 cat >conftest.$ac_ext <<_ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8249 rm -f conftest.$ac_objext
8250 if { (ac_try="$ac_compile"
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_compile") 2>conftest.er1
8258 grep -v '^ *+' conftest.er1 >conftest.err
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest.$ac_objext; then
8266 ac_cv_header_stdc=yes
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 ac_cv_header_stdc=no
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8276 if test $ac_cv_header_stdc = yes; then
8277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8288 $EGREP "memchr" >/dev/null 2>&1; then
8291 ac_cv_header_stdc=no
8297 if test $ac_cv_header_stdc = yes; then
8298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8299 cat >conftest.$ac_ext <<_ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8309 $EGREP "free" >/dev/null 2>&1; then
8312 ac_cv_header_stdc=no
8318 if test $ac_cv_header_stdc = yes; then
8319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8320 if test "$cross_compiling" = yes; then
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8331 #if ((' ' & 0x0FF) == 0x020)
8332 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8333 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8335 # define ISLOWER(c) \
8336 (('a' <= (c) && (c) <= 'i') \
8337 || ('j' <= (c) && (c) <= 'r') \
8338 || ('s' <= (c) && (c) <= 'z'))
8339 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8342 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8347 for (i = 0; i < 256; i++)
8348 if (XOR (islower (i), ISLOWER (i))
8349 || toupper (i) != TOUPPER (i))
8354 rm -f conftest$ac_exeext
8355 if { (ac_try="$ac_link"
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_link") 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8365 { (case "(($ac_try" in
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_try") 2>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; }; then
8376 echo "$as_me: program exited with status $ac_status" >&5
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8381 ac_cv_header_stdc=no
8383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8389 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8390 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8391 if test $ac_cv_header_stdc = yes; then
8393 cat >>confdefs.h <<\_ACEOF
8394 #define STDC_HEADERS 1
8399 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8409 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8410 inttypes.h stdint.h unistd.h
8412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 cat >conftest.$ac_ext <<_ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8424 $ac_includes_default
8426 #include <$ac_header>
8428 rm -f conftest.$ac_objext
8429 if { (ac_try="$ac_compile"
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_compile") 2>conftest.er1
8437 grep -v '^ *+' conftest.er1 >conftest.err
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest.$ac_objext; then
8445 eval "$as_ac_Header=yes"
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8450 eval "$as_ac_Header=no"
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 ac_res=`eval echo '${'$as_ac_Header'}'`
8456 { echo "$as_me:$LINENO: result: $ac_res" >&5
8457 echo "${ECHO_T}$ac_res" >&6; }
8458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8459 cat >>confdefs.h <<_ACEOF
8460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8494 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
8496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 ac_res=`eval echo '${'$as_ac_Header'}'`
8504 { echo "$as_me:$LINENO: result: $ac_res" >&5
8505 echo "${ECHO_T}$ac_res" >&6; }
8507 # Is the header compilable?
8508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8510 cat >conftest.$ac_ext <<_ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 $ac_includes_default
8517 #include <$ac_header>
8519 rm -f conftest.$ac_objext
8520 if { (ac_try="$ac_compile"
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_compile") 2>conftest.er1
8528 grep -v '^ *+' conftest.er1 >conftest.err
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } && {
8533 test -z "$ac_c_werror_flag" ||
8534 test ! -s conftest.err
8535 } && test -s conftest.$ac_objext; then
8536 ac_header_compiler=yes
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 ac_header_compiler=no
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8546 echo "${ECHO_T}$ac_header_compiler" >&6; }
8548 # Is the header present?
8549 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 #include <$ac_header>
8559 if { (ac_try="$ac_cpp conftest.$ac_ext"
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8567 grep -v '^ *+' conftest.er1 >conftest.err
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } >/dev/null && {
8572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8573 test ! -s conftest.err
8575 ac_header_preproc=yes
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 ac_header_preproc=no
8583 rm -f conftest.err conftest.$ac_ext
8584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8585 echo "${ECHO_T}$ac_header_preproc" >&6; }
8587 # So? What about this header?
8588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8594 ac_header_preproc=yes
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8610 ## ---------------------------------------- ##
8611 ## Report this to pgsql-bugs@postgresql.org ##
8612 ## ---------------------------------------- ##
8614 ) | sed "s/^/$as_me: WARNING: /" >&2
8617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 eval "$as_ac_Header=\$ac_header_preproc"
8624 ac_res=`eval echo '${'$as_ac_Header'}'`
8625 { echo "$as_me:$LINENO: result: $ac_res" >&5
8626 echo "${ECHO_T}$ac_res" >&6; }
8629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8630 cat >>confdefs.h <<_ACEOF
8631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8639 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8640 # netinet/in.h is included first.
8642 for ac_header in netinet/in.h
8644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 ac_res=`eval echo '${'$as_ac_Header'}'`
8652 { echo "$as_me:$LINENO: result: $ac_res" >&5
8653 echo "${ECHO_T}$ac_res" >&6; }
8655 # Is the header compilable?
8656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8658 cat >conftest.$ac_ext <<_ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8664 $ac_includes_default
8665 #include <$ac_header>
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_compile") 2>conftest.er1
8676 grep -v '^ *+' conftest.er1 >conftest.err
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest.$ac_objext; then
8684 ac_header_compiler=yes
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 ac_header_compiler=no
8692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8694 echo "${ECHO_T}$ac_header_compiler" >&6; }
8696 # Is the header present?
8697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8699 cat >conftest.$ac_ext <<_ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 #include <$ac_header>
8707 if { (ac_try="$ac_cpp conftest.$ac_ext"
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8715 grep -v '^ *+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } >/dev/null && {
8720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8723 ac_header_preproc=yes
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_header_preproc=no
8731 rm -f conftest.err conftest.$ac_ext
8732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8733 echo "${ECHO_T}$ac_header_preproc" >&6; }
8735 # So? What about this header?
8736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8742 ac_header_preproc=yes
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8758 ## ---------------------------------------- ##
8759 ## Report this to pgsql-bugs@postgresql.org ##
8760 ## ---------------------------------------- ##
8762 ) | sed "s/^/$as_me: WARNING: /" >&2
8765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 eval "$as_ac_Header=\$ac_header_preproc"
8772 ac_res=`eval echo '${'$as_ac_Header'}'`
8773 { echo "$as_me:$LINENO: result: $ac_res" >&5
8774 echo "${ECHO_T}$ac_res" >&6; }
8777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8778 cat >>confdefs.h <<_ACEOF
8779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8787 for ac_header in netinet/tcp.h
8789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 $ac_includes_default
8802 #ifdef HAVE_NETINET_IN_H
8803 #include <netinet/in.h>
8807 #include <$ac_header>
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_compile") 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } && {
8823 test -z "$ac_c_werror_flag" ||
8824 test ! -s conftest.err
8825 } && test -s conftest.$ac_objext; then
8826 eval "$as_ac_Header=yes"
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 eval "$as_ac_Header=no"
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 ac_res=`eval echo '${'$as_ac_Header'}'`
8837 { echo "$as_me:$LINENO: result: $ac_res" >&5
8838 echo "${ECHO_T}$ac_res" >&6; }
8839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8840 cat >>confdefs.h <<_ACEOF
8841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8849 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8851 for ac_header in readline/readline.h
8853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 ac_res=`eval echo '${'$as_ac_Header'}'`
8861 { echo "$as_me:$LINENO: result: $ac_res" >&5
8862 echo "${ECHO_T}$ac_res" >&6; }
8864 # Is the header compilable?
8865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8867 cat >conftest.$ac_ext <<_ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 $ac_includes_default
8874 #include <$ac_header>
8876 rm -f conftest.$ac_objext
8877 if { (ac_try="$ac_compile"
8879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8880 *) ac_try_echo=$ac_try;;
8882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8883 (eval "$ac_compile") 2>conftest.er1
8885 grep -v '^ *+' conftest.er1 >conftest.err
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } && {
8890 test -z "$ac_c_werror_flag" ||
8891 test ! -s conftest.err
8892 } && test -s conftest.$ac_objext; then
8893 ac_header_compiler=yes
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 ac_header_compiler=no
8901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8903 echo "${ECHO_T}$ac_header_compiler" >&6; }
8905 # Is the header present?
8906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8908 cat >conftest.$ac_ext <<_ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8914 #include <$ac_header>
8916 if { (ac_try="$ac_cpp conftest.$ac_ext"
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8924 grep -v '^ *+' conftest.er1 >conftest.err
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } >/dev/null && {
8929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8932 ac_header_preproc=yes
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8937 ac_header_preproc=no
8940 rm -f conftest.err conftest.$ac_ext
8941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8942 echo "${ECHO_T}$ac_header_preproc" >&6; }
8944 # So? What about this header?
8945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8951 ac_header_preproc=yes
8954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8967 ## ---------------------------------------- ##
8968 ## Report this to pgsql-bugs@postgresql.org ##
8969 ## ---------------------------------------- ##
8971 ) | sed "s/^/$as_me: WARNING: /" >&2
8974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 eval "$as_ac_Header=\$ac_header_preproc"
8981 ac_res=`eval echo '${'$as_ac_Header'}'`
8982 { echo "$as_me:$LINENO: result: $ac_res" >&5
8983 echo "${ECHO_T}$ac_res" >&6; }
8986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8987 cat >>confdefs.h <<_ACEOF
8988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8993 for ac_header in readline.h
8995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 ac_res=`eval echo '${'$as_ac_Header'}'`
9003 { echo "$as_me:$LINENO: result: $ac_res" >&5
9004 echo "${ECHO_T}$ac_res" >&6; }
9006 # Is the header compilable?
9007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9009 cat >conftest.$ac_ext <<_ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015 $ac_includes_default
9016 #include <$ac_header>
9018 rm -f conftest.$ac_objext
9019 if { (ac_try="$ac_compile"
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_compile") 2>conftest.er1
9027 grep -v '^ *+' conftest.er1 >conftest.err
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } && {
9032 test -z "$ac_c_werror_flag" ||
9033 test ! -s conftest.err
9034 } && test -s conftest.$ac_objext; then
9035 ac_header_compiler=yes
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9040 ac_header_compiler=no
9043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9045 echo "${ECHO_T}$ac_header_compiler" >&6; }
9047 # Is the header present?
9048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9050 cat >conftest.$ac_ext <<_ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056 #include <$ac_header>
9058 if { (ac_try="$ac_cpp conftest.$ac_ext"
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } >/dev/null && {
9071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9072 test ! -s conftest.err
9074 ac_header_preproc=yes
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9079 ac_header_preproc=no
9082 rm -f conftest.err conftest.$ac_ext
9083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9084 echo "${ECHO_T}$ac_header_preproc" >&6; }
9086 # So? What about this header?
9087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9093 ac_header_preproc=yes
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9109 ## ---------------------------------------- ##
9110 ## Report this to pgsql-bugs@postgresql.org ##
9111 ## ---------------------------------------- ##
9113 ) | sed "s/^/$as_me: WARNING: /" >&2
9116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 eval "$as_ac_Header=\$ac_header_preproc"
9123 ac_res=`eval echo '${'$as_ac_Header'}'`
9124 { echo "$as_me:$LINENO: result: $ac_res" >&5
9125 echo "${ECHO_T}$ac_res" >&6; }
9128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9129 cat >>confdefs.h <<_ACEOF
9130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9134 { { echo "$as_me:$LINENO: error: readline header not found
9135 If you have readline already installed, see config.log for details on the
9136 failure. It is possible the compiler isn't looking in the proper directory.
9137 Use --without-readline to disable readline support." >&5
9138 echo "$as_me: error: readline header not found
9139 If you have readline already installed, see config.log for details on the
9140 failure. It is possible the compiler isn't looking in the proper directory.
9141 Use --without-readline to disable readline support." >&2;}
9142 { (exit 1); exit 1; }; }
9152 for ac_header in readline/history.h
9154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 ac_res=`eval echo '${'$as_ac_Header'}'`
9162 { echo "$as_me:$LINENO: result: $ac_res" >&5
9163 echo "${ECHO_T}$ac_res" >&6; }
9165 # Is the header compilable?
9166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9168 cat >conftest.$ac_ext <<_ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 $ac_includes_default
9175 #include <$ac_header>
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9186 grep -v '^ *+' conftest.er1 >conftest.err
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && {
9191 test -z "$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 } && test -s conftest.$ac_objext; then
9194 ac_header_compiler=yes
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 ac_header_compiler=no
9202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9204 echo "${ECHO_T}$ac_header_compiler" >&6; }
9206 # Is the header present?
9207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9209 cat >conftest.$ac_ext <<_ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 #include <$ac_header>
9217 if { (ac_try="$ac_cpp conftest.$ac_ext"
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9225 grep -v '^ *+' conftest.er1 >conftest.err
9227 cat conftest.err >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } >/dev/null && {
9230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9231 test ! -s conftest.err
9233 ac_header_preproc=yes
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 ac_header_preproc=no
9241 rm -f conftest.err conftest.$ac_ext
9242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9243 echo "${ECHO_T}$ac_header_preproc" >&6; }
9245 # So? What about this header?
9246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9252 ac_header_preproc=yes
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9268 ## ---------------------------------------- ##
9269 ## Report this to pgsql-bugs@postgresql.org ##
9270 ## ---------------------------------------- ##
9272 ) | sed "s/^/$as_me: WARNING: /" >&2
9275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 eval "$as_ac_Header=\$ac_header_preproc"
9282 ac_res=`eval echo '${'$as_ac_Header'}'`
9283 { echo "$as_me:$LINENO: result: $ac_res" >&5
9284 echo "${ECHO_T}$ac_res" >&6; }
9287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9288 cat >>confdefs.h <<_ACEOF
9289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9294 for ac_header in history.h
9296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 ac_res=`eval echo '${'$as_ac_Header'}'`
9304 { echo "$as_me:$LINENO: result: $ac_res" >&5
9305 echo "${ECHO_T}$ac_res" >&6; }
9307 # Is the header compilable?
9308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9310 cat >conftest.$ac_ext <<_ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316 $ac_includes_default
9317 #include <$ac_header>
9319 rm -f conftest.$ac_objext
9320 if { (ac_try="$ac_compile"
9322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9323 *) ac_try_echo=$ac_try;;
9325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9326 (eval "$ac_compile") 2>conftest.er1
9328 grep -v '^ *+' conftest.er1 >conftest.err
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } && {
9333 test -z "$ac_c_werror_flag" ||
9334 test ! -s conftest.err
9335 } && test -s conftest.$ac_objext; then
9336 ac_header_compiler=yes
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9341 ac_header_compiler=no
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9346 echo "${ECHO_T}$ac_header_compiler" >&6; }
9348 # Is the header present?
9349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9351 cat >conftest.$ac_ext <<_ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 #include <$ac_header>
9359 if { (ac_try="$ac_cpp conftest.$ac_ext"
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9367 grep -v '^ *+' conftest.er1 >conftest.err
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } >/dev/null && {
9372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9373 test ! -s conftest.err
9375 ac_header_preproc=yes
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9380 ac_header_preproc=no
9383 rm -f conftest.err conftest.$ac_ext
9384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9385 echo "${ECHO_T}$ac_header_preproc" >&6; }
9387 # So? What about this header?
9388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9394 ac_header_preproc=yes
9397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9410 ## ---------------------------------------- ##
9411 ## Report this to pgsql-bugs@postgresql.org ##
9412 ## ---------------------------------------- ##
9414 ) | sed "s/^/$as_me: WARNING: /" >&2
9417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 eval "$as_ac_Header=\$ac_header_preproc"
9424 ac_res=`eval echo '${'$as_ac_Header'}'`
9425 { echo "$as_me:$LINENO: result: $ac_res" >&5
9426 echo "${ECHO_T}$ac_res" >&6; }
9429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9430 cat >>confdefs.h <<_ACEOF
9431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9435 { { echo "$as_me:$LINENO: error: history header not found
9436 If you have readline already installed, see config.log for details on the
9437 failure. It is possible the compiler isn't looking in the proper directory.
9438 Use --without-readline to disable readline support." >&5
9439 echo "$as_me: error: history header not found
9440 If you have readline already installed, see config.log for details on the
9441 failure. It is possible the compiler isn't looking in the proper directory.
9442 Use --without-readline to disable readline support." >&2;}
9443 { (exit 1); exit 1; }; }
9454 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9455 # Some installations of libedit usurp /usr/include/readline/, which seems
9456 # bad practice, since in combined installations readline will have its headers
9457 # there. We might have to resort to AC_EGREP checks to make sure we found
9458 # the proper header...
9460 for ac_header in editline/readline.h
9462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 ac_res=`eval echo '${'$as_ac_Header'}'`
9470 { echo "$as_me:$LINENO: result: $ac_res" >&5
9471 echo "${ECHO_T}$ac_res" >&6; }
9473 # Is the header compilable?
9474 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 $ac_includes_default
9483 #include <$ac_header>
9485 rm -f conftest.$ac_objext
9486 if { (ac_try="$ac_compile"
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_compile") 2>conftest.er1
9494 grep -v '^ *+' conftest.er1 >conftest.err
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } && {
9499 test -z "$ac_c_werror_flag" ||
9500 test ! -s conftest.err
9501 } && test -s conftest.$ac_objext; then
9502 ac_header_compiler=yes
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9507 ac_header_compiler=no
9510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9512 echo "${ECHO_T}$ac_header_compiler" >&6; }
9514 # Is the header present?
9515 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9517 cat >conftest.$ac_ext <<_ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 #include <$ac_header>
9525 if { (ac_try="$ac_cpp conftest.$ac_ext"
9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528 *) ac_try_echo=$ac_try;;
9530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9533 grep -v '^ *+' conftest.er1 >conftest.err
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } >/dev/null && {
9538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9539 test ! -s conftest.err
9541 ac_header_preproc=yes
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 ac_header_preproc=no
9549 rm -f conftest.err conftest.$ac_ext
9550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9551 echo "${ECHO_T}$ac_header_preproc" >&6; }
9553 # So? What about this header?
9554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9560 ac_header_preproc=yes
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9576 ## ---------------------------------------- ##
9577 ## Report this to pgsql-bugs@postgresql.org ##
9578 ## ---------------------------------------- ##
9580 ) | sed "s/^/$as_me: WARNING: /" >&2
9583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 eval "$as_ac_Header=\$ac_header_preproc"
9590 ac_res=`eval echo '${'$as_ac_Header'}'`
9591 { echo "$as_me:$LINENO: result: $ac_res" >&5
9592 echo "${ECHO_T}$ac_res" >&6; }
9595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9596 cat >>confdefs.h <<_ACEOF
9597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9602 for ac_header in readline.h
9604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 ac_res=`eval echo '${'$as_ac_Header'}'`
9612 { echo "$as_me:$LINENO: result: $ac_res" >&5
9613 echo "${ECHO_T}$ac_res" >&6; }
9615 # Is the header compilable?
9616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9618 cat >conftest.$ac_ext <<_ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 $ac_includes_default
9625 #include <$ac_header>
9627 rm -f conftest.$ac_objext
9628 if { (ac_try="$ac_compile"
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634 (eval "$ac_compile") 2>conftest.er1
9636 grep -v '^ *+' conftest.er1 >conftest.err
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } && {
9641 test -z "$ac_c_werror_flag" ||
9642 test ! -s conftest.err
9643 } && test -s conftest.$ac_objext; then
9644 ac_header_compiler=yes
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_header_compiler=no
9652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9654 echo "${ECHO_T}$ac_header_compiler" >&6; }
9656 # Is the header present?
9657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9659 cat >conftest.$ac_ext <<_ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665 #include <$ac_header>
9667 if { (ac_try="$ac_cpp conftest.$ac_ext"
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } >/dev/null && {
9680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9683 ac_header_preproc=yes
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_header_preproc=no
9691 rm -f conftest.err conftest.$ac_ext
9692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9693 echo "${ECHO_T}$ac_header_preproc" >&6; }
9695 # So? What about this header?
9696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9702 ac_header_preproc=yes
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9718 ## ---------------------------------------- ##
9719 ## Report this to pgsql-bugs@postgresql.org ##
9720 ## ---------------------------------------- ##
9722 ) | sed "s/^/$as_me: WARNING: /" >&2
9725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 eval "$as_ac_Header=\$ac_header_preproc"
9732 ac_res=`eval echo '${'$as_ac_Header'}'`
9733 { echo "$as_me:$LINENO: result: $ac_res" >&5
9734 echo "${ECHO_T}$ac_res" >&6; }
9737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9738 cat >>confdefs.h <<_ACEOF
9739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9744 for ac_header in readline/readline.h
9746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 ac_res=`eval echo '${'$as_ac_Header'}'`
9754 { echo "$as_me:$LINENO: result: $ac_res" >&5
9755 echo "${ECHO_T}$ac_res" >&6; }
9757 # Is the header compilable?
9758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9760 cat >conftest.$ac_ext <<_ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766 $ac_includes_default
9767 #include <$ac_header>
9769 rm -f conftest.$ac_objext
9770 if { (ac_try="$ac_compile"
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_compile") 2>conftest.er1
9778 grep -v '^ *+' conftest.er1 >conftest.err
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } && {
9783 test -z "$ac_c_werror_flag" ||
9784 test ! -s conftest.err
9785 } && test -s conftest.$ac_objext; then
9786 ac_header_compiler=yes
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 ac_header_compiler=no
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9796 echo "${ECHO_T}$ac_header_compiler" >&6; }
9798 # Is the header present?
9799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9801 cat >conftest.$ac_ext <<_ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807 #include <$ac_header>
9809 if { (ac_try="$ac_cpp conftest.$ac_ext"
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9817 grep -v '^ *+' conftest.er1 >conftest.err
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } >/dev/null && {
9822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9825 ac_header_preproc=yes
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_header_preproc=no
9833 rm -f conftest.err conftest.$ac_ext
9834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9835 echo "${ECHO_T}$ac_header_preproc" >&6; }
9837 # So? What about this header?
9838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9844 ac_header_preproc=yes
9847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9860 ## ---------------------------------------- ##
9861 ## Report this to pgsql-bugs@postgresql.org ##
9862 ## ---------------------------------------- ##
9864 ) | sed "s/^/$as_me: WARNING: /" >&2
9867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 eval "$as_ac_Header=\$ac_header_preproc"
9874 ac_res=`eval echo '${'$as_ac_Header'}'`
9875 { echo "$as_me:$LINENO: result: $ac_res" >&5
9876 echo "${ECHO_T}$ac_res" >&6; }
9879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9880 cat >>confdefs.h <<_ACEOF
9881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9885 { { echo "$as_me:$LINENO: error: readline header not found
9886 If you have libedit already installed, see config.log for details on the
9887 failure. It is possible the compiler isn't looking in the proper directory.
9888 Use --without-readline to disable libedit support." >&5
9889 echo "$as_me: error: readline header not found
9890 If you have libedit already installed, see config.log for details on the
9891 failure. It is possible the compiler isn't looking in the proper directory.
9892 Use --without-readline to disable libedit support." >&2;}
9893 { (exit 1); exit 1; }; }
9906 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9907 # not be there at all. Hence, don't complain if not found. We must check
9908 # though, since in yet other versions it is an independent header.
9910 for ac_header in editline/history.h
9912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 ac_res=`eval echo '${'$as_ac_Header'}'`
9920 { echo "$as_me:$LINENO: result: $ac_res" >&5
9921 echo "${ECHO_T}$ac_res" >&6; }
9923 # Is the header compilable?
9924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9926 cat >conftest.$ac_ext <<_ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9932 $ac_includes_default
9933 #include <$ac_header>
9935 rm -f conftest.$ac_objext
9936 if { (ac_try="$ac_compile"
9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939 *) ac_try_echo=$ac_try;;
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942 (eval "$ac_compile") 2>conftest.er1
9944 grep -v '^ *+' conftest.er1 >conftest.err
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } && {
9949 test -z "$ac_c_werror_flag" ||
9950 test ! -s conftest.err
9951 } && test -s conftest.$ac_objext; then
9952 ac_header_compiler=yes
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 ac_header_compiler=no
9960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9962 echo "${ECHO_T}$ac_header_compiler" >&6; }
9964 # Is the header present?
9965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9967 cat >conftest.$ac_ext <<_ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973 #include <$ac_header>
9975 if { (ac_try="$ac_cpp conftest.$ac_ext"
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } >/dev/null && {
9988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9989 test ! -s conftest.err
9991 ac_header_preproc=yes
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9996 ac_header_preproc=no
9999 rm -f conftest.err conftest.$ac_ext
10000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10001 echo "${ECHO_T}$ac_header_preproc" >&6; }
10003 # So? What about this header?
10004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10010 ac_header_preproc=yes
10013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10026 ## ---------------------------------------- ##
10027 ## Report this to pgsql-bugs@postgresql.org ##
10028 ## ---------------------------------------- ##
10030 ) | sed "s/^/$as_me: WARNING: /" >&2
10033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 eval "$as_ac_Header=\$ac_header_preproc"
10040 ac_res=`eval echo '${'$as_ac_Header'}'`
10041 { echo "$as_me:$LINENO: result: $ac_res" >&5
10042 echo "${ECHO_T}$ac_res" >&6; }
10045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10046 cat >>confdefs.h <<_ACEOF
10047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10052 for ac_header in history.h
10054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 ac_res=`eval echo '${'$as_ac_Header'}'`
10062 { echo "$as_me:$LINENO: result: $ac_res" >&5
10063 echo "${ECHO_T}$ac_res" >&6; }
10065 # Is the header compilable?
10066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 #include <$ac_header>
10077 rm -f conftest.$ac_objext
10078 if { (ac_try="$ac_compile"
10079 case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_compile") 2>conftest.er1
10086 grep -v '^ *+' conftest.er1 >conftest.err
10088 cat conftest.err >&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } && {
10091 test -z "$ac_c_werror_flag" ||
10092 test ! -s conftest.err
10093 } && test -s conftest.$ac_objext; then
10094 ac_header_compiler=yes
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10099 ac_header_compiler=no
10102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10104 echo "${ECHO_T}$ac_header_compiler" >&6; }
10106 # Is the header present?
10107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10109 cat >conftest.$ac_ext <<_ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 #include <$ac_header>
10117 if { (ac_try="$ac_cpp conftest.$ac_ext"
10118 case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10125 grep -v '^ *+' conftest.er1 >conftest.err
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } >/dev/null && {
10130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10131 test ! -s conftest.err
10133 ac_header_preproc=yes
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ac_header_preproc=no
10141 rm -f conftest.err conftest.$ac_ext
10142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10143 echo "${ECHO_T}$ac_header_preproc" >&6; }
10145 # So? What about this header?
10146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10152 ac_header_preproc=yes
10155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10168 ## ---------------------------------------- ##
10169 ## Report this to pgsql-bugs@postgresql.org ##
10170 ## ---------------------------------------- ##
10172 ) | sed "s/^/$as_me: WARNING: /" >&2
10175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 eval "$as_ac_Header=\$ac_header_preproc"
10182 ac_res=`eval echo '${'$as_ac_Header'}'`
10183 { echo "$as_me:$LINENO: result: $ac_res" >&5
10184 echo "${ECHO_T}$ac_res" >&6; }
10187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10188 cat >>confdefs.h <<_ACEOF
10189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10194 for ac_header in readline/history.h
10196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 ac_res=`eval echo '${'$as_ac_Header'}'`
10204 { echo "$as_me:$LINENO: result: $ac_res" >&5
10205 echo "${ECHO_T}$ac_res" >&6; }
10207 # Is the header compilable?
10208 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10210 cat >conftest.$ac_ext <<_ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 $ac_includes_default
10217 #include <$ac_header>
10219 rm -f conftest.$ac_objext
10220 if { (ac_try="$ac_compile"
10221 case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_compile") 2>conftest.er1
10228 grep -v '^ *+' conftest.er1 >conftest.err
10230 cat conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && {
10233 test -z "$ac_c_werror_flag" ||
10234 test ! -s conftest.err
10235 } && test -s conftest.$ac_objext; then
10236 ac_header_compiler=yes
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 ac_header_compiler=no
10244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10246 echo "${ECHO_T}$ac_header_compiler" >&6; }
10248 # Is the header present?
10249 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10251 cat >conftest.$ac_ext <<_ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 #include <$ac_header>
10259 if { (ac_try="$ac_cpp conftest.$ac_ext"
10260 case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10267 grep -v '^ *+' conftest.er1 >conftest.err
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } >/dev/null && {
10272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10273 test ! -s conftest.err
10275 ac_header_preproc=yes
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10280 ac_header_preproc=no
10283 rm -f conftest.err conftest.$ac_ext
10284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10285 echo "${ECHO_T}$ac_header_preproc" >&6; }
10287 # So? What about this header?
10288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10294 ac_header_preproc=yes
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10310 ## ---------------------------------------- ##
10311 ## Report this to pgsql-bugs@postgresql.org ##
10312 ## ---------------------------------------- ##
10314 ) | sed "s/^/$as_me: WARNING: /" >&2
10317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 eval "$as_ac_Header=\$ac_header_preproc"
10324 ac_res=`eval echo '${'$as_ac_Header'}'`
10325 { echo "$as_me:$LINENO: result: $ac_res" >&5
10326 echo "${ECHO_T}$ac_res" >&6; }
10329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10330 cat >>confdefs.h <<_ACEOF
10331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10348 if test "$with_zlib" = yes; then
10349 if test "${ac_cv_header_zlib_h+set}" = set; then
10350 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10351 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10352 if test "${ac_cv_header_zlib_h+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10356 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10358 # Is the header compilable?
10359 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10360 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10361 cat >conftest.$ac_ext <<_ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10367 $ac_includes_default
10370 rm -f conftest.$ac_objext
10371 if { (ac_try="$ac_compile"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10379 grep -v '^ *+' conftest.er1 >conftest.err
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_header_compiler=yes
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_header_compiler=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10397 echo "${ECHO_T}$ac_header_compiler" >&6; }
10399 # Is the header present?
10400 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10401 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10402 cat >conftest.$ac_ext <<_ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10410 if { (ac_try="$ac_cpp conftest.$ac_ext"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10418 grep -v '^ *+' conftest.er1 >conftest.err
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } >/dev/null && {
10423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10424 test ! -s conftest.err
10426 ac_header_preproc=yes
10428 echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10431 ac_header_preproc=no
10434 rm -f conftest.err conftest.$ac_ext
10435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10436 echo "${ECHO_T}$ac_header_preproc" >&6; }
10438 # So? What about this header?
10439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10441 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10442 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10443 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10444 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10445 ac_header_preproc=yes
10448 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10449 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10450 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10451 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10452 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10453 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10454 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10455 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10457 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10459 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10461 ## ---------------------------------------- ##
10462 ## Report this to pgsql-bugs@postgresql.org ##
10463 ## ---------------------------------------- ##
10465 ) | sed "s/^/$as_me: WARNING: /" >&2
10468 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10469 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10470 if test "${ac_cv_header_zlib_h+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 ac_cv_header_zlib_h=$ac_header_preproc
10475 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10476 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10479 if test $ac_cv_header_zlib_h = yes; then
10482 { { echo "$as_me:$LINENO: error: zlib header not found
10483 If you have zlib already installed, see config.log for details on the
10484 failure. It is possible the compiler isn't looking in the proper directory.
10485 Use --without-zlib to disable zlib support." >&5
10486 echo "$as_me: error: zlib header not found
10487 If you have zlib already installed, see config.log for details on the
10488 failure. It is possible the compiler isn't looking in the proper directory.
10489 Use --without-zlib to disable zlib support." >&2;}
10490 { (exit 1); exit 1; }; }
10496 if test "$with_gssapi" = yes ; then
10498 for ac_header in gssapi/gssapi.h
10500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 ac_res=`eval echo '${'$as_ac_Header'}'`
10508 { echo "$as_me:$LINENO: result: $ac_res" >&5
10509 echo "${ECHO_T}$ac_res" >&6; }
10511 # Is the header compilable?
10512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 $ac_includes_default
10521 #include <$ac_header>
10523 rm -f conftest.$ac_objext
10524 if { (ac_try="$ac_compile"
10525 case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_compile") 2>conftest.er1
10532 grep -v '^ *+' conftest.er1 >conftest.err
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } && {
10537 test -z "$ac_c_werror_flag" ||
10538 test ! -s conftest.err
10539 } && test -s conftest.$ac_objext; then
10540 ac_header_compiler=yes
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10545 ac_header_compiler=no
10548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10550 echo "${ECHO_T}$ac_header_compiler" >&6; }
10552 # Is the header present?
10553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10555 cat >conftest.$ac_ext <<_ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 #include <$ac_header>
10563 if { (ac_try="$ac_cpp conftest.$ac_ext"
10564 case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10571 grep -v '^ *+' conftest.er1 >conftest.err
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } >/dev/null && {
10576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10577 test ! -s conftest.err
10579 ac_header_preproc=yes
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 ac_header_preproc=no
10587 rm -f conftest.err conftest.$ac_ext
10588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10589 echo "${ECHO_T}$ac_header_preproc" >&6; }
10591 # So? What about this header?
10592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10598 ac_header_preproc=yes
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10614 ## ---------------------------------------- ##
10615 ## Report this to pgsql-bugs@postgresql.org ##
10616 ## ---------------------------------------- ##
10618 ) | sed "s/^/$as_me: WARNING: /" >&2
10621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 eval "$as_ac_Header=\$ac_header_preproc"
10628 ac_res=`eval echo '${'$as_ac_Header'}'`
10629 { echo "$as_me:$LINENO: result: $ac_res" >&5
10630 echo "${ECHO_T}$ac_res" >&6; }
10633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10634 cat >>confdefs.h <<_ACEOF
10635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10640 for ac_header in gssapi.h
10642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 ac_res=`eval echo '${'$as_ac_Header'}'`
10650 { echo "$as_me:$LINENO: result: $ac_res" >&5
10651 echo "${ECHO_T}$ac_res" >&6; }
10653 # Is the header compilable?
10654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10656 cat >conftest.$ac_ext <<_ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10662 $ac_includes_default
10663 #include <$ac_header>
10665 rm -f conftest.$ac_objext
10666 if { (ac_try="$ac_compile"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_compile") 2>conftest.er1
10674 grep -v '^ *+' conftest.er1 >conftest.err
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } && {
10679 test -z "$ac_c_werror_flag" ||
10680 test ! -s conftest.err
10681 } && test -s conftest.$ac_objext; then
10682 ac_header_compiler=yes
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 ac_header_compiler=no
10690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10692 echo "${ECHO_T}$ac_header_compiler" >&6; }
10694 # Is the header present?
10695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10697 cat >conftest.$ac_ext <<_ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 #include <$ac_header>
10705 if { (ac_try="$ac_cpp conftest.$ac_ext"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } >/dev/null && {
10718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10721 ac_header_preproc=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_header_preproc=no
10729 rm -f conftest.err conftest.$ac_ext
10730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10731 echo "${ECHO_T}$ac_header_preproc" >&6; }
10733 # So? What about this header?
10734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10740 ac_header_preproc=yes
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10756 ## ---------------------------------------- ##
10757 ## Report this to pgsql-bugs@postgresql.org ##
10758 ## ---------------------------------------- ##
10760 ) | sed "s/^/$as_me: WARNING: /" >&2
10763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 eval "$as_ac_Header=\$ac_header_preproc"
10770 ac_res=`eval echo '${'$as_ac_Header'}'`
10771 { echo "$as_me:$LINENO: result: $ac_res" >&5
10772 echo "${ECHO_T}$ac_res" >&6; }
10775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10776 cat >>confdefs.h <<_ACEOF
10777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10781 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10782 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10783 { (exit 1); exit 1; }; }
10794 if test "$with_krb5" = yes ; then
10795 if test "${ac_cv_header_krb5_h+set}" = set; then
10796 { echo "$as_me:$LINENO: checking for krb5.h" >&5
10797 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10798 if test "${ac_cv_header_krb5_h+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10802 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10804 # Is the header compilable?
10805 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
10806 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 $ac_includes_default
10816 rm -f conftest.$ac_objext
10817 if { (ac_try="$ac_compile"
10818 case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_compile") 2>conftest.er1
10825 grep -v '^ *+' conftest.er1 >conftest.err
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } && {
10830 test -z "$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10832 } && test -s conftest.$ac_objext; then
10833 ac_header_compiler=yes
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_header_compiler=no
10841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10843 echo "${ECHO_T}$ac_header_compiler" >&6; }
10845 # Is the header present?
10846 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
10847 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
10848 cat >conftest.$ac_ext <<_ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10856 if { (ac_try="$ac_cpp conftest.$ac_ext"
10857 case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10864 grep -v '^ *+' conftest.er1 >conftest.err
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } >/dev/null && {
10869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10870 test ! -s conftest.err
10872 ac_header_preproc=yes
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10877 ac_header_preproc=no
10880 rm -f conftest.err conftest.$ac_ext
10881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10882 echo "${ECHO_T}$ac_header_preproc" >&6; }
10884 # So? What about this header?
10885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10887 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
10888 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
10890 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
10891 ac_header_preproc=yes
10894 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
10895 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
10896 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
10897 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
10899 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
10901 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
10903 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
10905 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
10907 ## ---------------------------------------- ##
10908 ## Report this to pgsql-bugs@postgresql.org ##
10909 ## ---------------------------------------- ##
10911 ) | sed "s/^/$as_me: WARNING: /" >&2
10914 { echo "$as_me:$LINENO: checking for krb5.h" >&5
10915 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10916 if test "${ac_cv_header_krb5_h+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 ac_cv_header_krb5_h=$ac_header_preproc
10921 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10922 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10925 if test $ac_cv_header_krb5_h = yes; then
10928 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
10929 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
10930 { (exit 1); exit 1; }; }
10936 if test "$with_openssl" = yes ; then
10937 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10938 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10939 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
10940 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10944 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
10946 # Is the header compilable?
10947 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10948 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
10949 cat >conftest.$ac_ext <<_ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955 $ac_includes_default
10956 #include <openssl/ssl.h>
10958 rm -f conftest.$ac_objext
10959 if { (ac_try="$ac_compile"
10960 case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_compile") 2>conftest.er1
10967 grep -v '^ *+' conftest.er1 >conftest.err
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } && {
10972 test -z "$ac_c_werror_flag" ||
10973 test ! -s conftest.err
10974 } && test -s conftest.$ac_objext; then
10975 ac_header_compiler=yes
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10980 ac_header_compiler=no
10983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10985 echo "${ECHO_T}$ac_header_compiler" >&6; }
10987 # Is the header present?
10988 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10989 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
10990 cat >conftest.$ac_ext <<_ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 #include <openssl/ssl.h>
10998 if { (ac_try="$ac_cpp conftest.$ac_ext"
10999 case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11006 grep -v '^ *+' conftest.er1 >conftest.err
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } >/dev/null && {
11011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11012 test ! -s conftest.err
11014 ac_header_preproc=yes
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 ac_header_preproc=no
11022 rm -f conftest.err conftest.$ac_ext
11023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11024 echo "${ECHO_T}$ac_header_preproc" >&6; }
11026 # So? What about this header?
11027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11029 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11030 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11031 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11032 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11033 ac_header_preproc=yes
11036 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11037 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11039 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11041 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11043 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11045 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11047 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11049 ## ---------------------------------------- ##
11050 ## Report this to pgsql-bugs@postgresql.org ##
11051 ## ---------------------------------------- ##
11053 ) | sed "s/^/$as_me: WARNING: /" >&2
11056 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11057 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11058 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11063 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11064 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11067 if test $ac_cv_header_openssl_ssl_h = yes; then
11070 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11071 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11072 { (exit 1); exit 1; }; }
11076 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11077 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11078 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11079 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11083 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11085 # Is the header compilable?
11086 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11087 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11088 cat >conftest.$ac_ext <<_ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 $ac_includes_default
11095 #include <openssl/err.h>
11097 rm -f conftest.$ac_objext
11098 if { (ac_try="$ac_compile"
11099 case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_compile") 2>conftest.er1
11106 grep -v '^ *+' conftest.er1 >conftest.err
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } && {
11111 test -z "$ac_c_werror_flag" ||
11112 test ! -s conftest.err
11113 } && test -s conftest.$ac_objext; then
11114 ac_header_compiler=yes
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ac_header_compiler=no
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11124 echo "${ECHO_T}$ac_header_compiler" >&6; }
11126 # Is the header present?
11127 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11128 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 #include <openssl/err.h>
11137 if { (ac_try="$ac_cpp conftest.$ac_ext"
11138 case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11145 grep -v '^ *+' conftest.er1 >conftest.err
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } >/dev/null && {
11150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11151 test ! -s conftest.err
11153 ac_header_preproc=yes
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 ac_header_preproc=no
11161 rm -f conftest.err conftest.$ac_ext
11162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11163 echo "${ECHO_T}$ac_header_preproc" >&6; }
11165 # So? What about this header?
11166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11168 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11169 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11171 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11172 ac_header_preproc=yes
11175 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11176 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11178 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11179 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11180 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11182 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11184 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11186 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11188 ## ---------------------------------------- ##
11189 ## Report this to pgsql-bugs@postgresql.org ##
11190 ## ---------------------------------------- ##
11192 ) | sed "s/^/$as_me: WARNING: /" >&2
11195 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11196 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11197 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 ac_cv_header_openssl_err_h=$ac_header_preproc
11202 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11203 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11206 if test $ac_cv_header_openssl_err_h = yes; then
11209 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11210 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11211 { (exit 1); exit 1; }; }
11216 for ac_func in ERR_set_mark
11218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 cat >conftest.$ac_ext <<_ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11232 #define $ac_func innocuous_$ac_func
11234 /* System header to define __stub macros and hopefully few prototypes,
11235 which can conflict with char $ac_func (); below.
11236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11237 <limits.h> exists even on freestanding compilers. */
11240 # include <limits.h>
11242 # include <assert.h>
11247 /* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
11254 /* The GNU C library defines this for functions which it implements
11255 to always fail with ENOSYS. Some functions are actually named
11256 something starting with __ and the normal name is an alias. */
11257 #if defined __stub_$ac_func || defined __stub___$ac_func
11264 return $ac_func ();
11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (ac_try="$ac_link"
11271 case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_link") 2>conftest.er1
11278 grep -v '^ *+' conftest.er1 >conftest.err
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } && {
11283 test -z "$ac_c_werror_flag" ||
11284 test ! -s conftest.err
11285 } && test -s conftest$ac_exeext &&
11286 $as_test_x conftest$ac_exeext; then
11287 eval "$as_ac_var=yes"
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11292 eval "$as_ac_var=no"
11295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11296 conftest$ac_exeext conftest.$ac_ext
11298 ac_res=`eval echo '${'$as_ac_var'}'`
11299 { echo "$as_me:$LINENO: result: $ac_res" >&5
11300 echo "${ECHO_T}$ac_res" >&6; }
11301 if test `eval echo '${'$as_ac_var'}'` = yes; then
11302 cat >>confdefs.h <<_ACEOF
11303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11311 if test "$with_pam" = yes ; then
11313 for ac_header in security/pam_appl.h
11315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 ac_res=`eval echo '${'$as_ac_Header'}'`
11323 { echo "$as_me:$LINENO: result: $ac_res" >&5
11324 echo "${ECHO_T}$ac_res" >&6; }
11326 # Is the header compilable?
11327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 $ac_includes_default
11336 #include <$ac_header>
11338 rm -f conftest.$ac_objext
11339 if { (ac_try="$ac_compile"
11340 case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_compile") 2>conftest.er1
11347 grep -v '^ *+' conftest.er1 >conftest.err
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest.$ac_objext; then
11355 ac_header_compiler=yes
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_header_compiler=no
11363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11365 echo "${ECHO_T}$ac_header_compiler" >&6; }
11367 # Is the header present?
11368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11370 cat >conftest.$ac_ext <<_ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 #include <$ac_header>
11378 if { (ac_try="$ac_cpp conftest.$ac_ext"
11379 case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11386 grep -v '^ *+' conftest.er1 >conftest.err
11388 cat conftest.err >&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } >/dev/null && {
11391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11392 test ! -s conftest.err
11394 ac_header_preproc=yes
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11399 ac_header_preproc=no
11402 rm -f conftest.err conftest.$ac_ext
11403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11404 echo "${ECHO_T}$ac_header_preproc" >&6; }
11406 # So? What about this header?
11407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11413 ac_header_preproc=yes
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11429 ## ---------------------------------------- ##
11430 ## Report this to pgsql-bugs@postgresql.org ##
11431 ## ---------------------------------------- ##
11433 ) | sed "s/^/$as_me: WARNING: /" >&2
11436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 eval "$as_ac_Header=\$ac_header_preproc"
11443 ac_res=`eval echo '${'$as_ac_Header'}'`
11444 { echo "$as_me:$LINENO: result: $ac_res" >&5
11445 echo "${ECHO_T}$ac_res" >&6; }
11448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11449 cat >>confdefs.h <<_ACEOF
11450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11455 for ac_header in pam/pam_appl.h
11457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 ac_res=`eval echo '${'$as_ac_Header'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11468 # Is the header compilable?
11469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11471 cat >conftest.$ac_ext <<_ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477 $ac_includes_default
11478 #include <$ac_header>
11480 rm -f conftest.$ac_objext
11481 if { (ac_try="$ac_compile"
11482 case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_compile") 2>conftest.er1
11489 grep -v '^ *+' conftest.er1 >conftest.err
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } && {
11494 test -z "$ac_c_werror_flag" ||
11495 test ! -s conftest.err
11496 } && test -s conftest.$ac_objext; then
11497 ac_header_compiler=yes
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 ac_header_compiler=no
11505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11507 echo "${ECHO_T}$ac_header_compiler" >&6; }
11509 # Is the header present?
11510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11512 cat >conftest.$ac_ext <<_ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 #include <$ac_header>
11520 if { (ac_try="$ac_cpp conftest.$ac_ext"
11521 case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11528 grep -v '^ *+' conftest.er1 >conftest.err
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } >/dev/null && {
11533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11534 test ! -s conftest.err
11536 ac_header_preproc=yes
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11541 ac_header_preproc=no
11544 rm -f conftest.err conftest.$ac_ext
11545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11546 echo "${ECHO_T}$ac_header_preproc" >&6; }
11548 # So? What about this header?
11549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11555 ac_header_preproc=yes
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11571 ## ---------------------------------------- ##
11572 ## Report this to pgsql-bugs@postgresql.org ##
11573 ## ---------------------------------------- ##
11575 ) | sed "s/^/$as_me: WARNING: /" >&2
11578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 eval "$as_ac_Header=\$ac_header_preproc"
11585 ac_res=`eval echo '${'$as_ac_Header'}'`
11586 { echo "$as_me:$LINENO: result: $ac_res" >&5
11587 echo "${ECHO_T}$ac_res" >&6; }
11590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11591 cat >>confdefs.h <<_ACEOF
11592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11596 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11597 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11598 { (exit 1); exit 1; }; }
11609 if test "$with_libxml" = yes ; then
11610 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11611 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11612 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11613 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11617 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11619 # Is the header compilable?
11620 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11621 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
11622 cat >conftest.$ac_ext <<_ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 $ac_includes_default
11629 #include <libxml/parser.h>
11631 rm -f conftest.$ac_objext
11632 if { (ac_try="$ac_compile"
11633 case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_compile") 2>conftest.er1
11640 grep -v '^ *+' conftest.er1 >conftest.err
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && {
11645 test -z "$ac_c_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest.$ac_objext; then
11648 ac_header_compiler=yes
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 ac_header_compiler=no
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11658 echo "${ECHO_T}$ac_header_compiler" >&6; }
11660 # Is the header present?
11661 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11662 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
11663 cat >conftest.$ac_ext <<_ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11669 #include <libxml/parser.h>
11671 if { (ac_try="$ac_cpp conftest.$ac_ext"
11672 case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11679 grep -v '^ *+' conftest.er1 >conftest.err
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } >/dev/null && {
11684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11685 test ! -s conftest.err
11687 ac_header_preproc=yes
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 ac_header_preproc=no
11695 rm -f conftest.err conftest.$ac_ext
11696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11697 echo "${ECHO_T}$ac_header_preproc" >&6; }
11699 # So? What about this header?
11700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11702 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11703 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11705 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11706 ac_header_preproc=yes
11709 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11710 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
11712 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11714 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
11716 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11718 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11720 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11722 ## ---------------------------------------- ##
11723 ## Report this to pgsql-bugs@postgresql.org ##
11724 ## ---------------------------------------- ##
11726 ) | sed "s/^/$as_me: WARNING: /" >&2
11729 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11730 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11731 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 ac_cv_header_libxml_parser_h=$ac_header_preproc
11736 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11737 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11740 if test $ac_cv_header_libxml_parser_h = yes; then
11743 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11744 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11745 { (exit 1); exit 1; }; }
11751 if test "$with_libxslt" = yes ; then
11752 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11753 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11754 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11755 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11759 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11761 # Is the header compilable?
11762 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11763 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
11764 cat >conftest.$ac_ext <<_ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 $ac_includes_default
11771 #include <libxslt/xslt.h>
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_compile") 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest.$ac_objext; then
11790 ac_header_compiler=yes
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 ac_header_compiler=no
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11800 echo "${ECHO_T}$ac_header_compiler" >&6; }
11802 # Is the header present?
11803 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11804 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
11805 cat >conftest.$ac_ext <<_ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 #include <libxslt/xslt.h>
11813 if { (ac_try="$ac_cpp conftest.$ac_ext"
11814 case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11821 grep -v '^ *+' conftest.er1 >conftest.err
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } >/dev/null && {
11826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11827 test ! -s conftest.err
11829 ac_header_preproc=yes
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11834 ac_header_preproc=no
11837 rm -f conftest.err conftest.$ac_ext
11838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11839 echo "${ECHO_T}$ac_header_preproc" >&6; }
11841 # So? What about this header?
11842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11844 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
11845 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
11847 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
11848 ac_header_preproc=yes
11851 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
11852 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
11853 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
11854 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
11856 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
11858 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
11860 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
11862 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
11864 ## ---------------------------------------- ##
11865 ## Report this to pgsql-bugs@postgresql.org ##
11866 ## ---------------------------------------- ##
11868 ) | sed "s/^/$as_me: WARNING: /" >&2
11871 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11872 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11873 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
11878 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11879 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11882 if test $ac_cv_header_libxslt_xslt_h = yes; then
11885 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
11886 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
11887 { (exit 1); exit 1; }; }
11893 if test "$with_ldap" = yes ; then
11894 if test "$PORTNAME" != "win32"; then
11896 for ac_header in ldap.h
11898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 ac_res=`eval echo '${'$as_ac_Header'}'`
11906 { echo "$as_me:$LINENO: result: $ac_res" >&5
11907 echo "${ECHO_T}$ac_res" >&6; }
11909 # Is the header compilable?
11910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11912 cat >conftest.$ac_ext <<_ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918 $ac_includes_default
11919 #include <$ac_header>
11921 rm -f conftest.$ac_objext
11922 if { (ac_try="$ac_compile"
11923 case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_compile") 2>conftest.er1
11930 grep -v '^ *+' conftest.er1 >conftest.err
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } && {
11935 test -z "$ac_c_werror_flag" ||
11936 test ! -s conftest.err
11937 } && test -s conftest.$ac_objext; then
11938 ac_header_compiler=yes
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 ac_header_compiler=no
11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11948 echo "${ECHO_T}$ac_header_compiler" >&6; }
11950 # Is the header present?
11951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11953 cat >conftest.$ac_ext <<_ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959 #include <$ac_header>
11961 if { (ac_try="$ac_cpp conftest.$ac_ext"
11962 case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } >/dev/null && {
11974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11975 test ! -s conftest.err
11977 ac_header_preproc=yes
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ac_header_preproc=no
11985 rm -f conftest.err conftest.$ac_ext
11986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11987 echo "${ECHO_T}$ac_header_preproc" >&6; }
11989 # So? What about this header?
11990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11996 ac_header_preproc=yes
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12012 ## ---------------------------------------- ##
12013 ## Report this to pgsql-bugs@postgresql.org ##
12014 ## ---------------------------------------- ##
12016 ) | sed "s/^/$as_me: WARNING: /" >&2
12019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 eval "$as_ac_Header=\$ac_header_preproc"
12026 ac_res=`eval echo '${'$as_ac_Header'}'`
12027 { echo "$as_me:$LINENO: result: $ac_res" >&5
12028 echo "${ECHO_T}$ac_res" >&6; }
12031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12032 cat >>confdefs.h <<_ACEOF
12033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12037 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12038 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12039 { (exit 1); exit 1; }; }
12046 for ac_header in winldap.h
12048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 $ac_includes_default
12061 #include <windows.h>
12064 #include <$ac_header>
12066 rm -f conftest.$ac_objext
12067 if { (ac_try="$ac_compile"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_compile") 2>conftest.er1
12075 grep -v '^ *+' conftest.er1 >conftest.err
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } && {
12080 test -z "$ac_c_werror_flag" ||
12081 test ! -s conftest.err
12082 } && test -s conftest.$ac_objext; then
12083 eval "$as_ac_Header=yes"
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 eval "$as_ac_Header=no"
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 ac_res=`eval echo '${'$as_ac_Header'}'`
12094 { echo "$as_me:$LINENO: result: $ac_res" >&5
12095 echo "${ECHO_T}$ac_res" >&6; }
12096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12097 cat >>confdefs.h <<_ACEOF
12098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12102 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12103 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12104 { (exit 1); exit 1; }; }
12112 if test "$with_bonjour" = yes ; then
12113 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12114 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12115 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12116 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12120 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12122 # Is the header compilable?
12123 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12124 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 $ac_includes_default
12132 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12134 rm -f conftest.$ac_objext
12135 if { (ac_try="$ac_compile"
12136 case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_compile") 2>conftest.er1
12143 grep -v '^ *+' conftest.er1 >conftest.err
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } && {
12148 test -z "$ac_c_werror_flag" ||
12149 test ! -s conftest.err
12150 } && test -s conftest.$ac_objext; then
12151 ac_header_compiler=yes
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12156 ac_header_compiler=no
12159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12161 echo "${ECHO_T}$ac_header_compiler" >&6; }
12163 # Is the header present?
12164 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12165 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12166 cat >conftest.$ac_ext <<_ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12174 if { (ac_try="$ac_cpp conftest.$ac_ext"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } >/dev/null && {
12187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12190 ac_header_preproc=yes
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 ac_header_preproc=no
12198 rm -f conftest.err conftest.$ac_ext
12199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12200 echo "${ECHO_T}$ac_header_preproc" >&6; }
12202 # So? What about this header?
12203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12205 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12206 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12208 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12209 ac_header_preproc=yes
12212 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12213 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12215 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12217 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12219 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12221 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12223 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12225 ## ---------------------------------------- ##
12226 ## Report this to pgsql-bugs@postgresql.org ##
12227 ## ---------------------------------------- ##
12229 ) | sed "s/^/$as_me: WARNING: /" >&2
12232 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12233 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12234 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12239 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12240 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12243 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12246 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12247 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12248 { (exit 1); exit 1; }; }
12254 # for contrib/uuid-ossp
12255 if test "$with_ossp_uuid" = yes ; then
12257 for ac_header in ossp/uuid.h
12259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 ac_res=`eval echo '${'$as_ac_Header'}'`
12267 { echo "$as_me:$LINENO: result: $ac_res" >&5
12268 echo "${ECHO_T}$ac_res" >&6; }
12270 # Is the header compilable?
12271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12273 cat >conftest.$ac_ext <<_ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12279 $ac_includes_default
12280 #include <$ac_header>
12282 rm -f conftest.$ac_objext
12283 if { (ac_try="$ac_compile"
12284 case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_compile") 2>conftest.er1
12291 grep -v '^ *+' conftest.er1 >conftest.err
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } && {
12296 test -z "$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12298 } && test -s conftest.$ac_objext; then
12299 ac_header_compiler=yes
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12304 ac_header_compiler=no
12307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12309 echo "${ECHO_T}$ac_header_compiler" >&6; }
12311 # Is the header present?
12312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12314 cat >conftest.$ac_ext <<_ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 #include <$ac_header>
12322 if { (ac_try="$ac_cpp conftest.$ac_ext"
12323 case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12330 grep -v '^ *+' conftest.er1 >conftest.err
12332 cat conftest.err >&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } >/dev/null && {
12335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12336 test ! -s conftest.err
12338 ac_header_preproc=yes
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12343 ac_header_preproc=no
12346 rm -f conftest.err conftest.$ac_ext
12347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12348 echo "${ECHO_T}$ac_header_preproc" >&6; }
12350 # So? What about this header?
12351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12357 ac_header_preproc=yes
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12373 ## ---------------------------------------- ##
12374 ## Report this to pgsql-bugs@postgresql.org ##
12375 ## ---------------------------------------- ##
12377 ) | sed "s/^/$as_me: WARNING: /" >&2
12380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 eval "$as_ac_Header=\$ac_header_preproc"
12387 ac_res=`eval echo '${'$as_ac_Header'}'`
12388 { echo "$as_me:$LINENO: result: $ac_res" >&5
12389 echo "${ECHO_T}$ac_res" >&6; }
12392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12393 cat >>confdefs.h <<_ACEOF
12394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12400 for ac_header in uuid.h
12402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res=`eval echo '${'$as_ac_Header'}'`
12410 { echo "$as_me:$LINENO: result: $ac_res" >&5
12411 echo "${ECHO_T}$ac_res" >&6; }
12413 # Is the header compilable?
12414 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12416 cat >conftest.$ac_ext <<_ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 $ac_includes_default
12423 #include <$ac_header>
12425 rm -f conftest.$ac_objext
12426 if { (ac_try="$ac_compile"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_compile") 2>conftest.er1
12434 grep -v '^ *+' conftest.er1 >conftest.err
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest.$ac_objext; then
12442 ac_header_compiler=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_header_compiler=no
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12452 echo "${ECHO_T}$ac_header_compiler" >&6; }
12454 # Is the header present?
12455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12457 cat >conftest.$ac_ext <<_ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 #include <$ac_header>
12465 if { (ac_try="$ac_cpp conftest.$ac_ext"
12466 case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12473 grep -v '^ *+' conftest.er1 >conftest.err
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } >/dev/null && {
12478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12479 test ! -s conftest.err
12481 ac_header_preproc=yes
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12486 ac_header_preproc=no
12489 rm -f conftest.err conftest.$ac_ext
12490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12491 echo "${ECHO_T}$ac_header_preproc" >&6; }
12493 # So? What about this header?
12494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12500 ac_header_preproc=yes
12503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12516 ## ---------------------------------------- ##
12517 ## Report this to pgsql-bugs@postgresql.org ##
12518 ## ---------------------------------------- ##
12520 ) | sed "s/^/$as_me: WARNING: /" >&2
12523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 eval "$as_ac_Header=\$ac_header_preproc"
12530 ac_res=`eval echo '${'$as_ac_Header'}'`
12531 { echo "$as_me:$LINENO: result: $ac_res" >&5
12532 echo "${ECHO_T}$ac_res" >&6; }
12535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12536 cat >>confdefs.h <<_ACEOF
12537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12541 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12542 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12543 { (exit 1); exit 1; }; }
12556 ## Types, structures, compiler characteristics
12559 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12560 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12561 if test "${ac_cv_c_bigendian+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 # See if sys/param.h defines the BYTE_ORDER macro.
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 #include <sys/types.h>
12572 #include <sys/param.h>
12577 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12578 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
12579 bogus endian macros
12586 rm -f conftest.$ac_objext
12587 if { (ac_try="$ac_compile"
12588 case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_compile") 2>conftest.er1
12595 grep -v '^ *+' conftest.er1 >conftest.err
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } && {
12600 test -z "$ac_c_werror_flag" ||
12601 test ! -s conftest.err
12602 } && test -s conftest.$ac_objext; then
12603 # It does; now see whether it defined to BIG_ENDIAN or not.
12604 cat >conftest.$ac_ext <<_ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12610 #include <sys/types.h>
12611 #include <sys/param.h>
12616 #if BYTE_ORDER != BIG_ENDIAN
12624 rm -f conftest.$ac_objext
12625 if { (ac_try="$ac_compile"
12626 case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_compile") 2>conftest.er1
12633 grep -v '^ *+' conftest.er1 >conftest.err
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && {
12638 test -z "$ac_c_werror_flag" ||
12639 test ! -s conftest.err
12640 } && test -s conftest.$ac_objext; then
12641 ac_cv_c_bigendian=yes
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12646 ac_cv_c_bigendian=no
12649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12654 # It does not; compile a test program.
12655 if test "$cross_compiling" = yes; then
12656 # try to guess the endianness by grepping values into an object file
12657 ac_cv_c_bigendian=unknown
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12665 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12666 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12667 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12668 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12669 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12673 _ascii (); _ebcdic ();
12678 rm -f conftest.$ac_objext
12679 if { (ac_try="$ac_compile"
12680 case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_compile") 2>conftest.er1
12687 grep -v '^ *+' conftest.er1 >conftest.err
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest.$ac_objext; then
12695 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12696 ac_cv_c_bigendian=yes
12698 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12699 if test "$ac_cv_c_bigendian" = unknown; then
12700 ac_cv_c_bigendian=no
12702 # finding both strings is unlikely to happen, but who knows?
12703 ac_cv_c_bigendian=unknown
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12715 cat >conftest.$ac_ext <<_ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12721 $ac_includes_default
12726 /* Are we little or big endian? From Harbison&Steele. */
12730 char c[sizeof (long int)];
12733 return u.c[sizeof (long int) - 1] == 1;
12739 rm -f conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_link") 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12750 { (case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_try") 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_cv_c_bigendian=no
12761 echo "$as_me: program exited with status $ac_status" >&5
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12765 ( exit $ac_status )
12766 ac_cv_c_bigendian=yes
12768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12776 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12777 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
12778 case $ac_cv_c_bigendian in
12781 cat >>confdefs.h <<\_ACEOF
12782 #define WORDS_BIGENDIAN 1
12788 { { echo "$as_me:$LINENO: error: unknown endianness
12789 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12790 echo "$as_me: error: unknown endianness
12791 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12792 { (exit 1); exit 1; }; } ;;
12795 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12796 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12797 if test "${ac_cv_c_const+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 cat >conftest.$ac_ext <<_ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12810 /* FIXME: Include the comments suggested by Paul. */
12811 #ifndef __cplusplus
12812 /* Ultrix mips cc rejects this. */
12813 typedef int charset[2];
12815 /* SunOS 4.1.1 cc rejects this. */
12816 char const *const *pcpcc;
12818 /* NEC SVR4.0.2 mips cc rejects this. */
12819 struct point {int x, y;};
12820 static struct point const zero = {0,0};
12821 /* AIX XL C 1.02.0.0 rejects this.
12822 It does not let you subtract one const X* pointer from another in
12823 an arm of an if-expression whose if-part is not a constant
12825 const char *g = "string";
12826 pcpcc = &g + (g ? g-g : 0);
12827 /* HPUX 7.0 cc rejects these. */
12829 ppc = (char**) pcpcc;
12830 pcpcc = (char const *const *) ppc;
12831 { /* SCO 3.2v4 cc rejects this. */
12833 char const *s = 0 ? (char *) 0 : (char const *) 0;
12838 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12839 int x[] = {25, 17};
12840 const int *foo = &x[0];
12843 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12844 typedef const int *iptr;
12848 { /* AIX XL C 1.02.0.0 rejects this saying
12849 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12850 struct s { int j; const int *ap[3]; };
12851 struct s *b; b->j = 5;
12853 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12854 const int foo = 10;
12855 if (!foo) return 0;
12857 return !cs[0] && !zero.x;
12864 rm -f conftest.$ac_objext
12865 if { (ac_try="$ac_compile"
12866 case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_compile") 2>conftest.er1
12873 grep -v '^ *+' conftest.er1 >conftest.err
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } && {
12878 test -z "$ac_c_werror_flag" ||
12879 test ! -s conftest.err
12880 } && test -s conftest.$ac_objext; then
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12892 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12893 if test $ac_cv_c_const = no; then
12895 cat >>confdefs.h <<\_ACEOF
12901 { echo "$as_me:$LINENO: checking for inline" >&5
12902 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
12903 if test "${ac_cv_c_inline+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 for ac_kw in inline __inline__ __inline; do
12908 cat >conftest.$ac_ext <<_ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12914 #ifndef __cplusplus
12916 static $ac_kw foo_t static_foo () {return 0; }
12917 $ac_kw foo_t foo () {return 0; }
12921 rm -f conftest.$ac_objext
12922 if { (ac_try="$ac_compile"
12923 case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_compile") 2>conftest.er1
12930 grep -v '^ *+' conftest.er1 >conftest.err
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } && {
12935 test -z "$ac_c_werror_flag" ||
12936 test ! -s conftest.err
12937 } && test -s conftest.$ac_objext; then
12938 ac_cv_c_inline=$ac_kw
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12947 test "$ac_cv_c_inline" != no && break
12951 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12952 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
12955 case $ac_cv_c_inline in
12958 case $ac_cv_c_inline in
12960 *) ac_val=$ac_cv_c_inline;;
12962 cat >>confdefs.h <<_ACEOF
12963 #ifndef __cplusplus
12964 #define inline $ac_val
12970 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
12971 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
12972 if test "${ac_cv_c_stringize+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 cat >conftest.$ac_ext <<_ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12983 char *s = x(teststring);
12985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12986 $EGREP "#teststring" >/dev/null 2>&1; then
12987 ac_cv_c_stringize=no
12989 ac_cv_c_stringize=yes
12994 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
12995 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
12996 if test $ac_cv_c_stringize = yes; then
12998 cat >>confdefs.h <<\_ACEOF
12999 #define HAVE_STRINGIZE 1
13004 { echo "$as_me:$LINENO: checking for signed types" >&5
13005 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13006 if test "${pgac_cv_c_signed+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 cat >conftest.$ac_ext <<_ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13019 signed char c; signed short s; signed int i;
13024 rm -f conftest.$ac_objext
13025 if { (ac_try="$ac_compile"
13026 case "(($ac_try" in
13027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028 *) ac_try_echo=$ac_try;;
13030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031 (eval "$ac_compile") 2>conftest.er1
13033 grep -v '^ *+' conftest.er1 >conftest.err
13035 cat conftest.err >&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } && {
13038 test -z "$ac_c_werror_flag" ||
13039 test ! -s conftest.err
13040 } && test -s conftest.$ac_objext; then
13041 pgac_cv_c_signed=yes
13043 echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13046 pgac_cv_c_signed=no
13049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13051 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13052 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13053 if test x"$pgac_cv_c_signed" = xno ; then
13055 cat >>confdefs.h <<\_ACEOF
13060 { echo "$as_me:$LINENO: checking for working volatile" >&5
13061 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13062 if test "${ac_cv_c_volatile+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 cat >conftest.$ac_ext <<_ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13077 int * volatile y = (int *) 0;
13083 rm -f conftest.$ac_objext
13084 if { (ac_try="$ac_compile"
13085 case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_compile") 2>conftest.er1
13092 grep -v '^ *+' conftest.er1 >conftest.err
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } && {
13097 test -z "$ac_c_werror_flag" ||
13098 test ! -s conftest.err
13099 } && test -s conftest.$ac_objext; then
13100 ac_cv_c_volatile=yes
13102 echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13105 ac_cv_c_volatile=no
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13110 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13111 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13112 if test $ac_cv_c_volatile = no; then
13114 cat >>confdefs.h <<\_ACEOF
13120 { echo "$as_me:$LINENO: checking for __func__" >&5
13121 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13122 if test "${pgac_cv_funcname_func_support+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 cat >conftest.$ac_ext <<_ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13135 printf("%s\n", __func__);
13140 rm -f conftest.$ac_objext
13141 if { (ac_try="$ac_compile"
13142 case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_compile") 2>conftest.er1
13149 grep -v '^ *+' conftest.er1 >conftest.err
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } && {
13154 test -z "$ac_c_werror_flag" ||
13155 test ! -s conftest.err
13156 } && test -s conftest.$ac_objext; then
13157 pgac_cv_funcname_func_support=yes
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 pgac_cv_funcname_func_support=no
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13167 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13168 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13169 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13171 cat >>confdefs.h <<\_ACEOF
13172 #define HAVE_FUNCNAME__FUNC 1
13176 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13177 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13178 if test "${pgac_cv_funcname_function_support+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 cat >conftest.$ac_ext <<_ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13191 printf("%s\n", __FUNCTION__);
13196 rm -f conftest.$ac_objext
13197 if { (ac_try="$ac_compile"
13198 case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_compile") 2>conftest.er1
13205 grep -v '^ *+' conftest.er1 >conftest.err
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } && {
13210 test -z "$ac_c_werror_flag" ||
13211 test ! -s conftest.err
13212 } && test -s conftest.$ac_objext; then
13213 pgac_cv_funcname_function_support=yes
13215 echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13218 pgac_cv_funcname_function_support=no
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13224 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13225 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13227 cat >>confdefs.h <<\_ACEOF
13228 #define HAVE_FUNCNAME__FUNCTION 1
13233 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13234 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13235 if test "${ac_cv_struct_tm+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 cat >conftest.$ac_ext <<_ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 #include <sys/types.h>
13251 int *p = &tm.tm_sec;
13257 rm -f conftest.$ac_objext
13258 if { (ac_try="$ac_compile"
13259 case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_compile") 2>conftest.er1
13266 grep -v '^ *+' conftest.er1 >conftest.err
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } && {
13271 test -z "$ac_c_werror_flag" ||
13272 test ! -s conftest.err
13273 } && test -s conftest.$ac_objext; then
13274 ac_cv_struct_tm=time.h
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13279 ac_cv_struct_tm=sys/time.h
13282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13285 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13286 if test $ac_cv_struct_tm = sys/time.h; then
13288 cat >>confdefs.h <<\_ACEOF
13289 #define TM_IN_SYS_TIME 1
13294 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13295 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13296 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13299 cat >conftest.$ac_ext <<_ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13305 #include <sys/types.h>
13306 #include <$ac_cv_struct_tm>
13312 static struct tm ac_aggr;
13313 if (ac_aggr.tm_zone)
13319 rm -f conftest.$ac_objext
13320 if { (ac_try="$ac_compile"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_compile") 2>conftest.er1
13328 grep -v '^ *+' conftest.er1 >conftest.err
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } && {
13333 test -z "$ac_c_werror_flag" ||
13334 test ! -s conftest.err
13335 } && test -s conftest.$ac_objext; then
13336 ac_cv_member_struct_tm_tm_zone=yes
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 #include <sys/types.h>
13348 #include <$ac_cv_struct_tm>
13354 static struct tm ac_aggr;
13355 if (sizeof ac_aggr.tm_zone)
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_compile") 2>conftest.er1
13370 grep -v '^ *+' conftest.er1 >conftest.err
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } && {
13375 test -z "$ac_c_werror_flag" ||
13376 test ! -s conftest.err
13377 } && test -s conftest.$ac_objext; then
13378 ac_cv_member_struct_tm_tm_zone=yes
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 ac_cv_member_struct_tm_tm_zone=no
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13392 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13393 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13395 cat >>confdefs.h <<_ACEOF
13396 #define HAVE_STRUCT_TM_TM_ZONE 1
13402 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13404 cat >>confdefs.h <<\_ACEOF
13405 #define HAVE_TM_ZONE 1
13409 { echo "$as_me:$LINENO: checking for tzname" >&5
13410 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13411 if test "${ac_cv_var_tzname+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13421 #ifndef tzname /* For SGI. */
13422 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (ac_try="$ac_link"
13435 case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_link") 2>conftest.er1
13442 grep -v '^ *+' conftest.er1 >conftest.err
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } && {
13447 test -z "$ac_c_werror_flag" ||
13448 test ! -s conftest.err
13449 } && test -s conftest$ac_exeext &&
13450 $as_test_x conftest$ac_exeext; then
13451 ac_cv_var_tzname=yes
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13456 ac_cv_var_tzname=no
13459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13460 conftest$ac_exeext conftest.$ac_ext
13462 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13463 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13464 if test $ac_cv_var_tzname = yes; then
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_TZNAME 1
13472 { echo "$as_me:$LINENO: checking for union semun" >&5
13473 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13474 if test "${ac_cv_type_union_semun+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 cat >conftest.$ac_ext <<_ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 #include <sys/types.h>
13484 #include <sys/ipc.h>
13485 #include <sys/sem.h>
13487 typedef union semun ac__type_new_;
13491 if ((ac__type_new_ *) 0)
13493 if (sizeof (ac__type_new_))
13499 rm -f conftest.$ac_objext
13500 if { (ac_try="$ac_compile"
13501 case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_compile") 2>conftest.er1
13508 grep -v '^ *+' conftest.er1 >conftest.err
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } && {
13513 test -z "$ac_c_werror_flag" ||
13514 test ! -s conftest.err
13515 } && test -s conftest.$ac_objext; then
13516 ac_cv_type_union_semun=yes
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13521 ac_cv_type_union_semun=no
13524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13527 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13528 if test $ac_cv_type_union_semun = yes; then
13530 cat >>confdefs.h <<_ACEOF
13531 #define HAVE_UNION_SEMUN 1
13537 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13538 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13539 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 cat >conftest.$ac_ext <<_ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h. */
13548 #include <sys/types.h>
13549 #ifdef HAVE_SYS_UN_H
13550 #include <sys/un.h>
13554 typedef struct sockaddr_un ac__type_new_;
13558 if ((ac__type_new_ *) 0)
13560 if (sizeof (ac__type_new_))
13566 rm -f conftest.$ac_objext
13567 if { (ac_try="$ac_compile"
13568 case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_compile") 2>conftest.er1
13575 grep -v '^ *+' conftest.er1 >conftest.err
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } && {
13580 test -z "$ac_c_werror_flag" ||
13581 test ! -s conftest.err
13582 } && test -s conftest.$ac_objext; then
13583 ac_cv_type_struct_sockaddr_un=yes
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 ac_cv_type_struct_sockaddr_un=no
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13594 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
13595 if test $ac_cv_type_struct_sockaddr_un = yes; then
13597 cat >>confdefs.h <<_ACEOF
13598 #define HAVE_STRUCT_SOCKADDR_UN 1
13602 cat >>confdefs.h <<\_ACEOF
13603 #define HAVE_UNIX_SOCKETS 1
13608 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13609 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
13610 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 cat >conftest.$ac_ext <<_ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 #include <sys/types.h>
13620 #ifdef HAVE_SYS_SOCKET_H
13621 #include <sys/socket.h>
13625 typedef struct sockaddr_storage ac__type_new_;
13629 if ((ac__type_new_ *) 0)
13631 if (sizeof (ac__type_new_))
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compile") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } && {
13651 test -z "$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 } && test -s conftest.$ac_objext; then
13654 ac_cv_type_struct_sockaddr_storage=yes
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_cv_type_struct_sockaddr_storage=no
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13665 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
13666 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13668 cat >>confdefs.h <<_ACEOF
13669 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13675 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13676 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
13677 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 cat >conftest.$ac_ext <<_ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 #include <sys/types.h>
13687 #ifdef HAVE_SYS_SOCKET_H
13688 #include <sys/socket.h>
13695 static struct sockaddr_storage ac_aggr;
13696 if (ac_aggr.ss_family)
13702 rm -f conftest.$ac_objext
13703 if { (ac_try="$ac_compile"
13704 case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_compile") 2>conftest.er1
13711 grep -v '^ *+' conftest.er1 >conftest.err
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } && {
13716 test -z "$ac_c_werror_flag" ||
13717 test ! -s conftest.err
13718 } && test -s conftest.$ac_objext; then
13719 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 cat >conftest.$ac_ext <<_ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 #include <sys/types.h>
13731 #ifdef HAVE_SYS_SOCKET_H
13732 #include <sys/socket.h>
13739 static struct sockaddr_storage ac_aggr;
13740 if (sizeof ac_aggr.ss_family)
13746 rm -f conftest.$ac_objext
13747 if { (ac_try="$ac_compile"
13748 case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_compile") 2>conftest.er1
13755 grep -v '^ *+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } && {
13760 test -z "$ac_c_werror_flag" ||
13761 test ! -s conftest.err
13762 } && test -s conftest.$ac_objext; then
13763 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13768 ac_cv_member_struct_sockaddr_storage_ss_family=no
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13776 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13777 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
13778 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13780 cat >>confdefs.h <<_ACEOF
13781 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13786 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13787 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
13788 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13791 cat >conftest.$ac_ext <<_ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 #include <sys/types.h>
13798 #ifdef HAVE_SYS_SOCKET_H
13799 #include <sys/socket.h>
13806 static struct sockaddr_storage ac_aggr;
13807 if (ac_aggr.__ss_family)
13813 rm -f conftest.$ac_objext
13814 if { (ac_try="$ac_compile"
13815 case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_compile") 2>conftest.er1
13822 grep -v '^ *+' conftest.er1 >conftest.err
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } && {
13827 test -z "$ac_c_werror_flag" ||
13828 test ! -s conftest.err
13829 } && test -s conftest.$ac_objext; then
13830 ac_cv_member_struct_sockaddr_storage___ss_family=yes
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13835 cat >conftest.$ac_ext <<_ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13841 #include <sys/types.h>
13842 #ifdef HAVE_SYS_SOCKET_H
13843 #include <sys/socket.h>
13850 static struct sockaddr_storage ac_aggr;
13851 if (sizeof ac_aggr.__ss_family)
13857 rm -f conftest.$ac_objext
13858 if { (ac_try="$ac_compile"
13859 case "(($ac_try" in
13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861 *) ac_try_echo=$ac_try;;
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864 (eval "$ac_compile") 2>conftest.er1
13866 grep -v '^ *+' conftest.er1 >conftest.err
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } && {
13871 test -z "$ac_c_werror_flag" ||
13872 test ! -s conftest.err
13873 } && test -s conftest.$ac_objext; then
13874 ac_cv_member_struct_sockaddr_storage___ss_family=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_cv_member_struct_sockaddr_storage___ss_family=no
13882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
13888 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
13889 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
13891 cat >>confdefs.h <<_ACEOF
13892 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
13897 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
13898 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
13899 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 cat >conftest.$ac_ext <<_ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13908 #include <sys/types.h>
13909 #ifdef HAVE_SYS_SOCKET_H
13910 #include <sys/socket.h>
13917 static struct sockaddr_storage ac_aggr;
13918 if (ac_aggr.ss_len)
13924 rm -f conftest.$ac_objext
13925 if { (ac_try="$ac_compile"
13926 case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_compile") 2>conftest.er1
13933 grep -v '^ *+' conftest.er1 >conftest.err
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } && {
13938 test -z "$ac_c_werror_flag" ||
13939 test ! -s conftest.err
13940 } && test -s conftest.$ac_objext; then
13941 ac_cv_member_struct_sockaddr_storage_ss_len=yes
13943 echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13946 cat >conftest.$ac_ext <<_ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13952 #include <sys/types.h>
13953 #ifdef HAVE_SYS_SOCKET_H
13954 #include <sys/socket.h>
13961 static struct sockaddr_storage ac_aggr;
13962 if (sizeof ac_aggr.ss_len)
13968 rm -f conftest.$ac_objext
13969 if { (ac_try="$ac_compile"
13970 case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975 (eval "$ac_compile") 2>conftest.er1
13977 grep -v '^ *+' conftest.er1 >conftest.err
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && {
13982 test -z "$ac_c_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest.$ac_objext; then
13985 ac_cv_member_struct_sockaddr_storage_ss_len=yes
13987 echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13990 ac_cv_member_struct_sockaddr_storage_ss_len=no
13993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
13999 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14000 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14002 cat >>confdefs.h <<_ACEOF
14003 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14008 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14009 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14010 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 cat >conftest.$ac_ext <<_ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 #include <sys/types.h>
14020 #ifdef HAVE_SYS_SOCKET_H
14021 #include <sys/socket.h>
14028 static struct sockaddr_storage ac_aggr;
14029 if (ac_aggr.__ss_len)
14035 rm -f conftest.$ac_objext
14036 if { (ac_try="$ac_compile"
14037 case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_compile") 2>conftest.er1
14044 grep -v '^ *+' conftest.er1 >conftest.err
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } && {
14049 test -z "$ac_c_werror_flag" ||
14050 test ! -s conftest.err
14051 } && test -s conftest.$ac_objext; then
14052 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #include <sys/types.h>
14064 #ifdef HAVE_SYS_SOCKET_H
14065 #include <sys/socket.h>
14072 static struct sockaddr_storage ac_aggr;
14073 if (sizeof ac_aggr.__ss_len)
14079 rm -f conftest.$ac_objext
14080 if { (ac_try="$ac_compile"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_compile") 2>conftest.er1
14088 grep -v '^ *+' conftest.er1 >conftest.err
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } && {
14093 test -z "$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14095 } && test -s conftest.$ac_objext; then
14096 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ac_cv_member_struct_sockaddr_storage___ss_len=no
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14110 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14111 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14113 cat >>confdefs.h <<_ACEOF
14114 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14119 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14120 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14121 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 cat >conftest.$ac_ext <<_ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14130 #include <sys/types.h>
14131 #ifdef HAVE_SYS_SOCKET_H
14132 #include <sys/socket.h>
14139 static struct sockaddr ac_aggr;
14140 if (ac_aggr.sa_len)
14146 rm -f conftest.$ac_objext
14147 if { (ac_try="$ac_compile"
14148 case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_compile") 2>conftest.er1
14155 grep -v '^ *+' conftest.er1 >conftest.err
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } && {
14160 test -z "$ac_c_werror_flag" ||
14161 test ! -s conftest.err
14162 } && test -s conftest.$ac_objext; then
14163 ac_cv_member_struct_sockaddr_sa_len=yes
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14168 cat >conftest.$ac_ext <<_ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14174 #include <sys/types.h>
14175 #ifdef HAVE_SYS_SOCKET_H
14176 #include <sys/socket.h>
14183 static struct sockaddr ac_aggr;
14184 if (sizeof ac_aggr.sa_len)
14190 rm -f conftest.$ac_objext
14191 if { (ac_try="$ac_compile"
14192 case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_compile") 2>conftest.er1
14199 grep -v '^ *+' conftest.er1 >conftest.err
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } && {
14204 test -z "$ac_c_werror_flag" ||
14205 test ! -s conftest.err
14206 } && test -s conftest.$ac_objext; then
14207 ac_cv_member_struct_sockaddr_sa_len=yes
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14212 ac_cv_member_struct_sockaddr_sa_len=no
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14221 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14222 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14224 cat >>confdefs.h <<_ACEOF
14225 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14231 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14232 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14233 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 cat >conftest.$ac_ext <<_ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 #include <sys/types.h>
14243 #include <sys/socket.h>
14247 typedef struct addrinfo ac__type_new_;
14251 if ((ac__type_new_ *) 0)
14253 if (sizeof (ac__type_new_))
14259 rm -f conftest.$ac_objext
14260 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
14276 ac_cv_type_struct_addrinfo=yes
14278 echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14281 ac_cv_type_struct_addrinfo=no
14284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14286 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14287 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14288 if test $ac_cv_type_struct_addrinfo = yes; then
14290 cat >>confdefs.h <<_ACEOF
14291 #define HAVE_STRUCT_ADDRINFO 1
14298 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14299 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14300 if test "${ac_cv_type_struct_cmsgcred+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/param.h>
14310 #include <sys/types.h>
14311 #include <sys/socket.h>
14312 #include <sys/ucred.h>
14314 typedef struct cmsgcred ac__type_new_;
14318 if ((ac__type_new_ *) 0)
14320 if (sizeof (ac__type_new_))
14326 rm -f conftest.$ac_objext
14327 if { (ac_try="$ac_compile"
14328 case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_compile") 2>conftest.er1
14335 grep -v '^ *+' conftest.er1 >conftest.err
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } && {
14340 test -z "$ac_c_werror_flag" ||
14341 test ! -s conftest.err
14342 } && test -s conftest.$ac_objext; then
14343 ac_cv_type_struct_cmsgcred=yes
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 ac_cv_type_struct_cmsgcred=no
14351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14353 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14354 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14355 if test $ac_cv_type_struct_cmsgcred = yes; then
14357 cat >>confdefs.h <<_ACEOF
14358 #define HAVE_STRUCT_CMSGCRED 1
14363 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14364 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14365 if test "${ac_cv_type_struct_fcred+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/param.h>
14375 #include <sys/types.h>
14376 #include <sys/socket.h>
14377 #include <sys/ucred.h>
14379 typedef struct fcred ac__type_new_;
14383 if ((ac__type_new_ *) 0)
14385 if (sizeof (ac__type_new_))
14391 rm -f conftest.$ac_objext
14392 if { (ac_try="$ac_compile"
14393 case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_compile") 2>conftest.er1
14400 grep -v '^ *+' conftest.er1 >conftest.err
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } && {
14405 test -z "$ac_c_werror_flag" ||
14406 test ! -s conftest.err
14407 } && test -s conftest.$ac_objext; then
14408 ac_cv_type_struct_fcred=yes
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14413 ac_cv_type_struct_fcred=no
14416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14418 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14419 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14420 if test $ac_cv_type_struct_fcred = yes; then
14422 cat >>confdefs.h <<_ACEOF
14423 #define HAVE_STRUCT_FCRED 1
14428 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14429 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14430 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
14433 cat >conftest.$ac_ext <<_ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 #include <sys/param.h>
14440 #include <sys/types.h>
14441 #include <sys/socket.h>
14442 #include <sys/ucred.h>
14444 typedef struct sockcred ac__type_new_;
14448 if ((ac__type_new_ *) 0)
14450 if (sizeof (ac__type_new_))
14456 rm -f conftest.$ac_objext
14457 if { (ac_try="$ac_compile"
14458 case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_compile") 2>conftest.er1
14465 grep -v '^ *+' conftest.er1 >conftest.err
14467 cat conftest.err >&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } && {
14470 test -z "$ac_c_werror_flag" ||
14471 test ! -s conftest.err
14472 } && test -s conftest.$ac_objext; then
14473 ac_cv_type_struct_sockcred=yes
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 ac_cv_type_struct_sockcred=no
14481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14483 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14484 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14485 if test $ac_cv_type_struct_sockcred = yes; then
14487 cat >>confdefs.h <<_ACEOF
14488 #define HAVE_STRUCT_SOCKCRED 1
14495 { echo "$as_me:$LINENO: checking for struct option" >&5
14496 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14497 if test "${ac_cv_type_struct_option+set}" = set; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 cat >conftest.$ac_ext <<_ACEOF
14503 cat confdefs.h >>conftest.$ac_ext
14504 cat >>conftest.$ac_ext <<_ACEOF
14505 /* end confdefs.h. */
14506 #ifdef HAVE_GETOPT_H
14507 #include <getopt.h>
14510 typedef struct option ac__type_new_;
14514 if ((ac__type_new_ *) 0)
14516 if (sizeof (ac__type_new_))
14522 rm -f conftest.$ac_objext
14523 if { (ac_try="$ac_compile"
14524 case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_compile") 2>conftest.er1
14531 grep -v '^ *+' conftest.er1 >conftest.err
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } && {
14536 test -z "$ac_c_werror_flag" ||
14537 test ! -s conftest.err
14538 } && test -s conftest.$ac_objext; then
14539 ac_cv_type_struct_option=yes
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14544 ac_cv_type_struct_option=no
14547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14550 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14551 if test $ac_cv_type_struct_option = yes; then
14553 cat >>confdefs.h <<_ACEOF
14554 #define HAVE_STRUCT_OPTION 1
14561 if test "$with_zlib" = yes; then
14562 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14563 # did not). While we could work around the lack of z_streamp, it
14564 # seems unwise to encourage people to use such old zlib versions...
14565 { echo "$as_me:$LINENO: checking for z_streamp" >&5
14566 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
14567 if test "${ac_cv_type_z_streamp+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 cat >conftest.$ac_ext <<_ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14578 typedef z_streamp ac__type_new_;
14582 if ((ac__type_new_ *) 0)
14584 if (sizeof (ac__type_new_))
14590 rm -f conftest.$ac_objext
14591 if { (ac_try="$ac_compile"
14592 case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_compile") 2>conftest.er1
14599 grep -v '^ *+' conftest.er1 >conftest.err
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } && {
14604 test -z "$ac_c_werror_flag" ||
14605 test ! -s conftest.err
14606 } && test -s conftest.$ac_objext; then
14607 ac_cv_type_z_streamp=yes
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_cv_type_z_streamp=no
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14618 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
14619 if test $ac_cv_type_z_streamp = yes; then
14622 { { echo "$as_me:$LINENO: error: zlib version is too old
14623 Use --without-zlib to disable zlib support." >&5
14624 echo "$as_me: error: zlib version is too old
14625 Use --without-zlib to disable zlib support." >&2;}
14626 { (exit 1); exit 1; }; }
14631 if test "$with_krb5" = yes; then
14632 # Check for differences between MIT and Heimdal (KTH) releases
14633 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14634 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
14635 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 cat >conftest.$ac_ext <<_ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h. */
14649 static krb5_ticket ac_aggr;
14650 if (ac_aggr.enc_part2)
14656 rm -f conftest.$ac_objext
14657 if { (ac_try="$ac_compile"
14658 case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_compile") 2>conftest.er1
14665 grep -v '^ *+' conftest.er1 >conftest.err
14667 cat conftest.err >&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } && {
14670 test -z "$ac_c_werror_flag" ||
14671 test ! -s conftest.err
14672 } && test -s conftest.$ac_objext; then
14673 ac_cv_member_krb5_ticket_enc_part2=yes
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 cat >conftest.$ac_ext <<_ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14689 static krb5_ticket ac_aggr;
14690 if (sizeof ac_aggr.enc_part2)
14696 rm -f conftest.$ac_objext
14697 if { (ac_try="$ac_compile"
14698 case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_compile") 2>conftest.er1
14705 grep -v '^ *+' conftest.er1 >conftest.err
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } && {
14710 test -z "$ac_c_werror_flag" ||
14711 test ! -s conftest.err
14712 } && test -s conftest.$ac_objext; then
14713 ac_cv_member_krb5_ticket_enc_part2=yes
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14718 ac_cv_member_krb5_ticket_enc_part2=no
14721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14727 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
14728 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14730 cat >>confdefs.h <<_ACEOF
14731 #define HAVE_KRB5_TICKET_ENC_PART2 1
14736 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14737 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
14738 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 cat >conftest.$ac_ext <<_ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14752 static krb5_ticket ac_aggr;
14753 if (ac_aggr.client)
14759 rm -f conftest.$ac_objext
14760 if { (ac_try="$ac_compile"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_compile") 2>conftest.er1
14768 grep -v '^ *+' conftest.er1 >conftest.err
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } && {
14773 test -z "$ac_c_werror_flag" ||
14774 test ! -s conftest.err
14775 } && test -s conftest.$ac_objext; then
14776 ac_cv_member_krb5_ticket_client=yes
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14781 cat >conftest.$ac_ext <<_ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14792 static krb5_ticket ac_aggr;
14793 if (sizeof ac_aggr.client)
14799 rm -f conftest.$ac_objext
14800 if { (ac_try="$ac_compile"
14801 case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_compile") 2>conftest.er1
14808 grep -v '^ *+' conftest.er1 >conftest.err
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } && {
14813 test -z "$ac_c_werror_flag" ||
14814 test ! -s conftest.err
14815 } && test -s conftest.$ac_objext; then
14816 ac_cv_member_krb5_ticket_client=yes
14818 echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14821 ac_cv_member_krb5_ticket_client=no
14824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14829 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
14830 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
14831 if test $ac_cv_member_krb5_ticket_client = yes; then
14833 cat >>confdefs.h <<_ACEOF
14834 #define HAVE_KRB5_TICKET_CLIENT 1
14839 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
14840 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
14841 { (exit 1); exit 1; }; }
14846 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
14847 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
14848 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 cat >conftest.$ac_ext <<_ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h. */
14862 static krb5_error ac_aggr;
14863 if (ac_aggr.text.data)
14869 rm -f conftest.$ac_objext
14870 if { (ac_try="$ac_compile"
14871 case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_compile") 2>conftest.er1
14878 grep -v '^ *+' conftest.er1 >conftest.err
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } && {
14883 test -z "$ac_c_werror_flag" ||
14884 test ! -s conftest.err
14885 } && test -s conftest.$ac_objext; then
14886 ac_cv_member_krb5_error_text_data=yes
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14891 cat >conftest.$ac_ext <<_ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h. */
14902 static krb5_error ac_aggr;
14903 if (sizeof ac_aggr.text.data)
14909 rm -f conftest.$ac_objext
14910 if { (ac_try="$ac_compile"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_compile") 2>conftest.er1
14918 grep -v '^ *+' conftest.er1 >conftest.err
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } && {
14923 test -z "$ac_c_werror_flag" ||
14924 test ! -s conftest.err
14925 } && test -s conftest.$ac_objext; then
14926 ac_cv_member_krb5_error_text_data=yes
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14931 ac_cv_member_krb5_error_text_data=no
14934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
14940 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
14941 if test $ac_cv_member_krb5_error_text_data = yes; then
14943 cat >>confdefs.h <<_ACEOF
14944 #define HAVE_KRB5_ERROR_TEXT_DATA 1
14949 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
14950 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
14951 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14954 cat >conftest.$ac_ext <<_ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14965 static krb5_error ac_aggr;
14966 if (ac_aggr.e_data)
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_krb5_error_e_data=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. */
15005 static krb5_error ac_aggr;
15006 if (sizeof ac_aggr.e_data)
15012 rm -f conftest.$ac_objext
15013 if { (ac_try="$ac_compile"
15014 case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_compile") 2>conftest.er1
15021 grep -v '^ *+' conftest.er1 >conftest.err
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } && {
15026 test -z "$ac_c_werror_flag" ||
15027 test ! -s conftest.err
15028 } && test -s conftest.$ac_objext; then
15029 ac_cv_member_krb5_error_e_data=yes
15031 echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.$ac_ext >&5
15034 ac_cv_member_krb5_error_e_data=no
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15043 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15044 if test $ac_cv_member_krb5_error_e_data = yes; then
15046 cat >>confdefs.h <<_ACEOF
15047 #define HAVE_KRB5_ERROR_E_DATA 1
15052 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15053 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15054 { (exit 1); exit 1; }; }
15060 # Win32 requires headers to be loaded for __stdcall, so can't use
15061 # AC_CHECK_FUNCS here.
15062 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15063 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15064 cat >conftest.$ac_ext <<_ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15074 krb5_free_unparsed_name(NULL,NULL);
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (ac_try="$ac_link"
15081 case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_link") 2>conftest.er1
15088 grep -v '^ *+' conftest.er1 >conftest.err
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } && {
15093 test -z "$ac_c_werror_flag" ||
15094 test ! -s conftest.err
15095 } && test -s conftest$ac_exeext &&
15096 $as_test_x conftest$ac_exeext; then
15098 cat >>confdefs.h <<\_ACEOF
15099 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15102 { echo "$as_me:$LINENO: result: yes" >&5
15103 echo "${ECHO_T}yes" >&6; }
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 { echo "$as_me:$LINENO: result: no" >&5
15109 echo "${ECHO_T}no" >&6; }
15112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15113 conftest$ac_exeext conftest.$ac_ext
15118 ## Functions, global variables
15121 { echo "$as_me:$LINENO: checking for int timezone" >&5
15122 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15123 if test "${pgac_cv_var_int_timezone+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 cat >conftest.$ac_ext <<_ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15138 res = timezone / 60;
15140 res = _timezone / 60;
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (ac_try="$ac_link"
15148 case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_link") 2>conftest.er1
15155 grep -v '^ *+' conftest.er1 >conftest.err
15157 cat conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && {
15160 test -z "$ac_c_werror_flag" ||
15161 test ! -s conftest.err
15162 } && test -s conftest$ac_exeext &&
15163 $as_test_x conftest$ac_exeext; then
15164 pgac_cv_var_int_timezone=yes
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 pgac_cv_var_int_timezone=no
15172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15173 conftest$ac_exeext conftest.$ac_ext
15175 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15176 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15177 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15179 cat >>confdefs.h <<\_ACEOF
15180 #define HAVE_INT_TIMEZONE
15184 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15185 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15186 if test "${ac_cv_func_accept_return+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 if test "${ac_cv_func_accept_arg1+set}" = set; then
15190 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 if test "${ac_cv_func_accept_arg2+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 if test "${ac_cv_func_accept_arg3+set}" = set; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15198 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15199 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15200 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15201 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15202 cat >conftest.$ac_ext <<_ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 #ifdef HAVE_SYS_TYPES_H
15209 #include <sys/types.h>
15211 #ifdef HAVE_SYS_SOCKET_H
15212 #include <sys/socket.h>
15214 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15223 rm -f conftest.$ac_objext
15224 if { (ac_try="$ac_compile"
15225 case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_compile") 2>conftest.er1
15232 grep -v '^ *+' conftest.er1 >conftest.err
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } && {
15237 test -z "$ac_c_werror_flag" ||
15238 test ! -s conftest.err
15239 } && test -s conftest.$ac_objext; then
15240 ac_not_found=no; break 4
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15253 if test "$ac_not_found" = yes; then
15254 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15255 echo "$as_me: error: could not determine argument types" >&2;}
15256 { (exit 1); exit 1; }; }
15258 if test "$ac_cv_func_accept_arg3" = "void"; then
15259 ac_cv_func_accept_arg3=int
15269 { 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
15270 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15272 cat >>confdefs.h <<_ACEOF
15273 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15277 cat >>confdefs.h <<_ACEOF
15278 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15282 cat >>confdefs.h <<_ACEOF
15283 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15287 cat >>confdefs.h <<_ACEOF
15288 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15292 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15293 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15294 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 cat >conftest.$ac_ext <<_ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h. */
15303 #include <sys/time.h>
15307 struct timeval *tp;
15308 struct timezone *tzp;
15309 gettimeofday(tp,tzp);
15314 rm -f conftest.$ac_objext
15315 if { (ac_try="$ac_compile"
15316 case "(($ac_try" in
15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318 *) ac_try_echo=$ac_try;;
15320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15321 (eval "$ac_compile") 2>conftest.er1
15323 grep -v '^ *+' conftest.er1 >conftest.err
15325 cat conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } && {
15328 test -z "$ac_c_werror_flag" ||
15329 test ! -s conftest.err
15330 } && test -s conftest.$ac_objext; then
15331 pgac_cv_func_gettimeofday_1arg=no
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 pgac_cv_func_gettimeofday_1arg=yes
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15341 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15342 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15343 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15345 cat >>confdefs.h <<\_ACEOF
15346 #define GETTIMEOFDAY_1ARG
15373 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15389 #define $ac_func innocuous_$ac_func
15391 /* System header to define __stub macros and hopefully few prototypes,
15392 which can conflict with char $ac_func (); below.
15393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15394 <limits.h> exists even on freestanding compilers. */
15397 # include <limits.h>
15399 # include <assert.h>
15404 /* Override any GCC internal prototype to avoid an error.
15405 Use char because int might match the return type of a GCC
15406 builtin and then its argument prototype would still apply. */
15411 /* The GNU C library defines this for functions which it implements
15412 to always fail with ENOSYS. Some functions are actually named
15413 something starting with __ and the normal name is an alias. */
15414 #if defined __stub_$ac_func || defined __stub___$ac_func
15421 return $ac_func ();
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (ac_try="$ac_link"
15428 case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_link") 2>conftest.er1
15435 grep -v '^ *+' conftest.er1 >conftest.err
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } && {
15440 test -z "$ac_c_werror_flag" ||
15441 test ! -s conftest.err
15442 } && test -s conftest$ac_exeext &&
15443 $as_test_x conftest$ac_exeext; then
15444 eval "$as_ac_var=yes"
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 eval "$as_ac_var=no"
15452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15453 conftest$ac_exeext conftest.$ac_ext
15455 ac_res=`eval echo '${'$as_ac_var'}'`
15456 { echo "$as_me:$LINENO: result: $ac_res" >&5
15457 echo "${ECHO_T}$ac_res" >&6; }
15458 if test `eval echo '${'$as_ac_var'}'` = yes; then
15459 cat >>confdefs.h <<_ACEOF
15460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15467 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15468 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15469 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 cat >conftest.$ac_ext <<_ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15478 #include <unistd.h>
15491 rm -f conftest.$ac_objext
15492 if { (ac_try="$ac_compile"
15493 case "(($ac_try" in
15494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495 *) ac_try_echo=$ac_try;;
15497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15498 (eval "$ac_compile") 2>conftest.er1
15500 grep -v '^ *+' conftest.er1 >conftest.err
15502 cat conftest.err >&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } && {
15505 test -z "$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 } && test -s conftest.$ac_objext; then
15508 ac_cv_have_decl_fdatasync=yes
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 ac_cv_have_decl_fdatasync=no
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15519 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15520 if test $ac_cv_have_decl_fdatasync = yes; then
15522 cat >>confdefs.h <<_ACEOF
15523 #define HAVE_DECL_FDATASYNC 1
15528 cat >>confdefs.h <<_ACEOF
15529 #define HAVE_DECL_FDATASYNC 0
15536 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15537 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15538 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 cat >conftest.$ac_ext <<_ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15552 #ifndef posix_fadvise
15553 (void) posix_fadvise;
15560 rm -f conftest.$ac_objext
15561 if { (ac_try="$ac_compile"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_compile") 2>conftest.er1
15569 grep -v '^ *+' conftest.er1 >conftest.err
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } && {
15574 test -z "$ac_c_werror_flag" ||
15575 test ! -s conftest.err
15576 } && test -s conftest.$ac_objext; then
15577 ac_cv_have_decl_posix_fadvise=yes
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_cv_have_decl_posix_fadvise=no
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15587 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15588 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
15589 if test $ac_cv_have_decl_posix_fadvise = yes; then
15591 cat >>confdefs.h <<_ACEOF
15592 #define HAVE_DECL_POSIX_FADVISE 1
15597 cat >>confdefs.h <<_ACEOF
15598 #define HAVE_DECL_POSIX_FADVISE 0
15605 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15606 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
15607 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 cat >conftest.$ac_ext <<_ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 $ac_includes_default
15628 rm -f conftest.$ac_objext
15629 if { (ac_try="$ac_compile"
15630 case "(($ac_try" in
15631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632 *) ac_try_echo=$ac_try;;
15634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15635 (eval "$ac_compile") 2>conftest.er1
15637 grep -v '^ *+' conftest.er1 >conftest.err
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } && {
15642 test -z "$ac_c_werror_flag" ||
15643 test ! -s conftest.err
15644 } && test -s conftest.$ac_objext; then
15645 ac_cv_have_decl_strlcat=yes
15647 echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15650 ac_cv_have_decl_strlcat=no
15653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15655 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15656 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
15657 if test $ac_cv_have_decl_strlcat = yes; then
15659 cat >>confdefs.h <<_ACEOF
15660 #define HAVE_DECL_STRLCAT 1
15665 cat >>confdefs.h <<_ACEOF
15666 #define HAVE_DECL_STRLCAT 0
15671 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15672 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
15673 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 cat >conftest.$ac_ext <<_ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h. */
15682 $ac_includes_default
15694 rm -f conftest.$ac_objext
15695 if { (ac_try="$ac_compile"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_compile") 2>conftest.er1
15703 grep -v '^ *+' conftest.er1 >conftest.err
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } && {
15708 test -z "$ac_c_werror_flag" ||
15709 test ! -s conftest.err
15710 } && test -s conftest.$ac_objext; then
15711 ac_cv_have_decl_strlcpy=yes
15713 echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15716 ac_cv_have_decl_strlcpy=no
15719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15721 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15722 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
15723 if test $ac_cv_have_decl_strlcpy = yes; then
15725 cat >>confdefs.h <<_ACEOF
15726 #define HAVE_DECL_STRLCPY 1
15731 cat >>confdefs.h <<_ACEOF
15732 #define HAVE_DECL_STRLCPY 0
15739 # This is probably only present on Darwin, but may as well check always
15740 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15741 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
15742 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 cat >conftest.$ac_ext <<_ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15756 #ifndef F_FULLFSYNC
15757 (void) F_FULLFSYNC;
15764 rm -f conftest.$ac_objext
15765 if { (ac_try="$ac_compile"
15766 case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_compile") 2>conftest.er1
15773 grep -v '^ *+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } && {
15778 test -z "$ac_c_werror_flag" ||
15779 test ! -s conftest.err
15780 } && test -s conftest.$ac_objext; then
15781 ac_cv_have_decl_F_FULLFSYNC=yes
15783 echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 ac_cv_have_decl_F_FULLFSYNC=no
15789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15792 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
15793 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15795 cat >>confdefs.h <<_ACEOF
15796 #define HAVE_DECL_F_FULLFSYNC 1
15801 cat >>confdefs.h <<_ACEOF
15802 #define HAVE_DECL_F_FULLFSYNC 0
15811 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15812 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
15813 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 cat >conftest.$ac_ext <<_ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 $ac_includes_default
15823 #include <netinet/in.h>
15825 typedef struct sockaddr_in6 ac__type_new_;
15829 if ((ac__type_new_ *) 0)
15831 if (sizeof (ac__type_new_))
15837 rm -f conftest.$ac_objext
15838 if { (ac_try="$ac_compile"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_compile") 2>conftest.er1
15846 grep -v '^ *+' conftest.er1 >conftest.err
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } && {
15851 test -z "$ac_c_werror_flag" ||
15852 test ! -s conftest.err
15853 } && test -s conftest.$ac_objext; then
15854 ac_cv_type_struct_sockaddr_in6=yes
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15859 ac_cv_type_struct_sockaddr_in6=no
15862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
15865 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
15866 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
15868 cat >>confdefs.h <<\_ACEOF
15869 #define HAVE_IPV6 1
15877 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
15878 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
15879 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 cat >conftest.$ac_ext <<_ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15888 #include <machine/vmparam.h>
15889 #include <sys/exec.h>
15894 PS_STRINGS->ps_nargvstr = 1;
15895 PS_STRINGS->ps_argvstr = "foo";
15900 rm -f conftest.$ac_objext conftest$ac_exeext
15901 if { (ac_try="$ac_link"
15902 case "(($ac_try" in
15903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907 (eval "$ac_link") 2>conftest.er1
15909 grep -v '^ *+' conftest.er1 >conftest.err
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && {
15914 test -z "$ac_c_werror_flag" ||
15915 test ! -s conftest.err
15916 } && test -s conftest$ac_exeext &&
15917 $as_test_x conftest$ac_exeext; then
15918 pgac_cv_var_PS_STRINGS=yes
15920 echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 pgac_cv_var_PS_STRINGS=no
15926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15927 conftest$ac_exeext conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
15930 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
15931 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
15933 cat >>confdefs.h <<\_ACEOF
15934 #define HAVE_PS_STRINGS
15940 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
15941 # is missing. Yes, there are machines that have only one. We may
15942 # also decide to use snprintf.c if snprintf() is present but does not
15943 # have all the features we need --- see below.
15945 if test "$PORTNAME" = "win32"; then
15946 # Win32 gets snprintf.c built unconditionally.
15948 # To properly translate all NLS languages strings, we must support the
15949 # *printf() %$ format, which allows *printf() arguments to be selected
15950 # by position in the translated string.
15952 # libintl versions < 0.13 use the native *printf() functions, and Win32
15953 # *printf() doesn't understand %$, so we must use our /port versions,
15954 # which do understand %$. libintl versions >= 0.13 include their own
15955 # *printf versions on Win32. The libintl 0.13 release note text is:
15957 # C format strings with positions, as they arise when a translator
15958 # needs to reorder a sentence, are now supported on all platforms.
15959 # On those few platforms (NetBSD and Woe32) for which the native
15960 # printf()/fprintf()/... functions don't support such format
15961 # strings, replacements are provided through <libintl.h>.
15963 # We could use libintl >= 0.13's *printf() if we were sure that we had
15964 # a litint >= 0.13 at runtime, but seeing that there is no clean way
15965 # to guarantee that, it is best to just use our own, so we are sure to
15966 # get %$ support. In include/port.h we disable the *printf() macros
15967 # that might have been defined by libintl.
15969 # We do this unconditionally whether NLS is used or not so we are sure
15970 # that all Win32 libraries and binaries behave the same.
15971 pgac_need_repl_snprintf=yes
15973 pgac_need_repl_snprintf=no
15975 for ac_func in snprintf
15977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 cat >conftest.$ac_ext <<_ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15991 #define $ac_func innocuous_$ac_func
15993 /* System header to define __stub macros and hopefully few prototypes,
15994 which can conflict with char $ac_func (); below.
15995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15996 <limits.h> exists even on freestanding compilers. */
15999 # include <limits.h>
16001 # include <assert.h>
16006 /* Override any GCC internal prototype to avoid an error.
16007 Use char because int might match the return type of a GCC
16008 builtin and then its argument prototype would still apply. */
16013 /* The GNU C library defines this for functions which it implements
16014 to always fail with ENOSYS. Some functions are actually named
16015 something starting with __ and the normal name is an alias. */
16016 #if defined __stub_$ac_func || defined __stub___$ac_func
16023 return $ac_func ();
16028 rm -f conftest.$ac_objext conftest$ac_exeext
16029 if { (ac_try="$ac_link"
16030 case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_link") 2>conftest.er1
16037 grep -v '^ *+' conftest.er1 >conftest.err
16039 cat conftest.err >&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } && {
16042 test -z "$ac_c_werror_flag" ||
16043 test ! -s conftest.err
16044 } && test -s conftest$ac_exeext &&
16045 $as_test_x conftest$ac_exeext; then
16046 eval "$as_ac_var=yes"
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16051 eval "$as_ac_var=no"
16054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16055 conftest$ac_exeext conftest.$ac_ext
16057 ac_res=`eval echo '${'$as_ac_var'}'`
16058 { echo "$as_me:$LINENO: result: $ac_res" >&5
16059 echo "${ECHO_T}$ac_res" >&6; }
16060 if test `eval echo '${'$as_ac_var'}'` = yes; then
16061 cat >>confdefs.h <<_ACEOF
16062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16066 pgac_need_repl_snprintf=yes
16071 for ac_func in vsnprintf
16073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16079 cat >conftest.$ac_ext <<_ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16087 #define $ac_func innocuous_$ac_func
16089 /* System header to define __stub macros and hopefully few prototypes,
16090 which can conflict with char $ac_func (); below.
16091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16092 <limits.h> exists even on freestanding compilers. */
16095 # include <limits.h>
16097 # include <assert.h>
16102 /* Override any GCC internal prototype to avoid an error.
16103 Use char because int might match the return type of a GCC
16104 builtin and then its argument prototype would still apply. */
16109 /* The GNU C library defines this for functions which it implements
16110 to always fail with ENOSYS. Some functions are actually named
16111 something starting with __ and the normal name is an alias. */
16112 #if defined __stub_$ac_func || defined __stub___$ac_func
16119 return $ac_func ();
16124 rm -f conftest.$ac_objext conftest$ac_exeext
16125 if { (ac_try="$ac_link"
16126 case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_link") 2>conftest.er1
16133 grep -v '^ *+' conftest.er1 >conftest.err
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } && {
16138 test -z "$ac_c_werror_flag" ||
16139 test ! -s conftest.err
16140 } && test -s conftest$ac_exeext &&
16141 $as_test_x conftest$ac_exeext; then
16142 eval "$as_ac_var=yes"
16144 echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16147 eval "$as_ac_var=no"
16150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16151 conftest$ac_exeext conftest.$ac_ext
16153 ac_res=`eval echo '${'$as_ac_var'}'`
16154 { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16156 if test `eval echo '${'$as_ac_var'}'` = yes; then
16157 cat >>confdefs.h <<_ACEOF
16158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16162 pgac_need_repl_snprintf=yes
16169 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16170 # include/c.h will provide declarations. Note this is a separate test
16171 # from whether the functions exist in the C library --- there are
16172 # systems that have the functions but don't bother to declare them :-(
16174 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16175 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16176 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16179 cat >conftest.$ac_ext <<_ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16185 $ac_includes_default
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16206 grep -v '^ *+' conftest.er1 >conftest.err
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } && {
16211 test -z "$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 } && test -s conftest.$ac_objext; then
16214 ac_cv_have_decl_snprintf=yes
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 ac_cv_have_decl_snprintf=no
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16225 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16226 if test $ac_cv_have_decl_snprintf = yes; then
16228 cat >>confdefs.h <<_ACEOF
16229 #define HAVE_DECL_SNPRINTF 1
16234 cat >>confdefs.h <<_ACEOF
16235 #define HAVE_DECL_SNPRINTF 0
16240 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16241 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16242 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16245 cat >conftest.$ac_ext <<_ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 $ac_includes_default
16263 rm -f conftest.$ac_objext
16264 if { (ac_try="$ac_compile"
16265 case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270 (eval "$ac_compile") 2>conftest.er1
16272 grep -v '^ *+' conftest.er1 >conftest.err
16274 cat conftest.err >&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } && {
16277 test -z "$ac_c_werror_flag" ||
16278 test ! -s conftest.err
16279 } && test -s conftest.$ac_objext; then
16280 ac_cv_have_decl_vsnprintf=yes
16282 echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16285 ac_cv_have_decl_vsnprintf=no
16288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16291 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16292 if test $ac_cv_have_decl_vsnprintf = yes; then
16294 cat >>confdefs.h <<_ACEOF
16295 #define HAVE_DECL_VSNPRINTF 1
16300 cat >>confdefs.h <<_ACEOF
16301 #define HAVE_DECL_VSNPRINTF 0
16310 { echo "$as_me:$LINENO: checking for isinf" >&5
16311 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16312 if test "${ac_cv_func_isinf+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 cat >conftest.$ac_ext <<_ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16323 double glob_double;
16328 return isinf(glob_double) ? 0 : 1;
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (ac_try="$ac_link"
16335 case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_link") 2>conftest.er1
16342 grep -v '^ *+' conftest.er1 >conftest.err
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } && {
16347 test -z "$ac_c_werror_flag" ||
16348 test ! -s conftest.err
16349 } && test -s conftest$ac_exeext &&
16350 $as_test_x conftest$ac_exeext; then
16351 ac_cv_func_isinf=yes
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 ac_cv_func_isinf=no
16359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16360 conftest$ac_exeext conftest.$ac_ext
16362 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16363 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16365 if test $ac_cv_func_isinf = yes ; then
16367 cat >>confdefs.h <<\_ACEOF
16368 #define HAVE_ISINF 1
16372 case " $LIBOBJS " in
16373 *" isinf.$ac_objext "* ) ;;
16374 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16378 # Look for a way to implement a substitute for isinf()
16383 for ac_func in fpclass fp_class fp_class_d class
16385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16389 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 cat >conftest.$ac_ext <<_ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16399 #define $ac_func innocuous_$ac_func
16401 /* System header to define __stub macros and hopefully few prototypes,
16402 which can conflict with char $ac_func (); below.
16403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16404 <limits.h> exists even on freestanding compilers. */
16407 # include <limits.h>
16409 # include <assert.h>
16414 /* Override any GCC internal prototype to avoid an error.
16415 Use char because int might match the return type of a GCC
16416 builtin and then its argument prototype would still apply. */
16421 /* The GNU C library defines this for functions which it implements
16422 to always fail with ENOSYS. Some functions are actually named
16423 something starting with __ and the normal name is an alias. */
16424 #if defined __stub_$ac_func || defined __stub___$ac_func
16431 return $ac_func ();
16436 rm -f conftest.$ac_objext conftest$ac_exeext
16437 if { (ac_try="$ac_link"
16438 case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_link") 2>conftest.er1
16445 grep -v '^ *+' conftest.er1 >conftest.err
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } && {
16450 test -z "$ac_c_werror_flag" ||
16451 test ! -s conftest.err
16452 } && test -s conftest$ac_exeext &&
16453 $as_test_x conftest$ac_exeext; then
16454 eval "$as_ac_var=yes"
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16459 eval "$as_ac_var=no"
16462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16463 conftest$ac_exeext conftest.$ac_ext
16465 ac_res=`eval echo '${'$as_ac_var'}'`
16466 { echo "$as_me:$LINENO: result: $ac_res" >&5
16467 echo "${ECHO_T}$ac_res" >&6; }
16468 if test `eval echo '${'$as_ac_var'}'` = yes; then
16469 cat >>confdefs.h <<_ACEOF
16470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16478 # Some versions of libedit contain strlcpy(); so disregard that library while
16479 # checking for these standard libc functions.
16480 pgac_save_LIBS="$LIBS"
16481 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16497 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 cat >conftest.$ac_ext <<_ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16513 #define $ac_func innocuous_$ac_func
16515 /* System header to define __stub macros and hopefully few prototypes,
16516 which can conflict with char $ac_func (); below.
16517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16518 <limits.h> exists even on freestanding compilers. */
16521 # include <limits.h>
16523 # include <assert.h>
16528 /* Override any GCC internal prototype to avoid an error.
16529 Use char because int might match the return type of a GCC
16530 builtin and then its argument prototype would still apply. */
16535 /* The GNU C library defines this for functions which it implements
16536 to always fail with ENOSYS. Some functions are actually named
16537 something starting with __ and the normal name is an alias. */
16538 #if defined __stub_$ac_func || defined __stub___$ac_func
16545 return $ac_func ();
16550 rm -f conftest.$ac_objext conftest$ac_exeext
16551 if { (ac_try="$ac_link"
16552 case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_link") 2>conftest.er1
16559 grep -v '^ *+' conftest.er1 >conftest.err
16561 cat conftest.err >&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } && {
16564 test -z "$ac_c_werror_flag" ||
16565 test ! -s conftest.err
16566 } && test -s conftest$ac_exeext &&
16567 $as_test_x conftest$ac_exeext; then
16568 eval "$as_ac_var=yes"
16570 echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16573 eval "$as_ac_var=no"
16576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16577 conftest$ac_exeext conftest.$ac_ext
16579 ac_res=`eval echo '${'$as_ac_var'}'`
16580 { echo "$as_me:$LINENO: result: $ac_res" >&5
16581 echo "${ECHO_T}$ac_res" >&6; }
16582 if test `eval echo '${'$as_ac_var'}'` = yes; then
16583 cat >>confdefs.h <<_ACEOF
16584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16588 case " $LIBOBJS " in
16589 *" $ac_func.$ac_objext "* ) ;;
16590 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16599 LIBS="$pgac_save_LIBS"
16601 # System's version of getaddrinfo(), if any, may be used only if we found
16602 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16603 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16604 # versions of getaddrinfo don't follow normal C call protocol. This is OK
16605 # because we want to use our own getaddrinfo.c on Windows anyway.)
16606 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
16608 for ac_func in getaddrinfo
16610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16624 #define $ac_func innocuous_$ac_func
16626 /* System header to define __stub macros and hopefully few prototypes,
16627 which can conflict with char $ac_func (); below.
16628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16629 <limits.h> exists even on freestanding compilers. */
16632 # include <limits.h>
16634 # include <assert.h>
16639 /* Override any GCC internal prototype to avoid an error.
16640 Use char because int might match the return type of a GCC
16641 builtin and then its argument prototype would still apply. */
16646 /* The GNU C library defines this for functions which it implements
16647 to always fail with ENOSYS. Some functions are actually named
16648 something starting with __ and the normal name is an alias. */
16649 #if defined __stub_$ac_func || defined __stub___$ac_func
16656 return $ac_func ();
16661 rm -f conftest.$ac_objext conftest$ac_exeext
16662 if { (ac_try="$ac_link"
16663 case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_link") 2>conftest.er1
16670 grep -v '^ *+' conftest.er1 >conftest.err
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } && {
16675 test -z "$ac_c_werror_flag" ||
16676 test ! -s conftest.err
16677 } && test -s conftest$ac_exeext &&
16678 $as_test_x conftest$ac_exeext; then
16679 eval "$as_ac_var=yes"
16681 echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16684 eval "$as_ac_var=no"
16687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16688 conftest$ac_exeext conftest.$ac_ext
16690 ac_res=`eval echo '${'$as_ac_var'}'`
16691 { echo "$as_me:$LINENO: result: $ac_res" >&5
16692 echo "${ECHO_T}$ac_res" >&6; }
16693 if test `eval echo '${'$as_ac_var'}'` = yes; then
16694 cat >>confdefs.h <<_ACEOF
16695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16699 case " $LIBOBJS " in
16700 *" $ac_func.$ac_objext "* ) ;;
16701 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16710 case " $LIBOBJS " in
16711 *" getaddrinfo.$ac_objext "* ) ;;
16712 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16718 # Similarly, use system's getopt_long() only if system provides struct option.
16719 # Solaris' getopt() doesn't do what we want for long options, so always use
16720 # our versions on that platform.
16721 if test "$PORTNAME" = "solaris"; then
16722 case " $LIBOBJS " in
16723 *" getopt.$ac_objext "* ) ;;
16724 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
16728 case " $LIBOBJS " in
16729 *" getopt_long.$ac_objext "* ) ;;
16730 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
16734 elif test x"$ac_cv_type_struct_option" = xyes ; then
16736 for ac_func in getopt_long
16738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16744 cat >conftest.$ac_ext <<_ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16752 #define $ac_func innocuous_$ac_func
16754 /* System header to define __stub macros and hopefully few prototypes,
16755 which can conflict with char $ac_func (); below.
16756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16757 <limits.h> exists even on freestanding compilers. */
16760 # include <limits.h>
16762 # include <assert.h>
16767 /* Override any GCC internal prototype to avoid an error.
16768 Use char because int might match the return type of a GCC
16769 builtin and then its argument prototype would still apply. */
16774 /* The GNU C library defines this for functions which it implements
16775 to always fail with ENOSYS. Some functions are actually named
16776 something starting with __ and the normal name is an alias. */
16777 #if defined __stub_$ac_func || defined __stub___$ac_func
16784 return $ac_func ();
16789 rm -f conftest.$ac_objext conftest$ac_exeext
16790 if { (ac_try="$ac_link"
16791 case "(($ac_try" in
16792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796 (eval "$ac_link") 2>conftest.er1
16798 grep -v '^ *+' conftest.er1 >conftest.err
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } && {
16803 test -z "$ac_c_werror_flag" ||
16804 test ! -s conftest.err
16805 } && test -s conftest$ac_exeext &&
16806 $as_test_x conftest$ac_exeext; then
16807 eval "$as_ac_var=yes"
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16812 eval "$as_ac_var=no"
16815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16816 conftest$ac_exeext conftest.$ac_ext
16818 ac_res=`eval echo '${'$as_ac_var'}'`
16819 { echo "$as_me:$LINENO: result: $ac_res" >&5
16820 echo "${ECHO_T}$ac_res" >&6; }
16821 if test `eval echo '${'$as_ac_var'}'` = yes; then
16822 cat >>confdefs.h <<_ACEOF
16823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16827 case " $LIBOBJS " in
16828 *" $ac_func.$ac_objext "* ) ;;
16829 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16838 case " $LIBOBJS " in
16839 *" getopt_long.$ac_objext "* ) ;;
16840 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
16847 if test "$PORTNAME" = "win32"; then
16849 for ac_func in gettimeofday
16851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 cat >conftest.$ac_ext <<_ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16865 #define $ac_func innocuous_$ac_func
16867 /* System header to define __stub macros and hopefully few prototypes,
16868 which can conflict with char $ac_func (); below.
16869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16870 <limits.h> exists even on freestanding compilers. */
16873 # include <limits.h>
16875 # include <assert.h>
16880 /* Override any GCC internal prototype to avoid an error.
16881 Use char because int might match the return type of a GCC
16882 builtin and then its argument prototype would still apply. */
16887 /* The GNU C library defines this for functions which it implements
16888 to always fail with ENOSYS. Some functions are actually named
16889 something starting with __ and the normal name is an alias. */
16890 #if defined __stub_$ac_func || defined __stub___$ac_func
16897 return $ac_func ();
16902 rm -f conftest.$ac_objext conftest$ac_exeext
16903 if { (ac_try="$ac_link"
16904 case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_link") 2>conftest.er1
16911 grep -v '^ *+' conftest.er1 >conftest.err
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } && {
16916 test -z "$ac_c_werror_flag" ||
16917 test ! -s conftest.err
16918 } && test -s conftest$ac_exeext &&
16919 $as_test_x conftest$ac_exeext; then
16920 eval "$as_ac_var=yes"
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16925 eval "$as_ac_var=no"
16928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16929 conftest$ac_exeext conftest.$ac_ext
16931 ac_res=`eval echo '${'$as_ac_var'}'`
16932 { echo "$as_me:$LINENO: result: $ac_res" >&5
16933 echo "${ECHO_T}$ac_res" >&6; }
16934 if test `eval echo '${'$as_ac_var'}'` = yes; then
16935 cat >>confdefs.h <<_ACEOF
16936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16940 case " $LIBOBJS " in
16941 *" $ac_func.$ac_objext "* ) ;;
16942 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16950 case " $LIBOBJS " in
16951 *" kill.$ac_objext "* ) ;;
16952 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
16956 case " $LIBOBJS " in
16957 *" open.$ac_objext "* ) ;;
16958 *) LIBOBJS="$LIBOBJS open.$ac_objext"
16962 case " $LIBOBJS " in
16963 *" rand.$ac_objext "* ) ;;
16964 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
16968 case " $LIBOBJS " in
16969 *" win32error.$ac_objext "* ) ;;
16970 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
16975 cat >>confdefs.h <<\_ACEOF
16976 #define HAVE_SYMLINK 1
16981 if test "$with_readline" = yes; then
16982 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
16983 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
16984 cat >conftest.$ac_ext <<_ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16991 #ifdef HAVE_READLINE_READLINE_H
16992 # include <readline/readline.h>
16993 #elif defined(HAVE_READLINE_H)
16994 # include <readline.h>
17000 rl_completion_append_character = 'x';
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (ac_try="$ac_link"
17007 case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012 (eval "$ac_link") 2>conftest.er1
17014 grep -v '^ *+' conftest.er1 >conftest.err
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } && {
17019 test -z "$ac_c_werror_flag" ||
17020 test ! -s conftest.err
17021 } && test -s conftest$ac_exeext &&
17022 $as_test_x conftest$ac_exeext; then
17023 { echo "$as_me:$LINENO: result: yes" >&5
17024 echo "${ECHO_T}yes" >&6; }
17026 cat >>confdefs.h <<\_ACEOF
17027 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17031 echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17034 { echo "$as_me:$LINENO: result: no" >&5
17035 echo "${ECHO_T}no" >&6; }
17038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17039 conftest$ac_exeext conftest.$ac_ext
17042 for ac_func in rl_completion_matches rl_filename_completion_function
17044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17050 cat >conftest.$ac_ext <<_ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17058 #define $ac_func innocuous_$ac_func
17060 /* System header to define __stub macros and hopefully few prototypes,
17061 which can conflict with char $ac_func (); below.
17062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17063 <limits.h> exists even on freestanding compilers. */
17066 # include <limits.h>
17068 # include <assert.h>
17073 /* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
17080 /* The GNU C library defines this for functions which it implements
17081 to always fail with ENOSYS. Some functions are actually named
17082 something starting with __ and the normal name is an alias. */
17083 #if defined __stub_$ac_func || defined __stub___$ac_func
17090 return $ac_func ();
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (ac_try="$ac_link"
17097 case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_link") 2>conftest.er1
17104 grep -v '^ *+' conftest.er1 >conftest.err
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } && {
17109 test -z "$ac_c_werror_flag" ||
17110 test ! -s conftest.err
17111 } && test -s conftest$ac_exeext &&
17112 $as_test_x conftest$ac_exeext; then
17113 eval "$as_ac_var=yes"
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 eval "$as_ac_var=no"
17121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17122 conftest$ac_exeext conftest.$ac_ext
17124 ac_res=`eval echo '${'$as_ac_var'}'`
17125 { echo "$as_me:$LINENO: result: $ac_res" >&5
17126 echo "${ECHO_T}$ac_res" >&6; }
17127 if test `eval echo '${'$as_ac_var'}'` = yes; then
17128 cat >>confdefs.h <<_ACEOF
17129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17136 for ac_func in replace_history_entry
17138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 cat >conftest.$ac_ext <<_ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h. */
17150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17152 #define $ac_func innocuous_$ac_func
17154 /* System header to define __stub macros and hopefully few prototypes,
17155 which can conflict with char $ac_func (); below.
17156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17157 <limits.h> exists even on freestanding compilers. */
17160 # include <limits.h>
17162 # include <assert.h>
17167 /* Override any GCC internal prototype to avoid an error.
17168 Use char because int might match the return type of a GCC
17169 builtin and then its argument prototype would still apply. */
17174 /* The GNU C library defines this for functions which it implements
17175 to always fail with ENOSYS. Some functions are actually named
17176 something starting with __ and the normal name is an alias. */
17177 #if defined __stub_$ac_func || defined __stub___$ac_func
17184 return $ac_func ();
17189 rm -f conftest.$ac_objext conftest$ac_exeext
17190 if { (ac_try="$ac_link"
17191 case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_link") 2>conftest.er1
17198 grep -v '^ *+' conftest.er1 >conftest.err
17200 cat conftest.err >&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } && {
17203 test -z "$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17205 } && test -s conftest$ac_exeext &&
17206 $as_test_x conftest$ac_exeext; then
17207 eval "$as_ac_var=yes"
17209 echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17212 eval "$as_ac_var=no"
17215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17216 conftest$ac_exeext conftest.$ac_ext
17218 ac_res=`eval echo '${'$as_ac_var'}'`
17219 { echo "$as_me:$LINENO: result: $ac_res" >&5
17220 echo "${ECHO_T}$ac_res" >&6; }
17221 if test `eval echo '${'$as_ac_var'}'` = yes; then
17222 cat >>confdefs.h <<_ACEOF
17223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17232 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17233 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17234 cat >conftest.$ac_ext <<_ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 #include <setjmp.h>
17244 sigjmp_buf x; sigsetjmp(x, 1);
17249 rm -f conftest.$ac_objext conftest$ac_exeext
17250 if { (ac_try="$ac_link"
17251 case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_link") 2>conftest.er1
17258 grep -v '^ *+' conftest.er1 >conftest.err
17260 cat conftest.err >&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } && {
17263 test -z "$ac_c_werror_flag" ||
17264 test ! -s conftest.err
17265 } && test -s conftest$ac_exeext &&
17266 $as_test_x conftest$ac_exeext; then
17268 cat >>confdefs.h <<\_ACEOF
17269 #define HAVE_SIGSETJMP 1
17272 { echo "$as_me:$LINENO: result: yes" >&5
17273 echo "${ECHO_T}yes" >&6; }
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 { echo "$as_me:$LINENO: result: no" >&5
17279 echo "${ECHO_T}no" >&6; }
17282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17283 conftest$ac_exeext conftest.$ac_ext
17285 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17286 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17287 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17288 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 cat >conftest.$ac_ext <<_ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17296 #include <signal.h>
17297 /* NetBSD declares sys_siglist in unistd.h. */
17298 #ifdef HAVE_UNISTD_H
17299 # include <unistd.h>
17306 #ifndef sys_siglist
17307 (void) sys_siglist;
17314 rm -f conftest.$ac_objext
17315 if { (ac_try="$ac_compile"
17316 case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_compile") 2>conftest.er1
17323 grep -v '^ *+' conftest.er1 >conftest.err
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } && {
17328 test -z "$ac_c_werror_flag" ||
17329 test ! -s conftest.err
17330 } && test -s conftest.$ac_objext; then
17331 ac_cv_have_decl_sys_siglist=yes
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 ac_cv_have_decl_sys_siglist=no
17339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17341 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17342 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17343 if test $ac_cv_have_decl_sys_siglist = yes; then
17345 cat >>confdefs.h <<_ACEOF
17346 #define HAVE_DECL_SYS_SIGLIST 1
17351 cat >>confdefs.h <<_ACEOF
17352 #define HAVE_DECL_SYS_SIGLIST 0
17361 { echo "$as_me:$LINENO: checking for syslog" >&5
17362 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17363 if test "${ac_cv_func_syslog+set}" = set; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 cat >conftest.$ac_ext <<_ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17372 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17374 #define syslog innocuous_syslog
17376 /* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char syslog (); below.
17378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379 <limits.h> exists even on freestanding compilers. */
17382 # include <limits.h>
17384 # include <assert.h>
17389 /* Override any GCC internal prototype to avoid an error.
17390 Use char because int might match the return type of a GCC
17391 builtin and then its argument prototype would still apply. */
17396 /* The GNU C library defines this for functions which it implements
17397 to always fail with ENOSYS. Some functions are actually named
17398 something starting with __ and the normal name is an alias. */
17399 #if defined __stub_syslog || defined __stub___syslog
17411 rm -f conftest.$ac_objext conftest$ac_exeext
17412 if { (ac_try="$ac_link"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_link") 2>conftest.er1
17420 grep -v '^ *+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } && {
17425 test -z "$ac_c_werror_flag" ||
17426 test ! -s conftest.err
17427 } && test -s conftest$ac_exeext &&
17428 $as_test_x conftest$ac_exeext; then
17429 ac_cv_func_syslog=yes
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 ac_cv_func_syslog=no
17437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17438 conftest$ac_exeext conftest.$ac_ext
17440 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17441 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17442 if test $ac_cv_func_syslog = yes; then
17443 if test "${ac_cv_header_syslog_h+set}" = set; then
17444 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17445 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17446 if test "${ac_cv_header_syslog_h+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17450 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17452 # Is the header compilable?
17453 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17454 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17455 cat >conftest.$ac_ext <<_ACEOF
17458 cat confdefs.h >>conftest.$ac_ext
17459 cat >>conftest.$ac_ext <<_ACEOF
17460 /* end confdefs.h. */
17461 $ac_includes_default
17462 #include <syslog.h>
17464 rm -f conftest.$ac_objext
17465 if { (ac_try="$ac_compile"
17466 case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_compile") 2>conftest.er1
17473 grep -v '^ *+' conftest.er1 >conftest.err
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } && {
17478 test -z "$ac_c_werror_flag" ||
17479 test ! -s conftest.err
17480 } && test -s conftest.$ac_objext; then
17481 ac_header_compiler=yes
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17486 ac_header_compiler=no
17489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17491 echo "${ECHO_T}$ac_header_compiler" >&6; }
17493 # Is the header present?
17494 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17495 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17496 cat >conftest.$ac_ext <<_ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502 #include <syslog.h>
17504 if { (ac_try="$ac_cpp conftest.$ac_ext"
17505 case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17512 grep -v '^ *+' conftest.er1 >conftest.err
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } >/dev/null && {
17517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17518 test ! -s conftest.err
17520 ac_header_preproc=yes
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 ac_header_preproc=no
17528 rm -f conftest.err conftest.$ac_ext
17529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17530 echo "${ECHO_T}$ac_header_preproc" >&6; }
17532 # So? What about this header?
17533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17535 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17536 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17537 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17538 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17539 ac_header_preproc=yes
17542 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17543 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17544 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17545 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17547 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17549 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17551 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17553 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17555 ## ---------------------------------------- ##
17556 ## Report this to pgsql-bugs@postgresql.org ##
17557 ## ---------------------------------------- ##
17559 ) | sed "s/^/$as_me: WARNING: /" >&2
17562 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17563 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17564 if test "${ac_cv_header_syslog_h+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 ac_cv_header_syslog_h=$ac_header_preproc
17569 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17570 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17573 if test $ac_cv_header_syslog_h = yes; then
17575 cat >>confdefs.h <<\_ACEOF
17576 #define HAVE_SYSLOG 1
17585 { echo "$as_me:$LINENO: checking for optreset" >&5
17586 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
17587 if test "${pgac_cv_var_int_optreset+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 cat >conftest.$ac_ext <<_ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596 #include <unistd.h>
17600 extern int optreset; optreset = 1;
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (ac_try="$ac_link"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_link") 2>conftest.er1
17614 grep -v '^ *+' conftest.er1 >conftest.err
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && {
17619 test -z "$ac_c_werror_flag" ||
17620 test ! -s conftest.err
17621 } && test -s conftest$ac_exeext &&
17622 $as_test_x conftest$ac_exeext; then
17623 pgac_cv_var_int_optreset=yes
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 pgac_cv_var_int_optreset=no
17631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17632 conftest$ac_exeext conftest.$ac_ext
17634 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17635 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
17636 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
17638 cat >>confdefs.h <<\_ACEOF
17639 #define HAVE_INT_OPTRESET 1
17646 for ac_func in strtoll strtoq
17648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 cat >conftest.$ac_ext <<_ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17662 #define $ac_func innocuous_$ac_func
17664 /* System header to define __stub macros and hopefully few prototypes,
17665 which can conflict with char $ac_func (); below.
17666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17667 <limits.h> exists even on freestanding compilers. */
17670 # include <limits.h>
17672 # include <assert.h>
17677 /* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
17684 /* The GNU C library defines this for functions which it implements
17685 to always fail with ENOSYS. Some functions are actually named
17686 something starting with __ and the normal name is an alias. */
17687 #if defined __stub_$ac_func || defined __stub___$ac_func
17694 return $ac_func ();
17699 rm -f conftest.$ac_objext conftest$ac_exeext
17700 if { (ac_try="$ac_link"
17701 case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_link") 2>conftest.er1
17708 grep -v '^ *+' conftest.er1 >conftest.err
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } && {
17713 test -z "$ac_c_werror_flag" ||
17714 test ! -s conftest.err
17715 } && test -s conftest$ac_exeext &&
17716 $as_test_x conftest$ac_exeext; then
17717 eval "$as_ac_var=yes"
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 eval "$as_ac_var=no"
17725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17726 conftest$ac_exeext conftest.$ac_ext
17728 ac_res=`eval echo '${'$as_ac_var'}'`
17729 { echo "$as_me:$LINENO: result: $ac_res" >&5
17730 echo "${ECHO_T}$ac_res" >&6; }
17731 if test `eval echo '${'$as_ac_var'}'` = yes; then
17732 cat >>confdefs.h <<_ACEOF
17733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17741 for ac_func in strtoull strtouq
17743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17747 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 cat >conftest.$ac_ext <<_ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17757 #define $ac_func innocuous_$ac_func
17759 /* System header to define __stub macros and hopefully few prototypes,
17760 which can conflict with char $ac_func (); below.
17761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17762 <limits.h> exists even on freestanding compilers. */
17765 # include <limits.h>
17767 # include <assert.h>
17772 /* Override any GCC internal prototype to avoid an error.
17773 Use char because int might match the return type of a GCC
17774 builtin and then its argument prototype would still apply. */
17779 /* The GNU C library defines this for functions which it implements
17780 to always fail with ENOSYS. Some functions are actually named
17781 something starting with __ and the normal name is an alias. */
17782 #if defined __stub_$ac_func || defined __stub___$ac_func
17789 return $ac_func ();
17794 rm -f conftest.$ac_objext conftest$ac_exeext
17795 if { (ac_try="$ac_link"
17796 case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_link") 2>conftest.er1
17803 grep -v '^ *+' conftest.er1 >conftest.err
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } && {
17808 test -z "$ac_c_werror_flag" ||
17809 test ! -s conftest.err
17810 } && test -s conftest$ac_exeext &&
17811 $as_test_x conftest$ac_exeext; then
17812 eval "$as_ac_var=yes"
17814 echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17817 eval "$as_ac_var=no"
17820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17821 conftest$ac_exeext conftest.$ac_ext
17823 ac_res=`eval echo '${'$as_ac_var'}'`
17824 { echo "$as_me:$LINENO: result: $ac_res" >&5
17825 echo "${ECHO_T}$ac_res" >&6; }
17826 if test `eval echo '${'$as_ac_var'}'` = yes; then
17827 cat >>confdefs.h <<_ACEOF
17828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17835 # Check for one of atexit() or on_exit()
17837 for ac_func in atexit
17839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17843 echo $ECHO_N "(cached) $ECHO_C" >&6
17845 cat >conftest.$ac_ext <<_ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17853 #define $ac_func innocuous_$ac_func
17855 /* System header to define __stub macros and hopefully few prototypes,
17856 which can conflict with char $ac_func (); below.
17857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17858 <limits.h> exists even on freestanding compilers. */
17861 # include <limits.h>
17863 # include <assert.h>
17868 /* Override any GCC internal prototype to avoid an error.
17869 Use char because int might match the return type of a GCC
17870 builtin and then its argument prototype would still apply. */
17875 /* The GNU C library defines this for functions which it implements
17876 to always fail with ENOSYS. Some functions are actually named
17877 something starting with __ and the normal name is an alias. */
17878 #if defined __stub_$ac_func || defined __stub___$ac_func
17885 return $ac_func ();
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (ac_try="$ac_link"
17892 case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_link") 2>conftest.er1
17899 grep -v '^ *+' conftest.er1 >conftest.err
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } && {
17904 test -z "$ac_c_werror_flag" ||
17905 test ! -s conftest.err
17906 } && test -s conftest$ac_exeext &&
17907 $as_test_x conftest$ac_exeext; then
17908 eval "$as_ac_var=yes"
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 eval "$as_ac_var=no"
17916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17917 conftest$ac_exeext conftest.$ac_ext
17919 ac_res=`eval echo '${'$as_ac_var'}'`
17920 { echo "$as_me:$LINENO: result: $ac_res" >&5
17921 echo "${ECHO_T}$ac_res" >&6; }
17922 if test `eval echo '${'$as_ac_var'}'` = yes; then
17923 cat >>confdefs.h <<_ACEOF
17924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17929 for ac_func in on_exit
17931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 cat >conftest.$ac_ext <<_ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17945 #define $ac_func innocuous_$ac_func
17947 /* System header to define __stub macros and hopefully few prototypes,
17948 which can conflict with char $ac_func (); below.
17949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17950 <limits.h> exists even on freestanding compilers. */
17953 # include <limits.h>
17955 # include <assert.h>
17960 /* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17967 /* The GNU C library defines this for functions which it implements
17968 to always fail with ENOSYS. Some functions are actually named
17969 something starting with __ and the normal name is an alias. */
17970 #if defined __stub_$ac_func || defined __stub___$ac_func
17977 return $ac_func ();
17982 rm -f conftest.$ac_objext conftest$ac_exeext
17983 if { (ac_try="$ac_link"
17984 case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_link") 2>conftest.er1
17991 grep -v '^ *+' conftest.er1 >conftest.err
17993 cat conftest.err >&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } && {
17996 test -z "$ac_c_werror_flag" ||
17997 test ! -s conftest.err
17998 } && test -s conftest$ac_exeext &&
17999 $as_test_x conftest$ac_exeext; then
18000 eval "$as_ac_var=yes"
18002 echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18005 eval "$as_ac_var=no"
18008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18009 conftest$ac_exeext conftest.$ac_ext
18011 ac_res=`eval echo '${'$as_ac_var'}'`
18012 { echo "$as_me:$LINENO: result: $ac_res" >&5
18013 echo "${ECHO_T}$ac_res" >&6; }
18014 if test `eval echo '${'$as_ac_var'}'` = yes; then
18015 cat >>confdefs.h <<_ACEOF
18016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18020 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18021 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18022 { (exit 1); exit 1; }; }
18031 for ac_func in fseeko
18033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 cat >conftest.$ac_ext <<_ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18047 #define $ac_func innocuous_$ac_func
18049 /* System header to define __stub macros and hopefully few prototypes,
18050 which can conflict with char $ac_func (); below.
18051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18052 <limits.h> exists even on freestanding compilers. */
18055 # include <limits.h>
18057 # include <assert.h>
18062 /* Override any GCC internal prototype to avoid an error.
18063 Use char because int might match the return type of a GCC
18064 builtin and then its argument prototype would still apply. */
18069 /* The GNU C library defines this for functions which it implements
18070 to always fail with ENOSYS. Some functions are actually named
18071 something starting with __ and the normal name is an alias. */
18072 #if defined __stub_$ac_func || defined __stub___$ac_func
18079 return $ac_func ();
18084 rm -f conftest.$ac_objext conftest$ac_exeext
18085 if { (ac_try="$ac_link"
18086 case "(($ac_try" in
18087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_link") 2>conftest.er1
18093 grep -v '^ *+' conftest.er1 >conftest.err
18095 cat conftest.err >&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } && {
18098 test -z "$ac_c_werror_flag" ||
18099 test ! -s conftest.err
18100 } && test -s conftest$ac_exeext &&
18101 $as_test_x conftest$ac_exeext; then
18102 eval "$as_ac_var=yes"
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 eval "$as_ac_var=no"
18110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18111 conftest$ac_exeext conftest.$ac_ext
18113 ac_res=`eval echo '${'$as_ac_var'}'`
18114 { echo "$as_me:$LINENO: result: $ac_res" >&5
18115 echo "${ECHO_T}$ac_res" >&6; }
18116 if test `eval echo '${'$as_ac_var'}'` = yes; then
18117 cat >>confdefs.h <<_ACEOF
18118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18122 case " $LIBOBJS " in
18123 *" $ac_func.$ac_objext "* ) ;;
18124 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18133 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18136 cat >>confdefs.h <<\_ACEOF
18137 #define HAVE_FSEEKO 1
18140 ac_cv_func_fseeko=yes;;
18142 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18143 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18144 if test "${ac_cv_sys_largefile_source+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 #include <sys/types.h> /* for off_t */
18159 int (*fp) (FILE *, off_t, int) = fseeko;
18160 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18165 rm -f conftest.$ac_objext conftest$ac_exeext
18166 if { (ac_try="$ac_link"
18167 case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_link") 2>conftest.er1
18174 grep -v '^ *+' conftest.er1 >conftest.err
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } && {
18179 test -z "$ac_c_werror_flag" ||
18180 test ! -s conftest.err
18181 } && test -s conftest$ac_exeext &&
18182 $as_test_x conftest$ac_exeext; then
18183 ac_cv_sys_largefile_source=no; break
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18192 conftest$ac_exeext conftest.$ac_ext
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 _LARGEFILE_SOURCE 1
18200 #include <sys/types.h> /* for off_t */
18205 int (*fp) (FILE *, off_t, int) = fseeko;
18206 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18211 rm -f conftest.$ac_objext conftest$ac_exeext
18212 if { (ac_try="$ac_link"
18213 case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_link") 2>conftest.er1
18220 grep -v '^ *+' conftest.er1 >conftest.err
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } && {
18225 test -z "$ac_c_werror_flag" ||
18226 test ! -s conftest.err
18227 } && test -s conftest$ac_exeext &&
18228 $as_test_x conftest$ac_exeext; then
18229 ac_cv_sys_largefile_source=1; break
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18238 conftest$ac_exeext conftest.$ac_ext
18239 ac_cv_sys_largefile_source=unknown
18243 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18244 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18245 case $ac_cv_sys_largefile_source in #(
18248 cat >>confdefs.h <<_ACEOF
18249 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18255 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18256 # in glibc 2.1.3, but that breaks too many other things.
18257 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18258 if test $ac_cv_sys_largefile_source != unknown; then
18260 cat >>confdefs.h <<\_ACEOF
18261 #define HAVE_FSEEKO 1
18272 # For each platform, we need to know about any special compile and link
18273 # libraries, and whether the normal C function names are thread-safe.
18274 # See the comment at the top of src/port/thread.c for more information.
18275 # WIN32 doesn't need the pthread tests; it always uses threads
18276 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18281 ac_cpp='$CPP $CPPFLAGS'
18282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18288 # We used to check for pthread.h first, but this fails if pthread.h
18289 # requires special compiler flags (e.g. on True64 or Sequent).
18290 # It gets checked for in the link test anyway.
18292 # First of all, check if the user has set any of the PTHREAD_LIBS,
18293 # etcetera environment variables, and if threads linking works using
18295 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18296 save_CFLAGS="$CFLAGS"
18297 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18299 LIBS="$PTHREAD_LIBS $LIBS"
18300 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18301 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18302 cat >conftest.$ac_ext <<_ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18309 /* Override any GCC internal prototype to avoid an error.
18310 Use char because int might match the return type of a GCC
18311 builtin and then its argument prototype would still apply. */
18315 char pthread_join ();
18319 return pthread_join ();
18324 rm -f conftest.$ac_objext conftest$ac_exeext
18325 if { (ac_try="$ac_link"
18326 case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_link") 2>conftest.er1
18333 grep -v '^ *+' conftest.er1 >conftest.err
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } && {
18338 test -z "$ac_c_werror_flag" ||
18339 test ! -s conftest.err
18340 } && test -s conftest$ac_exeext &&
18341 $as_test_x conftest$ac_exeext; then
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18351 conftest$ac_exeext conftest.$ac_ext
18352 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18353 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18354 if test x"$acx_pthread_ok" = xno; then
18359 CFLAGS="$save_CFLAGS"
18362 # We must check for the threads library under a number of different
18363 # names; the ordering is very important because some systems
18364 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18365 # libraries is broken (non-POSIX).
18367 # Create a list of thread flags to try. Items starting with a "-" are
18368 # C compiler flags, and other items are library names, except for "none"
18369 # which indicates that we try without any flags at all, and "pthread-config"
18370 # which is a program returning the flags for the Pth emulation library.
18372 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18374 # The ordering *is* (sometimes) important. Some notes on the
18375 # individual items follow:
18377 # pthreads: AIX (must check this before -lpthread)
18378 # none: in case threads are in libc; should be tried before -Kthread and
18379 # other compiler flags to prevent continual compiler warnings
18380 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18381 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18382 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18383 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18384 # -pthreads: Solaris/gcc
18385 # -mthreads: Mingw32/gcc, Lynx/gcc
18386 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18387 # doesn't hurt to check since this sometimes defines pthreads too;
18388 # also defines -D_REENTRANT)
18389 # pthread: Linux, etcetera
18390 # --thread-safe: KAI C++
18391 # pthread-config: use pthread-config program (for GNU Pth library)
18393 case "${host_cpu}-${host_os}" in
18396 # On Solaris (at least, for some versions), libc contains stubbed
18397 # (non-functional) versions of the pthreads routines, so link-based
18398 # tests will erroneously succeed. (We need to link with -pthread or
18399 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18400 # a function called by this macro, so we could check for that, but
18401 # who knows whether they'll stub that too in a future libc.) So,
18402 # we'll just look for -pthreads and -lpthread first:
18404 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18408 if test x"$acx_pthread_ok" = xno; then
18409 for flag in $acx_pthread_flags; do
18411 tryPTHREAD_CFLAGS=""
18415 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18416 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18420 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18421 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18422 tryPTHREAD_CFLAGS="$flag"
18426 # skip this if we already have flags defined, for PostgreSQL
18427 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18428 # Extract the first word of "pthread-config", so it can be a program name with args.
18429 set dummy pthread-config; ac_word=$2
18430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18432 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18435 if test -n "$acx_pthread_config"; then
18436 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18439 for as_dir in $PATH
18442 test -z "$as_dir" && as_dir=.
18443 for ac_exec_ext in '' $ac_executable_extensions; do
18444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18445 ac_cv_prog_acx_pthread_config="yes"
18446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18453 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18456 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18457 if test -n "$acx_pthread_config"; then
18458 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18459 echo "${ECHO_T}$acx_pthread_config" >&6; }
18461 { echo "$as_me:$LINENO: result: no" >&5
18462 echo "${ECHO_T}no" >&6; }
18466 if test x"$acx_pthread_config" = xno; then continue; fi
18467 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18468 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18472 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18473 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18474 tryPTHREAD_LIBS="-l$flag"
18479 save_CFLAGS="$CFLAGS"
18480 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18481 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18483 # Check for various functions. We must include pthread.h,
18484 # since some functions may be macros. (On the Sequent, we
18485 # need a special flag -Kthread to make this header compile.)
18486 # We check for pthread_join because it is in -lpthread on IRIX
18487 # while pthread_create is in libc. We check for pthread_attr_init
18488 # due to DEC craziness with -lpthreads. We check for
18489 # pthread_cleanup_push because it is one of the few pthread
18490 # functions on Solaris that doesn't have a non-functional libc stub.
18491 # We try pthread_create on general principles.
18492 cat >conftest.$ac_ext <<_ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 #include <pthread.h>
18502 pthread_t th; pthread_join(th, 0);
18503 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18504 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18509 rm -f conftest.$ac_objext conftest$ac_exeext
18510 if { (ac_try="$ac_link"
18511 case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_link") 2>conftest.er1
18518 grep -v '^ *+' conftest.er1 >conftest.err
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } && {
18523 test -z "$ac_c_werror_flag" ||
18524 test ! -s conftest.err
18525 } && test -s conftest$ac_exeext &&
18526 $as_test_x conftest$ac_exeext; then
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18536 conftest$ac_exeext conftest.$ac_ext
18538 if test "x$acx_pthread_ok" = xyes; then
18539 # Don't use options that are ignored by the compiler.
18540 # We find them by checking stderror.
18541 cat >conftest.$ac_ext <<_ACEOF
18543 main (int argc, char **argv)
18550 rm -f conftest.$ac_objext conftest$ac_exeext
18551 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18552 # we continue with more flags because Linux needs -lpthread
18553 # for libpq builds on PostgreSQL. The test above only
18554 # tests for building binaries, not shared libraries.
18555 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18556 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18557 else acx_pthread_ok=no
18562 CFLAGS="$save_CFLAGS"
18564 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18565 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18569 # Various other checks:
18570 if test "x$acx_pthread_ok" = xyes; then
18572 LIBS="$PTHREAD_LIBS $LIBS"
18573 save_CFLAGS="$CFLAGS"
18574 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18576 # Detect AIX lossage: threads are created detached by default
18577 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18578 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18579 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
18580 cat >conftest.$ac_ext <<_ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18586 #include <pthread.h>
18590 int attr=PTHREAD_CREATE_JOINABLE;
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (ac_try="$ac_link"
18597 case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18602 (eval "$ac_link") 2>conftest.er1
18604 grep -v '^ *+' conftest.er1 >conftest.err
18606 cat conftest.err >&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); } && {
18609 test -z "$ac_c_werror_flag" ||
18610 test ! -s conftest.err
18611 } && test -s conftest$ac_exeext &&
18612 $as_test_x conftest$ac_exeext; then
18613 ok=PTHREAD_CREATE_JOINABLE
18615 echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18622 conftest$ac_exeext conftest.$ac_ext
18623 if test x"$ok" = xunknown; then
18624 cat >conftest.$ac_ext <<_ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18630 #include <pthread.h>
18634 int attr=PTHREAD_CREATE_UNDETACHED;
18639 rm -f conftest.$ac_objext conftest$ac_exeext
18640 if { (ac_try="$ac_link"
18641 case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_link") 2>conftest.er1
18648 grep -v '^ *+' conftest.er1 >conftest.err
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } && {
18653 test -z "$ac_c_werror_flag" ||
18654 test ! -s conftest.err
18655 } && test -s conftest$ac_exeext &&
18656 $as_test_x conftest$ac_exeext; then
18657 ok=PTHREAD_CREATE_UNDETACHED
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18666 conftest$ac_exeext conftest.$ac_ext
18668 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18670 cat >>confdefs.h <<\_ACEOF
18671 #define PTHREAD_CREATE_JOINABLE $ok
18675 { echo "$as_me:$LINENO: result: ${ok}" >&5
18676 echo "${ECHO_T}${ok}" >&6; }
18677 if test x"$ok" = xunknown; then
18678 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18679 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18682 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18683 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
18685 # We always add these in PostgreSQL
18686 # case "${host_cpu}-${host_os}" in
18687 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18688 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18690 { echo "$as_me:$LINENO: result: ${flag}" >&5
18691 echo "${ECHO_T}${flag}" >&6; }
18692 if test "x$flag" != xno; then
18693 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18697 CFLAGS="$save_CFLAGS"
18699 # Supporting cc_r would require a special CC in all places that
18700 # use libpq, and that is ugly, so we don't do it. Users can still
18701 # define their compiler as cc_r to do thread builds of everything.
18702 # More AIX lossage: must compile with cc_r
18703 # Extract the first word of "cc_r", so it can be a program name with args.
18704 set dummy cc_r; ac_word=$2
18705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18707 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18708 echo $ECHO_N "(cached) $ECHO_C" >&6
18710 if test -n "$PTHREAD_CC"; then
18711 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18714 for as_dir in $PATH
18717 test -z "$as_dir" && as_dir=.
18718 for ac_exec_ext in '' $ac_executable_extensions; do
18719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18720 ac_cv_prog_PTHREAD_CC="cc_r"
18721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18728 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18731 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18732 if test -n "$PTHREAD_CC"; then
18733 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18734 echo "${ECHO_T}$PTHREAD_CC" >&6; }
18736 { echo "$as_me:$LINENO: result: no" >&5
18737 echo "${ECHO_T}no" >&6; }
18749 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18750 if test x"$acx_pthread_ok" = xyes; then
18752 cat >>confdefs.h <<\_ACEOF
18753 #define HAVE_PTHREAD 1
18762 ac_cpp='$CPP $CPPFLAGS'
18763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18769 # Some platforms use these, so just defineed them. They can't hurt if they
18770 # are not supported.
18771 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18774 # At this point, we don't want to muck with the compiler name for threading.
18775 # Let's see who fails, perhaps AIX. 2004-04-23
18776 if test "$PTHREAD_CC" != "$CC"; then
18777 { { echo "$as_me:$LINENO: error:
18778 PostgreSQL does not support platforms that require a special compiler
18779 for thread safety." >&5
18780 echo "$as_me: error:
18781 PostgreSQL does not support platforms that require a special compiler
18782 for thread safety." >&2;}
18783 { (exit 1); exit 1; }; }
18786 if test "$THREAD_SUPPORT" = no; then
18787 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18788 This platform is known to not support thread-safe programs. For details,
18789 compile and run src/bin/pg_thread_test." >&5
18790 echo "$as_me: error: cannot enable threads on this platform
18791 This platform is known to not support thread-safe programs. For details,
18792 compile and run src/bin/pg_thread_test." >&2;}
18793 { (exit 1); exit 1; }; }
18796 # Check for *_r functions
18799 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18800 LIBS="$LIBS $PTHREAD_LIBS"
18802 if test "$PORTNAME" != "win32"; then
18803 if test "${ac_cv_header_pthread_h+set}" = set; then
18804 { echo "$as_me:$LINENO: checking for pthread.h" >&5
18805 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18806 if test "${ac_cv_header_pthread_h+set}" = set; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18810 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18812 # Is the header compilable?
18813 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
18814 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
18815 cat >conftest.$ac_ext <<_ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18821 $ac_includes_default
18822 #include <pthread.h>
18824 rm -f conftest.$ac_objext
18825 if { (ac_try="$ac_compile"
18826 case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_compile") 2>conftest.er1
18833 grep -v '^ *+' conftest.er1 >conftest.err
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } && {
18838 test -z "$ac_c_werror_flag" ||
18839 test ! -s conftest.err
18840 } && test -s conftest.$ac_objext; then
18841 ac_header_compiler=yes
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_header_compiler=no
18849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18851 echo "${ECHO_T}$ac_header_compiler" >&6; }
18853 # Is the header present?
18854 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
18855 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
18856 cat >conftest.$ac_ext <<_ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18862 #include <pthread.h>
18864 if { (ac_try="$ac_cpp conftest.$ac_ext"
18865 case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18872 grep -v '^ *+' conftest.er1 >conftest.err
18874 cat conftest.err >&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } >/dev/null && {
18877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18878 test ! -s conftest.err
18880 ac_header_preproc=yes
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18885 ac_header_preproc=no
18888 rm -f conftest.err conftest.$ac_ext
18889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18890 echo "${ECHO_T}$ac_header_preproc" >&6; }
18892 # So? What about this header?
18893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18895 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
18896 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18897 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
18898 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
18899 ac_header_preproc=yes
18902 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
18903 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
18904 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
18905 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
18906 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
18907 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
18908 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
18909 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
18910 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
18911 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
18913 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
18915 ## ---------------------------------------- ##
18916 ## Report this to pgsql-bugs@postgresql.org ##
18917 ## ---------------------------------------- ##
18919 ) | sed "s/^/$as_me: WARNING: /" >&2
18922 { echo "$as_me:$LINENO: checking for pthread.h" >&5
18923 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18924 if test "${ac_cv_header_pthread_h+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18927 ac_cv_header_pthread_h=$ac_header_preproc
18929 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18930 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18933 if test $ac_cv_header_pthread_h = yes; then
18936 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
18937 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
18938 { (exit 1); exit 1; }; }
18947 for ac_func in strerror_r getpwuid_r gethostbyname_r
18949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 cat >conftest.$ac_ext <<_ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18963 #define $ac_func innocuous_$ac_func
18965 /* System header to define __stub macros and hopefully few prototypes,
18966 which can conflict with char $ac_func (); below.
18967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18968 <limits.h> exists even on freestanding compilers. */
18971 # include <limits.h>
18973 # include <assert.h>
18978 /* Override any GCC internal prototype to avoid an error.
18979 Use char because int might match the return type of a GCC
18980 builtin and then its argument prototype would still apply. */
18985 /* The GNU C library defines this for functions which it implements
18986 to always fail with ENOSYS. Some functions are actually named
18987 something starting with __ and the normal name is an alias. */
18988 #if defined __stub_$ac_func || defined __stub___$ac_func
18995 return $ac_func ();
19000 rm -f conftest.$ac_objext conftest$ac_exeext
19001 if { (ac_try="$ac_link"
19002 case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_link") 2>conftest.er1
19009 grep -v '^ *+' conftest.er1 >conftest.err
19011 cat conftest.err >&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } && {
19014 test -z "$ac_c_werror_flag" ||
19015 test ! -s conftest.err
19016 } && test -s conftest$ac_exeext &&
19017 $as_test_x conftest$ac_exeext; then
19018 eval "$as_ac_var=yes"
19020 echo "$as_me: failed program was:" >&5
19021 sed 's/^/| /' conftest.$ac_ext >&5
19023 eval "$as_ac_var=no"
19026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19027 conftest$ac_exeext conftest.$ac_ext
19029 ac_res=`eval echo '${'$as_ac_var'}'`
19030 { echo "$as_me:$LINENO: result: $ac_res" >&5
19031 echo "${ECHO_T}$ac_res" >&6; }
19032 if test `eval echo '${'$as_ac_var'}'` = yes; then
19033 cat >>confdefs.h <<_ACEOF
19034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19041 # Do test here with the proper thread flags
19042 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19043 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19044 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
19045 echo $ECHO_N "(cached) $ECHO_C" >&6
19047 cat >conftest.$ac_ext <<_ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h. */
19053 #include <sys/types.h>
19059 struct passwd *space;
19062 struct passwd **result;
19063 getpwuid_r(uid, space, buf, bufsize, result);
19068 rm -f conftest.$ac_objext
19069 if { (ac_try="$ac_compile"
19070 case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_compile") 2>conftest.er1
19077 grep -v '^ *+' conftest.er1 >conftest.err
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } && {
19082 test -z "$ac_c_werror_flag" ||
19083 test ! -s conftest.err
19084 } && test -s conftest.$ac_objext; then
19085 pgac_func_getpwuid_r_5arg=yes
19087 echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19090 pgac_func_getpwuid_r_5arg=no
19093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19095 { echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
19096 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6; }
19097 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
19099 cat >>confdefs.h <<\_ACEOF
19100 #define GETPWUID_R_5ARG
19105 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19106 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19107 if test "${pgac_func_strerror_r_int+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 cat >conftest.$ac_ext <<_ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116 #include <string.h>
19121 int strerror_r(int, char *, size_t);
19123 /* Older AIX has 'int' for the third argument so we don't test the args. */
19130 rm -f conftest.$ac_objext
19131 if { (ac_try="$ac_compile"
19132 case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137 (eval "$ac_compile") 2>conftest.er1
19139 grep -v '^ *+' conftest.er1 >conftest.err
19141 cat conftest.err >&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } && {
19144 test -z "$ac_c_werror_flag" ||
19145 test ! -s conftest.err
19146 } && test -s conftest.$ac_objext; then
19147 pgac_func_strerror_r_int=yes
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19152 pgac_func_strerror_r_int=no
19155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19157 { echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
19158 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6; }
19159 if test x"$pgac_func_strerror_r_int" = xyes ; then
19161 cat >>confdefs.h <<\_ACEOF
19162 #define STRERROR_R_INT
19172 # do not use values from template file
19181 # We can test for libldap_r only after we know PTHREAD_LIBS
19182 if test "$with_ldap" = yes ; then
19184 if test "$PORTNAME" != "win32"; then
19186 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19187 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19188 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 ac_check_lib_save_LIBS=$LIBS
19192 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19200 /* Override any GCC internal prototype to avoid an error.
19201 Use char because int might match the return type of a GCC
19202 builtin and then its argument prototype would still apply. */
19210 return ldap_bind ();
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (ac_try="$ac_link"
19217 case "(($ac_try" in
19218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219 *) ac_try_echo=$ac_try;;
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222 (eval "$ac_link") 2>conftest.er1
19224 grep -v '^ *+' conftest.er1 >conftest.err
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } && {
19229 test -z "$ac_c_werror_flag" ||
19230 test ! -s conftest.err
19231 } && test -s conftest$ac_exeext &&
19232 $as_test_x conftest$ac_exeext; then
19233 ac_cv_lib_ldap_ldap_bind=yes
19235 echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19238 ac_cv_lib_ldap_ldap_bind=no
19241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19242 conftest$ac_exeext conftest.$ac_ext
19243 LIBS=$ac_check_lib_save_LIBS
19245 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19246 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19247 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19248 cat >>confdefs.h <<_ACEOF
19249 #define HAVE_LIBLDAP 1
19252 LIBS="-lldap $LIBS"
19255 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19256 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19257 { (exit 1); exit 1; }; }
19260 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19261 if test "$enable_thread_safety" = yes; then
19262 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19264 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19265 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19266 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 ac_check_lib_save_LIBS=$LIBS
19270 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19271 cat >conftest.$ac_ext <<_ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19278 /* Override any GCC internal prototype to avoid an error.
19279 Use char because int might match the return type of a GCC
19280 builtin and then its argument prototype would still apply. */
19284 char ldap_simple_bind ();
19288 return ldap_simple_bind ();
19293 rm -f conftest.$ac_objext conftest$ac_exeext
19294 if { (ac_try="$ac_link"
19295 case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_link") 2>conftest.er1
19302 grep -v '^ *+' conftest.er1 >conftest.err
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } && {
19307 test -z "$ac_c_werror_flag" ||
19308 test ! -s conftest.err
19309 } && test -s conftest$ac_exeext &&
19310 $as_test_x conftest$ac_exeext; then
19311 ac_cv_lib_ldap_r_ldap_simple_bind=yes
19313 echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19316 ac_cv_lib_ldap_r_ldap_simple_bind=no
19319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19320 conftest$ac_exeext conftest.$ac_ext
19321 LIBS=$ac_check_lib_save_LIBS
19323 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19324 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19325 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19326 cat >>confdefs.h <<_ACEOF
19327 #define HAVE_LIBLDAP_R 1
19330 LIBS="-lldap_r $LIBS"
19333 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19334 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19335 { (exit 1); exit 1; }; }
19338 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19340 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19344 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19345 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19346 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19349 ac_check_lib_save_LIBS=$LIBS
19350 LIBS="-lwldap32 $LIBS"
19351 cat >conftest.$ac_ext <<_ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19358 /* Override any GCC internal prototype to avoid an error.
19359 Use char because int might match the return type of a GCC
19360 builtin and then its argument prototype would still apply. */
19368 return ldap_bind ();
19373 rm -f conftest.$ac_objext conftest$ac_exeext
19374 if { (ac_try="$ac_link"
19375 case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380 (eval "$ac_link") 2>conftest.er1
19382 grep -v '^ *+' conftest.er1 >conftest.err
19384 cat conftest.err >&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } && {
19387 test -z "$ac_c_werror_flag" ||
19388 test ! -s conftest.err
19389 } && test -s conftest$ac_exeext &&
19390 $as_test_x conftest$ac_exeext; then
19391 ac_cv_lib_wldap32_ldap_bind=yes
19393 echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19396 ac_cv_lib_wldap32_ldap_bind=no
19399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19400 conftest$ac_exeext conftest.$ac_ext
19401 LIBS=$ac_check_lib_save_LIBS
19403 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19404 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19405 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19406 cat >>confdefs.h <<_ACEOF
19407 #define HAVE_LIBWLDAP32 1
19410 LIBS="-lwldap32 $LIBS"
19413 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19414 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19415 { (exit 1); exit 1; }; }
19418 LDAP_LIBS_FE="-lwldap32"
19419 LDAP_LIBS_BE="-lwldap32"
19427 # This test makes sure that run tests work at all. Sometimes a shared
19428 # library is found by the linker, but the runtime linker can't find it.
19429 # This check should come after all modifications of compiler or linker
19430 # variables, and before any other run tests.
19431 { echo "$as_me:$LINENO: checking test program" >&5
19432 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19433 if test "$cross_compiling" = yes; then
19434 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19435 echo "${ECHO_T}cross-compiling" >&6; }
19437 cat >conftest.$ac_ext <<_ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19443 int main() { return 0; }
19445 rm -f conftest$ac_exeext
19446 if { (ac_try="$ac_link"
19447 case "(($ac_try" in
19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449 *) ac_try_echo=$ac_try;;
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452 (eval "$ac_link") 2>&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19456 { (case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_try") 2>&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; }; then
19465 { echo "$as_me:$LINENO: result: ok" >&5
19466 echo "${ECHO_T}ok" >&6; }
19468 echo "$as_me: program exited with status $ac_status" >&5
19469 echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19472 ( exit $ac_status )
19473 { echo "$as_me:$LINENO: result: failed" >&5
19474 echo "${ECHO_T}failed" >&6; }
19475 { { echo "$as_me:$LINENO: error:
19476 Could not execute a simple test program. This may be a problem
19477 related to locating shared libraries. Check the file 'config.log'
19478 for the exact reason." >&5
19479 echo "$as_me: error:
19480 Could not execute a simple test program. This may be a problem
19481 related to locating shared libraries. Check the file 'config.log'
19482 for the exact reason." >&2;}
19483 { (exit 1); exit 1; }; }
19485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19490 # --------------------
19491 # Run tests below here
19492 # --------------------
19494 # Force use of our snprintf if system's doesn't do arg control
19495 # See comment above at snprintf test for details.
19496 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19497 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19498 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19499 if test "${pgac_cv_printf_arg_control+set}" = set; then
19500 echo $ECHO_N "(cached) $ECHO_C" >&6
19502 if test "$cross_compiling" = yes; then
19503 pgac_cv_printf_arg_control=cross
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19512 #include <string.h>
19518 /* can it swap arguments? */
19519 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19520 if (strcmp(buf, "4 3") != 0)
19525 rm -f conftest$ac_exeext
19526 if { (ac_try="$ac_link"
19527 case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_link") 2>&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19536 { (case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_try") 2>&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19545 pgac_cv_printf_arg_control=yes
19547 echo "$as_me: program exited with status $ac_status" >&5
19548 echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19551 ( exit $ac_status )
19552 pgac_cv_printf_arg_control=no
19554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19560 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19561 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19563 if test $pgac_cv_printf_arg_control != yes ; then
19564 pgac_need_repl_snprintf=yes
19570 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19571 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
19572 if test "${pgac_cv_type_long_int_64+set}" = set; then
19573 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 if test "$cross_compiling" = yes; then
19576 # If cross-compiling, check the size reported by the compiler and
19577 # trust that the arithmetic works.
19578 cat >conftest.$ac_ext <<_ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19588 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19595 rm -f conftest.$ac_objext
19596 if { (ac_try="$ac_compile"
19597 case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_compile") 2>conftest.er1
19604 grep -v '^ *+' conftest.er1 >conftest.err
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } && {
19609 test -z "$ac_c_werror_flag" ||
19610 test ! -s conftest.err
19611 } && test -s conftest.$ac_objext; then
19612 pgac_cv_type_long_int_64=yes
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 pgac_cv_type_long_int_64=no
19620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19622 cat >conftest.$ac_ext <<_ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19628 typedef long int ac_int64;
19631 * These are globals to discourage the compiler from folding all the
19632 * arithmetic tests down to compile-time constants.
19634 ac_int64 a = 20000001;
19635 ac_int64 b = 40000005;
19637 int does_int64_work()
19641 if (sizeof(ac_int64) != 8)
19642 return 0; /* definitely not the right size */
19644 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19652 exit(! does_int64_work());
19655 rm -f conftest$ac_exeext
19656 if { (ac_try="$ac_link"
19657 case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_link") 2>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19666 { (case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_try") 2>&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 pgac_cv_type_long_int_64=yes
19677 echo "$as_me: program exited with status $ac_status" >&5
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19681 ( exit $ac_status )
19682 pgac_cv_type_long_int_64=no
19684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19689 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19690 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
19692 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
19693 if test x"$pgac_cv_type_long_int_64" = xyes ; then
19695 cat >>confdefs.h <<\_ACEOF
19696 #define HAVE_LONG_INT_64 1
19702 if test x"$HAVE_LONG_INT_64" = x"no" ; then
19703 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19704 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
19705 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19708 if test "$cross_compiling" = yes; then
19709 # If cross-compiling, check the size reported by the compiler and
19710 # trust that the arithmetic works.
19711 cat >conftest.$ac_ext <<_ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19721 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19728 rm -f conftest.$ac_objext
19729 if { (ac_try="$ac_compile"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_compile") 2>conftest.er1
19737 grep -v '^ *+' conftest.er1 >conftest.err
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } && {
19742 test -z "$ac_c_werror_flag" ||
19743 test ! -s conftest.err
19744 } && test -s conftest.$ac_objext; then
19745 pgac_cv_type_long_long_int_64=yes
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19750 pgac_cv_type_long_long_int_64=no
19753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19755 cat >conftest.$ac_ext <<_ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19761 typedef long long int ac_int64;
19764 * These are globals to discourage the compiler from folding all the
19765 * arithmetic tests down to compile-time constants.
19767 ac_int64 a = 20000001;
19768 ac_int64 b = 40000005;
19770 int does_int64_work()
19774 if (sizeof(ac_int64) != 8)
19775 return 0; /* definitely not the right size */
19777 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19785 exit(! does_int64_work());
19788 rm -f conftest$ac_exeext
19789 if { (ac_try="$ac_link"
19790 case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795 (eval "$ac_link") 2>&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19799 { (case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_try") 2>&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
19808 pgac_cv_type_long_long_int_64=yes
19810 echo "$as_me: program exited with status $ac_status" >&5
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19814 ( exit $ac_status )
19815 pgac_cv_type_long_long_int_64=no
19817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19822 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
19823 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
19825 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
19826 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
19828 cat >>confdefs.h <<\_ACEOF
19829 #define HAVE_LONG_LONG_INT_64 1
19838 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
19839 cat >conftest.$ac_ext <<_ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19846 #define INT64CONST(x) x##LL
19847 long long int foo = INT64CONST(0x1234567890123456);
19857 rm -f conftest.$ac_objext
19858 if { (ac_try="$ac_compile"
19859 case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864 (eval "$ac_compile") 2>conftest.er1
19866 grep -v '^ *+' conftest.er1 >conftest.err
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } && {
19871 test -z "$ac_c_werror_flag" ||
19872 test ! -s conftest.err
19873 } && test -s conftest.$ac_objext; then
19875 cat >>confdefs.h <<\_ACEOF
19876 #define HAVE_LL_CONSTANTS 1
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19890 # If we found "long int" is 64 bits, assume snprintf handles it. If
19891 # we found we need to use "long long int", better check. We cope with
19892 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
19893 # work, fall back to our own snprintf emulation (which we know uses %lld).
19895 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
19896 if test $pgac_need_repl_snprintf = no; then
19897 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
19898 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
19899 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19902 for pgac_format in '%lld' '%qd' '%I64d'; do
19903 if test "$cross_compiling" = yes; then
19904 pgac_cv_snprintf_long_long_int_format=cross; break
19906 cat >conftest.$ac_ext <<_ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19913 typedef long long int ac_int64;
19914 #define INT64_FORMAT "$pgac_format"
19916 ac_int64 a = 20000001;
19917 ac_int64 b = 40000005;
19919 int does_int64_snprintf_work()
19924 if (sizeof(ac_int64) != 8)
19925 return 0; /* doesn't look like the right size */
19928 snprintf(buf, 100, INT64_FORMAT, c);
19929 if (strcmp(buf, "800000140000005") != 0)
19930 return 0; /* either multiply or snprintf is busted */
19934 exit(! does_int64_snprintf_work());
19937 rm -f conftest$ac_exeext
19938 if { (ac_try="$ac_link"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_link") 2>&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19948 { (case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_try") 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
19959 echo "$as_me: program exited with status $ac_status" >&5
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19971 LONG_LONG_INT_FORMAT=''
19973 case $pgac_cv_snprintf_long_long_int_format in
19974 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
19975 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
19976 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
19977 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
19978 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
19979 *) { echo "$as_me:$LINENO: result: none" >&5
19980 echo "${ECHO_T}none" >&6; };;
19982 if test "$LONG_LONG_INT_FORMAT" = ""; then
19983 # Force usage of our own snprintf, since system snprintf is broken
19984 pgac_need_repl_snprintf=yes
19985 LONG_LONG_INT_FORMAT='%lld'
19988 # Here if we previously decided we needed to use our own snprintf
19989 LONG_LONG_INT_FORMAT='%lld'
19991 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
19992 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
19993 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
19995 # Here if we are not using 'long long int' at all
19996 INT64_FORMAT='"%ld"'
19997 UINT64_FORMAT='"%lu"'
20001 cat >>confdefs.h <<_ACEOF
20002 #define INT64_FORMAT $INT64_FORMAT
20007 cat >>confdefs.h <<_ACEOF
20008 #define UINT64_FORMAT $UINT64_FORMAT
20012 # Now we have checked all the reasons to replace snprintf
20013 if test $pgac_need_repl_snprintf = yes; then
20015 cat >>confdefs.h <<\_ACEOF
20016 #define USE_REPL_SNPRINTF 1
20019 case " $LIBOBJS " in
20020 *" snprintf.$ac_objext "* ) ;;
20021 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20027 # Need a #define for the size of Datum (unsigned long)
20028 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20029 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20030 if test "${ac_cv_type_unsigned_long+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20033 cat >conftest.$ac_ext <<_ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20039 $ac_includes_default
20040 typedef unsigned long ac__type_new_;
20044 if ((ac__type_new_ *) 0)
20046 if (sizeof (ac__type_new_))
20052 rm -f conftest.$ac_objext
20053 if { (ac_try="$ac_compile"
20054 case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_compile") 2>conftest.er1
20061 grep -v '^ *+' conftest.er1 >conftest.err
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } && {
20066 test -z "$ac_c_werror_flag" ||
20067 test ! -s conftest.err
20068 } && test -s conftest.$ac_objext; then
20069 ac_cv_type_unsigned_long=yes
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ac_cv_type_unsigned_long=no
20077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20079 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20080 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20082 # The cast to long int works around a bug in the HP C Compiler
20083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20085 # This bug is HP SR number 8606223364.
20086 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20087 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20088 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 if test "$cross_compiling" = yes; then
20092 # Depending upon the size, compute the lo and hi bounds.
20093 cat >conftest.$ac_ext <<_ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20099 $ac_includes_default
20100 typedef unsigned long ac__type_sizeof_;
20104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20111 rm -f conftest.$ac_objext
20112 if { (ac_try="$ac_compile"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_compile") 2>conftest.er1
20120 grep -v '^ *+' conftest.er1 >conftest.err
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } && {
20125 test -z "$ac_c_werror_flag" ||
20126 test ! -s conftest.err
20127 } && test -s conftest.$ac_objext; then
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 $ac_includes_default
20137 typedef unsigned long ac__type_sizeof_;
20141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20148 rm -f conftest.$ac_objext
20149 if { (ac_try="$ac_compile"
20150 case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_compile") 2>conftest.er1
20157 grep -v '^ *+' conftest.er1 >conftest.err
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } && {
20162 test -z "$ac_c_werror_flag" ||
20163 test ! -s conftest.err
20164 } && test -s conftest.$ac_objext; then
20165 ac_hi=$ac_mid; break
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20170 ac_lo=`expr $ac_mid + 1`
20171 if test $ac_lo -le $ac_mid; then
20175 ac_mid=`expr 2 '*' $ac_mid + 1`
20178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 cat >conftest.$ac_ext <<_ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 $ac_includes_default
20191 typedef unsigned long ac__type_sizeof_;
20195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20202 rm -f conftest.$ac_objext
20203 if { (ac_try="$ac_compile"
20204 case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_compile") 2>conftest.er1
20211 grep -v '^ *+' conftest.er1 >conftest.err
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } && {
20216 test -z "$ac_c_werror_flag" ||
20217 test ! -s conftest.err
20218 } && test -s conftest.$ac_objext; then
20221 cat >conftest.$ac_ext <<_ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 $ac_includes_default
20228 typedef unsigned long ac__type_sizeof_;
20232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20239 rm -f conftest.$ac_objext
20240 if { (ac_try="$ac_compile"
20241 case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_compile") 2>conftest.er1
20248 grep -v '^ *+' conftest.er1 >conftest.err
20250 cat conftest.err >&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } && {
20253 test -z "$ac_c_werror_flag" ||
20254 test ! -s conftest.err
20255 } && test -s conftest.$ac_objext; then
20256 ac_lo=$ac_mid; break
20258 echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20261 ac_hi=`expr '(' $ac_mid ')' - 1`
20262 if test $ac_mid -le $ac_hi; then
20266 ac_mid=`expr 2 '*' $ac_mid`
20269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272 echo "$as_me: failed program was:" >&5
20273 sed 's/^/| /' conftest.$ac_ext >&5
20278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20282 # Binary search between lo and hi bounds.
20283 while test "x$ac_lo" != "x$ac_hi"; do
20284 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20285 cat >conftest.$ac_ext <<_ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h. */
20291 $ac_includes_default
20292 typedef unsigned long ac__type_sizeof_;
20296 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20303 rm -f conftest.$ac_objext
20304 if { (ac_try="$ac_compile"
20305 case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_compile") 2>conftest.er1
20312 grep -v '^ *+' conftest.er1 >conftest.err
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } && {
20317 test -z "$ac_c_werror_flag" ||
20318 test ! -s conftest.err
20319 } && test -s conftest.$ac_objext; then
20322 echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 ac_lo=`expr '(' $ac_mid ')' + 1`
20328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20332 '') if test "$ac_cv_type_unsigned_long" = yes; then
20333 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20334 See \`config.log' for more details." >&5
20335 echo "$as_me: error: cannot compute sizeof (unsigned long)
20336 See \`config.log' for more details." >&2;}
20337 { (exit 77); exit 77; }; }
20339 ac_cv_sizeof_unsigned_long=0
20343 cat >conftest.$ac_ext <<_ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 $ac_includes_default
20350 typedef unsigned long ac__type_sizeof_;
20351 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20352 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20354 #include <stdlib.h>
20359 FILE *f = fopen ("conftest.val", "w");
20362 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20364 long int i = longval ();
20365 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20367 fprintf (f, "%ld\n", i);
20371 unsigned long int i = ulongval ();
20372 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20374 fprintf (f, "%lu\n", i);
20376 return ferror (f) || fclose (f) != 0;
20382 rm -f conftest$ac_exeext
20383 if { (ac_try="$ac_link"
20384 case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_link") 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20393 { (case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_try") 2>&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; }; then
20402 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20404 echo "$as_me: program exited with status $ac_status" >&5
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20408 ( exit $ac_status )
20409 if test "$ac_cv_type_unsigned_long" = yes; then
20410 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20411 See \`config.log' for more details." >&5
20412 echo "$as_me: error: cannot compute sizeof (unsigned long)
20413 See \`config.log' for more details." >&2;}
20414 { (exit 77); exit 77; }; }
20416 ac_cv_sizeof_unsigned_long=0
20419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20423 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20424 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20428 cat >>confdefs.h <<_ACEOF
20429 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20434 # And one for the size of size_t (enables tweaks for > 32bit address space)
20435 { echo "$as_me:$LINENO: checking for size_t" >&5
20436 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20437 if test "${ac_cv_type_size_t+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 cat >conftest.$ac_ext <<_ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 $ac_includes_default
20447 typedef size_t ac__type_new_;
20451 if ((ac__type_new_ *) 0)
20453 if (sizeof (ac__type_new_))
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_compile") 2>conftest.er1
20468 grep -v '^ *+' conftest.er1 >conftest.err
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } && {
20473 test -z "$ac_c_werror_flag" ||
20474 test ! -s conftest.err
20475 } && test -s conftest.$ac_objext; then
20476 ac_cv_type_size_t=yes
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20481 ac_cv_type_size_t=no
20484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20486 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20487 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20489 # The cast to long int works around a bug in the HP C Compiler
20490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20492 # This bug is HP SR number 8606223364.
20493 { echo "$as_me:$LINENO: checking size of size_t" >&5
20494 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20495 if test "${ac_cv_sizeof_size_t+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20498 if test "$cross_compiling" = yes; then
20499 # Depending upon the size, compute the lo and hi bounds.
20500 cat >conftest.$ac_ext <<_ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20506 $ac_includes_default
20507 typedef size_t ac__type_sizeof_;
20511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20518 rm -f conftest.$ac_objext
20519 if { (ac_try="$ac_compile"
20520 case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_compile") 2>conftest.er1
20527 grep -v '^ *+' conftest.er1 >conftest.err
20529 cat conftest.err >&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } && {
20532 test -z "$ac_c_werror_flag" ||
20533 test ! -s conftest.err
20534 } && test -s conftest.$ac_objext; then
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543 $ac_includes_default
20544 typedef size_t ac__type_sizeof_;
20548 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_compile") 2>conftest.er1
20564 grep -v '^ *+' conftest.er1 >conftest.err
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } && {
20569 test -z "$ac_c_werror_flag" ||
20570 test ! -s conftest.err
20571 } && test -s conftest.$ac_objext; then
20572 ac_hi=$ac_mid; break
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 ac_lo=`expr $ac_mid + 1`
20578 if test $ac_lo -le $ac_mid; then
20582 ac_mid=`expr 2 '*' $ac_mid + 1`
20585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 cat >conftest.$ac_ext <<_ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 $ac_includes_default
20598 typedef size_t ac__type_sizeof_;
20602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20609 rm -f conftest.$ac_objext
20610 if { (ac_try="$ac_compile"
20611 case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_compile") 2>conftest.er1
20618 grep -v '^ *+' conftest.er1 >conftest.err
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } && {
20623 test -z "$ac_c_werror_flag" ||
20624 test ! -s conftest.err
20625 } && test -s conftest.$ac_objext; then
20628 cat >conftest.$ac_ext <<_ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20634 $ac_includes_default
20635 typedef size_t ac__type_sizeof_;
20639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20646 rm -f conftest.$ac_objext
20647 if { (ac_try="$ac_compile"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_compile") 2>conftest.er1
20655 grep -v '^ *+' conftest.er1 >conftest.err
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } && {
20660 test -z "$ac_c_werror_flag" ||
20661 test ! -s conftest.err
20662 } && test -s conftest.$ac_objext; then
20663 ac_lo=$ac_mid; break
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20668 ac_hi=`expr '(' $ac_mid ')' - 1`
20669 if test $ac_mid -le $ac_hi; then
20673 ac_mid=`expr 2 '*' $ac_mid`
20676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20679 echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689 # Binary search between lo and hi bounds.
20690 while test "x$ac_lo" != "x$ac_hi"; do
20691 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20692 cat >conftest.$ac_ext <<_ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20698 $ac_includes_default
20699 typedef size_t ac__type_sizeof_;
20703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20710 rm -f conftest.$ac_objext
20711 if { (ac_try="$ac_compile"
20712 case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717 (eval "$ac_compile") 2>conftest.er1
20719 grep -v '^ *+' conftest.er1 >conftest.err
20721 cat conftest.err >&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } && {
20724 test -z "$ac_c_werror_flag" ||
20725 test ! -s conftest.err
20726 } && test -s conftest.$ac_objext; then
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20732 ac_lo=`expr '(' $ac_mid ')' + 1`
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20738 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20739 '') if test "$ac_cv_type_size_t" = yes; then
20740 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20741 See \`config.log' for more details." >&5
20742 echo "$as_me: error: cannot compute sizeof (size_t)
20743 See \`config.log' for more details." >&2;}
20744 { (exit 77); exit 77; }; }
20746 ac_cv_sizeof_size_t=0
20750 cat >conftest.$ac_ext <<_ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20756 $ac_includes_default
20757 typedef size_t ac__type_sizeof_;
20758 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20759 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20761 #include <stdlib.h>
20766 FILE *f = fopen ("conftest.val", "w");
20769 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20771 long int i = longval ();
20772 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20774 fprintf (f, "%ld\n", i);
20778 unsigned long int i = ulongval ();
20779 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20781 fprintf (f, "%lu\n", i);
20783 return ferror (f) || fclose (f) != 0;
20789 rm -f conftest$ac_exeext
20790 if { (ac_try="$ac_link"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_link") 2>&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20800 { (case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_try") 2>&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20809 ac_cv_sizeof_size_t=`cat conftest.val`
20811 echo "$as_me: program exited with status $ac_status" >&5
20812 echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20815 ( exit $ac_status )
20816 if test "$ac_cv_type_size_t" = yes; then
20817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20818 See \`config.log' for more details." >&5
20819 echo "$as_me: error: cannot compute sizeof (size_t)
20820 See \`config.log' for more details." >&2;}
20821 { (exit 77); exit 77; }; }
20823 ac_cv_sizeof_size_t=0
20826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20830 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20831 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
20835 cat >>confdefs.h <<_ACEOF
20836 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20841 # Determine memory alignment requirements for the basic C data types.
20843 { echo "$as_me:$LINENO: checking for short" >&5
20844 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20845 if test "${ac_cv_type_short+set}" = set; then
20846 echo $ECHO_N "(cached) $ECHO_C" >&6
20848 cat >conftest.$ac_ext <<_ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 $ac_includes_default
20855 typedef short ac__type_new_;
20859 if ((ac__type_new_ *) 0)
20861 if (sizeof (ac__type_new_))
20867 rm -f conftest.$ac_objext
20868 if { (ac_try="$ac_compile"
20869 case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_compile") 2>conftest.er1
20876 grep -v '^ *+' conftest.er1 >conftest.err
20878 cat conftest.err >&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); } && {
20881 test -z "$ac_c_werror_flag" ||
20882 test ! -s conftest.err
20883 } && test -s conftest.$ac_objext; then
20884 ac_cv_type_short=yes
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20889 ac_cv_type_short=no
20892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20895 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20897 # The cast to long int works around a bug in the HP C Compiler,
20898 # see AC_CHECK_SIZEOF for more information.
20899 { echo "$as_me:$LINENO: checking alignment of short" >&5
20900 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
20901 if test "${ac_cv_alignof_short+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 if test "$cross_compiling" = yes; then
20905 # Depending upon the size, compute the lo and hi bounds.
20906 cat >conftest.$ac_ext <<_ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 $ac_includes_default
20914 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
20916 typedef struct { char x; short y; } ac__type_alignof_;
20920 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
20927 rm -f conftest.$ac_objext
20928 if { (ac_try="$ac_compile"
20929 case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_compile") 2>conftest.er1
20936 grep -v '^ *+' conftest.er1 >conftest.err
20938 cat conftest.err >&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } && {
20941 test -z "$ac_c_werror_flag" ||
20942 test ! -s conftest.err
20943 } && test -s conftest.$ac_objext; then
20946 cat >conftest.$ac_ext <<_ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20952 $ac_includes_default
20954 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
20956 typedef struct { char x; short y; } ac__type_alignof_;
20960 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
20967 rm -f conftest.$ac_objext
20968 if { (ac_try="$ac_compile"
20969 case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_compile") 2>conftest.er1
20976 grep -v '^ *+' conftest.er1 >conftest.err
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } && {
20981 test -z "$ac_c_werror_flag" ||
20982 test ! -s conftest.err
20983 } && test -s conftest.$ac_objext; then
20984 ac_hi=$ac_mid; break
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ac_lo=`expr $ac_mid + 1`
20990 if test $ac_lo -le $ac_mid; then
20994 ac_mid=`expr 2 '*' $ac_mid + 1`
20997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 cat >conftest.$ac_ext <<_ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h. */
21009 $ac_includes_default
21011 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21013 typedef struct { char x; short y; } ac__type_alignof_;
21017 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21024 rm -f conftest.$ac_objext
21025 if { (ac_try="$ac_compile"
21026 case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_compile") 2>conftest.er1
21033 grep -v '^ *+' conftest.er1 >conftest.err
21035 cat conftest.err >&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } && {
21038 test -z "$ac_c_werror_flag" ||
21039 test ! -s conftest.err
21040 } && test -s conftest.$ac_objext; then
21043 cat >conftest.$ac_ext <<_ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 $ac_includes_default
21051 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21053 typedef struct { char x; short y; } ac__type_alignof_;
21057 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21064 rm -f conftest.$ac_objext
21065 if { (ac_try="$ac_compile"
21066 case "(($ac_try" in
21067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068 *) ac_try_echo=$ac_try;;
21070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071 (eval "$ac_compile") 2>conftest.er1
21073 grep -v '^ *+' conftest.er1 >conftest.err
21075 cat conftest.err >&5
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); } && {
21078 test -z "$ac_c_werror_flag" ||
21079 test ! -s conftest.err
21080 } && test -s conftest.$ac_objext; then
21081 ac_lo=$ac_mid; break
21083 echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21086 ac_hi=`expr '(' $ac_mid ')' - 1`
21087 if test $ac_mid -le $ac_hi; then
21091 ac_mid=`expr 2 '*' $ac_mid`
21094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21107 # Binary search between lo and hi bounds.
21108 while test "x$ac_lo" != "x$ac_hi"; do
21109 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21110 cat >conftest.$ac_ext <<_ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 $ac_includes_default
21118 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21120 typedef struct { char x; short y; } ac__type_alignof_;
21124 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $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_alignof_short=$ac_lo;;
21160 '') if test "$ac_cv_type_short" = yes; then
21161 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21162 See \`config.log' for more details." >&5
21163 echo "$as_me: error: cannot compute alignment of short
21164 See \`config.log' for more details." >&2;}
21165 { (exit 77); exit 77; }; }
21167 ac_cv_alignof_short=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
21179 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21181 typedef struct { char x; short y; } ac__type_alignof_;
21182 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21183 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21185 #include <stdlib.h>
21190 FILE *f = fopen ("conftest.val", "w");
21193 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21195 long int i = longval ();
21196 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21198 fprintf (f, "%ld\n", i);
21202 unsigned long int i = ulongval ();
21203 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21205 fprintf (f, "%lu\n", i);
21207 return ferror (f) || fclose (f) != 0;
21213 rm -f conftest$ac_exeext
21214 if { (ac_try="$ac_link"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_link") 2>&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21224 { (case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_try") 2>&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; }; then
21233 ac_cv_alignof_short=`cat conftest.val`
21235 echo "$as_me: program exited with status $ac_status" >&5
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ( exit $ac_status )
21240 if test "$ac_cv_type_short" = yes; then
21241 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21242 See \`config.log' for more details." >&5
21243 echo "$as_me: error: cannot compute alignment of short
21244 See \`config.log' for more details." >&2;}
21245 { (exit 77); exit 77; }; }
21247 ac_cv_alignof_short=0
21250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21254 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21255 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21259 cat >>confdefs.h <<_ACEOF
21260 #define ALIGNOF_SHORT $ac_cv_alignof_short
21264 { echo "$as_me:$LINENO: checking for int" >&5
21265 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21266 if test "${ac_cv_type_int+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21269 cat >conftest.$ac_ext <<_ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21275 $ac_includes_default
21276 typedef int ac__type_new_;
21280 if ((ac__type_new_ *) 0)
21282 if (sizeof (ac__type_new_))
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_compile") 2>conftest.er1
21297 grep -v '^ *+' conftest.er1 >conftest.err
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } && {
21302 test -z "$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 } && test -s conftest.$ac_objext; then
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21316 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21318 # The cast to long int works around a bug in the HP C Compiler,
21319 # see AC_CHECK_SIZEOF for more information.
21320 { echo "$as_me:$LINENO: checking alignment of int" >&5
21321 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21322 if test "${ac_cv_alignof_int+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 if test "$cross_compiling" = yes; then
21326 # Depending upon the size, compute the lo and hi bounds.
21327 cat >conftest.$ac_ext <<_ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21333 $ac_includes_default
21335 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21337 typedef struct { char x; int y; } ac__type_alignof_;
21341 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21348 rm -f conftest.$ac_objext
21349 if { (ac_try="$ac_compile"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_compile") 2>conftest.er1
21357 grep -v '^ *+' conftest.er1 >conftest.err
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } && {
21362 test -z "$ac_c_werror_flag" ||
21363 test ! -s conftest.err
21364 } && test -s conftest.$ac_objext; then
21367 cat >conftest.$ac_ext <<_ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h. */
21373 $ac_includes_default
21375 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21377 typedef struct { char x; int y; } ac__type_alignof_;
21381 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21388 rm -f conftest.$ac_objext
21389 if { (ac_try="$ac_compile"
21390 case "(($ac_try" in
21391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392 *) ac_try_echo=$ac_try;;
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395 (eval "$ac_compile") 2>conftest.er1
21397 grep -v '^ *+' conftest.er1 >conftest.err
21399 cat conftest.err >&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } && {
21402 test -z "$ac_c_werror_flag" ||
21403 test ! -s conftest.err
21404 } && test -s conftest.$ac_objext; then
21405 ac_hi=$ac_mid; break
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ac_lo=`expr $ac_mid + 1`
21411 if test $ac_lo -le $ac_mid; then
21415 ac_mid=`expr 2 '*' $ac_mid + 1`
21418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21424 cat >conftest.$ac_ext <<_ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21430 $ac_includes_default
21432 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21434 typedef struct { char x; int y; } ac__type_alignof_;
21438 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_compile") 2>conftest.er1
21454 grep -v '^ *+' conftest.er1 >conftest.err
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } && {
21459 test -z "$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 } && test -s conftest.$ac_objext; then
21464 cat >conftest.$ac_ext <<_ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21470 $ac_includes_default
21472 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21474 typedef struct { char x; int y; } ac__type_alignof_;
21478 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21485 rm -f conftest.$ac_objext
21486 if { (ac_try="$ac_compile"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_compile") 2>conftest.er1
21494 grep -v '^ *+' conftest.er1 >conftest.err
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } && {
21499 test -z "$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21501 } && test -s conftest.$ac_objext; then
21502 ac_lo=$ac_mid; break
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ac_hi=`expr '(' $ac_mid ')' - 1`
21508 if test $ac_mid -le $ac_hi; then
21512 ac_mid=`expr 2 '*' $ac_mid`
21515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21528 # Binary search between lo and hi bounds.
21529 while test "x$ac_lo" != "x$ac_hi"; do
21530 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21531 cat >conftest.$ac_ext <<_ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 $ac_includes_default
21539 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21541 typedef struct { char x; int y; } ac__type_alignof_;
21545 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21552 rm -f conftest.$ac_objext
21553 if { (ac_try="$ac_compile"
21554 case "(($ac_try" in
21555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21556 *) ac_try_echo=$ac_try;;
21558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21559 (eval "$ac_compile") 2>conftest.er1
21561 grep -v '^ *+' conftest.er1 >conftest.err
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } && {
21566 test -z "$ac_c_werror_flag" ||
21567 test ! -s conftest.err
21568 } && test -s conftest.$ac_objext; then
21571 echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21574 ac_lo=`expr '(' $ac_mid ')' + 1`
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21580 ?*) ac_cv_alignof_int=$ac_lo;;
21581 '') if test "$ac_cv_type_int" = yes; then
21582 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21583 See \`config.log' for more details." >&5
21584 echo "$as_me: error: cannot compute alignment of int
21585 See \`config.log' for more details." >&2;}
21586 { (exit 77); exit 77; }; }
21588 ac_cv_alignof_int=0
21592 cat >conftest.$ac_ext <<_ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 $ac_includes_default
21600 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21602 typedef struct { char x; int y; } ac__type_alignof_;
21603 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21604 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21606 #include <stdlib.h>
21611 FILE *f = fopen ("conftest.val", "w");
21614 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21616 long int i = longval ();
21617 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21619 fprintf (f, "%ld\n", i);
21623 unsigned long int i = ulongval ();
21624 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21626 fprintf (f, "%lu\n", i);
21628 return ferror (f) || fclose (f) != 0;
21634 rm -f conftest$ac_exeext
21635 if { (ac_try="$ac_link"
21636 case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_link") 2>&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21645 { (case "(($ac_try" in
21646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647 *) ac_try_echo=$ac_try;;
21649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21650 (eval "$ac_try") 2>&5
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; }; then
21654 ac_cv_alignof_int=`cat conftest.val`
21656 echo "$as_me: program exited with status $ac_status" >&5
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21660 ( exit $ac_status )
21661 if test "$ac_cv_type_int" = yes; then
21662 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21663 See \`config.log' for more details." >&5
21664 echo "$as_me: error: cannot compute alignment of int
21665 See \`config.log' for more details." >&2;}
21666 { (exit 77); exit 77; }; }
21668 ac_cv_alignof_int=0
21671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21675 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
21676 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
21680 cat >>confdefs.h <<_ACEOF
21681 #define ALIGNOF_INT $ac_cv_alignof_int
21685 { echo "$as_me:$LINENO: checking for long" >&5
21686 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21687 if test "${ac_cv_type_long+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 $ac_includes_default
21697 typedef long ac__type_new_;
21701 if ((ac__type_new_ *) 0)
21703 if (sizeof (ac__type_new_))
21709 rm -f conftest.$ac_objext
21710 if { (ac_try="$ac_compile"
21711 case "(($ac_try" in
21712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713 *) ac_try_echo=$ac_try;;
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716 (eval "$ac_compile") 2>conftest.er1
21718 grep -v '^ *+' conftest.er1 >conftest.err
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } && {
21723 test -z "$ac_c_werror_flag" ||
21724 test ! -s conftest.err
21725 } && test -s conftest.$ac_objext; then
21726 ac_cv_type_long=yes
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21737 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21739 # The cast to long int works around a bug in the HP C Compiler,
21740 # see AC_CHECK_SIZEOF for more information.
21741 { echo "$as_me:$LINENO: checking alignment of long" >&5
21742 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
21743 if test "${ac_cv_alignof_long+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21746 if test "$cross_compiling" = yes; then
21747 # Depending upon the size, compute the lo and hi bounds.
21748 cat >conftest.$ac_ext <<_ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h. */
21754 $ac_includes_default
21756 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21758 typedef struct { char x; long y; } ac__type_alignof_;
21762 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21769 rm -f conftest.$ac_objext
21770 if { (ac_try="$ac_compile"
21771 case "(($ac_try" in
21772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773 *) ac_try_echo=$ac_try;;
21775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776 (eval "$ac_compile") 2>conftest.er1
21778 grep -v '^ *+' conftest.er1 >conftest.err
21780 cat conftest.err >&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); } && {
21783 test -z "$ac_c_werror_flag" ||
21784 test ! -s conftest.err
21785 } && test -s conftest.$ac_objext; then
21788 cat >conftest.$ac_ext <<_ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h. */
21794 $ac_includes_default
21796 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21798 typedef struct { char x; long y; } ac__type_alignof_;
21802 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21809 rm -f conftest.$ac_objext
21810 if { (ac_try="$ac_compile"
21811 case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_compile") 2>conftest.er1
21818 grep -v '^ *+' conftest.er1 >conftest.err
21820 cat conftest.err >&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } && {
21823 test -z "$ac_c_werror_flag" ||
21824 test ! -s conftest.err
21825 } && test -s conftest.$ac_objext; then
21826 ac_hi=$ac_mid; break
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21831 ac_lo=`expr $ac_mid + 1`
21832 if test $ac_lo -le $ac_mid; then
21836 ac_mid=`expr 2 '*' $ac_mid + 1`
21839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21842 echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21845 cat >conftest.$ac_ext <<_ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 $ac_includes_default
21853 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21855 typedef struct { char x; long y; } ac__type_alignof_;
21859 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21866 rm -f conftest.$ac_objext
21867 if { (ac_try="$ac_compile"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_compile") 2>conftest.er1
21875 grep -v '^ *+' conftest.er1 >conftest.err
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } && {
21880 test -z "$ac_c_werror_flag" ||
21881 test ! -s conftest.err
21882 } && test -s conftest.$ac_objext; then
21885 cat >conftest.$ac_ext <<_ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h. */
21891 $ac_includes_default
21893 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21895 typedef struct { char x; long y; } ac__type_alignof_;
21899 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21906 rm -f conftest.$ac_objext
21907 if { (ac_try="$ac_compile"
21908 case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_compile") 2>conftest.er1
21915 grep -v '^ *+' conftest.er1 >conftest.err
21917 cat conftest.err >&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } && {
21920 test -z "$ac_c_werror_flag" ||
21921 test ! -s conftest.err
21922 } && test -s conftest.$ac_objext; then
21923 ac_lo=$ac_mid; break
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21928 ac_hi=`expr '(' $ac_mid ')' - 1`
21929 if test $ac_mid -le $ac_hi; then
21933 ac_mid=`expr 2 '*' $ac_mid`
21936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21949 # Binary search between lo and hi bounds.
21950 while test "x$ac_lo" != "x$ac_hi"; do
21951 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21952 cat >conftest.$ac_ext <<_ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 $ac_includes_default
21960 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21962 typedef struct { char x; long y; } ac__type_alignof_;
21966 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21973 rm -f conftest.$ac_objext
21974 if { (ac_try="$ac_compile"
21975 case "(($ac_try" in
21976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977 *) ac_try_echo=$ac_try;;
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980 (eval "$ac_compile") 2>conftest.er1
21982 grep -v '^ *+' conftest.er1 >conftest.err
21984 cat conftest.err >&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } && {
21987 test -z "$ac_c_werror_flag" ||
21988 test ! -s conftest.err
21989 } && test -s conftest.$ac_objext; then
21992 echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21995 ac_lo=`expr '(' $ac_mid ')' + 1`
21998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22001 ?*) ac_cv_alignof_long=$ac_lo;;
22002 '') if test "$ac_cv_type_long" = yes; then
22003 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22004 See \`config.log' for more details." >&5
22005 echo "$as_me: error: cannot compute alignment of long
22006 See \`config.log' for more details." >&2;}
22007 { (exit 77); exit 77; }; }
22009 ac_cv_alignof_long=0
22013 cat >conftest.$ac_ext <<_ACEOF
22016 cat confdefs.h >>conftest.$ac_ext
22017 cat >>conftest.$ac_ext <<_ACEOF
22018 /* end confdefs.h. */
22019 $ac_includes_default
22021 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22023 typedef struct { char x; long y; } ac__type_alignof_;
22024 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22025 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22027 #include <stdlib.h>
22032 FILE *f = fopen ("conftest.val", "w");
22035 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22037 long int i = longval ();
22038 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22040 fprintf (f, "%ld\n", i);
22044 unsigned long int i = ulongval ();
22045 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22047 fprintf (f, "%lu\n", i);
22049 return ferror (f) || fclose (f) != 0;
22055 rm -f conftest$ac_exeext
22056 if { (ac_try="$ac_link"
22057 case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_link") 2>&5
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22066 { (case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_try") 2>&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; }; then
22075 ac_cv_alignof_long=`cat conftest.val`
22077 echo "$as_me: program exited with status $ac_status" >&5
22078 echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22081 ( exit $ac_status )
22082 if test "$ac_cv_type_long" = yes; then
22083 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22084 See \`config.log' for more details." >&5
22085 echo "$as_me: error: cannot compute alignment of long
22086 See \`config.log' for more details." >&2;}
22087 { (exit 77); exit 77; }; }
22089 ac_cv_alignof_long=0
22092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22096 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22097 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22101 cat >>confdefs.h <<_ACEOF
22102 #define ALIGNOF_LONG $ac_cv_alignof_long
22106 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22107 { echo "$as_me:$LINENO: checking for long long int" >&5
22108 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22109 if test "${ac_cv_type_long_long_int+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 cat >conftest.$ac_ext <<_ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 $ac_includes_default
22119 typedef long long int ac__type_new_;
22123 if ((ac__type_new_ *) 0)
22125 if (sizeof (ac__type_new_))
22131 rm -f conftest.$ac_objext
22132 if { (ac_try="$ac_compile"
22133 case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_compile") 2>conftest.er1
22140 grep -v '^ *+' conftest.er1 >conftest.err
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } && {
22145 test -z "$ac_c_werror_flag" ||
22146 test ! -s conftest.err
22147 } && test -s conftest.$ac_objext; then
22148 ac_cv_type_long_long_int=yes
22150 echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22153 ac_cv_type_long_long_int=no
22156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22158 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22159 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22161 # The cast to long int works around a bug in the HP C Compiler,
22162 # see AC_CHECK_SIZEOF for more information.
22163 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22164 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22165 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22166 echo $ECHO_N "(cached) $ECHO_C" >&6
22168 if test "$cross_compiling" = yes; then
22169 # Depending upon the size, compute the lo and hi bounds.
22170 cat >conftest.$ac_ext <<_ACEOF
22173 cat confdefs.h >>conftest.$ac_ext
22174 cat >>conftest.$ac_ext <<_ACEOF
22175 /* end confdefs.h. */
22176 $ac_includes_default
22178 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22180 typedef struct { char x; long long int y; } ac__type_alignof_;
22184 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22191 rm -f conftest.$ac_objext
22192 if { (ac_try="$ac_compile"
22193 case "(($ac_try" in
22194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22195 *) ac_try_echo=$ac_try;;
22197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22198 (eval "$ac_compile") 2>conftest.er1
22200 grep -v '^ *+' conftest.er1 >conftest.err
22202 cat conftest.err >&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); } && {
22205 test -z "$ac_c_werror_flag" ||
22206 test ! -s conftest.err
22207 } && test -s conftest.$ac_objext; then
22210 cat >conftest.$ac_ext <<_ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22216 $ac_includes_default
22218 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22220 typedef struct { char x; long long int y; } ac__type_alignof_;
22224 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22231 rm -f conftest.$ac_objext
22232 if { (ac_try="$ac_compile"
22233 case "(($ac_try" in
22234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235 *) ac_try_echo=$ac_try;;
22237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22238 (eval "$ac_compile") 2>conftest.er1
22240 grep -v '^ *+' conftest.er1 >conftest.err
22242 cat conftest.err >&5
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } && {
22245 test -z "$ac_c_werror_flag" ||
22246 test ! -s conftest.err
22247 } && test -s conftest.$ac_objext; then
22248 ac_hi=$ac_mid; break
22250 echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22253 ac_lo=`expr $ac_mid + 1`
22254 if test $ac_lo -le $ac_mid; then
22258 ac_mid=`expr 2 '*' $ac_mid + 1`
22261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22267 cat >conftest.$ac_ext <<_ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 $ac_includes_default
22275 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22277 typedef struct { char x; long long int y; } ac__type_alignof_;
22281 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22288 rm -f conftest.$ac_objext
22289 if { (ac_try="$ac_compile"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_compile") 2>conftest.er1
22297 grep -v '^ *+' conftest.er1 >conftest.err
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } && {
22302 test -z "$ac_c_werror_flag" ||
22303 test ! -s conftest.err
22304 } && test -s conftest.$ac_objext; then
22307 cat >conftest.$ac_ext <<_ACEOF
22310 cat confdefs.h >>conftest.$ac_ext
22311 cat >>conftest.$ac_ext <<_ACEOF
22312 /* end confdefs.h. */
22313 $ac_includes_default
22315 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22317 typedef struct { char x; long long int y; } ac__type_alignof_;
22321 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22328 rm -f conftest.$ac_objext
22329 if { (ac_try="$ac_compile"
22330 case "(($ac_try" in
22331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332 *) ac_try_echo=$ac_try;;
22334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22335 (eval "$ac_compile") 2>conftest.er1
22337 grep -v '^ *+' conftest.er1 >conftest.err
22339 cat conftest.err >&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); } && {
22342 test -z "$ac_c_werror_flag" ||
22343 test ! -s conftest.err
22344 } && test -s conftest.$ac_objext; then
22345 ac_lo=$ac_mid; break
22347 echo "$as_me: failed program was:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22350 ac_hi=`expr '(' $ac_mid ')' - 1`
22351 if test $ac_mid -le $ac_hi; then
22355 ac_mid=`expr 2 '*' $ac_mid`
22358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22371 # Binary search between lo and hi bounds.
22372 while test "x$ac_lo" != "x$ac_hi"; do
22373 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22374 cat >conftest.$ac_ext <<_ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h. */
22380 $ac_includes_default
22382 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22384 typedef struct { char x; long long int y; } ac__type_alignof_;
22388 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22395 rm -f conftest.$ac_objext
22396 if { (ac_try="$ac_compile"
22397 case "(($ac_try" in
22398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399 *) ac_try_echo=$ac_try;;
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402 (eval "$ac_compile") 2>conftest.er1
22404 grep -v '^ *+' conftest.er1 >conftest.err
22406 cat conftest.err >&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); } && {
22409 test -z "$ac_c_werror_flag" ||
22410 test ! -s conftest.err
22411 } && test -s conftest.$ac_objext; then
22414 echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22417 ac_lo=`expr '(' $ac_mid ')' + 1`
22420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22423 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22424 '') if test "$ac_cv_type_long_long_int" = yes; then
22425 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22426 See \`config.log' for more details." >&5
22427 echo "$as_me: error: cannot compute alignment of long long int
22428 See \`config.log' for more details." >&2;}
22429 { (exit 77); exit 77; }; }
22431 ac_cv_alignof_long_long_int=0
22435 cat >conftest.$ac_ext <<_ACEOF
22438 cat confdefs.h >>conftest.$ac_ext
22439 cat >>conftest.$ac_ext <<_ACEOF
22440 /* end confdefs.h. */
22441 $ac_includes_default
22443 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22445 typedef struct { char x; long long int y; } ac__type_alignof_;
22446 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22447 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22449 #include <stdlib.h>
22454 FILE *f = fopen ("conftest.val", "w");
22457 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22459 long int i = longval ();
22460 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22462 fprintf (f, "%ld\n", i);
22466 unsigned long int i = ulongval ();
22467 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22469 fprintf (f, "%lu\n", i);
22471 return ferror (f) || fclose (f) != 0;
22477 rm -f conftest$ac_exeext
22478 if { (ac_try="$ac_link"
22479 case "(($ac_try" in
22480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22481 *) ac_try_echo=$ac_try;;
22483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22484 (eval "$ac_link") 2>&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22488 { (case "(($ac_try" in
22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490 *) ac_try_echo=$ac_try;;
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493 (eval "$ac_try") 2>&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 ac_cv_alignof_long_long_int=`cat conftest.val`
22499 echo "$as_me: program exited with status $ac_status" >&5
22500 echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22503 ( exit $ac_status )
22504 if test "$ac_cv_type_long_long_int" = yes; then
22505 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22506 See \`config.log' for more details." >&5
22507 echo "$as_me: error: cannot compute alignment of long long int
22508 See \`config.log' for more details." >&2;}
22509 { (exit 77); exit 77; }; }
22511 ac_cv_alignof_long_long_int=0
22514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22518 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
22519 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
22523 cat >>confdefs.h <<_ACEOF
22524 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
22529 { echo "$as_me:$LINENO: checking for double" >&5
22530 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
22531 if test "${ac_cv_type_double+set}" = set; then
22532 echo $ECHO_N "(cached) $ECHO_C" >&6
22534 cat >conftest.$ac_ext <<_ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 $ac_includes_default
22541 typedef double ac__type_new_;
22545 if ((ac__type_new_ *) 0)
22547 if (sizeof (ac__type_new_))
22553 rm -f conftest.$ac_objext
22554 if { (ac_try="$ac_compile"
22555 case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_compile") 2>conftest.er1
22562 grep -v '^ *+' conftest.er1 >conftest.err
22564 cat conftest.err >&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } && {
22567 test -z "$ac_c_werror_flag" ||
22568 test ! -s conftest.err
22569 } && test -s conftest.$ac_objext; then
22570 ac_cv_type_double=yes
22572 echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22575 ac_cv_type_double=no
22578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22581 echo "${ECHO_T}$ac_cv_type_double" >&6; }
22583 # The cast to long int works around a bug in the HP C Compiler,
22584 # see AC_CHECK_SIZEOF for more information.
22585 { echo "$as_me:$LINENO: checking alignment of double" >&5
22586 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
22587 if test "${ac_cv_alignof_double+set}" = set; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22590 if test "$cross_compiling" = yes; then
22591 # Depending upon the size, compute the lo and hi bounds.
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22598 $ac_includes_default
22600 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22602 typedef struct { char x; double y; } ac__type_alignof_;
22606 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22613 rm -f conftest.$ac_objext
22614 if { (ac_try="$ac_compile"
22615 case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620 (eval "$ac_compile") 2>conftest.er1
22622 grep -v '^ *+' conftest.er1 >conftest.err
22624 cat conftest.err >&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } && {
22627 test -z "$ac_c_werror_flag" ||
22628 test ! -s conftest.err
22629 } && test -s conftest.$ac_objext; then
22632 cat >conftest.$ac_ext <<_ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22638 $ac_includes_default
22640 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22642 typedef struct { char x; double y; } ac__type_alignof_;
22646 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22653 rm -f conftest.$ac_objext
22654 if { (ac_try="$ac_compile"
22655 case "(($ac_try" in
22656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22657 *) ac_try_echo=$ac_try;;
22659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22660 (eval "$ac_compile") 2>conftest.er1
22662 grep -v '^ *+' conftest.er1 >conftest.err
22664 cat conftest.err >&5
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); } && {
22667 test -z "$ac_c_werror_flag" ||
22668 test ! -s conftest.err
22669 } && test -s conftest.$ac_objext; then
22670 ac_hi=$ac_mid; break
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22675 ac_lo=`expr $ac_mid + 1`
22676 if test $ac_lo -le $ac_mid; then
22680 ac_mid=`expr 2 '*' $ac_mid + 1`
22683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22686 echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22689 cat >conftest.$ac_ext <<_ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 $ac_includes_default
22697 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22699 typedef struct { char x; double y; } ac__type_alignof_;
22703 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22710 rm -f conftest.$ac_objext
22711 if { (ac_try="$ac_compile"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717 (eval "$ac_compile") 2>conftest.er1
22719 grep -v '^ *+' conftest.er1 >conftest.err
22721 cat conftest.err >&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } && {
22724 test -z "$ac_c_werror_flag" ||
22725 test ! -s conftest.err
22726 } && test -s conftest.$ac_objext; then
22729 cat >conftest.$ac_ext <<_ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 $ac_includes_default
22737 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22739 typedef struct { char x; double y; } ac__type_alignof_;
22743 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22750 rm -f conftest.$ac_objext
22751 if { (ac_try="$ac_compile"
22752 case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_compile") 2>conftest.er1
22759 grep -v '^ *+' conftest.er1 >conftest.err
22761 cat conftest.err >&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); } && {
22764 test -z "$ac_c_werror_flag" ||
22765 test ! -s conftest.err
22766 } && test -s conftest.$ac_objext; then
22767 ac_lo=$ac_mid; break
22769 echo "$as_me: failed program was:" >&5
22770 sed 's/^/| /' conftest.$ac_ext >&5
22772 ac_hi=`expr '(' $ac_mid ')' - 1`
22773 if test $ac_mid -le $ac_hi; then
22777 ac_mid=`expr 2 '*' $ac_mid`
22780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22783 echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793 # Binary search between lo and hi bounds.
22794 while test "x$ac_lo" != "x$ac_hi"; do
22795 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22796 cat >conftest.$ac_ext <<_ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h. */
22802 $ac_includes_default
22804 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22806 typedef struct { char x; double y; } ac__type_alignof_;
22810 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22817 rm -f conftest.$ac_objext
22818 if { (ac_try="$ac_compile"
22819 case "(($ac_try" in
22820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22821 *) ac_try_echo=$ac_try;;
22823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22824 (eval "$ac_compile") 2>conftest.er1
22826 grep -v '^ *+' conftest.er1 >conftest.err
22828 cat conftest.err >&5
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); } && {
22831 test -z "$ac_c_werror_flag" ||
22832 test ! -s conftest.err
22833 } && test -s conftest.$ac_objext; then
22836 echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.$ac_ext >&5
22839 ac_lo=`expr '(' $ac_mid ')' + 1`
22842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845 ?*) ac_cv_alignof_double=$ac_lo;;
22846 '') if test "$ac_cv_type_double" = yes; then
22847 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
22848 See \`config.log' for more details." >&5
22849 echo "$as_me: error: cannot compute alignment of double
22850 See \`config.log' for more details." >&2;}
22851 { (exit 77); exit 77; }; }
22853 ac_cv_alignof_double=0
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22863 $ac_includes_default
22865 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22867 typedef struct { char x; double y; } ac__type_alignof_;
22868 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22869 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22871 #include <stdlib.h>
22876 FILE *f = fopen ("conftest.val", "w");
22879 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22881 long int i = longval ();
22882 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22884 fprintf (f, "%ld\n", i);
22888 unsigned long int i = ulongval ();
22889 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22891 fprintf (f, "%lu\n", i);
22893 return ferror (f) || fclose (f) != 0;
22899 rm -f conftest$ac_exeext
22900 if { (ac_try="$ac_link"
22901 case "(($ac_try" in
22902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22903 *) ac_try_echo=$ac_try;;
22905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22906 (eval "$ac_link") 2>&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22910 { (case "(($ac_try" in
22911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22912 *) ac_try_echo=$ac_try;;
22914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22915 (eval "$ac_try") 2>&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); }; }; then
22919 ac_cv_alignof_double=`cat conftest.val`
22921 echo "$as_me: program exited with status $ac_status" >&5
22922 echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22925 ( exit $ac_status )
22926 if test "$ac_cv_type_double" = yes; then
22927 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
22928 See \`config.log' for more details." >&5
22929 echo "$as_me: error: cannot compute alignment of double
22930 See \`config.log' for more details." >&2;}
22931 { (exit 77); exit 77; }; }
22933 ac_cv_alignof_double=0
22936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22940 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
22941 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
22945 cat >>confdefs.h <<_ACEOF
22946 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
22951 # Compute maximum alignment of any basic type.
22952 # We assume long's alignment is at least as strong as char, short, or int;
22953 # but we must check long long (if it exists) and double.
22955 MAX_ALIGNOF=$ac_cv_alignof_long
22956 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
22957 MAX_ALIGNOF=$ac_cv_alignof_double
22959 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
22960 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
22963 cat >>confdefs.h <<_ACEOF
22964 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
22969 # Some platforms predefine the types int8, int16, etc. Only check
22970 # a (hopefully) representative subset.
22971 { echo "$as_me:$LINENO: checking for int8" >&5
22972 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
22973 if test "${ac_cv_type_int8+set}" = set; then
22974 echo $ECHO_N "(cached) $ECHO_C" >&6
22976 cat >conftest.$ac_ext <<_ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22983 #ifdef HAVE_SUPPORTDEFS_H
22984 #include <SupportDefs.h>
22987 typedef int8 ac__type_new_;
22991 if ((ac__type_new_ *) 0)
22993 if (sizeof (ac__type_new_))
22999 rm -f conftest.$ac_objext
23000 if { (ac_try="$ac_compile"
23001 case "(($ac_try" in
23002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23003 *) ac_try_echo=$ac_try;;
23005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23006 (eval "$ac_compile") 2>conftest.er1
23008 grep -v '^ *+' conftest.er1 >conftest.err
23010 cat conftest.err >&5
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } && {
23013 test -z "$ac_c_werror_flag" ||
23014 test ! -s conftest.err
23015 } && test -s conftest.$ac_objext; then
23016 ac_cv_type_int8=yes
23018 echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23027 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23028 if test $ac_cv_type_int8 = yes; then
23030 cat >>confdefs.h <<_ACEOF
23031 #define HAVE_INT8 1
23036 { echo "$as_me:$LINENO: checking for uint8" >&5
23037 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23038 if test "${ac_cv_type_uint8+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 cat >conftest.$ac_ext <<_ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23048 #ifdef HAVE_SUPPORTDEFS_H
23049 #include <SupportDefs.h>
23052 typedef uint8 ac__type_new_;
23056 if ((ac__type_new_ *) 0)
23058 if (sizeof (ac__type_new_))
23064 rm -f conftest.$ac_objext
23065 if { (ac_try="$ac_compile"
23066 case "(($ac_try" in
23067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068 *) ac_try_echo=$ac_try;;
23070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071 (eval "$ac_compile") 2>conftest.er1
23073 grep -v '^ *+' conftest.er1 >conftest.err
23075 cat conftest.err >&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } && {
23078 test -z "$ac_c_werror_flag" ||
23079 test ! -s conftest.err
23080 } && test -s conftest.$ac_objext; then
23081 ac_cv_type_uint8=yes
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_cv_type_uint8=no
23089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23091 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23092 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23093 if test $ac_cv_type_uint8 = yes; then
23095 cat >>confdefs.h <<_ACEOF
23096 #define HAVE_UINT8 1
23101 { echo "$as_me:$LINENO: checking for int64" >&5
23102 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
23103 if test "${ac_cv_type_int64+set}" = set; then
23104 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 cat >conftest.$ac_ext <<_ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23113 #ifdef HAVE_SUPPORTDEFS_H
23114 #include <SupportDefs.h>
23117 typedef int64 ac__type_new_;
23121 if ((ac__type_new_ *) 0)
23123 if (sizeof (ac__type_new_))
23129 rm -f conftest.$ac_objext
23130 if { (ac_try="$ac_compile"
23131 case "(($ac_try" in
23132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133 *) ac_try_echo=$ac_try;;
23135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23136 (eval "$ac_compile") 2>conftest.er1
23138 grep -v '^ *+' conftest.er1 >conftest.err
23140 cat conftest.err >&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } && {
23143 test -z "$ac_c_werror_flag" ||
23144 test ! -s conftest.err
23145 } && test -s conftest.$ac_objext; then
23146 ac_cv_type_int64=yes
23148 echo "$as_me: failed program was:" >&5
23149 sed 's/^/| /' conftest.$ac_ext >&5
23151 ac_cv_type_int64=no
23154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23157 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23158 if test $ac_cv_type_int64 = yes; then
23160 cat >>confdefs.h <<_ACEOF
23161 #define HAVE_INT64 1
23166 { echo "$as_me:$LINENO: checking for uint64" >&5
23167 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
23168 if test "${ac_cv_type_uint64+set}" = set; then
23169 echo $ECHO_N "(cached) $ECHO_C" >&6
23171 cat >conftest.$ac_ext <<_ACEOF
23174 cat confdefs.h >>conftest.$ac_ext
23175 cat >>conftest.$ac_ext <<_ACEOF
23176 /* end confdefs.h. */
23178 #ifdef HAVE_SUPPORTDEFS_H
23179 #include <SupportDefs.h>
23182 typedef uint64 ac__type_new_;
23186 if ((ac__type_new_ *) 0)
23188 if (sizeof (ac__type_new_))
23194 rm -f conftest.$ac_objext
23195 if { (ac_try="$ac_compile"
23196 case "(($ac_try" in
23197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198 *) ac_try_echo=$ac_try;;
23200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201 (eval "$ac_compile") 2>conftest.er1
23203 grep -v '^ *+' conftest.er1 >conftest.err
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } && {
23208 test -z "$ac_c_werror_flag" ||
23209 test ! -s conftest.err
23210 } && test -s conftest.$ac_objext; then
23211 ac_cv_type_uint64=yes
23213 echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23216 ac_cv_type_uint64=no
23219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23222 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23223 if test $ac_cv_type_uint64 = yes; then
23225 cat >>confdefs.h <<_ACEOF
23226 #define HAVE_UINT64 1
23233 # We also check for sig_atomic_t, which *should* be defined per ANSI
23234 # C, but is missing on some old platforms.
23235 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23236 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23237 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23238 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 cat >conftest.$ac_ext <<_ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h. */
23246 #include <signal.h>
23248 typedef sig_atomic_t ac__type_new_;
23252 if ((ac__type_new_ *) 0)
23254 if (sizeof (ac__type_new_))
23260 rm -f conftest.$ac_objext
23261 if { (ac_try="$ac_compile"
23262 case "(($ac_try" in
23263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23264 *) ac_try_echo=$ac_try;;
23266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23267 (eval "$ac_compile") 2>conftest.er1
23269 grep -v '^ *+' conftest.er1 >conftest.err
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } && {
23274 test -z "$ac_c_werror_flag" ||
23275 test ! -s conftest.err
23276 } && test -s conftest.$ac_objext; then
23277 ac_cv_type_sig_atomic_t=yes
23279 echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23282 ac_cv_type_sig_atomic_t=no
23285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23287 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23288 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23289 if test $ac_cv_type_sig_atomic_t = yes; then
23291 cat >>confdefs.h <<_ACEOF
23292 #define HAVE_SIG_ATOMIC_T 1
23300 # If the user did not disable integer datetimes, check that
23301 # there is a working 64-bit integral type to use.
23302 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23303 test x"$HAVE_LONG_INT_64" = x"no" &&
23304 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
23305 test x"$HAVE_INT64" = x"no" ; then
23306 { { echo "$as_me:$LINENO: error:
23307 Integer-based datetime support requires a 64-bit integer type,
23308 but no such type could be found. The --disable-integer-datetimes
23309 configure option can be used to disable integer-based storage
23310 of datetime values." >&5
23311 echo "$as_me: error:
23312 Integer-based datetime support requires a 64-bit integer type,
23313 but no such type could be found. The --disable-integer-datetimes
23314 configure option can be used to disable integer-based storage
23315 of datetime values." >&2;}
23316 { (exit 1); exit 1; }; }
23320 if test "$PORTNAME" != "win32"
23322 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23323 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23324 if test "${pgac_cv_func_posix_signals+set}" = set; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23327 cat >conftest.$ac_ext <<_ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23333 #include <signal.h>
23338 struct sigaction act, oact;
23339 sigemptyset(&act.sa_mask);
23340 act.sa_flags = SA_RESTART;
23341 sigaction(0, &act, &oact);
23346 rm -f conftest.$ac_objext conftest$ac_exeext
23347 if { (ac_try="$ac_link"
23348 case "(($ac_try" in
23349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23350 *) ac_try_echo=$ac_try;;
23352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23353 (eval "$ac_link") 2>conftest.er1
23355 grep -v '^ *+' conftest.er1 >conftest.err
23357 cat conftest.err >&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } && {
23360 test -z "$ac_c_werror_flag" ||
23361 test ! -s conftest.err
23362 } && test -s conftest$ac_exeext &&
23363 $as_test_x conftest$ac_exeext; then
23364 pgac_cv_func_posix_signals=yes
23366 echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23369 pgac_cv_func_posix_signals=no
23372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23373 conftest$ac_exeext conftest.$ac_ext
23375 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23376 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23377 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23379 cat >>confdefs.h <<\_ACEOF
23380 #define HAVE_POSIX_SIGNALS
23384 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23386 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23387 { { echo "$as_me:$LINENO: error:
23388 Thread-safety requires POSIX signals, which are not supported by this
23389 operating system." >&5
23390 echo "$as_me: error:
23391 Thread-safety requires POSIX signals, which are not supported by this
23392 operating system." >&2;}
23393 { (exit 1); exit 1; }; }
23397 if test $ac_cv_func_fseeko = yes; then
23398 # Check whether --enable-largefile was given.
23399 if test "${enable_largefile+set}" = set; then
23400 enableval=$enable_largefile;
23403 if test "$enable_largefile" != no; then
23405 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23406 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23407 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23408 echo $ECHO_N "(cached) $ECHO_C" >&6
23410 ac_cv_sys_largefile_CC=no
23411 if test "$GCC" != yes; then
23414 # IRIX 6.2 and later do not support large files by default,
23415 # so use the C compiler's -n32 option if that helps.
23416 cat >conftest.$ac_ext <<_ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h. */
23422 #include <sys/types.h>
23423 /* Check that off_t can represent 2**63 - 1 correctly.
23424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23425 since some C++ compilers masquerading as C compilers
23426 incorrectly reject 9223372036854775807. */
23427 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23429 && LARGE_OFF_T % 2147483647 == 1)
23439 rm -f conftest.$ac_objext
23440 if { (ac_try="$ac_compile"
23441 case "(($ac_try" in
23442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443 *) ac_try_echo=$ac_try;;
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446 (eval "$ac_compile") 2>conftest.er1
23448 grep -v '^ *+' conftest.er1 >conftest.err
23450 cat conftest.err >&5
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); } && {
23453 test -z "$ac_c_werror_flag" ||
23454 test ! -s conftest.err
23455 } && test -s conftest.$ac_objext; then
23458 echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23464 rm -f core conftest.err conftest.$ac_objext
23466 rm -f conftest.$ac_objext
23467 if { (ac_try="$ac_compile"
23468 case "(($ac_try" in
23469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23470 *) ac_try_echo=$ac_try;;
23472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23473 (eval "$ac_compile") 2>conftest.er1
23475 grep -v '^ *+' conftest.er1 >conftest.err
23477 cat conftest.err >&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); } && {
23480 test -z "$ac_c_werror_flag" ||
23481 test ! -s conftest.err
23482 } && test -s conftest.$ac_objext; then
23483 ac_cv_sys_largefile_CC=' -n32'; break
23485 echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23491 rm -f core conftest.err conftest.$ac_objext
23495 rm -f conftest.$ac_ext
23498 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23499 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
23500 if test "$ac_cv_sys_largefile_CC" != no; then
23501 CC=$CC$ac_cv_sys_largefile_CC
23504 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23505 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23510 cat >conftest.$ac_ext <<_ACEOF
23513 cat confdefs.h >>conftest.$ac_ext
23514 cat >>conftest.$ac_ext <<_ACEOF
23515 /* end confdefs.h. */
23516 #include <sys/types.h>
23517 /* Check that off_t can represent 2**63 - 1 correctly.
23518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23519 since some C++ compilers masquerading as C compilers
23520 incorrectly reject 9223372036854775807. */
23521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23523 && LARGE_OFF_T % 2147483647 == 1)
23533 rm -f conftest.$ac_objext
23534 if { (ac_try="$ac_compile"
23535 case "(($ac_try" in
23536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23537 *) ac_try_echo=$ac_try;;
23539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23540 (eval "$ac_compile") 2>conftest.er1
23542 grep -v '^ *+' conftest.er1 >conftest.err
23544 cat conftest.err >&5
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); } && {
23547 test -z "$ac_c_werror_flag" ||
23548 test ! -s conftest.err
23549 } && test -s conftest.$ac_objext; then
23550 ac_cv_sys_file_offset_bits=no; break
23552 echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559 cat >conftest.$ac_ext <<_ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23565 #define _FILE_OFFSET_BITS 64
23566 #include <sys/types.h>
23567 /* Check that off_t can represent 2**63 - 1 correctly.
23568 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23569 since some C++ compilers masquerading as C compilers
23570 incorrectly reject 9223372036854775807. */
23571 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23573 && LARGE_OFF_T % 2147483647 == 1)
23583 rm -f conftest.$ac_objext
23584 if { (ac_try="$ac_compile"
23585 case "(($ac_try" in
23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23590 (eval "$ac_compile") 2>conftest.er1
23592 grep -v '^ *+' conftest.er1 >conftest.err
23594 cat conftest.err >&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } && {
23597 test -z "$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 } && test -s conftest.$ac_objext; then
23600 ac_cv_sys_file_offset_bits=64; break
23602 echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23609 ac_cv_sys_file_offset_bits=unknown
23613 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23614 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23615 case $ac_cv_sys_file_offset_bits in #(
23618 cat >>confdefs.h <<_ACEOF
23619 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23624 if test $ac_cv_sys_file_offset_bits = unknown; then
23625 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23626 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23627 if test "${ac_cv_sys_large_files+set}" = set; then
23628 echo $ECHO_N "(cached) $ECHO_C" >&6
23631 cat >conftest.$ac_ext <<_ACEOF
23634 cat confdefs.h >>conftest.$ac_ext
23635 cat >>conftest.$ac_ext <<_ACEOF
23636 /* end confdefs.h. */
23637 #include <sys/types.h>
23638 /* Check that off_t can represent 2**63 - 1 correctly.
23639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23640 since some C++ compilers masquerading as C compilers
23641 incorrectly reject 9223372036854775807. */
23642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23644 && LARGE_OFF_T % 2147483647 == 1)
23654 rm -f conftest.$ac_objext
23655 if { (ac_try="$ac_compile"
23656 case "(($ac_try" in
23657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23658 *) ac_try_echo=$ac_try;;
23660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23661 (eval "$ac_compile") 2>conftest.er1
23663 grep -v '^ *+' conftest.er1 >conftest.err
23665 cat conftest.err >&5
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); } && {
23668 test -z "$ac_c_werror_flag" ||
23669 test ! -s conftest.err
23670 } && test -s conftest.$ac_objext; then
23671 ac_cv_sys_large_files=no; break
23673 echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23680 cat >conftest.$ac_ext <<_ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23686 #define _LARGE_FILES 1
23687 #include <sys/types.h>
23688 /* Check that off_t can represent 2**63 - 1 correctly.
23689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23690 since some C++ compilers masquerading as C compilers
23691 incorrectly reject 9223372036854775807. */
23692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23694 && LARGE_OFF_T % 2147483647 == 1)
23704 rm -f conftest.$ac_objext
23705 if { (ac_try="$ac_compile"
23706 case "(($ac_try" in
23707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23708 *) ac_try_echo=$ac_try;;
23710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23711 (eval "$ac_compile") 2>conftest.er1
23713 grep -v '^ *+' conftest.er1 >conftest.err
23715 cat conftest.err >&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); } && {
23718 test -z "$ac_c_werror_flag" ||
23719 test ! -s conftest.err
23720 } && test -s conftest.$ac_objext; then
23721 ac_cv_sys_large_files=1; break
23723 echo "$as_me: failed program was:" >&5
23724 sed 's/^/| /' conftest.$ac_ext >&5
23729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23730 ac_cv_sys_large_files=unknown
23734 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23735 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23736 case $ac_cv_sys_large_files in #(
23739 cat >>confdefs.h <<_ACEOF
23740 #define _LARGE_FILES $ac_cv_sys_large_files
23750 # Check for largefile support (must be after AC_SYS_LARGEFILE)
23751 { echo "$as_me:$LINENO: checking for off_t" >&5
23752 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23753 if test "${ac_cv_type_off_t+set}" = set; then
23754 echo $ECHO_N "(cached) $ECHO_C" >&6
23756 cat >conftest.$ac_ext <<_ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23762 $ac_includes_default
23763 typedef off_t ac__type_new_;
23767 if ((ac__type_new_ *) 0)
23769 if (sizeof (ac__type_new_))
23775 rm -f conftest.$ac_objext
23776 if { (ac_try="$ac_compile"
23777 case "(($ac_try" in
23778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779 *) ac_try_echo=$ac_try;;
23781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23782 (eval "$ac_compile") 2>conftest.er1
23784 grep -v '^ *+' conftest.er1 >conftest.err
23786 cat conftest.err >&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } && {
23789 test -z "$ac_c_werror_flag" ||
23790 test ! -s conftest.err
23791 } && test -s conftest.$ac_objext; then
23792 ac_cv_type_off_t=yes
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23797 ac_cv_type_off_t=no
23800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23802 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23803 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23805 # The cast to long int works around a bug in the HP C Compiler
23806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23808 # This bug is HP SR number 8606223364.
23809 { echo "$as_me:$LINENO: checking size of off_t" >&5
23810 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
23811 if test "${ac_cv_sizeof_off_t+set}" = set; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23814 if test "$cross_compiling" = yes; then
23815 # Depending upon the size, compute the lo and hi bounds.
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
23823 typedef off_t ac__type_sizeof_;
23827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23834 rm -f conftest.$ac_objext
23835 if { (ac_try="$ac_compile"
23836 case "(($ac_try" in
23837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841 (eval "$ac_compile") 2>conftest.er1
23843 grep -v '^ *+' conftest.er1 >conftest.err
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } && {
23848 test -z "$ac_c_werror_flag" ||
23849 test ! -s conftest.err
23850 } && test -s conftest.$ac_objext; then
23853 cat >conftest.$ac_ext <<_ACEOF
23856 cat confdefs.h >>conftest.$ac_ext
23857 cat >>conftest.$ac_ext <<_ACEOF
23858 /* end confdefs.h. */
23859 $ac_includes_default
23860 typedef off_t ac__type_sizeof_;
23864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23871 rm -f conftest.$ac_objext
23872 if { (ac_try="$ac_compile"
23873 case "(($ac_try" in
23874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875 *) ac_try_echo=$ac_try;;
23877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23878 (eval "$ac_compile") 2>conftest.er1
23880 grep -v '^ *+' conftest.er1 >conftest.err
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest.$ac_objext; then
23888 ac_hi=$ac_mid; break
23890 echo "$as_me: failed program was:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23893 ac_lo=`expr $ac_mid + 1`
23894 if test $ac_lo -le $ac_mid; then
23898 ac_mid=`expr 2 '*' $ac_mid + 1`
23901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904 echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23907 cat >conftest.$ac_ext <<_ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 $ac_includes_default
23914 typedef off_t ac__type_sizeof_;
23918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23925 rm -f conftest.$ac_objext
23926 if { (ac_try="$ac_compile"
23927 case "(($ac_try" in
23928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929 *) ac_try_echo=$ac_try;;
23931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23932 (eval "$ac_compile") 2>conftest.er1
23934 grep -v '^ *+' conftest.er1 >conftest.err
23936 cat conftest.err >&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } && {
23939 test -z "$ac_c_werror_flag" ||
23940 test ! -s conftest.err
23941 } && test -s conftest.$ac_objext; then
23944 cat >conftest.$ac_ext <<_ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h. */
23950 $ac_includes_default
23951 typedef off_t ac__type_sizeof_;
23955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23962 rm -f conftest.$ac_objext
23963 if { (ac_try="$ac_compile"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969 (eval "$ac_compile") 2>conftest.er1
23971 grep -v '^ *+' conftest.er1 >conftest.err
23973 cat conftest.err >&5
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); } && {
23976 test -z "$ac_c_werror_flag" ||
23977 test ! -s conftest.err
23978 } && test -s conftest.$ac_objext; then
23979 ac_lo=$ac_mid; break
23981 echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23984 ac_hi=`expr '(' $ac_mid ')' - 1`
23985 if test $ac_mid -le $ac_hi; then
23989 ac_mid=`expr 2 '*' $ac_mid`
23992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23995 echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
24001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24005 # Binary search between lo and hi bounds.
24006 while test "x$ac_lo" != "x$ac_hi"; do
24007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24008 cat >conftest.$ac_ext <<_ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h. */
24014 $ac_includes_default
24015 typedef off_t ac__type_sizeof_;
24019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24026 rm -f conftest.$ac_objext
24027 if { (ac_try="$ac_compile"
24028 case "(($ac_try" in
24029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030 *) ac_try_echo=$ac_try;;
24032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24033 (eval "$ac_compile") 2>conftest.er1
24035 grep -v '^ *+' conftest.er1 >conftest.err
24037 cat conftest.err >&5
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } && {
24040 test -z "$ac_c_werror_flag" ||
24041 test ! -s conftest.err
24042 } && test -s conftest.$ac_objext; then
24045 echo "$as_me: failed program was:" >&5
24046 sed 's/^/| /' conftest.$ac_ext >&5
24048 ac_lo=`expr '(' $ac_mid ')' + 1`
24051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24054 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24055 '') if test "$ac_cv_type_off_t" = yes; then
24056 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24057 See \`config.log' for more details." >&5
24058 echo "$as_me: error: cannot compute sizeof (off_t)
24059 See \`config.log' for more details." >&2;}
24060 { (exit 77); exit 77; }; }
24062 ac_cv_sizeof_off_t=0
24066 cat >conftest.$ac_ext <<_ACEOF
24069 cat confdefs.h >>conftest.$ac_ext
24070 cat >>conftest.$ac_ext <<_ACEOF
24071 /* end confdefs.h. */
24072 $ac_includes_default
24073 typedef off_t ac__type_sizeof_;
24074 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24075 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24077 #include <stdlib.h>
24082 FILE *f = fopen ("conftest.val", "w");
24085 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24087 long int i = longval ();
24088 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24090 fprintf (f, "%ld\n", i);
24094 unsigned long int i = ulongval ();
24095 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24097 fprintf (f, "%lu\n", i);
24099 return ferror (f) || fclose (f) != 0;
24105 rm -f conftest$ac_exeext
24106 if { (ac_try="$ac_link"
24107 case "(($ac_try" in
24108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109 *) ac_try_echo=$ac_try;;
24111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112 (eval "$ac_link") 2>&5
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24116 { (case "(($ac_try" in
24117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24118 *) ac_try_echo=$ac_try;;
24120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24121 (eval "$ac_try") 2>&5
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); }; }; then
24125 ac_cv_sizeof_off_t=`cat conftest.val`
24127 echo "$as_me: program exited with status $ac_status" >&5
24128 echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24131 ( exit $ac_status )
24132 if test "$ac_cv_type_off_t" = yes; then
24133 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24134 See \`config.log' for more details." >&5
24135 echo "$as_me: error: cannot compute sizeof (off_t)
24136 See \`config.log' for more details." >&2;}
24137 { (exit 77); exit 77; }; }
24139 ac_cv_sizeof_off_t=0
24142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24146 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24147 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24151 cat >>confdefs.h <<_ACEOF
24152 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24157 if test "$ac_cv_sizeof_off_t" -lt 8 -o "$enable_segmented_files" = "yes"; then
24159 cat >>confdefs.h <<\_ACEOF
24160 #define USE_SEGMENTED_FILES 1
24165 # SunOS doesn't handle negative byte comparisons properly with +/- return
24166 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24167 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24168 if test "${ac_cv_func_memcmp_working+set}" = set; then
24169 echo $ECHO_N "(cached) $ECHO_C" >&6
24171 if test "$cross_compiling" = yes; then
24172 ac_cv_func_memcmp_working=no
24174 cat >conftest.$ac_ext <<_ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h. */
24180 $ac_includes_default
24185 /* Some versions of memcmp are not 8-bit clean. */
24186 char c0 = '\100', c1 = '\200', c2 = '\201';
24187 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24190 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24191 or more and with at least one buffer not starting on a 4-byte boundary.
24192 William Lewis provided this test program. */
24197 for (i = 0; i < 4; i++)
24201 strcpy (a, "--------01111111");
24202 strcpy (b, "--------10000000");
24203 if (memcmp (a, b, 16) >= 0)
24213 rm -f conftest$ac_exeext
24214 if { (ac_try="$ac_link"
24215 case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24220 (eval "$ac_link") 2>&5
24222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24224 { (case "(($ac_try" in
24225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226 *) ac_try_echo=$ac_try;;
24228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24229 (eval "$ac_try") 2>&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); }; }; then
24233 ac_cv_func_memcmp_working=yes
24235 echo "$as_me: program exited with status $ac_status" >&5
24236 echo "$as_me: failed program was:" >&5
24237 sed 's/^/| /' conftest.$ac_ext >&5
24239 ( exit $ac_status )
24240 ac_cv_func_memcmp_working=no
24242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24247 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24248 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24249 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24250 *" memcmp.$ac_objext "* ) ;;
24251 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24258 # Select semaphore implementation type.
24259 if test "$PORTNAME" != "win32"; then
24260 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24262 cat >>confdefs.h <<\_ACEOF
24263 #define USE_NAMED_POSIX_SEMAPHORES 1
24266 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24268 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24270 cat >>confdefs.h <<\_ACEOF
24271 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24274 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24277 cat >>confdefs.h <<\_ACEOF
24278 #define USE_SYSV_SEMAPHORES 1
24281 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24286 cat >>confdefs.h <<\_ACEOF
24287 #define USE_WIN32_SEMAPHORES 1
24290 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24294 # Select shared-memory implementation type.
24295 if test "$PORTNAME" != "win32"; then
24297 cat >>confdefs.h <<\_ACEOF
24298 #define USE_SYSV_SHARED_MEMORY 1
24301 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24304 cat >>confdefs.h <<\_ACEOF
24305 #define USE_WIN32_SHARED_MEMORY 1
24308 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24311 # If not set in template file, set bytes to use libc memset()
24312 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24313 MEMSET_LOOP_LIMIT=1024
24316 cat >>confdefs.h <<_ACEOF
24317 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24322 if test "$enable_nls" = yes ; then
24324 { echo "$as_me:$LINENO: checking for library containing gettext" >&5
24325 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6; }
24326 if test "${ac_cv_search_gettext+set}" = set; then
24327 echo $ECHO_N "(cached) $ECHO_C" >&6
24329 ac_func_search_save_LIBS=$LIBS
24330 cat >conftest.$ac_ext <<_ACEOF
24333 cat confdefs.h >>conftest.$ac_ext
24334 cat >>conftest.$ac_ext <<_ACEOF
24335 /* end confdefs.h. */
24337 /* Override any GCC internal prototype to avoid an error.
24338 Use char because int might match the return type of a GCC
24339 builtin and then its argument prototype would still apply. */
24352 for ac_lib in '' intl; do
24353 if test -z "$ac_lib"; then
24354 ac_res="none required"
24357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24359 rm -f conftest.$ac_objext conftest$ac_exeext
24360 if { (ac_try="$ac_link"
24361 case "(($ac_try" in
24362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24363 *) ac_try_echo=$ac_try;;
24365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24366 (eval "$ac_link") 2>conftest.er1
24368 grep -v '^ *+' conftest.er1 >conftest.err
24370 cat conftest.err >&5
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); } && {
24373 test -z "$ac_c_werror_flag" ||
24374 test ! -s conftest.err
24375 } && test -s conftest$ac_exeext &&
24376 $as_test_x conftest$ac_exeext; then
24377 ac_cv_search_gettext=$ac_res
24379 echo "$as_me: failed program was:" >&5
24380 sed 's/^/| /' conftest.$ac_ext >&5
24385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24387 if test "${ac_cv_search_gettext+set}" = set; then
24391 if test "${ac_cv_search_gettext+set}" = set; then
24394 ac_cv_search_gettext=no
24396 rm conftest.$ac_ext
24397 LIBS=$ac_func_search_save_LIBS
24399 { echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
24400 echo "${ECHO_T}$ac_cv_search_gettext" >&6; }
24401 ac_res=$ac_cv_search_gettext
24402 if test "$ac_res" != no; then
24403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24406 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24407 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24408 { (exit 1); exit 1; }; }
24411 if test "${ac_cv_header_libintl_h+set}" = set; then
24412 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24413 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24414 if test "${ac_cv_header_libintl_h+set}" = set; then
24415 echo $ECHO_N "(cached) $ECHO_C" >&6
24417 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24418 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24420 # Is the header compilable?
24421 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24422 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24423 cat >conftest.$ac_ext <<_ACEOF
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h. */
24429 $ac_includes_default
24430 #include <libintl.h>
24432 rm -f conftest.$ac_objext
24433 if { (ac_try="$ac_compile"
24434 case "(($ac_try" in
24435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24436 *) ac_try_echo=$ac_try;;
24438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24439 (eval "$ac_compile") 2>conftest.er1
24441 grep -v '^ *+' conftest.er1 >conftest.err
24443 cat conftest.err >&5
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } && {
24446 test -z "$ac_c_werror_flag" ||
24447 test ! -s conftest.err
24448 } && test -s conftest.$ac_objext; then
24449 ac_header_compiler=yes
24451 echo "$as_me: failed program was:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24454 ac_header_compiler=no
24457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24459 echo "${ECHO_T}$ac_header_compiler" >&6; }
24461 # Is the header present?
24462 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
24463 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
24464 cat >conftest.$ac_ext <<_ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h. */
24470 #include <libintl.h>
24472 if { (ac_try="$ac_cpp conftest.$ac_ext"
24473 case "(($ac_try" in
24474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475 *) ac_try_echo=$ac_try;;
24477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24480 grep -v '^ *+' conftest.er1 >conftest.err
24482 cat conftest.err >&5
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } >/dev/null && {
24485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24486 test ! -s conftest.err
24488 ac_header_preproc=yes
24490 echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24493 ac_header_preproc=no
24496 rm -f conftest.err conftest.$ac_ext
24497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24498 echo "${ECHO_T}$ac_header_preproc" >&6; }
24500 # So? What about this header?
24501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24503 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24504 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24505 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
24506 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
24507 ac_header_preproc=yes
24510 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
24511 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
24512 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
24513 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
24514 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
24515 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
24516 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
24517 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24518 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
24519 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
24520 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
24521 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
24523 ## ---------------------------------------- ##
24524 ## Report this to pgsql-bugs@postgresql.org ##
24525 ## ---------------------------------------- ##
24527 ) | sed "s/^/$as_me: WARNING: /" >&2
24530 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24531 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24532 if test "${ac_cv_header_libintl_h+set}" = set; then
24533 echo $ECHO_N "(cached) $ECHO_C" >&6
24535 ac_cv_header_libintl_h=$ac_header_preproc
24537 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24538 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24541 if test $ac_cv_header_libintl_h = yes; then
24544 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
24545 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
24546 { (exit 1); exit 1; }; }
24550 for ac_prog in msgfmt
24552 # Extract the first word of "$ac_prog", so it can be a program name with args.
24553 set dummy $ac_prog; ac_word=$2
24554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24556 if test "${ac_cv_prog_MSGFMT+set}" = set; then
24557 echo $ECHO_N "(cached) $ECHO_C" >&6
24559 if test -n "$MSGFMT"; then
24560 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
24562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24563 for as_dir in $PATH
24566 test -z "$as_dir" && as_dir=.
24567 for ac_exec_ext in '' $ac_executable_extensions; do
24568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24569 ac_cv_prog_MSGFMT="$ac_prog"
24570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24579 MSGFMT=$ac_cv_prog_MSGFMT
24580 if test -n "$MSGFMT"; then
24581 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
24582 echo "${ECHO_T}$MSGFMT" >&6; }
24584 { echo "$as_me:$LINENO: result: no" >&5
24585 echo "${ECHO_T}no" >&6; }
24589 test -n "$MSGFMT" && break
24592 if test -z "$MSGFMT"; then
24593 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
24594 echo "$as_me: error: msgfmt is required for NLS" >&2;}
24595 { (exit 1); exit 1; }; }
24597 for ac_prog in msgmerge
24599 # Extract the first word of "$ac_prog", so it can be a program name with args.
24600 set dummy $ac_prog; ac_word=$2
24601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24603 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
24604 echo $ECHO_N "(cached) $ECHO_C" >&6
24606 if test -n "$MSGMERGE"; then
24607 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
24609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24610 for as_dir in $PATH
24613 test -z "$as_dir" && as_dir=.
24614 for ac_exec_ext in '' $ac_executable_extensions; do
24615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24616 ac_cv_prog_MSGMERGE="$ac_prog"
24617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24626 MSGMERGE=$ac_cv_prog_MSGMERGE
24627 if test -n "$MSGMERGE"; then
24628 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24629 echo "${ECHO_T}$MSGMERGE" >&6; }
24631 { echo "$as_me:$LINENO: result: no" >&5
24632 echo "${ECHO_T}no" >&6; }
24636 test -n "$MSGMERGE" && break
24639 for ac_prog in xgettext
24641 # Extract the first word of "$ac_prog", so it can be a program name with args.
24642 set dummy $ac_prog; ac_word=$2
24643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24645 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
24646 echo $ECHO_N "(cached) $ECHO_C" >&6
24648 if test -n "$XGETTEXT"; then
24649 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
24651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24652 for as_dir in $PATH
24655 test -z "$as_dir" && as_dir=.
24656 for ac_exec_ext in '' $ac_executable_extensions; do
24657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24658 ac_cv_prog_XGETTEXT="$ac_prog"
24659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24668 XGETTEXT=$ac_cv_prog_XGETTEXT
24669 if test -n "$XGETTEXT"; then
24670 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24671 echo "${ECHO_T}$XGETTEXT" >&6; }
24673 { echo "$as_me:$LINENO: result: no" >&5
24674 echo "${ECHO_T}no" >&6; }
24678 test -n "$XGETTEXT" && break
24684 # Check for Tcl configuration script tclConfig.sh
24685 if test "$with_tcl" = yes; then
24686 for ac_prog in tclsh tcl
24688 # Extract the first word of "$ac_prog", so it can be a program name with args.
24689 set dummy $ac_prog; ac_word=$2
24690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24692 if test "${ac_cv_path_TCLSH+set}" = set; then
24693 echo $ECHO_N "(cached) $ECHO_C" >&6
24697 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
24700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24701 for as_dir in $PATH
24704 test -z "$as_dir" && as_dir=.
24705 for ac_exec_ext in '' $ac_executable_extensions; do
24706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24707 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
24708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24718 TCLSH=$ac_cv_path_TCLSH
24719 if test -n "$TCLSH"; then
24720 { echo "$as_me:$LINENO: result: $TCLSH" >&5
24721 echo "${ECHO_T}$TCLSH" >&6; }
24723 { echo "$as_me:$LINENO: result: no" >&5
24724 echo "${ECHO_T}no" >&6; }
24728 test -n "$TCLSH" && break
24731 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
24732 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
24733 # Let user override test
24734 if test -z "$TCL_CONFIG_SH"; then
24735 pgac_test_dirs="$with_tclconfig"
24737 set X $pgac_test_dirs; shift
24738 if test $# -eq 0; then
24739 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
24740 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
24741 { (exit 1); exit 1; }; }
24742 set X `echo 'puts $auto_path' | $TCLSH`; shift
24746 if test -r "$pgac_dir/tclConfig.sh"; then
24747 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
24753 if test -z "$TCL_CONFIG_SH"; then
24754 { echo "$as_me:$LINENO: result: no" >&5
24755 echo "${ECHO_T}no" >&6; }
24756 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
24757 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
24758 { (exit 1); exit 1; }; }
24760 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
24761 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
24767 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
24768 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
24769 eval TCL_LIBS=\"$TCL_LIBS\"
24770 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
24771 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
24773 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
24774 ac_save_CPPFLAGS=$CPPFLAGS
24775 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
24776 if test "${ac_cv_header_tcl_h+set}" = set; then
24777 { echo "$as_me:$LINENO: checking for tcl.h" >&5
24778 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
24779 if test "${ac_cv_header_tcl_h+set}" = set; then
24780 echo $ECHO_N "(cached) $ECHO_C" >&6
24782 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24783 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
24785 # Is the header compilable?
24786 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
24787 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
24788 cat >conftest.$ac_ext <<_ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h. */
24794 $ac_includes_default
24797 rm -f conftest.$ac_objext
24798 if { (ac_try="$ac_compile"
24799 case "(($ac_try" in
24800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24801 *) ac_try_echo=$ac_try;;
24803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24804 (eval "$ac_compile") 2>conftest.er1
24806 grep -v '^ *+' conftest.er1 >conftest.err
24808 cat conftest.err >&5
24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810 (exit $ac_status); } && {
24811 test -z "$ac_c_werror_flag" ||
24812 test ! -s conftest.err
24813 } && test -s conftest.$ac_objext; then
24814 ac_header_compiler=yes
24816 echo "$as_me: failed program was:" >&5
24817 sed 's/^/| /' conftest.$ac_ext >&5
24819 ac_header_compiler=no
24822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24824 echo "${ECHO_T}$ac_header_compiler" >&6; }
24826 # Is the header present?
24827 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
24828 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
24829 cat >conftest.$ac_ext <<_ACEOF
24832 cat confdefs.h >>conftest.$ac_ext
24833 cat >>conftest.$ac_ext <<_ACEOF
24834 /* end confdefs.h. */
24837 if { (ac_try="$ac_cpp conftest.$ac_ext"
24838 case "(($ac_try" in
24839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 *) ac_try_echo=$ac_try;;
24842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24845 grep -v '^ *+' conftest.er1 >conftest.err
24847 cat conftest.err >&5
24848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 (exit $ac_status); } >/dev/null && {
24850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24851 test ! -s conftest.err
24853 ac_header_preproc=yes
24855 echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24858 ac_header_preproc=no
24861 rm -f conftest.err conftest.$ac_ext
24862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24863 echo "${ECHO_T}$ac_header_preproc" >&6; }
24865 # So? What about this header?
24866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24868 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24869 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24870 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
24871 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
24872 ac_header_preproc=yes
24875 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
24876 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
24877 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
24878 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
24879 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
24880 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
24881 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
24882 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24883 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
24884 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
24885 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
24886 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
24888 ## ---------------------------------------- ##
24889 ## Report this to pgsql-bugs@postgresql.org ##
24890 ## ---------------------------------------- ##
24892 ) | sed "s/^/$as_me: WARNING: /" >&2
24895 { echo "$as_me:$LINENO: checking for tcl.h" >&5
24896 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
24897 if test "${ac_cv_header_tcl_h+set}" = set; then
24898 echo $ECHO_N "(cached) $ECHO_C" >&6
24900 ac_cv_header_tcl_h=$ac_header_preproc
24902 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24903 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
24906 if test $ac_cv_header_tcl_h = yes; then
24909 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
24910 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
24911 { (exit 1); exit 1; }; }
24915 CPPFLAGS=$ac_save_CPPFLAGS
24919 # Check for DocBook and tools
24921 for ac_prog in onsgmls nsgmls
24923 # Extract the first word of "$ac_prog", so it can be a program name with args.
24924 set dummy $ac_prog; ac_word=$2
24925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24927 if test "${ac_cv_prog_NSGMLS+set}" = set; then
24928 echo $ECHO_N "(cached) $ECHO_C" >&6
24930 if test -n "$NSGMLS"; then
24931 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
24933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24934 for as_dir in $PATH
24937 test -z "$as_dir" && as_dir=.
24938 for ac_exec_ext in '' $ac_executable_extensions; do
24939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24940 ac_cv_prog_NSGMLS="$ac_prog"
24941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24950 NSGMLS=$ac_cv_prog_NSGMLS
24951 if test -n "$NSGMLS"; then
24952 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
24953 echo "${ECHO_T}$NSGMLS" >&6; }
24955 { echo "$as_me:$LINENO: result: no" >&5
24956 echo "${ECHO_T}no" >&6; }
24960 test -n "$NSGMLS" && break
24963 for ac_prog in openjade jade
24965 # Extract the first word of "$ac_prog", so it can be a program name with args.
24966 set dummy $ac_prog; ac_word=$2
24967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24969 if test "${ac_cv_prog_JADE+set}" = set; then
24970 echo $ECHO_N "(cached) $ECHO_C" >&6
24972 if test -n "$JADE"; then
24973 ac_cv_prog_JADE="$JADE" # Let the user override the test.
24975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24976 for as_dir in $PATH
24979 test -z "$as_dir" && as_dir=.
24980 for ac_exec_ext in '' $ac_executable_extensions; do
24981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24982 ac_cv_prog_JADE="$ac_prog"
24983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24992 JADE=$ac_cv_prog_JADE
24993 if test -n "$JADE"; then
24994 { echo "$as_me:$LINENO: result: $JADE" >&5
24995 echo "${ECHO_T}$JADE" >&6; }
24997 { echo "$as_me:$LINENO: result: no" >&5
24998 echo "${ECHO_T}no" >&6; }
25002 test -n "$JADE" && break
25006 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25007 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25008 if test "${pgac_cv_check_docbook+set}" = set; then
25009 echo $ECHO_N "(cached) $ECHO_C" >&6
25011 cat >conftest.sgml <<EOF
25012 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25014 <title>test</title>
25016 <title>random</title>
25018 <title>testsect</title>
25025 pgac_cv_check_docbook=no
25027 if test -n "$NSGMLS"; then
25028 $NSGMLS -s conftest.sgml 1>&5 2>&1
25029 if test $? -eq 0; then
25030 pgac_cv_check_docbook=yes
25033 rm -f conftest.sgml
25035 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25036 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25038 have_docbook=$pgac_cv_check_docbook
25041 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25042 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25043 if test "${pgac_cv_path_stylesheets+set}" = set; then
25044 echo $ECHO_N "(cached) $ECHO_C" >&6
25046 if test -n "$DOCBOOKSTYLE"; then
25047 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
25049 for pgac_prefix in /usr /usr/local /opt; do
25050 for pgac_infix in share lib; do
25051 for pgac_postfix in \
25052 sgml/stylesheets/nwalsh-modular \
25053 sgml/stylesheets/docbook \
25054 sgml/stylesheets/dsssl/docbook \
25055 sgml/docbook-dsssl \
25056 sgml/docbook/dsssl/modular \
25057 sgml/docbook/stylesheet/dsssl/modular \
25058 sgml/docbook/dsssl-stylesheets
25060 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
25061 if test -r "$pgac_candidate/html/docbook.dsl" \
25062 && test -r "$pgac_candidate/print/docbook.dsl"
25064 pgac_cv_path_stylesheets=$pgac_candidate
25073 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
25075 if test -n "$DOCBOOKSTYLE"; then
25076 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25077 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25079 { echo "$as_me:$LINENO: result: no" >&5
25080 echo "${ECHO_T}no" >&6; }
25082 if test -n "$DOCBOOKSTYLE"; then
25083 for ac_prog in collateindex.pl
25085 # Extract the first word of "$ac_prog", so it can be a program name with args.
25086 set dummy $ac_prog; ac_word=$2
25087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25089 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25090 echo $ECHO_N "(cached) $ECHO_C" >&6
25092 case $COLLATEINDEX in
25094 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25098 for as_dir in $DOCBOOKSTYLE/bin $PATH
25101 test -z "$as_dir" && as_dir=.
25102 for ac_exec_ext in '' $ac_executable_extensions; do
25103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25104 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25115 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25116 if test -n "$COLLATEINDEX"; then
25117 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25118 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25120 { echo "$as_me:$LINENO: result: no" >&5
25121 echo "${ECHO_T}no" >&6; }
25125 test -n "$COLLATEINDEX" && break
25129 for ac_prog in collateindex.pl
25131 # Extract the first word of "$ac_prog", so it can be a program name with args.
25132 set dummy $ac_prog; ac_word=$2
25133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25135 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25136 echo $ECHO_N "(cached) $ECHO_C" >&6
25138 case $COLLATEINDEX in
25140 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25144 for as_dir in $PATH
25147 test -z "$as_dir" && as_dir=.
25148 for ac_exec_ext in '' $ac_executable_extensions; do
25149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25150 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25161 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25162 if test -n "$COLLATEINDEX"; then
25163 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25164 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25166 { echo "$as_me:$LINENO: result: no" >&5
25167 echo "${ECHO_T}no" >&6; }
25171 test -n "$COLLATEINDEX" && break
25175 for ac_prog in sgmlspl
25177 # Extract the first word of "$ac_prog", so it can be a program name with args.
25178 set dummy $ac_prog; ac_word=$2
25179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25181 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25182 echo $ECHO_N "(cached) $ECHO_C" >&6
25184 if test -n "$SGMLSPL"; then
25185 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25188 for as_dir in $PATH
25191 test -z "$as_dir" && as_dir=.
25192 for ac_exec_ext in '' $ac_executable_extensions; do
25193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25194 ac_cv_prog_SGMLSPL="$ac_prog"
25195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25204 SGMLSPL=$ac_cv_prog_SGMLSPL
25205 if test -n "$SGMLSPL"; then
25206 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25207 echo "${ECHO_T}$SGMLSPL" >&6; }
25209 { echo "$as_me:$LINENO: result: no" >&5
25210 echo "${ECHO_T}no" >&6; }
25214 test -n "$SGMLSPL" && break
25220 # We have to run the thread test near the end so we have all our symbols
25221 # defined. Cross compiling throws a warning.
25223 if test "$enable_thread_safety_force" = yes; then
25224 if test "$PORTNAME" != "win32"
25226 { echo "$as_me:$LINENO: WARNING:
25227 *** Skipping thread test program. --enable-thread-safety-force was used.
25228 *** Run the program in src/test/thread on the your machine and add proper
25229 *** locking function calls to your applications to guarantee thread safety.
25231 echo "$as_me: WARNING:
25232 *** Skipping thread test program. --enable-thread-safety-force was used.
25233 *** Run the program in src/test/thread on the your machine and add proper
25234 *** locking function calls to your applications to guarantee thread safety.
25237 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25238 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25240 elif test "$enable_thread_safety" = yes; then
25241 if test "$PORTNAME" != "win32"
25243 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25244 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25248 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25249 LIBS="$LIBS $PTHREAD_LIBS"
25250 if test "$cross_compiling" = yes; then
25251 { echo "$as_me:$LINENO: result: maybe" >&5
25252 echo "${ECHO_T}maybe" >&6; }
25253 { echo "$as_me:$LINENO: WARNING:
25254 *** Skipping thread test program because of cross-compile build.
25255 *** Run the program in src/test/thread on the target machine.
25257 echo "$as_me: WARNING:
25258 *** Skipping thread test program because of cross-compile build.
25259 *** Run the program in src/test/thread on the target machine.
25262 cat >conftest.$ac_ext <<_ACEOF
25265 cat confdefs.h >>conftest.$ac_ext
25266 cat >>conftest.$ac_ext <<_ACEOF
25267 /* end confdefs.h. */
25268 #include "$srcdir/src/test/thread/thread_test.c"
25270 rm -f conftest$ac_exeext
25271 if { (ac_try="$ac_link"
25272 case "(($ac_try" in
25273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25274 *) ac_try_echo=$ac_try;;
25276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25277 (eval "$ac_link") 2>&5
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25281 { (case "(($ac_try" in
25282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25283 *) ac_try_echo=$ac_try;;
25285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25286 (eval "$ac_try") 2>&5
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); }; }; then
25290 { echo "$as_me:$LINENO: result: yes" >&5
25291 echo "${ECHO_T}yes" >&6; }
25293 echo "$as_me: program exited with status $ac_status" >&5
25294 echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25297 ( exit $ac_status )
25298 { echo "$as_me:$LINENO: result: no" >&5
25299 echo "${ECHO_T}no" >&6; }
25300 { { echo "$as_me:$LINENO: error: thread test program failed
25301 This platform is not thread-safe. Check the file 'config.log'for the
25304 You can use the configure option --enable-thread-safety-force to force
25305 threads to be enabled. But you must then run the program in
25306 src/test/thread and add locking function calls to your applications to
25307 guarantee thread safety." >&5
25308 echo "$as_me: error: thread test program failed
25309 This platform is not thread-safe. Check the file 'config.log'for the
25312 You can use the configure option --enable-thread-safety-force to force
25313 threads to be enabled. But you must then run the program in
25314 src/test/thread and add locking function calls to your applications to
25315 guarantee thread safety." >&2;}
25316 { (exit 1); exit 1; }; }
25318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25325 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25326 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25330 # prepare build tree if outside source tree
25331 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
25332 # Note 2: /bin/pwd might be better than shell's built-in at getting
25333 # a symlink-free name.
25334 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
25338 if test "$no_create" != yes; then
25339 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
25340 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
25341 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
25342 || { { echo "$as_me:$LINENO: error: failed" >&5
25343 echo "$as_me: error: failed" >&2;}
25344 { (exit 1); exit 1; }; }
25345 { echo "$as_me:$LINENO: result: done" >&5
25346 echo "${ECHO_T}done" >&6; }
25352 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
25355 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}"
25358 if test "$PORTNAME" = "win32"; then
25359 ac_config_commands="$ac_config_commands check_win32_symlinks"
25363 ac_config_headers="$ac_config_headers src/include/pg_config.h"
25366 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
25369 cat >confcache <<\_ACEOF
25370 # This file is a shell script that caches the results of configure
25371 # tests run on this system so they can be shared between configure
25372 # scripts and configure runs, see configure's option --config-cache.
25373 # It is not useful on other systems. If it contains results you don't
25374 # want to keep, you may remove or edit it.
25376 # config.status only pays attention to the cache file if you give it
25377 # the --recheck option to rerun configure.
25379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25381 # following values.
25385 # The following way of writing the cache mishandles newlines in values,
25386 # but we know of no workaround that is simple, portable, and efficient.
25387 # So, we kill variables containing newlines.
25388 # Ultrix sh set writes to stderr and can't be redirected directly,
25389 # and sets the high bit in the cache file unless we assign to the vars.
25391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25392 eval ac_val=\$$ac_var
25396 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25397 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25400 _ | IFS | as_nl) ;; #(
25401 *) $as_unset $ac_var ;;
25407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25408 *${as_nl}ac_space=\ *)
25409 # `set' does not quote correctly, so add quotes (double-quote
25410 # substitution turns \\\\ into \\, and sed turns \\ into \).
25413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25416 # `set' quotes correctly as required by POSIX, so do not add quotes.
25417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25431 if test -w "$cache_file"; then
25432 test "x$cache_file" != "x/dev/null" &&
25433 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25434 echo "$as_me: updating cache $cache_file" >&6;}
25435 cat confcache >$cache_file
25437 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25438 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25444 # Let make expand exec_prefix.
25445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25447 DEFS=-DHAVE_CONFIG_H
25451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25452 # 1. Remove the extension, and $U if already installed.
25453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25454 ac_i=`echo "$ac_i" | sed "$ac_script"`
25455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25456 # will be set to the directory where LIBOBJS objects are built.
25457 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25458 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25460 LIBOBJS=$ac_libobjs
25462 LTLIBOBJS=$ac_ltlibobjs
25466 : ${CONFIG_STATUS=./config.status}
25467 ac_clean_files_save=$ac_clean_files
25468 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25469 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25470 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25471 cat >$CONFIG_STATUS <<_ACEOF
25473 # Generated by $as_me.
25474 # Run this file to recreate the current configuration.
25475 # Compiler output produced by configure, useful for debugging
25476 # configure, is in config.log if it exists.
25479 ac_cs_recheck=false
25481 SHELL=\${CONFIG_SHELL-$SHELL}
25484 cat >>$CONFIG_STATUS <<\_ACEOF
25485 ## --------------------- ##
25486 ## M4sh Initialization. ##
25487 ## --------------------- ##
25489 # Be more Bourne compatible
25490 DUALCASE=1; export DUALCASE # for MKS sh
25491 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25494 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25495 # is contrary to our usage. Disable this feature.
25496 alias -g '${1+"$@"}'='"$@"'
25497 setopt NO_GLOB_SUBST
25499 case `(set -o) 2>/dev/null` in
25500 *posix*) set -o posix ;;
25509 # Avoid depending upon Character Ranges.
25510 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25511 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25512 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25513 as_cr_digits='0123456789'
25514 as_cr_alnum=$as_cr_Letters$as_cr_digits
25516 # The user is always right.
25517 if test "${PATH_SEPARATOR+set}" != set; then
25518 echo "#! /bin/sh" >conf$$.sh
25519 echo "exit 0" >>conf$$.sh
25521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25529 # Support unset when possible.
25530 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25538 # We need space, tab and new line, in precisely that order. Quoting is
25539 # there to prevent editors from complaining about space-tab.
25540 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25541 # splitting by setting IFS to empty value.)
25546 # Find who we are. Look in the path if we contain no directory separator.
25548 *[\\/]* ) as_myself=$0 ;;
25549 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25550 for as_dir in $PATH
25553 test -z "$as_dir" && as_dir=.
25554 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25560 # We did not find ourselves, most probably we were run as `sh COMMAND'
25561 # in which case we are not to be found in the path.
25562 if test "x$as_myself" = x; then
25565 if test ! -f "$as_myself"; then
25566 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25567 { (exit 1); exit 1; }
25570 # Work around bugs in pre-3.0 UWIN ksh.
25571 for as_var in ENV MAIL MAILPATH
25572 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25580 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25581 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25582 LC_TELEPHONE LC_TIME
25584 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25585 eval $as_var=C; export $as_var
25587 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25591 # Required to use basename.
25592 if expr a : '\(a\)' >/dev/null 2>&1 &&
25593 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25599 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25600 as_basename=basename
25606 # Name of the executable.
25607 as_me=`$as_basename -- "$0" ||
25608 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25609 X"$0" : 'X\(//\)$' \| \
25610 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25612 sed '/^.*\/\([^/][^/]*\)\/*$/{
25631 as_lineno_1=$LINENO
25632 as_lineno_2=$LINENO
25633 test "x$as_lineno_1" != "x$as_lineno_2" &&
25634 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25636 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25637 # uniformly replaced by the line number. The first 'sed' inserts a
25638 # line-number line after each line using $LINENO; the second 'sed'
25639 # does the real work. The second script uses 'N' to pair each
25640 # line-number line with the line containing $LINENO, and appends
25641 # trailing '-' during substitution so that $LINENO is not a special
25642 # case at line end.
25643 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25644 # scripts with optimization help from Paolo Bonzini. Blame Lee
25645 # E. McMahon (1931-1989) for sed's syntax. :-)
25657 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25660 ' >$as_me.lineno &&
25661 chmod +x "$as_me.lineno" ||
25662 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25663 { (exit 1); exit 1; }; }
25665 # Don't try to exec as it changes $[0], causing all sort of problems
25666 # (the dirname of $[0] is not the place where we might find the
25667 # original and so on. Autoconf is especially sensitive to this).
25668 . "./$as_me.lineno"
25669 # Exit status is that of the last command.
25674 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25680 ECHO_C= ECHO_N= ECHO_T=
25681 case `echo -n x` in
25683 case `echo 'x\c'` in
25684 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25691 if expr a : '\(a\)' >/dev/null 2>&1 &&
25692 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25698 rm -f conf$$ conf$$.exe conf$$.file
25699 if test -d conf$$.dir; then
25700 rm -f conf$$.dir/conf$$.file
25706 if ln -s conf$$.file conf$$ 2>/dev/null; then
25708 # ... but there are two gotchas:
25709 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25710 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25711 # In both cases, we have to default to `cp -p'.
25712 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25714 elif ln conf$$.file conf$$ 2>/dev/null; then
25719 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25720 rmdir conf$$.dir 2>/dev/null
25722 if mkdir -p . 2>/dev/null; then
25725 test -d ./-p && rmdir ./-p
25729 if test -x / >/dev/null 2>&1; then
25730 as_test_x='test -x'
25732 if ls -dL / >/dev/null 2>&1; then
25739 if test -d "$1"; then
25745 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25746 ???[sx]*):;;*)false;;esac;fi
25750 as_executable_p=$as_test_x
25752 # Sed expression to map a string onto a valid CPP name.
25753 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25755 # Sed expression to map a string onto a valid variable name.
25756 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25761 # Save the log message, to keep $[0] and so on meaningful, and to
25762 # report actual input values of CONFIG_FILES etc. instead of their
25763 # values after options handling.
25765 This file was extended by PostgreSQL $as_me 8.4devel, which was
25766 generated by GNU Autoconf 2.61. Invocation command line was
25768 CONFIG_FILES = $CONFIG_FILES
25769 CONFIG_HEADERS = $CONFIG_HEADERS
25770 CONFIG_LINKS = $CONFIG_LINKS
25771 CONFIG_COMMANDS = $CONFIG_COMMANDS
25774 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25779 cat >>$CONFIG_STATUS <<_ACEOF
25780 # Files that config.status was made for.
25781 config_files="$ac_config_files"
25782 config_headers="$ac_config_headers"
25783 config_links="$ac_config_links"
25784 config_commands="$ac_config_commands"
25788 cat >>$CONFIG_STATUS <<\_ACEOF
25790 \`$as_me' instantiates files from templates according to the
25791 current configuration.
25793 Usage: $0 [OPTIONS] [FILE]...
25795 -h, --help print this help, then exit
25796 -V, --version print version number and configuration settings, then exit
25797 -q, --quiet do not print progress messages
25798 -d, --debug don't remove temporary files
25799 --recheck update $as_me by reconfiguring in the same conditions
25800 --file=FILE[:TEMPLATE]
25801 instantiate the configuration file FILE
25802 --header=FILE[:TEMPLATE]
25803 instantiate the configuration header FILE
25805 Configuration files:
25808 Configuration headers:
25811 Configuration links:
25814 Configuration commands:
25817 Report bugs to <bug-autoconf@gnu.org>."
25820 cat >>$CONFIG_STATUS <<_ACEOF
25822 PostgreSQL config.status 8.4devel
25823 configured by $0, generated by GNU Autoconf 2.61,
25824 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25826 Copyright (C) 2006 Free Software Foundation, Inc.
25827 This config.status script is free software; the Free Software Foundation
25828 gives unlimited permission to copy, distribute and modify it."
25834 cat >>$CONFIG_STATUS <<\_ACEOF
25835 # If no file are specified by the user, then we need to provide default
25836 # value. By we need to know if files were specified by the user.
25842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25854 # Handling of the options.
25855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25858 echo "$ac_cs_version"; exit ;;
25859 --debug | --debu | --deb | --de | --d | -d )
25861 --file | --fil | --fi | --f )
25863 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25864 ac_need_defaults=false;;
25865 --header | --heade | --head | --hea )
25867 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25868 ac_need_defaults=false;;
25870 # Conflict between --help and --header
25871 { echo "$as_me: error: ambiguous option: $1
25872 Try \`$0 --help' for more information." >&2
25873 { (exit 1); exit 1; }; };;
25874 --help | --hel | -h )
25875 echo "$ac_cs_usage"; exit ;;
25876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25877 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25880 # This is an error.
25881 -*) { echo "$as_me: error: unrecognized option: $1
25882 Try \`$0 --help' for more information." >&2
25883 { (exit 1); exit 1; }; } ;;
25885 *) ac_config_targets="$ac_config_targets $1"
25886 ac_need_defaults=false ;;
25892 ac_configure_extra_args=
25894 if $ac_cs_silent; then
25896 ac_configure_extra_args="$ac_configure_extra_args --silent"
25900 cat >>$CONFIG_STATUS <<_ACEOF
25901 if \$ac_cs_recheck; then
25902 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25903 CONFIG_SHELL=$SHELL
25904 export CONFIG_SHELL
25905 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25909 cat >>$CONFIG_STATUS <<\_ACEOF
25913 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25914 ## Running $as_me. ##
25920 cat >>$CONFIG_STATUS <<_ACEOF
25923 cat >>$CONFIG_STATUS <<\_ACEOF
25925 # Handling of arguments.
25926 for ac_config_target in $ac_config_targets
25928 case $ac_config_target in
25929 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
25930 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
25931 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
25932 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
25933 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
25934 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
25935 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
25936 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
25937 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
25938 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
25939 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
25940 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
25942 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25943 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25944 { (exit 1); exit 1; }; };;
25949 # If the user did not use the arguments to specify the items to instantiate,
25950 # then the envvar interface is used. Set only those that are not.
25951 # We use the long form for the default assignment because of an extremely
25952 # bizarre bug on SunOS 4.1.3.
25953 if $ac_need_defaults; then
25954 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25955 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25956 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25957 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25960 # Have a temporary directory for convenience. Make it in the build tree
25961 # simply because there is no reason against having it here, and in addition,
25962 # creating and moving files from /tmp can sometimes cause problems.
25963 # Hook for its removal unless debugging.
25964 # Note that there is a small window in which the directory will not be cleaned:
25965 # after its creation but before its name has been assigned to `$tmp'.
25969 trap 'exit_status=$?
25970 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25972 trap '{ (exit 1); exit 1; }' 1 2 13 15
25974 # Create a (secure) tmp directory for tmp files.
25977 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25978 test -n "$tmp" && test -d "$tmp"
25981 tmp=./conf$$-$RANDOM
25982 (umask 077 && mkdir "$tmp")
25985 echo "$me: cannot create a temporary directory in ." >&2
25986 { (exit 1); exit 1; }
25990 # Set up the sed scripts for CONFIG_FILES section.
25993 # No need to generate the scripts if there are no CONFIG_FILES.
25994 # This happens for instance when ./config.status config.h
25995 if test -n "$CONFIG_FILES"; then
26002 for ac_last_try in false false false false false :; do
26003 cat >conf$$subs.sed <<_ACEOF
26004 SHELL!$SHELL$ac_delim
26005 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26006 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26007 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26008 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26009 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26010 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26011 exec_prefix!$exec_prefix$ac_delim
26012 prefix!$prefix$ac_delim
26013 program_transform_name!$program_transform_name$ac_delim
26014 bindir!$bindir$ac_delim
26015 sbindir!$sbindir$ac_delim
26016 libexecdir!$libexecdir$ac_delim
26017 datarootdir!$datarootdir$ac_delim
26018 datadir!$datadir$ac_delim
26019 sysconfdir!$sysconfdir$ac_delim
26020 sharedstatedir!$sharedstatedir$ac_delim
26021 localstatedir!$localstatedir$ac_delim
26022 includedir!$includedir$ac_delim
26023 oldincludedir!$oldincludedir$ac_delim
26024 docdir!$docdir$ac_delim
26025 infodir!$infodir$ac_delim
26026 htmldir!$htmldir$ac_delim
26027 dvidir!$dvidir$ac_delim
26028 pdfdir!$pdfdir$ac_delim
26029 psdir!$psdir$ac_delim
26030 libdir!$libdir$ac_delim
26031 localedir!$localedir$ac_delim
26032 mandir!$mandir$ac_delim
26033 DEFS!$DEFS$ac_delim
26034 ECHO_C!$ECHO_C$ac_delim
26035 ECHO_N!$ECHO_N$ac_delim
26036 ECHO_T!$ECHO_T$ac_delim
26037 LIBS!$LIBS$ac_delim
26038 build_alias!$build_alias$ac_delim
26039 host_alias!$host_alias$ac_delim
26040 target_alias!$target_alias$ac_delim
26041 configure_args!$configure_args$ac_delim
26042 build!$build$ac_delim
26043 build_cpu!$build_cpu$ac_delim
26044 build_vendor!$build_vendor$ac_delim
26045 build_os!$build_os$ac_delim
26046 host!$host$ac_delim
26047 host_cpu!$host_cpu$ac_delim
26048 host_vendor!$host_vendor$ac_delim
26049 host_os!$host_os$ac_delim
26050 PORTNAME!$PORTNAME$ac_delim
26051 enable_nls!$enable_nls$ac_delim
26052 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26053 default_port!$default_port$ac_delim
26054 enable_shared!$enable_shared$ac_delim
26055 enable_rpath!$enable_rpath$ac_delim
26056 enable_debug!$enable_debug$ac_delim
26057 enable_profiling!$enable_profiling$ac_delim
26058 DTRACE!$DTRACE$ac_delim
26059 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26060 enable_dtrace!$enable_dtrace$ac_delim
26062 CFLAGS!$CFLAGS$ac_delim
26063 LDFLAGS!$LDFLAGS$ac_delim
26064 CPPFLAGS!$CPPFLAGS$ac_delim
26065 ac_ct_CC!$ac_ct_CC$ac_delim
26066 EXEEXT!$EXEEXT$ac_delim
26067 OBJEXT!$OBJEXT$ac_delim
26071 autodepend!$autodepend$ac_delim
26072 INCLUDES!$INCLUDES$ac_delim
26073 enable_thread_safety!$enable_thread_safety$ac_delim
26074 with_tcl!$with_tcl$ac_delim
26075 with_perl!$with_perl$ac_delim
26076 with_python!$with_python$ac_delim
26077 with_gssapi!$with_gssapi$ac_delim
26078 with_krb5!$with_krb5$ac_delim
26079 krb_srvtab!$krb_srvtab$ac_delim
26080 with_pam!$with_pam$ac_delim
26081 with_ldap!$with_ldap$ac_delim
26082 with_bonjour!$with_bonjour$ac_delim
26083 with_openssl!$with_openssl$ac_delim
26084 with_ossp_uuid!$with_ossp_uuid$ac_delim
26085 XML2_CONFIG!$XML2_CONFIG$ac_delim
26086 with_libxml!$with_libxml$ac_delim
26087 with_libxslt!$with_libxslt$ac_delim
26088 with_system_tzdata!$with_system_tzdata$ac_delim
26089 with_zlib!$with_zlib$ac_delim
26090 GREP!$GREP$ac_delim
26091 EGREP!$EGREP$ac_delim
26092 ELF_SYS!$ELF_SYS$ac_delim
26093 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26095 with_gnu_ld!$with_gnu_ld$ac_delim
26096 ld_R_works!$ld_R_works$ac_delim
26097 RANLIB!$RANLIB$ac_delim
26098 STRIP!$STRIP$ac_delim
26099 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26100 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26103 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26105 elif $ac_last_try; then
26106 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26107 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26108 { (exit 1); exit 1; }; }
26110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26114 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26115 if test -n "$ac_eof"; then
26116 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26117 ac_eof=`expr $ac_eof + 1`
26120 cat >>$CONFIG_STATUS <<_ACEOF
26121 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26125 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26126 s/^/s,@/; s/!/@,|#_!!_#|/
26129 s/'"$ac_delim"'$/,g/; t
26131 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26132 ' >>$CONFIG_STATUS <conf$$subs.sed
26133 rm -f conf$$subs.sed
26134 cat >>$CONFIG_STATUS <<_ACEOF
26140 for ac_last_try in false false false false false :; do
26141 cat >conf$$subs.sed <<_ACEOF
26143 LN_S!$LN_S$ac_delim
26145 YACC!$YACC$ac_delim
26146 YFLAGS!$YFLAGS$ac_delim
26147 FLEX!$FLEX$ac_delim
26148 FLEXFLAGS!$FLEXFLAGS$ac_delim
26149 PERL!$PERL$ac_delim
26150 perl_archlibexp!$perl_archlibexp$ac_delim
26151 perl_privlibexp!$perl_privlibexp$ac_delim
26152 perl_useshrplib!$perl_useshrplib$ac_delim
26153 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26154 PYTHON!$PYTHON$ac_delim
26155 python_version!$python_version$ac_delim
26156 python_configdir!$python_configdir$ac_delim
26157 python_includespec!$python_includespec$ac_delim
26158 python_libdir!$python_libdir$ac_delim
26159 python_libspec!$python_libspec$ac_delim
26160 python_additional_libs!$python_additional_libs$ac_delim
26161 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26162 HAVE_IPV6!$HAVE_IPV6$ac_delim
26163 LIBOBJS!$LIBOBJS$ac_delim
26164 acx_pthread_config!$acx_pthread_config$ac_delim
26165 PTHREAD_CC!$PTHREAD_CC$ac_delim
26166 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26167 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26168 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26169 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26170 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26171 MSGFMT!$MSGFMT$ac_delim
26172 MSGMERGE!$MSGMERGE$ac_delim
26173 XGETTEXT!$XGETTEXT$ac_delim
26174 TCLSH!$TCLSH$ac_delim
26175 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26176 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26177 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26178 TCL_LIBS!$TCL_LIBS$ac_delim
26179 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26180 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26181 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26182 NSGMLS!$NSGMLS$ac_delim
26183 JADE!$JADE$ac_delim
26184 have_docbook!$have_docbook$ac_delim
26185 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26186 COLLATEINDEX!$COLLATEINDEX$ac_delim
26187 SGMLSPL!$SGMLSPL$ac_delim
26188 vpath_build!$vpath_build$ac_delim
26189 LTLIBOBJS!$LTLIBOBJS$ac_delim
26192 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
26194 elif $ac_last_try; then
26195 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26196 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26197 { (exit 1); exit 1; }; }
26199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26203 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26204 if test -n "$ac_eof"; then
26205 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26206 ac_eof=`expr $ac_eof + 1`
26209 cat >>$CONFIG_STATUS <<_ACEOF
26210 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26214 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26215 s/^/s,@/; s/!/@,|#_!!_#|/
26218 s/'"$ac_delim"'$/,g/; t
26220 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26221 ' >>$CONFIG_STATUS <conf$$subs.sed
26222 rm -f conf$$subs.sed
26223 cat >>$CONFIG_STATUS <<_ACEOF
26230 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26231 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26232 # trailing colons and then remove the whole line if VPATH becomes empty
26233 # (actually we leave an empty line to preserve line numbers).
26234 if test "x$srcdir" = x.; then
26235 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26236 s/:*\$(srcdir):*/:/
26237 s/:*\${srcdir}:*/:/
26239 s/^\([^=]*=[ ]*\):*/\1/
26245 cat >>$CONFIG_STATUS <<\_ACEOF
26246 fi # test -n "$CONFIG_FILES"
26249 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
26252 :[FHLC]) ac_mode=$ac_tag; continue;;
26254 case $ac_mode$ac_tag in
26256 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26257 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26258 { (exit 1); exit 1; }; };;
26259 :[FH]-) ac_tag=-:-;;
26260 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26277 -) ac_f="$tmp/stdin";;
26278 *) # Look for the file first in the build tree, then in the source tree
26279 # (if the path is not absolute). The absolute path cannot be DOS-style,
26280 # because $ac_f cannot contain `:'.
26284 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26286 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26287 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26288 { (exit 1); exit 1; }; };;
26290 ac_file_inputs="$ac_file_inputs $ac_f"
26293 # Let's still pretend it is `configure' which instantiates (i.e., don't
26294 # use $as_me), people would be surprised to read:
26295 # /* config.h. Generated by config.status. */
26296 configure_input="Generated from "`IFS=:
26297 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26298 if test x"$ac_file" != x-; then
26299 configure_input="$ac_file. $configure_input"
26300 { echo "$as_me:$LINENO: creating $ac_file" >&5
26301 echo "$as_me: creating $ac_file" >&6;}
26305 *:-:* | *:-) cat >"$tmp/stdin";;
26310 ac_dir=`$as_dirname -- "$ac_file" ||
26311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26312 X"$ac_file" : 'X\(//\)[^/]' \| \
26313 X"$ac_file" : 'X\(//\)$' \| \
26314 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26320 /^X\(\/\/\)[^/].*/{
26335 -*) as_dir=./$as_dir;;
26337 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26341 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26342 *) as_qdir=$as_dir;;
26344 as_dirs="'$as_qdir' $as_dirs"
26345 as_dir=`$as_dirname -- "$as_dir" ||
26346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26347 X"$as_dir" : 'X\(//\)[^/]' \| \
26348 X"$as_dir" : 'X\(//\)$' \| \
26349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26355 /^X\(\/\/\)[^/].*/{
26368 test -d "$as_dir" && break
26370 test -z "$as_dirs" || eval "mkdir $as_dirs"
26371 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26372 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26373 { (exit 1); exit 1; }; }; }
26377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26380 # A ".." for each directory in $ac_dir_suffix.
26381 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26382 case $ac_top_builddir_sub in
26383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26387 ac_abs_top_builddir=$ac_pwd
26388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26389 # for backward compatibility:
26390 ac_top_builddir=$ac_top_build_prefix
26393 .) # We are building in place.
26395 ac_top_srcdir=$ac_top_builddir_sub
26396 ac_abs_top_srcdir=$ac_pwd ;;
26397 [\\/]* | ?:[\\/]* ) # Absolute name.
26398 ac_srcdir=$srcdir$ac_dir_suffix;
26399 ac_top_srcdir=$srcdir
26400 ac_abs_top_srcdir=$srcdir ;;
26401 *) # Relative name.
26402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26403 ac_top_srcdir=$ac_top_build_prefix$srcdir
26404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26417 cat >>$CONFIG_STATUS <<\_ACEOF
26418 # If the template does not know about datarootdir, expand it.
26419 # FIXME: This hack should be removed a few years after 2.60.
26420 ac_datarootdir_hack=; ac_datarootdir_seen=
26422 case `sed -n '/datarootdir/ {
26431 ' $ac_file_inputs` in
26432 *datarootdir*) ac_datarootdir_seen=yes;;
26433 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26434 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26435 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26437 cat >>$CONFIG_STATUS <<_ACEOF
26438 ac_datarootdir_hack='
26439 s&@datadir@&$datadir&g
26440 s&@docdir@&$docdir&g
26441 s&@infodir@&$infodir&g
26442 s&@localedir@&$localedir&g
26443 s&@mandir@&$mandir&g
26444 s&\\\${datarootdir}&$datarootdir&g' ;;
26448 # Neutralize VPATH when `$srcdir' = `.'.
26449 # Shell code in configure.ac might set extrasub.
26450 # FIXME: do we really want to maintain this feature?
26451 cat >>$CONFIG_STATUS <<_ACEOF
26455 cat >>$CONFIG_STATUS <<\_ACEOF
26457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26458 s&@configure_input@&$configure_input&;t t
26459 s&@top_builddir@&$ac_top_builddir_sub&;t t
26460 s&@srcdir@&$ac_srcdir&;t t
26461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26462 s&@top_srcdir@&$ac_top_srcdir&;t t
26463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26464 s&@builddir@&$ac_builddir&;t t
26465 s&@abs_builddir@&$ac_abs_builddir&;t t
26466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26467 $ac_datarootdir_hack
26468 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26470 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26471 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26473 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26474 which seems to be undefined. Please make sure it is defined." >&5
26475 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26476 which seems to be undefined. Please make sure it is defined." >&2;}
26480 -) cat "$tmp/out"; rm -f "$tmp/out";;
26481 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26490 # Transform confdefs.h into a sed script `conftest.defines', that
26491 # substitutes the proper values into config.h.in to produce config.h.
26492 rm -f conftest.defines conftest.tail
26493 # First, append a space to every undef/define line, to ease matching.
26494 echo 's/$/ /' >conftest.defines
26495 # Then, protect against being on the right side of a sed subst, or in
26496 # an unquoted here document, in config.status. If some macros were
26497 # called several times there might be several #defines for the same
26498 # symbol, which is useless. But do not sort them, since the last
26499 # AC_DEFINE must be honored.
26500 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26501 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26502 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26503 # PARAMS is the parameter list in the macro definition--in most cases, it's
26504 # just an empty string.
26505 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26506 ac_dB='\\)[ (].*,\\1define\\2'
26514 s/^[ ]*#[ ]*define[ ][ ]*//
26519 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26520 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26521 ' >>conftest.defines
26523 # Remove the space that was appended to ease matching.
26524 # Then replace #undef with comments. This is necessary, for
26525 # example, in the case of _POSIX_SOURCE, which is predefined and required
26526 # on some systems where configure will not decide to define it.
26527 # (The regexp can be short, since the line contains either #define or #undef.)
26529 s,^[ #]*u.*,/* & */,' >>conftest.defines
26531 # Break up conftest.defines:
26532 ac_max_sed_lines=50
26534 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26535 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26536 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26538 ac_in='$ac_file_inputs'
26539 ac_out='"$tmp/out1"'
26540 ac_nxt='"$tmp/out2"'
26544 # Write a here document:
26545 cat >>$CONFIG_STATUS <<_ACEOF
26546 # First, check the format of the line:
26547 cat >"\$tmp/defines.sed" <<\\CEOF
26548 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26549 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26553 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26555 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26556 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26557 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26558 grep . conftest.tail >/dev/null || break
26559 rm -f conftest.defines
26560 mv conftest.tail conftest.defines
26562 rm -f conftest.defines conftest.tail
26564 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26565 cat >>$CONFIG_STATUS <<\_ACEOF
26566 if test x"$ac_file" != x-; then
26567 echo "/* $configure_input */" >"$tmp/config.h"
26568 cat "$ac_result" >>"$tmp/config.h"
26569 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26570 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26571 echo "$as_me: $ac_file is unchanged" >&6;}
26574 mv "$tmp/config.h" $ac_file
26577 echo "/* $configure_input */"
26587 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
26588 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
26590 if test ! -r "$srcdir/$ac_source"; then
26591 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26592 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26593 { (exit 1); exit 1; }; }
26597 # Try a relative symlink, then a hard link, then a copy.
26599 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26600 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
26602 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26603 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
26604 cp -p "$srcdir/$ac_source" "$ac_file" ||
26605 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
26606 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
26607 { (exit 1); exit 1; }; }
26609 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26610 echo "$as_me: executing $ac_file commands" >&6;}
26615 case $ac_file$ac_mode in
26616 "check_win32_symlinks":C)
26617 # Links sometimes fail undetected on Mingw -
26618 # so here we detect it and warn the user
26619 for FILE in $CONFIG_LINKS
26621 # test -e works for symlinks in the MinGW console
26622 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
26623 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
26626 "src/include/pg_config.h":H)
26627 # Update timestamp for pg_config.h (see Makefile.global)
26628 echo >src/include/stamp-h
26635 { (exit 0); exit 0; }
26637 chmod +x $CONFIG_STATUS
26638 ac_clean_files=$ac_clean_files_save
26641 # configure is writing to config.log, and then calls config.status.
26642 # config.status does its own redirection, appending to config.log.
26643 # Unfortunately, on DOS this fails, as config.log is still kept open
26644 # by configure, so config.status won't be able to write to it; its
26645 # output is simply discarded. So we exec the FD to /dev/null,
26646 # effectively closing config.log, so it can be properly (re)opened and
26647 # appended to by config.status. When coming back to configure, we
26648 # need to make the FD available again.
26649 if test "$no_create" != yes; then
26651 ac_config_status_args=
26652 test "$silent" = yes &&
26653 ac_config_status_args="$ac_config_status_args --quiet"
26655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26658 # would make configure fail if this is the last instruction.
26659 $ac_cs_success || { (exit 1); exit 1; }
26663 # Warn about unknown options
26664 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
26665 for pgac_arg in $pgac_args with_gnu_ld; do
26666 if test "$pgac_var" = "$pgac_arg"; then
26670 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
26671 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
26672 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}