2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.2devel.
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, 2007, 2008 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-2011, 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 # Pre-4.2 versions of Zsh do 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
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
94 # We need space, tab and new line, in precisely that order. Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
100 # Find who we are. Look in the path if we contain no directory separator.
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
119 if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 { (exit 1); exit 1; }
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
159 sed '/^.*\/\([^/][^/]*\)\/*$/{
177 if test "x$CONFIG_SHELL" = x; then
178 if (eval ":") 2>/dev/null; then
184 if test $as_have_required = yes && (eval ":
194 as_func_ret_success () {
197 as_func_ret_failure () {
202 if as_func_success; then
206 echo as_func_success failed.
209 if as_func_failure; then
211 echo as_func_failure succeeded.
214 if as_func_ret_success; then
218 echo as_func_ret_success failed.
221 if as_func_ret_failure; then
223 echo as_func_ret_failure succeeded.
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
230 echo positional parameters were not saved.
233 test \$exitcode = 0) || { (exit 1); exit 1; }
238 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
248 test -z "$as_dir" && as_dir=.
251 for as_base in sh bash ksh sh5; do
252 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
259 for as_shell in $as_candidate_shells $SHELL; do
260 # Try only shells that exist, to save several forks.
261 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
281 CONFIG_SHELL=$as_shell
283 if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288 # is contrary to our usage. Disable this feature.
289 alias -g '${1+"$@"}'='"$@"'
292 case `(set -o) 2>/dev/null` in
293 *posix*) set -o posix ;;
309 as_func_ret_success () {
312 as_func_ret_failure () {
317 if as_func_success; then
321 echo as_func_success failed.
324 if as_func_failure; then
326 echo as_func_failure succeeded.
329 if as_func_ret_success; then
333 echo as_func_ret_success failed.
336 if as_func_ret_failure; then
338 echo as_func_ret_failure succeeded.
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
345 echo positional parameters were not saved.
348 test $exitcode = 0) || { (exit 1); exit 1; }
353 test "x$as_lineno_1" != "x$as_lineno_2" &&
354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
365 if test "x$CONFIG_SHELL" != x; then
366 for as_var in BASH_ENV ENV
367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
370 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
374 if test $as_have_required = no; then
375 echo This script requires a shell more modern than all the
376 echo shells that I found on your system. Please install a
377 echo modern shell, or manually run the script under such a
378 echo shell if you do have one.
379 { (exit 1); exit 1; }
389 (eval "as_func_return () {
398 as_func_ret_success () {
401 as_func_ret_failure () {
406 if as_func_success; then
410 echo as_func_success failed.
413 if as_func_failure; then
415 echo as_func_failure succeeded.
418 if as_func_ret_success; then
422 echo as_func_ret_success failed.
425 if as_func_ret_failure; then
427 echo as_func_ret_failure succeeded.
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
434 echo positional parameters were not saved.
437 test \$exitcode = 0") || {
438 echo No shell found that supports shell functions.
439 echo Please tell bug-autoconf@gnu.org about your system,
440 echo including any error possibly output before this message.
441 echo This can help us improve future autoconf versions.
442 echo Configuration will now proceed without shell functions.
449 test "x$as_lineno_1" != "x$as_lineno_2" &&
450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453 # uniformly replaced by the line number. The first 'sed' inserts a
454 # line-number line after each line using $LINENO; the second 'sed'
455 # does the real work. The second script uses 'N' to pair each
456 # line-number line with the line containing $LINENO, and appends
457 # trailing '-' during substitution so that $LINENO is not a special
459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460 # scripts with optimization help from Paolo Bonzini. Blame Lee
461 # E. McMahon (1931-1989) for sed's syntax. :-)
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
477 chmod +x "$as_me.lineno" ||
478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479 { (exit 1); exit 1; }; }
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
485 # Exit status is that of the last command.
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
496 ECHO_C= ECHO_N= ECHO_T=
500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -p'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
543 test -d ./-p && rmdir ./-p
547 if test -x / >/dev/null 2>&1; then
550 if ls -dL / >/dev/null 2>&1; then
557 if test -d "$1"; then
563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564 ???[sx]*):;;*)false;;esac;fi
568 as_executable_p=$as_test_x
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578 exec 7<&0 </dev/null 6>&1
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588 ac_default_prefix=/usr/local
590 ac_config_libobj_dir=.
596 SHELL=${CONFIG_SHELL-/bin/sh}
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.2devel'
602 PACKAGE_STRING='PostgreSQL 9.2devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
620 # ifdef HAVE_STDLIB_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
643 ac_subst_vars='LTLIBOBJS
675 python_additional_libs
795 program_transform_name
807 enable_option_checking
812 enable_integer_datetimes
843 with_libedit_preferred
854 ac_precious_vars='build_alias
868 # Initialize some variables set by options.
870 ac_init_version=false
871 ac_unrecognized_opts=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
882 program_transform_name=s,x,x,
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\$ac_option
928 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 # Accept the important Cygnus configure options, so we can diagnose typos.
934 case $ac_dashdash$ac_option in
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
956 cache_file=config.cache ;;
958 -datadir | --datadir | --datadi | --datad)
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
985 eval enable_$ac_useropt=no ;;
987 -docdir | --docdir | --docdi | --doc | --do)
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 -enable-* | --enable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 htmldir=$ac_optarg ;;
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1057 -libdir | --libdir | --libdi | --libd)
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1148 -psdir | --psdir | --psdi | --psd | --ps)
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 sbindir=$ac_optarg ;;
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 sharedstatedir=$ac_optarg ;;
1174 -site | --site | --sit)
1176 -site=* | --site=* | --sit=*)
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1207 { (exit 1); exit 1; }; }
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval with_$ac_useropt=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1234 eval with_$ac_useropt=no ;;
1237 # Obsolete; use --with-x.
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1285 if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1288 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1289 { (exit 1); exit 1; }; } ;;
1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1307 # Be sure to have absolute directory names.
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313 { (exit 1); exit 1; }; }
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1321 target=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328 If a cross compiler is detected then cross compile mode will be used." >&2
1329 elif test "x$build_alias" != "x$host_alias"; then
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1344 { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1347 { (exit 1); exit 1; }; }
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1382 ac_srcdir_defaulted=no
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387 { (exit 1); exit 1; }; }
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1392 { (exit 1); exit 1; }; }
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1418 \`configure' configures PostgreSQL 9.2devel to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of PostgreSQL 9.2devel:";;
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --disable-integer-datetimes
1492 disable 64-bit integer date/time support
1493 --enable-nls[=LANGUAGES]
1494 enable Native Language Support
1495 --disable-shared do not build shared libraries
1496 --disable-rpath do not embed shared library search path in
1498 --disable-spinlocks do not use spinlocks
1499 --enable-debug build with debugging symbols (-g)
1500 --enable-profiling build with profiling enabled
1501 --enable-coverage build with coverage testing instrumentation
1502 --enable-dtrace build with DTrace support
1503 --enable-depend turn on automatic dependency tracking
1504 --enable-cassert enable assertion checks (for debugging)
1505 --disable-thread-safety disable thread-safety in client libraries
1506 --disable-largefile omit support for large files
1507 --disable-float4-byval disable float4 passed by value
1508 --disable-float8-byval disable float8 passed by value
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-template=NAME override operating system template
1514 --with-includes=DIRS look for additional header files in DIRS
1515 --with-libraries=DIRS look for additional libraries in DIRS
1516 --with-libs=DIRS alternative spelling of --with-libraries
1517 --with-pgport=PORTNUM set default port number [5432]
1518 --with-blocksize=BLOCKSIZE
1519 set table block size in kB [8]
1520 --with-segsize=SEGSIZE set table segment size in GB [1]
1521 --with-wal-blocksize=BLOCKSIZE
1522 set WAL block size in kB [8]
1523 --with-wal-segsize=SEGSIZE
1524 set WAL segment size in MB [16]
1525 --with-CC=CMD set compiler (deprecated)
1526 --with-tcl build Tcl modules (PL/Tcl)
1527 --with-tclconfig=DIR tclConfig.sh is in DIR
1528 --with-perl build Perl modules (PL/Perl)
1529 --with-python build Python modules (PL/Python)
1530 --with-gssapi build with GSSAPI support
1531 --with-krb5 build with Kerberos 5 support
1532 --with-krb-srvnam=NAME default service principal name in Kerberos
1534 --with-pam build with PAM support
1535 --with-ldap build with LDAP support
1536 --with-bonjour build with Bonjour support
1537 --with-openssl build with OpenSSL support
1538 --with-selinux build with SELinux support
1539 --without-readline do not use GNU Readline nor BSD Libedit for editing
1540 --with-libedit-preferred
1541 prefer BSD Libedit over GNU Readline
1542 --with-ossp-uuid build contrib/uuid-ossp, requires OSSP UUID library
1543 --with-libxml build with XML support
1544 --with-libxslt use XSLT support when building contrib/xml2
1545 --with-system-tzdata=DIR
1546 use system time zone data in DIR
1547 --without-zlib do not use Zlib
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1559 LDFLAGS_EX extra linker flags for linking executables only
1560 LDFLAGS_SL extra linker flags for linking shared libraries only
1562 location of DocBook stylesheets
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1567 Report bugs to <pgsql-bugs@postgresql.org>.
1572 if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1597 .) # We are building in place.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for guested configure.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 cd "$ac_pwd" || { ac_status=$?; break; }
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1630 PostgreSQL configure 9.2devel
1631 generated by GNU Autoconf 2.63
1633 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1634 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1638 Copyright (c) 1996-2011, PostgreSQL Global Development Group
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1646 It was created by PostgreSQL $as_me 9.2devel, which was
1647 generated by GNU Autoconf 2.63. Invocation command line was
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1668 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1669 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1672 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1673 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1674 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 test -z "$as_dir" && as_dir=.
1683 $as_echo "PATH: $as_dir"
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1707 ac_must_keep_next=false
1713 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715 | -silent | --silent | --silen | --sile | --sil)
1718 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1723 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724 if test $ac_must_keep_next = true; then
1725 ac_must_keep_next=false # Got value, back to normal.
1728 *=* | --config-cache | -C | -disable-* | --disable-* \
1729 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731 | -with-* | --with-* | -without-* | --without-* | --x)
1732 case "$ac_configure_args0 " in
1733 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1736 -* ) ac_must_keep_next=true ;;
1739 ac_configure_args="$ac_configure_args '$ac_arg'"
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log. We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753 # Save into config.log some information that might help in debugging.
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1763 # The following way of writing the cache mishandles newlines in values,
1765 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766 eval ac_val=\$$ac_var
1770 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1774 _ | IFS | as_nl) ;; #(
1775 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1776 *) $as_unset $ac_var ;;
1781 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782 *${as_nl}ac_space=\ *)
1784 "s/'\''/'\''\\\\'\'''\''/g;
1785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1801 for ac_var in $ac_subst_vars
1803 eval ac_val=\$$ac_var
1805 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 $as_echo "$ac_var='\''$ac_val'\''"
1811 if test -n "$ac_subst_files"; then
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1818 for ac_var in $ac_subst_files
1820 eval ac_val=\$$ac_var
1822 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 $as_echo "$ac_var='\''$ac_val'\''"
1829 if test -s confdefs.h; then
1839 test "$ac_signal" != 0 &&
1840 $as_echo "$as_me: caught signal $ac_signal"
1841 $as_echo "$as_me: exit $exit_status"
1843 rm -f core *.core core.conftest.* &&
1844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1847 for ac_signal in 1 2 13 15; do
1848 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1855 # Predefined preprocessor variables.
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer an explicitly selected file to automatically selected ones.
1886 if test -n "$CONFIG_SITE"; then
1887 ac_site_file1=$CONFIG_SITE
1888 elif test "x$prefix" != xNONE; then
1889 ac_site_file1=$prefix/share/config.site
1890 ac_site_file2=$prefix/etc/config.site
1892 ac_site_file1=$ac_default_prefix/share/config.site
1893 ac_site_file2=$ac_default_prefix/etc/config.site
1895 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1897 test "x$ac_site_file" = xNONE && continue
1898 if test -r "$ac_site_file"; then
1899 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1901 sed 's/^/| /' "$ac_site_file" >&5
1906 if test -r "$cache_file"; then
1907 # Some versions of bash will fail to source /dev/null (special
1908 # files actually), so we avoid doing that.
1909 if test -f "$cache_file"; then
1910 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 $as_echo "$as_me: loading cache $cache_file" >&6;}
1913 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914 *) . "./$cache_file";;
1918 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 $as_echo "$as_me: creating cache $cache_file" >&6;}
1923 # Check that the precious variables saved in the cache have kept the same
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928 eval ac_new_set=\$ac_env_${ac_var}_set
1929 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930 eval ac_new_val=\$ac_env_${ac_var}_value
1931 case $ac_old_set,$ac_new_set in
1933 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1937 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1942 if test "x$ac_old_val" != "x$ac_new_val"; then
1943 # differences in whitespace do not lead to failure.
1944 ac_old_val_w=`echo x $ac_old_val`
1945 ac_new_val_w=`echo x $ac_new_val`
1946 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1947 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949 ac_cache_corrupted=:
1951 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1952 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1953 eval $ac_var=\$ac_old_val
1955 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1956 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1957 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1958 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1961 # Pass precious variables to config.status.
1962 if test "$ac_new_set" = set; then
1964 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965 *) ac_arg=$ac_var=$ac_new_val ;;
1967 case " $ac_configure_args " in
1968 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1969 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1973 if $ac_cache_corrupted; then
1974 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1976 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980 { (exit 1); exit 1; }; }
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019 for ac_dir in config "$srcdir"/config; do
2020 if test -f "$ac_dir/install-sh"; then
2022 ac_install_sh="$ac_aux_dir/install-sh -c"
2024 elif test -f "$ac_dir/install.sh"; then
2026 ac_install_sh="$ac_aux_dir/install.sh -c"
2028 elif test -f "$ac_dir/shtool"; then
2030 ac_install_sh="$ac_aux_dir/shtool install -c"
2034 if test -z "$ac_aux_dir"; then
2035 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2036 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2037 { (exit 1); exit 1; }; }
2040 # These three variables are undocumented and unsupported,
2041 # and are intended to be withdrawn in a future Autoconf release.
2042 # They can cause serious problems if a builder's source tree is in a directory
2043 # whose full name contains unusual characters.
2044 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2045 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2046 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2050 configure_args=$ac_configure_args
2054 cat >>confdefs.h <<_ACEOF
2055 #define PG_VERSION "$PACKAGE_VERSION"
2058 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2061 cat >>confdefs.h <<_ACEOF
2062 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2066 # Make sure we can run config.sub.
2067 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2068 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2069 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2070 { (exit 1); exit 1; }; }
2072 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2073 $as_echo_n "checking build system type... " >&6; }
2074 if test "${ac_cv_build+set}" = set; then
2075 $as_echo_n "(cached) " >&6
2077 ac_build_alias=$build_alias
2078 test "x$ac_build_alias" = x &&
2079 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2080 test "x$ac_build_alias" = x &&
2081 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2082 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2083 { (exit 1); exit 1; }; }
2084 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2085 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2086 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2087 { (exit 1); exit 1; }; }
2090 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2091 $as_echo "$ac_cv_build" >&6; }
2092 case $ac_cv_build in
2094 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2095 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2096 { (exit 1); exit 1; }; };;
2099 ac_save_IFS=$IFS; IFS='-'
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2109 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2112 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2113 $as_echo_n "checking host system type... " >&6; }
2114 if test "${ac_cv_host+set}" = set; then
2115 $as_echo_n "(cached) " >&6
2117 if test "x$host_alias" = x; then
2118 ac_cv_host=$ac_cv_build
2120 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2121 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2122 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2123 { (exit 1); exit 1; }; }
2127 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2128 $as_echo "$ac_cv_host" >&6; }
2131 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2132 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2133 { (exit 1); exit 1; }; };;
2136 ac_save_IFS=$IFS; IFS='-'
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2146 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2151 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2152 $as_echo_n "checking which template to use... " >&6; }
2157 # Check whether --with-template was given.
2158 if test "${with_template+set}" = set; then
2159 withval=$with_template;
2162 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2163 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2164 { (exit 1); exit 1; }; }
2167 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2168 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2169 { (exit 1); exit 1; }; }
2174 list) echo; ls "$srcdir/src/template"; exit;;
2175 *) if test -f "$srcdir/src/template/$with_template" ; then
2178 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2179 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2180 { (exit 1); exit 1; }; }
2189 # --with-template not given
2192 aix*) template=aix ;;
2193 bsdi*) template=bsdi ;;
2194 cygwin*) template=cygwin ;;
2195 darwin*) template=darwin ;;
2196 dragonfly*) template=netbsd ;;
2197 dgux*) template=dgux ;;
2198 freebsd*) template=freebsd ;;
2199 hpux*) template=hpux ;;
2200 irix*) template=irix ;;
2201 linux*|gnu*|k*bsd*-gnu)
2203 mingw*) template=win32 ;;
2204 netbsd*) template=netbsd ;;
2205 nextstep*) template=nextstep ;;
2206 openbsd*) template=openbsd ;;
2207 osf*) template=osf ;;
2208 sco*) template=sco ;;
2209 solaris*) template=solaris ;;
2210 sunos*) template=sunos4 ;;
2212 case $host_vendor in
2213 univel) template=univel ;;
2215 sysv4*) template=svr4 ;;
2216 sysv5*) template=unixware ;;
2217 ultrix*) template=ultrix4 ;;
2220 if test x"$template" = x"" ; then
2221 { { $as_echo "$as_me:$LINENO: error:
2222 *******************************************************************
2223 PostgreSQL has apparently not been ported to your platform yet.
2224 To try a manual configuration, look into the src/template directory
2225 for a similar platform and use the '--with-template=' option.
2227 Please also contact <pgsql-bugs@postgresql.org> to see about
2228 rectifying this. Include the above 'checking host system type...'
2230 *******************************************************************
2232 $as_echo "$as_me: error:
2233 *******************************************************************
2234 PostgreSQL has apparently not been ported to your platform yet.
2235 To try a manual configuration, look into the src/template directory
2236 for a similar platform and use the '--with-template=' option.
2238 Please also contact <pgsql-bugs@postgresql.org> to see about
2239 rectifying this. Include the above 'checking host system type...'
2241 *******************************************************************
2243 { (exit 1); exit 1; }; }
2251 { $as_echo "$as_me:$LINENO: result: $template" >&5
2252 $as_echo "$template" >&6; }
2257 # Initialize default assumption that we do not need separate assembly code
2258 # for TAS (test-and-set). This can be overridden by the template file
2259 # when it's executed.
2266 ## Command line options
2270 # Add non-standard directories to the include path
2275 # Check whether --with-includes was given.
2276 if test "${with_includes+set}" = set; then
2277 withval=$with_includes;
2280 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2281 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2282 { (exit 1); exit 1; }; }
2285 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2286 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2287 { (exit 1); exit 1; }; }
2300 # Add non-standard directories to the library search path
2305 # Check whether --with-libraries was given.
2306 if test "${with_libraries+set}" = set; then
2307 withval=$with_libraries;
2310 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2311 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2312 { (exit 1); exit 1; }; }
2315 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2316 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2317 { (exit 1); exit 1; }; }
2320 LIBRARY_DIRS=$withval
2331 # Check whether --with-libs was given.
2332 if test "${with_libs+set}" = set; then
2336 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2337 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2338 { (exit 1); exit 1; }; }
2341 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2342 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2343 { (exit 1); exit 1; }; }
2346 LIBRARY_DIRS=$withval
2356 # 64-bit integer date/time storage: enabled by default.
2358 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2359 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2362 # Check whether --enable-integer-datetimes was given.
2363 if test "${enable_integer_datetimes+set}" = set; then
2364 enableval=$enable_integer_datetimes;
2368 cat >>confdefs.h <<\_ACEOF
2369 #define USE_INTEGER_DATETIMES 1
2377 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2378 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2379 { (exit 1); exit 1; }; }
2384 enable_integer_datetimes=yes
2386 cat >>confdefs.h <<\_ACEOF
2387 #define USE_INTEGER_DATETIMES 1
2393 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2394 $as_echo "$enable_integer_datetimes" >&6; }
2400 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2401 $as_echo_n "checking whether NLS is wanted... " >&6; }
2404 # Check whether --enable-nls was given.
2405 if test "${enable_nls+set}" = set; then
2406 enableval=$enable_nls;
2416 WANTED_LANGUAGES=$enableval
2426 if test "$enable_nls" = yes; then
2428 cat >>confdefs.h <<\_ACEOF
2429 #define ENABLE_NLS 1
2434 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2435 $as_echo "$enable_nls" >&6; }
2440 # Default port number (--with-pgport), default 5432
2442 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2443 $as_echo_n "checking for default port number... " >&6; }
2447 # Check whether --with-pgport was given.
2448 if test "${with_pgport+set}" = set; then
2449 withval=$with_pgport;
2452 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2453 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2454 { (exit 1); exit 1; }; }
2457 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2458 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2459 { (exit 1); exit 1; }; }
2462 default_port=$withval
2471 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2472 $as_echo "$default_port" >&6; }
2473 # Need both of these because some places want an integer and some a string
2475 cat >>confdefs.h <<_ACEOF
2476 #define DEF_PGPORT ${default_port}
2480 cat >>confdefs.h <<_ACEOF
2481 #define DEF_PGPORT_STR "${default_port}"
2487 # Option to disable shared libraries
2491 # Check whether --enable-shared was given.
2492 if test "${enable_shared+set}" = set; then
2493 enableval=$enable_shared;
2502 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2503 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2504 { (exit 1); exit 1; }; }
2517 # '-rpath'-like feature can be disabled
2521 # Check whether --enable-rpath was given.
2522 if test "${enable_rpath+set}" = set; then
2523 enableval=$enable_rpath;
2532 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2533 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2534 { (exit 1); exit 1; }; }
2551 # Check whether --enable-spinlocks was given.
2552 if test "${enable_spinlocks+set}" = set; then
2553 enableval=$enable_spinlocks;
2562 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2563 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2564 { (exit 1); exit 1; }; }
2569 enable_spinlocks=yes
2576 # --enable-debug adds -g to compiler flags
2580 # Check whether --enable-debug was given.
2581 if test "${enable_debug+set}" = set; then
2582 enableval=$enable_debug;
2591 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2592 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2593 { (exit 1); exit 1; }; }
2606 # --enable-profiling enables gcc profiling
2610 # Check whether --enable-profiling was given.
2611 if test "${enable_profiling+set}" = set; then
2612 enableval=$enable_profiling;
2621 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2622 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2623 { (exit 1); exit 1; }; }
2636 # --enable-coverage enables generation of code coverage metrics with gcov
2640 # Check whether --enable-coverage was given.
2641 if test "${enable_coverage+set}" = set; then
2642 enableval=$enable_coverage;
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_GCOV+set}" = set; then
2652 $as_echo_n "(cached) " >&6
2654 if test -n "$GCOV"; then
2655 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_GCOV="$ac_prog"
2665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 GCOV=$ac_cv_prog_GCOV
2675 if test -n "$GCOV"; then
2676 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2677 $as_echo "$GCOV" >&6; }
2679 { $as_echo "$as_me:$LINENO: result: no" >&5
2680 $as_echo "no" >&6; }
2684 test -n "$GCOV" && break
2687 if test -z "$GCOV"; then
2688 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2689 $as_echo "$as_me: error: gcov not found" >&2;}
2690 { (exit 1); exit 1; }; }
2694 # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_prog_LCOV+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2701 if test -n "$LCOV"; then
2702 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_LCOV="$ac_prog"
2712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 LCOV=$ac_cv_prog_LCOV
2722 if test -n "$LCOV"; then
2723 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2724 $as_echo "$LCOV" >&6; }
2726 { $as_echo "$as_me:$LINENO: result: no" >&5
2727 $as_echo "no" >&6; }
2731 test -n "$LCOV" && break
2734 if test -z "$LCOV"; then
2735 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2736 $as_echo "$as_me: error: lcov not found" >&2;}
2737 { (exit 1); exit 1; }; }
2739 for ac_prog in genhtml
2741 # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_GENHTML+set}" = set; then
2746 $as_echo_n "(cached) " >&6
2748 if test -n "$GENHTML"; then
2749 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_GENHTML="$ac_prog"
2759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 GENHTML=$ac_cv_prog_GENHTML
2769 if test -n "$GENHTML"; then
2770 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2771 $as_echo "$GENHTML" >&6; }
2773 { $as_echo "$as_me:$LINENO: result: no" >&5
2774 $as_echo "no" >&6; }
2778 test -n "$GENHTML" && break
2781 if test -z "$GENHTML"; then
2782 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2783 $as_echo "$as_me: error: genhtml not found" >&2;}
2784 { (exit 1); exit 1; }; }
2791 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2792 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2793 { (exit 1); exit 1; }; }
2810 # Check whether --enable-dtrace was given.
2811 if test "${enable_dtrace+set}" = set; then
2812 enableval=$enable_dtrace;
2816 cat >>confdefs.h <<\_ACEOF
2817 #define ENABLE_DTRACE 1
2820 for ac_prog in dtrace
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_DTRACE+set}" = set; then
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$DTRACE"; then
2830 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_DTRACE="$ac_prog"
2840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 DTRACE=$ac_cv_prog_DTRACE
2850 if test -n "$DTRACE"; then
2851 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2852 $as_echo "$DTRACE" >&6; }
2854 { $as_echo "$as_me:$LINENO: result: no" >&5
2855 $as_echo "no" >&6; }
2859 test -n "$DTRACE" && break
2862 if test -z "$DTRACE"; then
2863 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2864 $as_echo "$as_me: error: dtrace not found" >&2;}
2865 { (exit 1); exit 1; }; }
2873 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2874 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2875 { (exit 1); exit 1; }; }
2890 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2891 $as_echo_n "checking for block size... " >&6; }
2895 # Check whether --with-blocksize was given.
2896 if test "${with_blocksize+set}" = set; then
2897 withval=$with_blocksize;
2900 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2901 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2902 { (exit 1); exit 1; }; }
2905 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2906 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2907 { (exit 1); exit 1; }; }
2919 case ${blocksize} in
2926 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2927 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2928 { (exit 1); exit 1; }; }
2930 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2931 $as_echo "${blocksize}kB" >&6; }
2934 cat >>confdefs.h <<_ACEOF
2935 #define BLCKSZ ${BLCKSZ}
2940 # Relation segment size
2942 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2943 $as_echo_n "checking for segment size... " >&6; }
2947 # Check whether --with-segsize was given.
2948 if test "${with_segsize+set}" = set; then
2949 withval=$with_segsize;
2952 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2954 { (exit 1); exit 1; }; }
2957 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2958 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2959 { (exit 1); exit 1; }; }
2971 # this expression is set up to avoid unnecessary integer overflow
2972 # blocksize is already guaranteed to be a factor of 1024
2973 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2974 test $? -eq 0 || exit 1
2975 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2976 $as_echo "${segsize}GB" >&6; }
2979 cat >>confdefs.h <<_ACEOF
2980 #define RELSEG_SIZE ${RELSEG_SIZE}
2987 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2988 $as_echo_n "checking for WAL block size... " >&6; }
2992 # Check whether --with-wal-blocksize was given.
2993 if test "${with_wal_blocksize+set}" = set; then
2994 withval=$with_wal_blocksize;
2997 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2998 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2999 { (exit 1); exit 1; }; }
3002 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
3003 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3004 { (exit 1); exit 1; }; }
3007 wal_blocksize=$withval
3016 case ${wal_blocksize} in
3017 1) XLOG_BLCKSZ=1024;;
3018 2) XLOG_BLCKSZ=2048;;
3019 4) XLOG_BLCKSZ=4096;;
3020 8) XLOG_BLCKSZ=8192;;
3021 16) XLOG_BLCKSZ=16384;;
3022 32) XLOG_BLCKSZ=32768;;
3023 64) XLOG_BLCKSZ=65536;;
3024 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3025 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3026 { (exit 1); exit 1; }; }
3028 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3029 $as_echo "${wal_blocksize}kB" >&6; }
3032 cat >>confdefs.h <<_ACEOF
3033 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3040 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3041 $as_echo_n "checking for WAL segment size... " >&6; }
3045 # Check whether --with-wal-segsize was given.
3046 if test "${with_wal_segsize+set}" = set; then
3047 withval=$with_wal_segsize;
3050 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3051 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3052 { (exit 1); exit 1; }; }
3055 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3056 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3057 { (exit 1); exit 1; }; }
3060 wal_segsize=$withval
3069 case ${wal_segsize} in
3077 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3078 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3079 { (exit 1); exit 1; }; }
3081 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3082 $as_echo "${wal_segsize}MB" >&6; }
3085 cat >>confdefs.h <<_ACEOF
3086 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3094 # For historical reasons you can also use --with-CC to specify the C compiler
3095 # to use, although the standard way to do this is to set the CC environment
3100 # Check whether --with-CC was given.
3101 if test "${with_CC+set}" = set; then
3105 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3106 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3107 { (exit 1); exit 1; }; }
3110 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3111 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3112 { (exit 1); exit 1; }; }
3124 aix) pgac_cc_list="gcc xlc";;
3125 irix) pgac_cc_list="cc";; # no gcc
3126 *) pgac_cc_list="gcc cc";;
3130 ac_cpp='$CPP $CPPFLAGS'
3131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 if test -n "$ac_tool_prefix"; then
3135 for ac_prog in $pgac_cc_list
3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$CC" && break
3177 if test -z "$CC"; then
3179 for ac_prog in $pgac_cc_list
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_ac_ct_CC="$ac_prog"
3199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3213 { $as_echo "$as_me:$LINENO: result: no" >&5
3214 $as_echo "no" >&6; }
3218 test -n "$ac_ct_CC" && break
3221 if test "x$ac_ct_CC" = x; then
3224 case $cross_compiling:$ac_tool_warned in
3226 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3235 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3238 See \`config.log' for more details." >&5
3239 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }; }
3243 # Provide some information about the compiler.
3244 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3247 { (ac_try="$ac_compiler --version >&5"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254 (eval "$ac_compiler --version >&5") 2>&5
3256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3258 { (ac_try="$ac_compiler -v >&5"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265 (eval "$ac_compiler -v >&5") 2>&5
3267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }
3269 { (ac_try="$ac_compiler -V >&5"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276 (eval "$ac_compiler -V >&5") 2>&5
3278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3301 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3302 $as_echo_n "checking for C compiler default output file name... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3309 for ac_file in $ac_files
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 if { (ac_try="$ac_link_default"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325 (eval "$ac_link_default") 2>&5
3327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; then
3329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3334 for ac_file in $ac_files ''
3336 test -f "$ac_file" || continue
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3341 # We found the default executable, but exeext='' is most
3345 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 # We set ac_cv_exeext here because the later test for it is not
3350 # safe: cross compilers may not add the suffix if given an `-o'
3351 # argument, so we may need to know it at that point already.
3352 # Even if this section looks crufty: it has the advantage of
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3366 $as_echo "$ac_file" >&6; }
3367 if test -z "$ac_file"; then
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3371 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3374 See \`config.log' for more details." >&5
3375 $as_echo "$as_me: error: C compiler cannot create executables
3376 See \`config.log' for more details." >&2;}
3377 { (exit 77); exit 77; }; }; }
3380 ac_exeext=$ac_cv_exeext
3382 # Check that the compiler produces executables we can run. If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3387 # If not cross compiling, check that we can run a simple program.
3388 if test "$cross_compiling" != yes; then
3389 if { ac_try='./$ac_file'
3390 { (case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395 $as_echo "$ac_try_echo") >&5
3396 (eval "$ac_try") 2>&5
3398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3402 if test "$cross_compiling" = maybe; then
3405 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details." >&5
3410 $as_echo "$as_me: error: cannot run C compiled programs.
3411 If you meant to cross compile, use \`--host'.
3412 See \`config.log' for more details." >&2;}
3413 { (exit 1); exit 1; }; }; }
3417 { $as_echo "$as_me:$LINENO: result: yes" >&5
3418 $as_echo "yes" >&6; }
3420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3421 ac_clean_files=$ac_clean_files_save
3422 # Check that the compiler produces executables we can run. If not, either
3423 # the compiler is broken, or we cross compile.
3424 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3425 $as_echo_n "checking whether we are cross compiling... " >&6; }
3426 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3429 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3430 $as_echo_n "checking for suffix of executables... " >&6; }
3431 if { (ac_try="$ac_link"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438 (eval "$ac_link") 2>&5
3440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; then
3442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3443 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3444 # work properly (i.e., refer to `conftest.exe'), while it won't with
3446 for ac_file in conftest.exe conftest conftest.*; do
3447 test -f "$ac_file" || continue
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3459 See \`config.log' for more details." >&5
3460 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3461 See \`config.log' for more details." >&2;}
3462 { (exit 1); exit 1; }; }; }
3465 rm -f conftest$ac_cv_exeext
3466 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3467 $as_echo "$ac_cv_exeext" >&6; }
3469 rm -f conftest.$ac_ext
3470 EXEEXT=$ac_cv_exeext
3472 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3473 $as_echo_n "checking for suffix of object files... " >&6; }
3474 if test "${ac_cv_objext+set}" = set; then
3475 $as_echo_n "(cached) " >&6
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.o conftest.obj
3493 if { (ac_try="$ac_compile"
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3499 $as_echo "$ac_try_echo") >&5
3500 (eval "$ac_compile") 2>&5
3502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; then
3504 for ac_file in conftest.o conftest.obj conftest.*; do
3505 test -f "$ac_file" || continue;
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3513 $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }; }
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3531 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3534 $as_echo_n "(cached) " >&6
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3584 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3585 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3586 if test $ac_compiler_gnu = yes; then
3591 ac_test_CFLAGS=${CFLAGS+set}
3592 ac_save_CFLAGS=$CFLAGS
3593 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3594 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3595 if test "${ac_cv_prog_cc_g+set}" = set; then
3596 $as_echo_n "(cached) " >&6
3598 ac_save_c_werror_flag=$ac_c_werror_flag
3599 ac_c_werror_flag=yes
3602 cat >conftest.$ac_ext <<_ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3617 rm -f conftest.$ac_objext
3618 if { (ac_try="$ac_compile"
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625 (eval "$ac_compile") 2>conftest.er1
3627 grep -v '^ *+' conftest.er1 >conftest.err
3629 cat conftest.err >&5
3630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } && {
3632 test -z "$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3634 } && test -s conftest.$ac_objext; then
3637 $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3641 cat >conftest.$ac_ext <<_ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664 (eval "$ac_compile") 2>conftest.er1
3666 grep -v '^ *+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } && {
3671 test -z "$ac_c_werror_flag" ||
3672 test ! -s conftest.err
3673 } && test -s conftest.$ac_objext; then
3676 $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3716 $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 ac_c_werror_flag=$ac_save_c_werror_flag
3731 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3732 $as_echo "$ac_cv_prog_cc_g" >&6; }
3733 if test "$ac_test_CFLAGS" = set; then
3734 CFLAGS=$ac_save_CFLAGS
3735 elif test $ac_cv_prog_cc_g = yes; then
3736 if test "$GCC" = yes; then
3742 if test "$GCC" = yes; then
3748 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3749 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3750 if test "${ac_cv_prog_cc_c89+set}" = set; then
3751 $as_echo_n "(cached) " >&6
3753 ac_cv_prog_cc_c89=no
3755 cat >conftest.$ac_ext <<_ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3763 #include <sys/types.h>
3764 #include <sys/stat.h>
3765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3766 struct buf { int x; };
3767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3768 static char *e (p, i)
3774 static char *f (char * (*g) (char **, int), char **p, ...)
3779 s = g (p, va_arg (v,int));
3784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3785 function prototypes and stuff, but not '\xHH' hex character constants.
3786 These don't provoke an error unfortunately, instead are silently treated
3787 as 'x'. The following induces an error, until -std is added to get
3788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3789 array size at least. It's necessary to write '\x00'==0 to get something
3790 that's true only with -std. */
3791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3794 inside strings and character constants. */
3796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3798 int test (int i, double x);
3799 struct s1 {int (*f) (int a);};
3800 struct s2 {int (*f) (double a);};
3801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3807 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3813 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3815 CC="$ac_save_CC $ac_arg"
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3834 ac_cv_prog_cc_c89=$ac_arg
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3842 rm -f core conftest.err conftest.$ac_objext
3843 test "x$ac_cv_prog_cc_c89" != "xno" && break
3845 rm -f conftest.$ac_ext
3850 case "x$ac_cv_prog_cc_c89" in
3852 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3853 $as_echo "none needed" >&6; } ;;
3855 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3856 $as_echo "unsupported" >&6; } ;;
3858 CC="$CC $ac_cv_prog_cc_c89"
3859 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3872 # but has idiosyncrasies of its own. We assume icc will define
3873 # __INTEL_COMPILER regardless of CFLAGS.
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3885 #ifndef __INTEL_COMPILER
3892 rm -f conftest.$ac_objext
3893 if { (ac_try="$ac_compile"
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3899 $as_echo "$ac_try_echo") >&5
3900 (eval "$ac_compile") 2>conftest.er1
3902 grep -v '^ *+' conftest.er1 >conftest.err
3904 cat conftest.err >&5
3905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } && {
3907 test -z "$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3909 } && test -s conftest.$ac_objext; then
3912 $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 # Check if it's Sun Studio compiler. We assume that
3921 # __SUNPRO_C will be defined for Sun Studio compilers
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3946 $as_echo "$ac_try_echo") >&5
3947 (eval "$ac_compile") 2>conftest.er1
3949 grep -v '^ *+' conftest.er1 >conftest.err
3951 cat conftest.err >&5
3952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && {
3954 test -z "$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest.$ac_objext; then
3959 $as_echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 . "$srcdir/src/template/$template" || exit
3976 # CFLAGS are selected so:
3977 # If the user specifies something in the environment, that is used.
3978 # else: If the template file set something, that is used.
3979 # else: If coverage was enabled, don't set anything.
3980 # else: If the compiler is GCC, then we use -O2.
3981 # else: If the compiler is something else, then we use -O, unless debugging.
3983 if test "$ac_env_CFLAGS_set" = set; then
3984 CFLAGS=$ac_env_CFLAGS_value
3985 elif test "${CFLAGS+set}" = set; then
3986 : # (keep what template set)
3987 elif test "$enable_coverage" = yes; then
3988 : # no optimization by default
3989 elif test "$GCC" = yes; then
3992 # if the user selected debug mode, don't use -O
3993 if test "$enable_debug" != yes; then
3998 # Some versions of GCC support some additional useful warning flags.
3999 # Check whether they are supported, and add them to CFLAGS if so.
4000 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4001 # but has its own. Also check other compiler-specific flags here.
4003 if test "$GCC" = yes -a "$ICC" = no; then
4004 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4005 # These work in some but not all gcc versions
4006 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
4007 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4008 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
4009 $as_echo_n "(cached) " >&6
4011 pgac_save_CFLAGS=$CFLAGS
4012 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4013 ac_save_c_werror_flag=$ac_c_werror_flag
4014 ac_c_werror_flag=yes
4015 cat >conftest.$ac_ext <<_ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4030 rm -f conftest.$ac_objext
4031 if { (ac_try="$ac_compile"
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4037 $as_echo "$ac_try_echo") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } && {
4045 test -z "$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4047 } && test -s conftest.$ac_objext; then
4048 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4050 $as_echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4058 CFLAGS="$pgac_save_CFLAGS"
4060 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4061 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4062 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4063 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4066 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4067 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4068 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4069 $as_echo_n "(cached) " >&6
4071 pgac_save_CFLAGS=$CFLAGS
4072 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4090 rm -f conftest.$ac_objext
4091 if { (ac_try="$ac_compile"
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098 (eval "$ac_compile") 2>conftest.er1
4100 grep -v '^ *+' conftest.er1 >conftest.err
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } && {
4105 test -z "$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4107 } && test -s conftest.$ac_objext; then
4108 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4110 $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 pgac_cv_prog_cc_cflags__Wendif_labels=no
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="$pgac_save_CFLAGS"
4120 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4121 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4122 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4123 CFLAGS="$CFLAGS -Wendif-labels"
4126 # This was included in -Wall/-Wformat in older GCC versions
4127 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4128 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4129 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4130 $as_echo_n "(cached) " >&6
4132 pgac_save_CFLAGS=$CFLAGS
4133 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4134 ac_save_c_werror_flag=$ac_c_werror_flag
4135 ac_c_werror_flag=yes
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4151 rm -f conftest.$ac_objext
4152 if { (ac_try="$ac_compile"
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4158 $as_echo "$ac_try_echo") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } && {
4166 test -z "$ac_c_werror_flag" ||
4167 test ! -s conftest.err
4168 } && test -s conftest.$ac_objext; then
4169 pgac_cv_prog_cc_cflags__Wformat_security=yes
4171 $as_echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 pgac_cv_prog_cc_cflags__Wformat_security=no
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4179 CFLAGS="$pgac_save_CFLAGS"
4181 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4182 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4183 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4184 CFLAGS="$CFLAGS -Wformat-security"
4187 # Disable strict-aliasing rules; needed for gcc 3.3+
4188 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4189 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4190 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4191 $as_echo_n "(cached) " >&6
4193 pgac_save_CFLAGS=$CFLAGS
4194 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4195 ac_save_c_werror_flag=$ac_c_werror_flag
4196 ac_c_werror_flag=yes
4197 cat >conftest.$ac_ext <<_ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4219 $as_echo "$ac_try_echo") >&5
4220 (eval "$ac_compile") 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && {
4227 test -z "$ac_c_werror_flag" ||
4228 test ! -s conftest.err
4229 } && test -s conftest.$ac_objext; then
4230 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4232 $as_echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4235 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 ac_c_werror_flag=$ac_save_c_werror_flag
4240 CFLAGS="$pgac_save_CFLAGS"
4242 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4243 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4244 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4245 CFLAGS="$CFLAGS -fno-strict-aliasing"
4248 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4249 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4250 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4251 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4252 $as_echo_n "(cached) " >&6
4254 pgac_save_CFLAGS=$CFLAGS
4255 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4256 ac_save_c_werror_flag=$ac_c_werror_flag
4257 ac_c_werror_flag=yes
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4280 $as_echo "$ac_try_echo") >&5
4281 (eval "$ac_compile") 2>conftest.er1
4283 grep -v '^ *+' conftest.er1 >conftest.err
4285 cat conftest.err >&5
4286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && {
4288 test -z "$ac_c_werror_flag" ||
4289 test ! -s conftest.err
4290 } && test -s conftest.$ac_objext; then
4291 pgac_cv_prog_cc_cflags__fwrapv=yes
4293 $as_echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 pgac_cv_prog_cc_cflags__fwrapv=no
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 ac_c_werror_flag=$ac_save_c_werror_flag
4301 CFLAGS="$pgac_save_CFLAGS"
4303 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4304 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4305 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4306 CFLAGS="$CFLAGS -fwrapv"
4309 elif test "$ICC" = yes; then
4310 # Intel's compiler has a bug/misoptimization in checking for
4311 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4312 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4313 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4314 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4315 $as_echo_n "(cached) " >&6
4317 pgac_save_CFLAGS=$CFLAGS
4318 CFLAGS="$pgac_save_CFLAGS -mp1"
4319 ac_save_c_werror_flag=$ac_c_werror_flag
4320 ac_c_werror_flag=yes
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4336 rm -f conftest.$ac_objext
4337 if { (ac_try="$ac_compile"
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4343 $as_echo "$ac_try_echo") >&5
4344 (eval "$ac_compile") 2>conftest.er1
4346 grep -v '^ *+' conftest.er1 >conftest.err
4348 cat conftest.err >&5
4349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } && {
4351 test -z "$ac_c_werror_flag" ||
4352 test ! -s conftest.err
4353 } && test -s conftest.$ac_objext; then
4354 pgac_cv_prog_cc_cflags__mp1=yes
4356 $as_echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 pgac_cv_prog_cc_cflags__mp1=no
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 ac_c_werror_flag=$ac_save_c_werror_flag
4364 CFLAGS="$pgac_save_CFLAGS"
4366 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4367 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4368 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4369 CFLAGS="$CFLAGS -mp1"
4372 # Make sure strict aliasing is off (though this is said to be the default)
4373 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4374 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4375 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4376 $as_echo_n "(cached) " >&6
4378 pgac_save_CFLAGS=$CFLAGS
4379 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4380 ac_save_c_werror_flag=$ac_c_werror_flag
4381 ac_c_werror_flag=yes
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4397 rm -f conftest.$ac_objext
4398 if { (ac_try="$ac_compile"
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4404 $as_echo "$ac_try_echo") >&5
4405 (eval "$ac_compile") 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } && {
4412 test -z "$ac_c_werror_flag" ||
4413 test ! -s conftest.err
4414 } && test -s conftest.$ac_objext; then
4415 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4417 $as_echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4420 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 ac_c_werror_flag=$ac_save_c_werror_flag
4425 CFLAGS="$pgac_save_CFLAGS"
4427 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4428 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4429 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4430 CFLAGS="$CFLAGS -fno-strict-aliasing"
4433 elif test "$PORTNAME" = "aix"; then
4434 # AIX's xlc has to have strict aliasing turned off too
4435 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4436 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4437 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4438 $as_echo_n "(cached) " >&6
4440 pgac_save_CFLAGS=$CFLAGS
4441 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4442 ac_save_c_werror_flag=$ac_c_werror_flag
4443 ac_c_werror_flag=yes
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4466 $as_echo "$ac_try_echo") >&5
4467 (eval "$ac_compile") 2>conftest.er1
4469 grep -v '^ *+' conftest.er1 >conftest.err
4471 cat conftest.err >&5
4472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && {
4474 test -z "$ac_c_werror_flag" ||
4475 test ! -s conftest.err
4476 } && test -s conftest.$ac_objext; then
4477 pgac_cv_prog_cc_cflags__qnoansialias=yes
4479 $as_echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 pgac_cv_prog_cc_cflags__qnoansialias=no
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 ac_c_werror_flag=$ac_save_c_werror_flag
4487 CFLAGS="$pgac_save_CFLAGS"
4489 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4490 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4491 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4492 CFLAGS="$CFLAGS -qnoansialias"
4495 elif test "$PORTNAME" = "hpux"; then
4496 # On some versions of HP-UX, libm functions do not set errno by default.
4497 # Fix that by using +Olibmerrno if the compiler recognizes it.
4498 { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4499 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4500 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4501 $as_echo_n "(cached) " >&6
4503 pgac_save_CFLAGS=$CFLAGS
4504 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4505 ac_save_c_werror_flag=$ac_c_werror_flag
4506 ac_c_werror_flag=yes
4507 cat >conftest.$ac_ext <<_ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4522 rm -f conftest.$ac_objext
4523 if { (ac_try="$ac_compile"
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4529 $as_echo "$ac_try_echo") >&5
4530 (eval "$ac_compile") 2>conftest.er1
4532 grep -v '^ *+' conftest.er1 >conftest.err
4534 cat conftest.err >&5
4535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } && {
4537 test -z "$ac_c_werror_flag" ||
4538 test ! -s conftest.err
4539 } && test -s conftest.$ac_objext; then
4540 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4542 $as_echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4545 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 ac_c_werror_flag=$ac_save_c_werror_flag
4550 CFLAGS="$pgac_save_CFLAGS"
4552 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4553 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4554 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4555 CFLAGS="$CFLAGS +Olibmerrno"
4560 # supply -g if --enable-debug
4561 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4565 # enable code coverage if --enable-coverage
4566 if test "$enable_coverage" = yes; then
4567 if test "$GCC" = yes; then
4568 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4570 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4571 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4572 { (exit 1); exit 1; }; }
4576 # enable profiling if --enable-profiling
4577 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4578 if test "$GCC" = yes; then
4580 cat >>confdefs.h <<\_ACEOF
4581 #define PROFILE_PID_DIR 1
4584 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4586 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4587 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4588 { (exit 1); exit 1; }; }
4592 # We already have this in Makefile.win32, but configure needs it too
4593 if test "$PORTNAME" = "win32"; then
4594 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4597 # Check if the compiler still works with the template settings
4598 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4599 $as_echo_n "checking whether the C compiler still works... " >&6; }
4600 cat >conftest.$ac_ext <<_ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4615 rm -f conftest.$ac_objext conftest$ac_exeext
4616 if { (ac_try="$ac_link"
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4622 $as_echo "$ac_try_echo") >&5
4623 (eval "$ac_link") 2>conftest.er1
4625 grep -v '^ *+' conftest.er1 >conftest.err
4627 cat conftest.err >&5
4628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } && {
4630 test -z "$ac_c_werror_flag" ||
4631 test ! -s conftest.err
4632 } && test -s conftest$ac_exeext && {
4633 test "$cross_compiling" = yes ||
4634 $as_test_x conftest$ac_exeext
4636 { $as_echo "$as_me:$LINENO: result: yes" >&5
4637 $as_echo "yes" >&6; }
4639 $as_echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 { $as_echo "$as_me:$LINENO: result: no" >&5
4643 $as_echo "no" >&6; }
4644 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4645 $as_echo "$as_me: error: cannot proceed" >&2;}
4646 { (exit 1); exit 1; }; }
4649 rm -rf conftest.dSYM
4650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4651 conftest$ac_exeext conftest.$ac_ext
4653 # Defend against gcc -ffast-math
4654 if test "$GCC" = yes; then
4655 cat >conftest.$ac_ext <<_ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4665 #ifdef __FAST_MATH__
4672 rm -f conftest.$ac_objext
4673 if { (ac_try="$ac_compile"
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4679 $as_echo "$ac_try_echo") >&5
4680 (eval "$ac_compile") 2>conftest.er1
4682 grep -v '^ *+' conftest.er1 >conftest.err
4684 cat conftest.err >&5
4685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } && {
4687 test -z "$ac_c_werror_flag" ||
4688 test ! -s conftest.err
4689 } && test -s conftest.$ac_objext; then
4692 $as_echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4695 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4696 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4697 { (exit 1); exit 1; }; }
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 ac_cpp='$CPP $CPPFLAGS'
4705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4708 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4709 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4710 # On Suns, sometimes $CPP names a directory.
4711 if test -n "$CPP" && test -d "$CPP"; then
4714 if test -z "$CPP"; then
4715 if test "${ac_cv_prog_CPP+set}" = set; then
4716 $as_echo_n "(cached) " >&6
4718 # Double quotes because CPP needs to be expanded
4719 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4722 for ac_c_preproc_warn_flag in '' yes
4724 # Use a header file that comes with gcc, so configuring glibc
4725 # with a fresh cross-compiler works.
4726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4727 # <limits.h> exists even on freestanding compilers.
4728 # On the NeXT, cc -E runs the code through the compiler's parser,
4729 # not just through cpp. "Syntax error" is here to catch this case.
4730 cat >conftest.$ac_ext <<_ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4737 # include <limits.h>
4739 # include <assert.h>
4743 if { (ac_try="$ac_cpp conftest.$ac_ext"
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4752 grep -v '^ *+' conftest.er1 >conftest.err
4754 cat conftest.err >&5
4755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } >/dev/null && {
4757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4762 $as_echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 # Broken: fails on valid input.
4769 rm -f conftest.err conftest.$ac_ext
4771 # OK, works on sane cases. Now check whether nonexistent headers
4772 # can be detected and how.
4773 cat >conftest.$ac_ext <<_ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 #include <ac_nonexistent.h>
4781 if { (ac_try="$ac_cpp conftest.$ac_ext"
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4787 $as_echo "$ac_try_echo") >&5
4788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4790 grep -v '^ *+' conftest.er1 >conftest.err
4792 cat conftest.err >&5
4793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } >/dev/null && {
4795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4796 test ! -s conftest.err
4798 # Broken: success on invalid input.
4801 $as_echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4804 # Passes both tests.
4809 rm -f conftest.err conftest.$ac_ext
4812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4813 rm -f conftest.err conftest.$ac_ext
4814 if $ac_preproc_ok; then
4826 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4827 $as_echo "$CPP" >&6; }
4829 for ac_c_preproc_warn_flag in '' yes
4831 # Use a header file that comes with gcc, so configuring glibc
4832 # with a fresh cross-compiler works.
4833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4834 # <limits.h> exists even on freestanding compilers.
4835 # On the NeXT, cc -E runs the code through the compiler's parser,
4836 # not just through cpp. "Syntax error" is here to catch this case.
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 # include <limits.h>
4846 # include <assert.h>
4850 if { (ac_try="$ac_cpp conftest.$ac_ext"
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4859 grep -v '^ *+' conftest.er1 >conftest.err
4861 cat conftest.err >&5
4862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } >/dev/null && {
4864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4869 $as_echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 # Broken: fails on valid input.
4876 rm -f conftest.err conftest.$ac_ext
4878 # OK, works on sane cases. Now check whether nonexistent headers
4879 # can be detected and how.
4880 cat >conftest.$ac_ext <<_ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 #include <ac_nonexistent.h>
4888 if { (ac_try="$ac_cpp conftest.$ac_ext"
4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891 *) ac_try_echo=$ac_try;;
4893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4894 $as_echo "$ac_try_echo") >&5
4895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4897 grep -v '^ *+' conftest.er1 >conftest.err
4899 cat conftest.err >&5
4900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } >/dev/null && {
4902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4903 test ! -s conftest.err
4905 # Broken: success on invalid input.
4908 $as_echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 # Passes both tests.
4916 rm -f conftest.err conftest.$ac_ext
4919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4920 rm -f conftest.err conftest.$ac_ext
4921 if $ac_preproc_ok; then
4924 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4927 See \`config.log' for more details." >&5
4928 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4929 See \`config.log' for more details." >&2;}
4930 { (exit 1); exit 1; }; }; }
4934 ac_cpp='$CPP $CPPFLAGS'
4935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943 # Set up TAS assembly code if needed; the template file has now had its
4944 # chance to request this.
4946 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4949 if test "$need_tas" = yes ; then
4958 # Automatic dependency tracking
4962 # Check whether --enable-depend was given.
4963 if test "${enable_depend+set}" = set; then
4964 enableval=$enable_depend;
4973 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4974 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4975 { (exit 1); exit 1; }; }
4989 # Enable assert checks
4993 # Check whether --enable-cassert was given.
4994 if test "${enable_cassert+set}" = set; then
4995 enableval=$enable_cassert;
4999 cat >>confdefs.h <<\_ACEOF
5000 #define USE_ASSERT_CHECKING 1
5008 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5009 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5010 { (exit 1); exit 1; }; }
5023 # Include directories
5026 IFS="${IFS}${PATH_SEPARATOR}"
5027 # SRCH_INC comes from the template file
5028 for dir in $with_includes $SRCH_INC; do
5029 if test -d "$dir"; then
5030 INCLUDES="$INCLUDES -I$dir"
5032 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5033 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5041 # Library directories
5044 IFS="${IFS}${PATH_SEPARATOR}"
5045 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5046 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5047 if test -d "$dir"; then
5048 LIBDIRS="$LIBDIRS -L$dir"
5050 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5051 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5057 # Enable thread-safe client libraries
5059 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5060 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5063 # Check whether --enable-thread-safety was given.
5064 if test "${enable_thread_safety+set}" = set; then
5065 enableval=$enable_thread_safety;
5074 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5075 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5076 { (exit 1); exit 1; }; }
5081 enable_thread_safety=yes
5086 if test "$enable_thread_safety" = yes; then
5088 cat >>confdefs.h <<\_ACEOF
5089 #define ENABLE_THREAD_SAFETY 1
5093 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5094 $as_echo "$enable_thread_safety" >&6; }
5098 # Optionally build Tcl modules (PL/Tcl)
5100 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5101 $as_echo_n "checking whether to build with Tcl... " >&6; }
5105 # Check whether --with-tcl was given.
5106 if test "${with_tcl+set}" = set; then
5116 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5117 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5118 { (exit 1); exit 1; }; }
5128 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5129 $as_echo "$with_tcl" >&6; }
5132 # We see if the path to the Tcl/Tk configuration scripts is specified.
5133 # This will override the use of tclsh to find the paths to search.
5138 # Check whether --with-tclconfig was given.
5139 if test "${with_tclconfig+set}" = set; then
5140 withval=$with_tclconfig;
5143 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5144 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5145 { (exit 1); exit 1; }; }
5148 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5149 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5150 { (exit 1); exit 1; }; }
5162 # Optionally build Perl modules (PL/Perl)
5164 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5165 $as_echo_n "checking whether to build Perl modules... " >&6; }
5169 # Check whether --with-perl was given.
5170 if test "${with_perl+set}" = set; then
5180 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5181 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5182 { (exit 1); exit 1; }; }
5192 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5193 $as_echo "$with_perl" >&6; }
5197 # Optionally build Python modules (PL/Python)
5199 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5200 $as_echo_n "checking whether to build Python modules... " >&6; }
5204 # Check whether --with-python was given.
5205 if test "${with_python+set}" = set; then
5206 withval=$with_python;
5215 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5216 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5217 { (exit 1); exit 1; }; }
5227 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5228 $as_echo "$with_python" >&6; }
5234 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5235 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5239 # Check whether --with-gssapi was given.
5240 if test "${with_gssapi+set}" = set; then
5241 withval=$with_gssapi;
5246 cat >>confdefs.h <<\_ACEOF
5247 #define ENABLE_GSS 1
5250 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5257 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5258 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5259 { (exit 1); exit 1; }; }
5269 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5270 $as_echo "$with_gssapi" >&6; }
5276 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5277 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5281 # Check whether --with-krb5 was given.
5282 if test "${with_krb5+set}" = set; then
5288 cat >>confdefs.h <<\_ACEOF
5292 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5299 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5300 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5301 { (exit 1); exit 1; }; }
5311 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5312 $as_echo "$with_krb5" >&6; }
5320 # Kerberos configuration parameters
5325 # Check whether --with-krb-srvnam was given.
5326 if test "${with_krb_srvnam+set}" = set; then
5327 withval=$with_krb_srvnam;
5330 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5331 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5332 { (exit 1); exit 1; }; }
5335 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5336 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5337 { (exit 1); exit 1; }; }
5345 with_krb_srvnam="postgres"
5350 cat >>confdefs.h <<_ACEOF
5351 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5359 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5360 $as_echo_n "checking whether to build with PAM support... " >&6; }
5364 # Check whether --with-pam was given.
5365 if test "${with_pam+set}" = set; then
5370 cat >>confdefs.h <<\_ACEOF
5379 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5380 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5381 { (exit 1); exit 1; }; }
5391 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5392 $as_echo "$with_pam" >&6; }
5399 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5400 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5404 # Check whether --with-ldap was given.
5405 if test "${with_ldap+set}" = set; then
5410 cat >>confdefs.h <<\_ACEOF
5419 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5420 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5421 { (exit 1); exit 1; }; }
5431 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5432 $as_echo "$with_ldap" >&6; }
5439 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5440 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5444 # Check whether --with-bonjour was given.
5445 if test "${with_bonjour+set}" = set; then
5446 withval=$with_bonjour;
5450 cat >>confdefs.h <<\_ACEOF
5451 #define USE_BONJOUR 1
5459 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5460 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5461 { (exit 1); exit 1; }; }
5471 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5472 $as_echo "$with_bonjour" >&6; }
5479 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5480 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5484 # Check whether --with-openssl was given.
5485 if test "${with_openssl+set}" = set; then
5486 withval=$with_openssl;
5490 cat >>confdefs.h <<\_ACEOF
5499 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5500 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5501 { (exit 1); exit 1; }; }
5511 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5512 $as_echo "$with_openssl" >&6; }
5518 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5519 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5523 # Check whether --with-selinux was given.
5524 if test "${with_selinux+set}" = set; then
5525 withval=$with_selinux;
5534 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5535 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5536 { (exit 1); exit 1; }; }
5547 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5548 $as_echo "$with_selinux" >&6; }
5556 # Check whether --with-readline was given.
5557 if test "${with_readline+set}" = set; then
5558 withval=$with_readline;
5567 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5568 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5569 { (exit 1); exit 1; }; }
5579 # readline on MinGW has problems with backslashes in psql and other bugs.
5580 # This is particularly a problem with non-US code pages.
5581 # Therefore disable its use until we understand the cause. 2004-07-20
5582 if test "$PORTNAME" = "win32"; then
5583 if test "$with_readline" = yes; then
5584 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5585 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5597 # Check whether --with-libedit-preferred was given.
5598 if test "${with_libedit_preferred+set}" = set; then
5599 withval=$with_libedit_preferred;
5608 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5609 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5610 { (exit 1); exit 1; }; }
5615 with_libedit_preferred=no
5628 # Check whether --with-ossp-uuid was given.
5629 if test "${with_ossp_uuid+set}" = set; then
5630 withval=$with_ossp_uuid;
5639 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5640 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5641 { (exit 1); exit 1; }; }
5660 # Check whether --with-libxml was given.
5661 if test "${with_libxml+set}" = set; then
5662 withval=$with_libxml;
5666 cat >>confdefs.h <<\_ACEOF
5667 #define USE_LIBXML 1
5675 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5676 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5677 { (exit 1); exit 1; }; }
5688 if test "$with_libxml" = yes ; then
5689 for ac_prog in xml2-config
5691 # Extract the first word of "$ac_prog", so it can be a program name with args.
5692 set dummy $ac_prog; ac_word=$2
5693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5696 $as_echo_n "(cached) " >&6
5698 if test -n "$XML2_CONFIG"; then
5699 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_prog_XML2_CONFIG="$ac_prog"
5709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5719 if test -n "$XML2_CONFIG"; then
5720 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5721 $as_echo "$XML2_CONFIG" >&6; }
5723 { $as_echo "$as_me:$LINENO: result: no" >&5
5724 $as_echo "no" >&6; }
5728 test -n "$XML2_CONFIG" && break
5731 if test -n "$XML2_CONFIG"; then
5732 for pgac_option in `$XML2_CONFIG --cflags`; do
5733 case $pgac_option in
5734 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5737 for pgac_option in `$XML2_CONFIG --libs`; do
5738 case $pgac_option in
5739 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5753 # Check whether --with-libxslt was given.
5754 if test "${with_libxslt+set}" = set; then
5755 withval=$with_libxslt;
5759 cat >>confdefs.h <<\_ACEOF
5760 #define USE_LIBXSLT 1
5768 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5769 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5770 { (exit 1); exit 1; }; }
5790 # Check whether --with-system-tzdata was given.
5791 if test "${with_system_tzdata+set}" = set; then
5792 withval=$with_system_tzdata;
5795 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5796 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5797 { (exit 1); exit 1; }; }
5800 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5801 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5802 { (exit 1); exit 1; }; }
5820 # Check whether --with-zlib was given.
5821 if test "${with_zlib+set}" = set; then
5831 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5832 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5833 { (exit 1); exit 1; }; }
5849 # Assume system is ELF if it predefines __ELF__ as 1,
5850 # otherwise believe host_os based default.
5852 freebsd1*|freebsd2*) elf=no;;
5853 freebsd3*|freebsd4*) elf=yes;;
5857 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5858 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5859 if test "${ac_cv_path_GREP+set}" = set; then
5860 $as_echo_n "(cached) " >&6
5862 if test -z "$GREP"; then
5863 ac_path_GREP_found=false
5864 # Loop through the user's path and test for each of PROGNAME-LIST
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5869 test -z "$as_dir" && as_dir=.
5870 for ac_prog in grep ggrep; do
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5873 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5874 # Check for GNU ac_path_GREP and select it if it is found.
5875 # Check for GNU $ac_path_GREP
5876 case `"$ac_path_GREP" --version 2>&1` in
5878 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5881 $as_echo_n 0123456789 >"conftest.in"
5884 cat "conftest.in" "conftest.in" >"conftest.tmp"
5885 mv "conftest.tmp" "conftest.in"
5886 cp "conftest.in" "conftest.nl"
5887 $as_echo 'GREP' >> "conftest.nl"
5888 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5890 ac_count=`expr $ac_count + 1`
5891 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5892 # Best one so far, save it but keep looking for a better one
5893 ac_cv_path_GREP="$ac_path_GREP"
5894 ac_path_GREP_max=$ac_count
5896 # 10*(2^10) chars as input seems more than enough
5897 test $ac_count -gt 10 && break
5899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5902 $ac_path_GREP_found && break 3
5907 if test -z "$ac_cv_path_GREP"; then
5908 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5909 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5910 { (exit 1); exit 1; }; }
5913 ac_cv_path_GREP=$GREP
5917 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5918 $as_echo "$ac_cv_path_GREP" >&6; }
5919 GREP="$ac_cv_path_GREP"
5922 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5923 $as_echo_n "checking for egrep... " >&6; }
5924 if test "${ac_cv_path_EGREP+set}" = set; then
5925 $as_echo_n "(cached) " >&6
5927 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5928 then ac_cv_path_EGREP="$GREP -E"
5930 if test -z "$EGREP"; then
5931 ac_path_EGREP_found=false
5932 # Loop through the user's path and test for each of PROGNAME-LIST
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5937 test -z "$as_dir" && as_dir=.
5938 for ac_prog in egrep; do
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5941 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5942 # Check for GNU ac_path_EGREP and select it if it is found.
5943 # Check for GNU $ac_path_EGREP
5944 case `"$ac_path_EGREP" --version 2>&1` in
5946 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5949 $as_echo_n 0123456789 >"conftest.in"
5952 cat "conftest.in" "conftest.in" >"conftest.tmp"
5953 mv "conftest.tmp" "conftest.in"
5954 cp "conftest.in" "conftest.nl"
5955 $as_echo 'EGREP' >> "conftest.nl"
5956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5958 ac_count=`expr $ac_count + 1`
5959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5960 # Best one so far, save it but keep looking for a better one
5961 ac_cv_path_EGREP="$ac_path_EGREP"
5962 ac_path_EGREP_max=$ac_count
5964 # 10*(2^10) chars as input seems more than enough
5965 test $ac_count -gt 10 && break
5967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5970 $ac_path_EGREP_found && break 3
5975 if test -z "$ac_cv_path_EGREP"; then
5976 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5977 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5978 { (exit 1); exit 1; }; }
5981 ac_cv_path_EGREP=$EGREP
5986 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5987 $as_echo "$ac_cv_path_EGREP" >&6; }
5988 EGREP="$ac_cv_path_EGREP"
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
6002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6003 $EGREP "yes" >/dev/null 2>&1; then
6006 if test "X$elf" = "Xyes" ; then
6020 CPPFLAGS="$CPPFLAGS $INCLUDES"
6021 LDFLAGS="$LDFLAGS $LIBDIRS"
6027 # Check whether --with-gnu-ld was given.
6028 if test "${with_gnu_ld+set}" = set; then
6029 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6035 if test "$GCC" = yes; then
6036 # Check if gcc -print-prog-name=ld gives a path.
6037 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6038 $as_echo_n "checking for ld used by GCC... " >&6; }
6041 # gcc leaves a trailing carriage return which upsets mingw
6042 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6044 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6047 # Accept absolute paths.
6048 [\\/]* | [A-Za-z]:[\\/]*)
6049 re_direlt='/[^/][^/]*/\.\./'
6050 # Canonicalize the path of ld
6051 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6052 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6053 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6055 test -z "$LD" && LD="$ac_prog"
6058 # If it fails, then pretend we aren't using GCC.
6062 # If it is relative, then search for the first ld in PATH.
6066 elif test "$with_gnu_ld" = yes; then
6067 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6068 $as_echo_n "checking for GNU ld... " >&6; }
6070 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6071 $as_echo_n "checking for non-GNU ld... " >&6; }
6073 if test "${ac_cv_path_LD+set}" = set; then
6074 $as_echo_n "(cached) " >&6
6076 if test -z "$LD"; then
6077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6078 for ac_dir in $PATH; do
6079 test -z "$ac_dir" && ac_dir=.
6080 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6081 ac_cv_path_LD="$ac_dir/$ac_prog"
6082 # Check to see if the program is GNU ld. I'd rather use --version,
6083 # but apparently some GNU ld's only accept -v.
6084 # Break only if it was the GNU/non-GNU ld that we prefer.
6085 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6086 test "$with_gnu_ld" != no && break
6088 test "$with_gnu_ld" != yes && break
6094 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6099 if test -n "$LD"; then
6100 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6101 $as_echo "$LD" >&6; }
6103 { $as_echo "$as_me:$LINENO: result: no" >&5
6104 $as_echo "no" >&6; }
6106 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6107 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6108 { (exit 1); exit 1; }; }
6109 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6110 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6111 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6112 $as_echo_n "(cached) " >&6
6114 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6115 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6116 ac_cv_prog_gnu_ld=yes
6118 ac_cv_prog_gnu_ld=no
6121 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6122 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6123 with_gnu_ld=$ac_cv_prog_gnu_ld
6128 case $host_os in sysv5*)
6129 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6130 $as_echo_n "checking whether ld -R works... " >&6; }
6131 if test "${pgac_cv_prog_ld_R+set}" = set; then
6132 $as_echo_n "(cached) " >&6
6135 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6136 cat >conftest.$ac_ext <<_ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6151 rm -f conftest.$ac_objext conftest$ac_exeext
6152 if { (ac_try="$ac_link"
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6158 $as_echo "$ac_try_echo") >&5
6159 (eval "$ac_link") 2>conftest.er1
6161 grep -v '^ *+' conftest.er1 >conftest.err
6163 cat conftest.err >&5
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest$ac_exeext && {
6169 test "$cross_compiling" = yes ||
6170 $as_test_x conftest$ac_exeext
6172 pgac_cv_prog_ld_R=yes
6174 $as_echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6177 pgac_cv_prog_ld_R=no
6180 rm -rf conftest.dSYM
6181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6182 conftest$ac_exeext conftest.$ac_ext
6183 LDFLAGS=$pgac_save_LDFLAGS
6186 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6187 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6188 ld_R_works=$pgac_cv_prog_ld_R
6191 if test -n "$ac_tool_prefix"; then
6192 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6194 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if test "${ac_cv_prog_RANLIB+set}" = set; then
6197 $as_echo_n "(cached) " >&6
6199 if test -n "$RANLIB"; then
6200 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 RANLIB=$ac_cv_prog_RANLIB
6220 if test -n "$RANLIB"; then
6221 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6222 $as_echo "$RANLIB" >&6; }
6224 { $as_echo "$as_me:$LINENO: result: no" >&5
6225 $as_echo "no" >&6; }
6230 if test -z "$ac_cv_prog_RANLIB"; then
6231 ac_ct_RANLIB=$RANLIB
6232 # Extract the first word of "ranlib", so it can be a program name with args.
6233 set dummy ranlib; ac_word=$2
6234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6237 $as_echo_n "(cached) " >&6
6239 if test -n "$ac_ct_RANLIB"; then
6240 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_ac_ct_RANLIB="ranlib"
6250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6260 if test -n "$ac_ct_RANLIB"; then
6261 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6262 $as_echo "$ac_ct_RANLIB" >&6; }
6264 { $as_echo "$as_me:$LINENO: result: no" >&5
6265 $as_echo "no" >&6; }
6268 if test "x$ac_ct_RANLIB" = x; then
6271 case $cross_compiling:$ac_tool_warned in
6273 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275 ac_tool_warned=yes ;;
6277 RANLIB=$ac_ct_RANLIB
6280 RANLIB="$ac_cv_prog_RANLIB"
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}strip; ac_word=$2
6287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_STRIP+set}" = set; then
6290 $as_echo_n "(cached) " >&6
6292 if test -n "$STRIP"; then
6293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 STRIP=$ac_cv_prog_STRIP
6313 if test -n "$STRIP"; then
6314 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6315 $as_echo "$STRIP" >&6; }
6317 { $as_echo "$as_me:$LINENO: result: no" >&5
6318 $as_echo "no" >&6; }
6323 if test -z "$ac_cv_prog_STRIP"; then
6325 # Extract the first word of "strip", so it can be a program name with args.
6326 set dummy strip; ac_word=$2
6327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6330 $as_echo_n "(cached) " >&6
6332 if test -n "$ac_ct_STRIP"; then
6333 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_ac_ct_STRIP="strip"
6343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6353 if test -n "$ac_ct_STRIP"; then
6354 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6355 $as_echo "$ac_ct_STRIP" >&6; }
6357 { $as_echo "$as_me:$LINENO: result: no" >&5
6358 $as_echo "no" >&6; }
6361 if test "x$ac_ct_STRIP" = x; then
6364 case $cross_compiling:$ac_tool_warned in
6366 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6373 STRIP="$ac_cv_prog_STRIP"
6377 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6378 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6379 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6380 STRIP_STATIC_LIB="$STRIP -x"
6381 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6382 { $as_echo "$as_me:$LINENO: result: yes" >&5
6383 $as_echo "yes" >&6; }
6387 { $as_echo "$as_me:$LINENO: result: no" >&5
6388 $as_echo "no" >&6; }
6393 if test -n "$ac_tool_prefix"; then
6394 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6395 set dummy ${ac_tool_prefix}ar; ac_word=$2
6396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if test "${ac_cv_prog_AR+set}" = set; then
6399 $as_echo_n "(cached) " >&6
6401 if test -n "$AR"; then
6402 ac_cv_prog_AR="$AR" # Let the user override the test.
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_AR="${ac_tool_prefix}ar"
6412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 if test -n "$AR"; then
6423 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6424 $as_echo "$AR" >&6; }
6426 { $as_echo "$as_me:$LINENO: result: no" >&5
6427 $as_echo "no" >&6; }
6432 if test -z "$ac_cv_prog_AR"; then
6434 # Extract the first word of "ar", so it can be a program name with args.
6435 set dummy ar; ac_word=$2
6436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6439 $as_echo_n "(cached) " >&6
6441 if test -n "$ac_ct_AR"; then
6442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_ac_ct_AR="ar"
6452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6462 if test -n "$ac_ct_AR"; then
6463 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6464 $as_echo "$ac_ct_AR" >&6; }
6466 { $as_echo "$as_me:$LINENO: result: no" >&5
6467 $as_echo "no" >&6; }
6470 if test "x$ac_ct_AR" = x; then
6473 case $cross_compiling:$ac_tool_warned in
6475 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6485 if test "$PORTNAME" = "win32"; then
6486 if test -n "$ac_tool_prefix"; then
6487 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6488 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6492 $as_echo_n "(cached) " >&6
6494 if test -n "$DLLTOOL"; then
6495 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 DLLTOOL=$ac_cv_prog_DLLTOOL
6515 if test -n "$DLLTOOL"; then
6516 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6517 $as_echo "$DLLTOOL" >&6; }
6519 { $as_echo "$as_me:$LINENO: result: no" >&5
6520 $as_echo "no" >&6; }
6525 if test -z "$ac_cv_prog_DLLTOOL"; then
6526 ac_ct_DLLTOOL=$DLLTOOL
6527 # Extract the first word of "dlltool", so it can be a program name with args.
6528 set dummy dlltool; ac_word=$2
6529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6532 $as_echo_n "(cached) " >&6
6534 if test -n "$ac_ct_DLLTOOL"; then
6535 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6544 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6545 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6555 if test -n "$ac_ct_DLLTOOL"; then
6556 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6557 $as_echo "$ac_ct_DLLTOOL" >&6; }
6559 { $as_echo "$as_me:$LINENO: result: no" >&5
6560 $as_echo "no" >&6; }
6563 if test "x$ac_ct_DLLTOOL" = x; then
6566 case $cross_compiling:$ac_tool_warned in
6568 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6570 ac_tool_warned=yes ;;
6572 DLLTOOL=$ac_ct_DLLTOOL
6575 DLLTOOL="$ac_cv_prog_DLLTOOL"
6578 if test -n "$ac_tool_prefix"; then
6579 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6580 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6584 $as_echo_n "(cached) " >&6
6586 if test -n "$DLLWRAP"; then
6587 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6597 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 DLLWRAP=$ac_cv_prog_DLLWRAP
6607 if test -n "$DLLWRAP"; then
6608 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6609 $as_echo "$DLLWRAP" >&6; }
6611 { $as_echo "$as_me:$LINENO: result: no" >&5
6612 $as_echo "no" >&6; }
6617 if test -z "$ac_cv_prog_DLLWRAP"; then
6618 ac_ct_DLLWRAP=$DLLWRAP
6619 # Extract the first word of "dllwrap", so it can be a program name with args.
6620 set dummy dllwrap; ac_word=$2
6621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6624 $as_echo_n "(cached) " >&6
6626 if test -n "$ac_ct_DLLWRAP"; then
6627 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6636 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6647 if test -n "$ac_ct_DLLWRAP"; then
6648 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6649 $as_echo "$ac_ct_DLLWRAP" >&6; }
6651 { $as_echo "$as_me:$LINENO: result: no" >&5
6652 $as_echo "no" >&6; }
6655 if test "x$ac_ct_DLLWRAP" = x; then
6658 case $cross_compiling:$ac_tool_warned in
6660 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6662 ac_tool_warned=yes ;;
6664 DLLWRAP=$ac_ct_DLLWRAP
6667 DLLWRAP="$ac_cv_prog_DLLWRAP"
6670 if test -n "$ac_tool_prefix"; then
6671 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6672 set dummy ${ac_tool_prefix}windres; ac_word=$2
6673 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if test "${ac_cv_prog_WINDRES+set}" = set; then
6676 $as_echo_n "(cached) " >&6
6678 if test -n "$WINDRES"; then
6679 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 WINDRES=$ac_cv_prog_WINDRES
6699 if test -n "$WINDRES"; then
6700 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6701 $as_echo "$WINDRES" >&6; }
6703 { $as_echo "$as_me:$LINENO: result: no" >&5
6704 $as_echo "no" >&6; }
6709 if test -z "$ac_cv_prog_WINDRES"; then
6710 ac_ct_WINDRES=$WINDRES
6711 # Extract the first word of "windres", so it can be a program name with args.
6712 set dummy windres; ac_word=$2
6713 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6716 $as_echo_n "(cached) " >&6
6718 if test -n "$ac_ct_WINDRES"; then
6719 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6728 ac_cv_prog_ac_ct_WINDRES="windres"
6729 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6739 if test -n "$ac_ct_WINDRES"; then
6740 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6741 $as_echo "$ac_ct_WINDRES" >&6; }
6743 { $as_echo "$as_me:$LINENO: result: no" >&5
6744 $as_echo "no" >&6; }
6747 if test "x$ac_ct_WINDRES" = x; then
6750 case $cross_compiling:$ac_tool_warned in
6752 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6754 ac_tool_warned=yes ;;
6756 WINDRES=$ac_ct_WINDRES
6759 WINDRES="$ac_cv_prog_WINDRES"
6764 # Extract the first word of "tar", so it can be a program name with args.
6765 set dummy tar; ac_word=$2
6766 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if test "${ac_cv_path_TAR+set}" = set; then
6769 $as_echo_n "(cached) " >&6
6773 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 if test -n "$TAR"; then
6796 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6797 $as_echo "$TAR" >&6; }
6799 { $as_echo "$as_me:$LINENO: result: no" >&5
6800 $as_echo "no" >&6; }
6804 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6805 $as_echo_n "checking whether ln -s works... " >&6; }
6807 if test "$LN_S" = "ln -s"; then
6808 { $as_echo "$as_me:$LINENO: result: yes" >&5
6809 $as_echo "yes" >&6; }
6811 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6812 $as_echo "no, using $LN_S" >&6; }
6815 for ac_prog in gawk mawk nawk awk
6817 # Extract the first word of "$ac_prog", so it can be a program name with args.
6818 set dummy $ac_prog; ac_word=$2
6819 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_AWK+set}" = set; then
6822 $as_echo_n "(cached) " >&6
6824 if test -n "$AWK"; then
6825 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_AWK="$ac_prog"
6835 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 if test -n "$AWK"; then
6846 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6847 $as_echo "$AWK" >&6; }
6849 { $as_echo "$as_me:$LINENO: result: no" >&5
6850 $as_echo "no" >&6; }
6854 test -n "$AWK" && break
6857 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6858 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6859 if test -z "$MKDIR_P"; then
6860 if test "${ac_cv_path_mkdir+set}" = set; then
6861 $as_echo_n "(cached) " >&6
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6867 test -z "$as_dir" && as_dir=.
6868 for ac_prog in mkdir gmkdir; do
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6871 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6872 'mkdir (GNU coreutils) '* | \
6873 'mkdir (coreutils) '* | \
6874 'mkdir (fileutils) '4.1*)
6875 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6885 if test "${ac_cv_path_mkdir+set}" = set; then
6886 MKDIR_P="$ac_cv_path_mkdir -p"
6888 # As a last resort, use the slow shell script. Don't cache a
6889 # value for MKDIR_P within a source directory, because that will
6890 # break other packages using the cache if that directory is
6891 # removed, or if the value is a relative name.
6892 test -d ./--version && rmdir ./--version
6893 MKDIR_P="$ac_install_sh -d"
6896 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6897 $as_echo "$MKDIR_P" >&6; }
6899 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6900 # a relative path to it in each makefile where it subsitutes it. This clashes
6901 # with our Makefile.global concept. This workaround helps.
6903 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6906 # Let the user override the search
6907 if test -z "$BISON"; then
6908 for ac_prog in bison
6910 # Extract the first word of "$ac_prog", so it can be a program name with args.
6911 set dummy $ac_prog; ac_word=$2
6912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if test "${ac_cv_path_BISON+set}" = set; then
6915 $as_echo_n "(cached) " >&6
6919 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6930 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 BISON=$ac_cv_path_BISON
6941 if test -n "$BISON"; then
6942 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6943 $as_echo "$BISON" >&6; }
6945 { $as_echo "$as_me:$LINENO: result: no" >&5
6946 $as_echo "no" >&6; }
6950 test -n "$BISON" && break
6955 if test "$BISON"; then
6956 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6957 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6958 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6959 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6961 { $as_echo "$as_me:$LINENO: WARNING:
6962 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6963 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6964 $as_echo "$as_me: WARNING:
6965 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6966 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6971 if test -z "$BISON"; then
6972 { $as_echo "$as_me:$LINENO: WARNING:
6973 *** Without Bison you will not be able to build PostgreSQL from Git nor
6974 *** change any of the parser definition files. You can obtain Bison from
6975 *** a GNU mirror site. (If you are using the official distribution of
6976 *** PostgreSQL then you do not need to worry about this, because the Bison
6977 *** output is pre-generated.)" >&5
6978 $as_echo "$as_me: WARNING:
6979 *** Without Bison you will not be able to build PostgreSQL from Git nor
6980 *** change any of the parser definition files. You can obtain Bison from
6981 *** a GNU mirror site. (If you are using the official distribution of
6982 *** PostgreSQL then you do not need to worry about this, because the Bison
6983 *** output is pre-generated.)" >&2;}
6985 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6988 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6989 $as_echo_n "checking for flex... " >&6; }
6990 if test "${pgac_cv_path_flex+set}" = set; then
6991 $as_echo_n "(cached) " >&6
6993 # Let the user override the test
6994 if test -n "$FLEX"; then
6995 pgac_cv_path_flex=$FLEX
6999 for pgac_dir in $PATH; do
7001 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7004 for pgac_prog in flex lex; do
7005 pgac_candidate="$pgac_dir/$pgac_prog"
7006 if test -f "$pgac_candidate" \
7007 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7009 echo '%%' > conftest.l
7010 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7011 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7012 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7014 pgac_cv_path_flex=$pgac_candidate
7017 { $as_echo "$as_me:$LINENO: WARNING:
7018 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7019 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7020 $as_echo "$as_me: WARNING:
7021 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7022 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7028 rm -f conftest.l lex.yy.c
7029 : ${pgac_cv_path_flex=no}
7033 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7034 $as_echo "$pgac_cv_path_flex" >&6; }
7035 if test x"$pgac_cv_path_flex" = x"no"; then
7036 { $as_echo "$as_me:$LINENO: WARNING:
7037 *** Without Flex you will not be able to build PostgreSQL from Git nor
7038 *** change any of the scanner definition files. You can obtain Flex from
7039 *** a GNU mirror site. (If you are using the official distribution of
7040 *** PostgreSQL then you do not need to worry about this because the Flex
7041 *** output is pre-generated.)" >&5
7042 $as_echo "$as_me: WARNING:
7043 *** Without Flex you will not be able to build PostgreSQL from Git nor
7044 *** change any of the scanner definition files. You can obtain Flex from
7045 *** a GNU mirror site. (If you are using the official distribution of
7046 *** PostgreSQL then you do not need to worry about this because the Flex
7047 *** output is pre-generated.)" >&2;}
7051 FLEX=$pgac_cv_path_flex
7052 pgac_flex_version=`$FLEX --version 2>/dev/null`
7053 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7054 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7061 # Let the user override the search
7062 if test -z "$PERL"; then
7063 # Extract the first word of "perl", so it can be a program name with args.
7064 set dummy perl; ac_word=$2
7065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if test "${ac_cv_path_PERL+set}" = set; then
7068 $as_echo_n "(cached) " >&6
7072 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7082 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 PERL=$ac_cv_path_PERL
7094 if test -n "$PERL"; then
7095 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7096 $as_echo "$PERL" >&6; }
7098 { $as_echo "$as_me:$LINENO: result: no" >&5
7099 $as_echo "no" >&6; }
7105 if test "$PERL"; then
7106 pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
7107 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7108 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7109 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7110 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7112 { $as_echo "$as_me:$LINENO: WARNING:
7113 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7114 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7115 $as_echo "$as_me: WARNING:
7116 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7117 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7122 if test -z "$PERL"; then
7123 { $as_echo "$as_me:$LINENO: WARNING:
7124 *** Without Perl you will not be able to build PostgreSQL from Git.
7125 *** You can obtain Perl from any CPAN mirror site.
7126 *** (If you are using the official distribution of PostgreSQL then you do not
7127 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7128 $as_echo "$as_me: WARNING:
7129 *** Without Perl you will not be able to build PostgreSQL from Git.
7130 *** You can obtain Perl from any CPAN mirror site.
7131 *** (If you are using the official distribution of PostgreSQL then you do not
7132 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7135 if test "$with_perl" = yes; then
7136 if test -z "$PERL"; then
7137 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7138 $as_echo "$as_me: error: Perl not found" >&2;}
7139 { (exit 1); exit 1; }; }
7142 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7143 $as_echo_n "checking for Perl archlibexp... " >&6; }
7144 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7145 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7146 $as_echo "$perl_archlibexp" >&6; }
7147 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7148 $as_echo_n "checking for Perl privlibexp... " >&6; }
7149 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7150 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7151 $as_echo "$perl_privlibexp" >&6; }
7152 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7153 $as_echo_n "checking for Perl useshrplib... " >&6; }
7154 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7155 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7156 $as_echo "$perl_useshrplib" >&6; }
7158 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7159 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7160 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7161 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7162 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7163 if test -z "$perl_embed_ldflags" ; then
7164 { $as_echo "$as_me:$LINENO: result: no" >&5
7165 $as_echo "no" >&6; }
7166 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7167 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7169 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7170 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7172 { (exit 1); exit 1; }; }
7174 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7175 $as_echo "$perl_embed_ldflags" >&6; }
7180 if test "$with_python" = yes; then
7181 # Extract the first word of "python", so it can be a program name with args.
7182 set dummy python; ac_word=$2
7183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if test "${ac_cv_path_PYTHON+set}" = set; then
7186 $as_echo_n "(cached) " >&6
7190 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 PYTHON=$ac_cv_path_PYTHON
7212 if test -n "$PYTHON"; then
7213 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7214 $as_echo "$PYTHON" >&6; }
7216 { $as_echo "$as_me:$LINENO: result: no" >&5
7217 $as_echo "no" >&6; }
7221 if test x"$PYTHON" = x""; then
7222 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7223 $as_echo "$as_me: error: Python not found" >&2;}
7224 { (exit 1); exit 1; }; }
7228 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7229 $as_echo_n "checking for Python distutils module... " >&6; }
7230 if "${PYTHON}" -c 'import distutils' 2>&5
7232 { $as_echo "$as_me:$LINENO: result: yes" >&5
7233 $as_echo "yes" >&6; }
7235 { $as_echo "$as_me:$LINENO: result: no" >&5
7236 $as_echo "no" >&6; }
7237 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7238 $as_echo "$as_me: error: distutils module not found" >&2;}
7239 { (exit 1); exit 1; }; }
7241 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7242 $as_echo_n "checking Python configuration directory... " >&6; }
7243 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7244 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7245 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'))"`
7246 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7248 # This should be enough of a message.
7249 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7250 $as_echo "$python_configdir" >&6; }
7253 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7254 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7256 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7257 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7258 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7259 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7261 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7263 # New way: use the official shared library
7264 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7265 python_libspec="-L${python_libdir} -l${ldlibrary}"
7267 # Old way: use libpython from python_configdir
7268 python_libdir="${python_configdir}"
7269 python_libspec="-L${python_libdir} -lpython${python_version}"
7272 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7274 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7275 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7278 # threaded python is not supported on bsd's
7279 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7280 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7281 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7282 if test "$pythreads" = "1"; then
7283 { $as_echo "$as_me:$LINENO: result: yes" >&5
7284 $as_echo "yes" >&6; }
7287 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7288 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7289 { (exit 1); exit 1; }; }
7293 { $as_echo "$as_me:$LINENO: result: no" >&5
7294 $as_echo "no" >&6; }
7300 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7301 # Extract the first word of "zic", so it can be a program name with args.
7302 set dummy zic; ac_word=$2
7303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_path_ZIC+set}" = set; then
7306 $as_echo_n "(cached) " >&6
7310 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 if test -n "$ZIC"; then
7333 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7334 $as_echo "$ZIC" >&6; }
7336 { $as_echo "$as_me:$LINENO: result: no" >&5
7337 $as_echo "no" >&6; }
7341 if test -z "$ZIC"; then
7342 { { $as_echo "$as_me:$LINENO: error:
7343 When cross-compiling, either use the option --with-system-tzdata to use
7344 existing time-zone data, or set the environment variable ZIC to a zic
7345 program to use during the build." >&5
7346 $as_echo "$as_me: error:
7347 When cross-compiling, either use the option --with-system-tzdata to use
7348 existing time-zone data, or set the environment variable ZIC to a zic
7349 program to use during the build." >&2;}
7350 { (exit 1); exit 1; }; }
7358 ## Most libraries are included only if they demonstrably provide a function
7359 ## we need, but libm is an exception: always include it, because there are
7360 ## too many compilers that play cute optimization games that will break
7361 ## probes for standard functions such as pow().
7365 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7366 $as_echo_n "checking for main in -lm... " >&6; }
7367 if test "${ac_cv_lib_m_main+set}" = set; then
7368 $as_echo_n "(cached) " >&6
7370 ac_check_lib_save_LIBS=$LIBS
7372 cat >conftest.$ac_ext <<_ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7388 rm -f conftest.$ac_objext conftest$ac_exeext
7389 if { (ac_try="$ac_link"
7391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7395 $as_echo "$ac_try_echo") >&5
7396 (eval "$ac_link") 2>conftest.er1
7398 grep -v '^ *+' conftest.er1 >conftest.err
7400 cat conftest.err >&5
7401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } && {
7403 test -z "$ac_c_werror_flag" ||
7404 test ! -s conftest.err
7405 } && test -s conftest$ac_exeext && {
7406 test "$cross_compiling" = yes ||
7407 $as_test_x conftest$ac_exeext
7409 ac_cv_lib_m_main=yes
7411 $as_echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7417 rm -rf conftest.dSYM
7418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7419 conftest$ac_exeext conftest.$ac_ext
7420 LIBS=$ac_check_lib_save_LIBS
7422 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7423 $as_echo "$ac_cv_lib_m_main" >&6; }
7424 if test "x$ac_cv_lib_m_main" = x""yes; then
7425 cat >>confdefs.h <<_ACEOF
7433 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7434 $as_echo_n "checking for library containing setproctitle... " >&6; }
7435 if test "${ac_cv_search_setproctitle+set}" = set; then
7436 $as_echo_n "(cached) " >&6
7438 ac_func_search_save_LIBS=$LIBS
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7446 /* Override any GCC internal prototype to avoid an error.
7447 Use char because int might match the return type of a GCC
7448 builtin and then its argument prototype would still apply. */
7452 char setproctitle ();
7456 return setproctitle ();
7461 for ac_lib in '' util; do
7462 if test -z "$ac_lib"; then
7463 ac_res="none required"
7466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7468 rm -f conftest.$ac_objext conftest$ac_exeext
7469 if { (ac_try="$ac_link"
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475 $as_echo "$ac_try_echo") >&5
7476 (eval "$ac_link") 2>conftest.er1
7478 grep -v '^ *+' conftest.er1 >conftest.err
7480 cat conftest.err >&5
7481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest$ac_exeext && {
7486 test "$cross_compiling" = yes ||
7487 $as_test_x conftest$ac_exeext
7489 ac_cv_search_setproctitle=$ac_res
7491 $as_echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7497 rm -rf conftest.dSYM
7498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7500 if test "${ac_cv_search_setproctitle+set}" = set; then
7504 if test "${ac_cv_search_setproctitle+set}" = set; then
7507 ac_cv_search_setproctitle=no
7510 LIBS=$ac_func_search_save_LIBS
7512 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7513 $as_echo "$ac_cv_search_setproctitle" >&6; }
7514 ac_res=$ac_cv_search_setproctitle
7515 if test "$ac_res" != no; then
7516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7520 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7521 $as_echo_n "checking for library containing dlopen... " >&6; }
7522 if test "${ac_cv_search_dlopen+set}" = set; then
7523 $as_echo_n "(cached) " >&6
7525 ac_func_search_save_LIBS=$LIBS
7526 cat >conftest.$ac_ext <<_ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7533 /* Override any GCC internal prototype to avoid an error.
7534 Use char because int might match the return type of a GCC
7535 builtin and then its argument prototype would still apply. */
7548 for ac_lib in '' dl; do
7549 if test -z "$ac_lib"; then
7550 ac_res="none required"
7553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (ac_try="$ac_link"
7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7562 $as_echo "$ac_try_echo") >&5
7563 (eval "$ac_link") 2>conftest.er1
7565 grep -v '^ *+' conftest.er1 >conftest.err
7567 cat conftest.err >&5
7568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } && {
7570 test -z "$ac_c_werror_flag" ||
7571 test ! -s conftest.err
7572 } && test -s conftest$ac_exeext && {
7573 test "$cross_compiling" = yes ||
7574 $as_test_x conftest$ac_exeext
7576 ac_cv_search_dlopen=$ac_res
7578 $as_echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7584 rm -rf conftest.dSYM
7585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7587 if test "${ac_cv_search_dlopen+set}" = set; then
7591 if test "${ac_cv_search_dlopen+set}" = set; then
7594 ac_cv_search_dlopen=no
7597 LIBS=$ac_func_search_save_LIBS
7599 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7600 $as_echo "$ac_cv_search_dlopen" >&6; }
7601 ac_res=$ac_cv_search_dlopen
7602 if test "$ac_res" != no; then
7603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7607 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7608 $as_echo_n "checking for library containing socket... " >&6; }
7609 if test "${ac_cv_search_socket+set}" = set; then
7610 $as_echo_n "(cached) " >&6
7612 ac_func_search_save_LIBS=$LIBS
7613 cat >conftest.$ac_ext <<_ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7620 /* Override any GCC internal prototype to avoid an error.
7621 Use char because int might match the return type of a GCC
7622 builtin and then its argument prototype would still apply. */
7635 for ac_lib in '' socket wsock32; do
7636 if test -z "$ac_lib"; then
7637 ac_res="none required"
7640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649 $as_echo "$ac_try_echo") >&5
7650 (eval "$ac_link") 2>conftest.er1
7652 grep -v '^ *+' conftest.er1 >conftest.err
7654 cat conftest.err >&5
7655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest$ac_exeext && {
7660 test "$cross_compiling" = yes ||
7661 $as_test_x conftest$ac_exeext
7663 ac_cv_search_socket=$ac_res
7665 $as_echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7671 rm -rf conftest.dSYM
7672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7674 if test "${ac_cv_search_socket+set}" = set; then
7678 if test "${ac_cv_search_socket+set}" = set; then
7681 ac_cv_search_socket=no
7684 LIBS=$ac_func_search_save_LIBS
7686 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7687 $as_echo "$ac_cv_search_socket" >&6; }
7688 ac_res=$ac_cv_search_socket
7689 if test "$ac_res" != no; then
7690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7694 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7695 $as_echo_n "checking for library containing shl_load... " >&6; }
7696 if test "${ac_cv_search_shl_load+set}" = set; then
7697 $as_echo_n "(cached) " >&6
7699 ac_func_search_save_LIBS=$LIBS
7700 cat >conftest.$ac_ext <<_ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7707 /* Override any GCC internal prototype to avoid an error.
7708 Use char because int might match the return type of a GCC
7709 builtin and then its argument prototype would still apply. */
7722 for ac_lib in '' dld; do
7723 if test -z "$ac_lib"; then
7724 ac_res="none required"
7727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (ac_try="$ac_link"
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7736 $as_echo "$ac_try_echo") >&5
7737 (eval "$ac_link") 2>conftest.er1
7739 grep -v '^ *+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest$ac_exeext && {
7747 test "$cross_compiling" = yes ||
7748 $as_test_x conftest$ac_exeext
7750 ac_cv_search_shl_load=$ac_res
7752 $as_echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7758 rm -rf conftest.dSYM
7759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7761 if test "${ac_cv_search_shl_load+set}" = set; then
7765 if test "${ac_cv_search_shl_load+set}" = set; then
7768 ac_cv_search_shl_load=no
7771 LIBS=$ac_func_search_save_LIBS
7773 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7774 $as_echo "$ac_cv_search_shl_load" >&6; }
7775 ac_res=$ac_cv_search_shl_load
7776 if test "$ac_res" != no; then
7777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7781 # We only use libld in port/dynloader/aix.c
7784 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7785 $as_echo_n "checking for library containing ldopen... " >&6; }
7786 if test "${ac_cv_search_ldopen+set}" = set; then
7787 $as_echo_n "(cached) " >&6
7789 ac_func_search_save_LIBS=$LIBS
7790 cat >conftest.$ac_ext <<_ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7797 /* Override any GCC internal prototype to avoid an error.
7798 Use char because int might match the return type of a GCC
7799 builtin and then its argument prototype would still apply. */
7812 for ac_lib in '' ld; do
7813 if test -z "$ac_lib"; then
7814 ac_res="none required"
7817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7819 rm -f conftest.$ac_objext conftest$ac_exeext
7820 if { (ac_try="$ac_link"
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7826 $as_echo "$ac_try_echo") >&5
7827 (eval "$ac_link") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest$ac_exeext && {
7837 test "$cross_compiling" = yes ||
7838 $as_test_x conftest$ac_exeext
7840 ac_cv_search_ldopen=$ac_res
7842 $as_echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7848 rm -rf conftest.dSYM
7849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7851 if test "${ac_cv_search_ldopen+set}" = set; then
7855 if test "${ac_cv_search_ldopen+set}" = set; then
7858 ac_cv_search_ldopen=no
7861 LIBS=$ac_func_search_save_LIBS
7863 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7864 $as_echo "$ac_cv_search_ldopen" >&6; }
7865 ac_res=$ac_cv_search_ldopen
7866 if test "$ac_res" != no; then
7867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7873 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7874 $as_echo_n "checking for library containing getopt_long... " >&6; }
7875 if test "${ac_cv_search_getopt_long+set}" = set; then
7876 $as_echo_n "(cached) " >&6
7878 ac_func_search_save_LIBS=$LIBS
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7886 /* Override any GCC internal prototype to avoid an error.
7887 Use char because int might match the return type of a GCC
7888 builtin and then its argument prototype would still apply. */
7892 char getopt_long ();
7896 return getopt_long ();
7901 for ac_lib in '' getopt gnugetopt; do
7902 if test -z "$ac_lib"; then
7903 ac_res="none required"
7906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7908 rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (ac_try="$ac_link"
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7915 $as_echo "$ac_try_echo") >&5
7916 (eval "$ac_link") 2>conftest.er1
7918 grep -v '^ *+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && {
7923 test -z "$ac_c_werror_flag" ||
7924 test ! -s conftest.err
7925 } && test -s conftest$ac_exeext && {
7926 test "$cross_compiling" = yes ||
7927 $as_test_x conftest$ac_exeext
7929 ac_cv_search_getopt_long=$ac_res
7931 $as_echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7937 rm -rf conftest.dSYM
7938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7940 if test "${ac_cv_search_getopt_long+set}" = set; then
7944 if test "${ac_cv_search_getopt_long+set}" = set; then
7947 ac_cv_search_getopt_long=no
7950 LIBS=$ac_func_search_save_LIBS
7952 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7953 $as_echo "$ac_cv_search_getopt_long" >&6; }
7954 ac_res=$ac_cv_search_getopt_long
7955 if test "$ac_res" != no; then
7956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7960 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7961 $as_echo_n "checking for library containing crypt... " >&6; }
7962 if test "${ac_cv_search_crypt+set}" = set; then
7963 $as_echo_n "(cached) " >&6
7965 ac_func_search_save_LIBS=$LIBS
7966 cat >conftest.$ac_ext <<_ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7973 /* Override any GCC internal prototype to avoid an error.
7974 Use char because int might match the return type of a GCC
7975 builtin and then its argument prototype would still apply. */
7988 for ac_lib in '' crypt; do
7989 if test -z "$ac_lib"; then
7990 ac_res="none required"
7993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7995 rm -f conftest.$ac_objext conftest$ac_exeext
7996 if { (ac_try="$ac_link"
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8002 $as_echo "$ac_try_echo") >&5
8003 (eval "$ac_link") 2>conftest.er1
8005 grep -v '^ *+' conftest.er1 >conftest.err
8007 cat conftest.err >&5
8008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } && {
8010 test -z "$ac_c_werror_flag" ||
8011 test ! -s conftest.err
8012 } && test -s conftest$ac_exeext && {
8013 test "$cross_compiling" = yes ||
8014 $as_test_x conftest$ac_exeext
8016 ac_cv_search_crypt=$ac_res
8018 $as_echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8024 rm -rf conftest.dSYM
8025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8027 if test "${ac_cv_search_crypt+set}" = set; then
8031 if test "${ac_cv_search_crypt+set}" = set; then
8034 ac_cv_search_crypt=no
8037 LIBS=$ac_func_search_save_LIBS
8039 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8040 $as_echo "$ac_cv_search_crypt" >&6; }
8041 ac_res=$ac_cv_search_crypt
8042 if test "$ac_res" != no; then
8043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8048 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8049 $as_echo_n "checking for library containing fdatasync... " >&6; }
8050 if test "${ac_cv_search_fdatasync+set}" = set; then
8051 $as_echo_n "(cached) " >&6
8053 ac_func_search_save_LIBS=$LIBS
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8061 /* Override any GCC internal prototype to avoid an error.
8062 Use char because int might match the return type of a GCC
8063 builtin and then its argument prototype would still apply. */
8071 return fdatasync ();
8076 for ac_lib in '' rt posix4; do
8077 if test -z "$ac_lib"; then
8078 ac_res="none required"
8081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8083 rm -f conftest.$ac_objext conftest$ac_exeext
8084 if { (ac_try="$ac_link"
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8090 $as_echo "$ac_try_echo") >&5
8091 (eval "$ac_link") 2>conftest.er1
8093 grep -v '^ *+' conftest.er1 >conftest.err
8095 cat conftest.err >&5
8096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest$ac_exeext && {
8101 test "$cross_compiling" = yes ||
8102 $as_test_x conftest$ac_exeext
8104 ac_cv_search_fdatasync=$ac_res
8106 $as_echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8112 rm -rf conftest.dSYM
8113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8115 if test "${ac_cv_search_fdatasync+set}" = set; then
8119 if test "${ac_cv_search_fdatasync+set}" = set; then
8122 ac_cv_search_fdatasync=no
8125 LIBS=$ac_func_search_save_LIBS
8127 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8128 $as_echo "$ac_cv_search_fdatasync" >&6; }
8129 ac_res=$ac_cv_search_fdatasync
8130 if test "$ac_res" != no; then
8131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8135 # Required for thread_test.c on Solaris 2.5:
8136 # Other ports use it too (HP-UX) so test unconditionally
8137 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8138 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8139 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8140 $as_echo_n "(cached) " >&6
8142 ac_func_search_save_LIBS=$LIBS
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8150 /* Override any GCC internal prototype to avoid an error.
8151 Use char because int might match the return type of a GCC
8152 builtin and then its argument prototype would still apply. */
8156 char gethostbyname_r ();
8160 return gethostbyname_r ();
8165 for ac_lib in '' nsl; do
8166 if test -z "$ac_lib"; then
8167 ac_res="none required"
8170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8179 $as_echo "$ac_try_echo") >&5
8180 (eval "$ac_link") 2>conftest.er1
8182 grep -v '^ *+' conftest.er1 >conftest.err
8184 cat conftest.err >&5
8185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && {
8187 test -z "$ac_c_werror_flag" ||
8188 test ! -s conftest.err
8189 } && test -s conftest$ac_exeext && {
8190 test "$cross_compiling" = yes ||
8191 $as_test_x conftest$ac_exeext
8193 ac_cv_search_gethostbyname_r=$ac_res
8195 $as_echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8201 rm -rf conftest.dSYM
8202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8204 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8208 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8211 ac_cv_search_gethostbyname_r=no
8214 LIBS=$ac_func_search_save_LIBS
8216 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8217 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8218 ac_res=$ac_cv_search_gethostbyname_r
8219 if test "$ac_res" != no; then
8220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8225 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8226 $as_echo_n "checking for library containing shmget... " >&6; }
8227 if test "${ac_cv_search_shmget+set}" = set; then
8228 $as_echo_n "(cached) " >&6
8230 ac_func_search_save_LIBS=$LIBS
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8238 /* Override any GCC internal prototype to avoid an error.
8239 Use char because int might match the return type of a GCC
8240 builtin and then its argument prototype would still apply. */
8253 for ac_lib in '' cygipc; do
8254 if test -z "$ac_lib"; then
8255 ac_res="none required"
8258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8260 rm -f conftest.$ac_objext conftest$ac_exeext
8261 if { (ac_try="$ac_link"
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8267 $as_echo "$ac_try_echo") >&5
8268 (eval "$ac_link") 2>conftest.er1
8270 grep -v '^ *+' conftest.er1 >conftest.err
8272 cat conftest.err >&5
8273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest$ac_exeext && {
8278 test "$cross_compiling" = yes ||
8279 $as_test_x conftest$ac_exeext
8281 ac_cv_search_shmget=$ac_res
8283 $as_echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8289 rm -rf conftest.dSYM
8290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8292 if test "${ac_cv_search_shmget+set}" = set; then
8296 if test "${ac_cv_search_shmget+set}" = set; then
8299 ac_cv_search_shmget=no
8302 LIBS=$ac_func_search_save_LIBS
8304 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8305 $as_echo "$ac_cv_search_shmget" >&6; }
8306 ac_res=$ac_cv_search_shmget
8307 if test "$ac_res" != no; then
8308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8313 if test "$with_readline" = yes; then
8316 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8317 $as_echo_n "checking for library containing readline... " >&6; }
8318 if test "${pgac_cv_check_readline+set}" = set; then
8319 $as_echo_n "(cached) " >&6
8321 pgac_cv_check_readline=no
8322 pgac_save_LIBS=$LIBS
8323 if test x"$with_libedit_preferred" != x"yes"
8324 then READLINE_ORDER="-lreadline -ledit"
8325 else READLINE_ORDER="-ledit -lreadline"
8327 for pgac_rllib in $READLINE_ORDER ; do
8328 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8329 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8330 cat >conftest.$ac_ext <<_ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8337 /* Override any GCC internal prototype to avoid an error.
8338 Use char because int might match the return type of a GCC
8339 builtin and then its argument prototype would still apply. */
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (ac_try="$ac_link"
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8359 $as_echo "$ac_try_echo") >&5
8360 (eval "$ac_link") 2>conftest.er1
8362 grep -v '^ *+' conftest.er1 >conftest.err
8364 cat conftest.err >&5
8365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } && {
8367 test -z "$ac_c_werror_flag" ||
8368 test ! -s conftest.err
8369 } && test -s conftest$ac_exeext && {
8370 test "$cross_compiling" = yes ||
8371 $as_test_x conftest$ac_exeext
8374 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8375 # recognize dependent libraries; assume curses is needed if we didn't
8376 # find any dependency.
8378 netbsd* | openbsd* | irix*)
8379 if test x"$pgac_lib" = x"" ; then
8380 pgac_lib=" -lcurses"
8384 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8388 $as_echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8394 rm -rf conftest.dSYM
8395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8396 conftest$ac_exeext conftest.$ac_ext
8398 if test "$pgac_cv_check_readline" != no ; then
8402 LIBS=$pgac_save_LIBS
8405 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8406 $as_echo "$pgac_cv_check_readline" >&6; }
8407 if test "$pgac_cv_check_readline" != no ; then
8408 LIBS="$pgac_cv_check_readline $LIBS"
8410 cat >>confdefs.h <<\_ACEOF
8411 #define HAVE_LIBREADLINE 1
8417 if test x"$pgac_cv_check_readline" = x"no"; then
8418 { { $as_echo "$as_me:$LINENO: error: readline library not found
8419 If you have readline already installed, see config.log for details on the
8420 failure. It is possible the compiler isn't looking in the proper directory.
8421 Use --without-readline to disable readline support." >&5
8422 $as_echo "$as_me: error: readline library not found
8423 If you have readline already installed, see config.log for details on the
8424 failure. It is possible the compiler isn't looking in the proper directory.
8425 Use --without-readline to disable readline support." >&2;}
8426 { (exit 1); exit 1; }; }
8430 if test "$with_zlib" = yes; then
8432 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8433 $as_echo_n "checking for inflate in -lz... " >&6; }
8434 if test "${ac_cv_lib_z_inflate+set}" = set; then
8435 $as_echo_n "(cached) " >&6
8437 ac_check_lib_save_LIBS=$LIBS
8439 cat >conftest.$ac_ext <<_ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8446 /* Override any GCC internal prototype to avoid an error.
8447 Use char because int might match the return type of a GCC
8448 builtin and then its argument prototype would still apply. */
8461 rm -f conftest.$ac_objext conftest$ac_exeext
8462 if { (ac_try="$ac_link"
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8468 $as_echo "$ac_try_echo") >&5
8469 (eval "$ac_link") 2>conftest.er1
8471 grep -v '^ *+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest$ac_exeext && {
8479 test "$cross_compiling" = yes ||
8480 $as_test_x conftest$ac_exeext
8482 ac_cv_lib_z_inflate=yes
8484 $as_echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8487 ac_cv_lib_z_inflate=no
8490 rm -rf conftest.dSYM
8491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8492 conftest$ac_exeext conftest.$ac_ext
8493 LIBS=$ac_check_lib_save_LIBS
8495 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8496 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8497 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8498 cat >>confdefs.h <<_ACEOF
8505 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8506 If you have zlib already installed, see config.log for details on the
8507 failure. It is possible the compiler isn't looking in the proper directory.
8508 Use --without-zlib to disable zlib support." >&5
8509 $as_echo "$as_me: error: zlib library not found
8510 If you have zlib already installed, see config.log for details on the
8511 failure. It is possible the compiler isn't looking in the proper directory.
8512 Use --without-zlib to disable zlib support." >&2;}
8513 { (exit 1); exit 1; }; }
8518 if test "$enable_spinlocks" = yes; then
8520 cat >>confdefs.h <<\_ACEOF
8521 #define HAVE_SPINLOCKS 1
8525 { $as_echo "$as_me:$LINENO: WARNING:
8526 *** Not using spinlocks will cause poor performance." >&5
8527 $as_echo "$as_me: WARNING:
8528 *** Not using spinlocks will cause poor performance." >&2;}
8531 if test "$with_gssapi" = yes ; then
8532 if test "$PORTNAME" != "win32"; then
8533 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8534 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8535 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8536 $as_echo_n "(cached) " >&6
8538 ac_func_search_save_LIBS=$LIBS
8539 cat >conftest.$ac_ext <<_ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8546 /* Override any GCC internal prototype to avoid an error.
8547 Use char because int might match the return type of a GCC
8548 builtin and then its argument prototype would still apply. */
8552 char gss_init_sec_context ();
8556 return gss_init_sec_context ();
8561 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8562 if test -z "$ac_lib"; then
8563 ac_res="none required"
8566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8575 $as_echo "$ac_try_echo") >&5
8576 (eval "$ac_link") 2>conftest.er1
8578 grep -v '^ *+' conftest.er1 >conftest.err
8580 cat conftest.err >&5
8581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } && {
8583 test -z "$ac_c_werror_flag" ||
8584 test ! -s conftest.err
8585 } && test -s conftest$ac_exeext && {
8586 test "$cross_compiling" = yes ||
8587 $as_test_x conftest$ac_exeext
8589 ac_cv_search_gss_init_sec_context=$ac_res
8591 $as_echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8597 rm -rf conftest.dSYM
8598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8600 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8604 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8607 ac_cv_search_gss_init_sec_context=no
8610 LIBS=$ac_func_search_save_LIBS
8612 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8613 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8614 ac_res=$ac_cv_search_gss_init_sec_context
8615 if test "$ac_res" != no; then
8616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8619 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8620 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8621 { (exit 1); exit 1; }; }
8625 LIBS="$LIBS -lgssapi32"
8629 if test "$with_krb5" = yes ; then
8630 if test "$PORTNAME" != "win32"; then
8631 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8632 $as_echo_n "checking for library containing com_err... " >&6; }
8633 if test "${ac_cv_search_com_err+set}" = set; then
8634 $as_echo_n "(cached) " >&6
8636 ac_func_search_save_LIBS=$LIBS
8637 cat >conftest.$ac_ext <<_ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8644 /* Override any GCC internal prototype to avoid an error.
8645 Use char because int might match the return type of a GCC
8646 builtin and then its argument prototype would still apply. */
8659 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8660 if test -z "$ac_lib"; then
8661 ac_res="none required"
8664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8673 $as_echo "$ac_try_echo") >&5
8674 (eval "$ac_link") 2>conftest.er1
8676 grep -v '^ *+' conftest.er1 >conftest.err
8678 cat conftest.err >&5
8679 $as_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_exeext && {
8684 test "$cross_compiling" = yes ||
8685 $as_test_x conftest$ac_exeext
8687 ac_cv_search_com_err=$ac_res
8689 $as_echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8695 rm -rf conftest.dSYM
8696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8698 if test "${ac_cv_search_com_err+set}" = set; then
8702 if test "${ac_cv_search_com_err+set}" = set; then
8705 ac_cv_search_com_err=no
8708 LIBS=$ac_func_search_save_LIBS
8710 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8711 $as_echo "$ac_cv_search_com_err" >&6; }
8712 ac_res=$ac_cv_search_com_err
8713 if test "$ac_res" != no; then
8714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8717 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8718 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8719 { (exit 1); exit 1; }; }
8722 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8723 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8724 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8725 $as_echo_n "(cached) " >&6
8727 ac_func_search_save_LIBS=$LIBS
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8735 /* Override any GCC internal prototype to avoid an error.
8736 Use char because int might match the return type of a GCC
8737 builtin and then its argument prototype would still apply. */
8741 char krb5_sendauth ();
8745 return krb5_sendauth ();
8750 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8751 if test -z "$ac_lib"; then
8752 ac_res="none required"
8755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765 (eval "$ac_link") 2>conftest.er1
8767 grep -v '^ *+' conftest.er1 >conftest.err
8769 cat conftest.err >&5
8770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest$ac_exeext && {
8775 test "$cross_compiling" = yes ||
8776 $as_test_x conftest$ac_exeext
8778 ac_cv_search_krb5_sendauth=$ac_res
8780 $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8786 rm -rf conftest.dSYM
8787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8789 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8793 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8796 ac_cv_search_krb5_sendauth=no
8799 LIBS=$ac_func_search_save_LIBS
8801 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8802 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8803 ac_res=$ac_cv_search_krb5_sendauth
8804 if test "$ac_res" != no; then
8805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8808 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8809 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8810 { (exit 1); exit 1; }; }
8814 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8815 $as_echo_n "checking for library containing com_err... " >&6; }
8816 if test "${ac_cv_search_com_err+set}" = set; then
8817 $as_echo_n "(cached) " >&6
8819 ac_func_search_save_LIBS=$LIBS
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8827 /* Override any GCC internal prototype to avoid an error.
8828 Use char because int might match the return type of a GCC
8829 builtin and then its argument prototype would still apply. */
8842 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8843 if test -z "$ac_lib"; then
8844 ac_res="none required"
8847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8849 rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (ac_try="$ac_link"
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8856 $as_echo "$ac_try_echo") >&5
8857 (eval "$ac_link") 2>conftest.er1
8859 grep -v '^ *+' conftest.er1 >conftest.err
8861 cat conftest.err >&5
8862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } && {
8864 test -z "$ac_c_werror_flag" ||
8865 test ! -s conftest.err
8866 } && test -s conftest$ac_exeext && {
8867 test "$cross_compiling" = yes ||
8868 $as_test_x conftest$ac_exeext
8870 ac_cv_search_com_err=$ac_res
8872 $as_echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8878 rm -rf conftest.dSYM
8879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8881 if test "${ac_cv_search_com_err+set}" = set; then
8885 if test "${ac_cv_search_com_err+set}" = set; then
8888 ac_cv_search_com_err=no
8891 LIBS=$ac_func_search_save_LIBS
8893 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8894 $as_echo "$ac_cv_search_com_err" >&6; }
8895 ac_res=$ac_cv_search_com_err
8896 if test "$ac_res" != no; then
8897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8900 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8901 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8902 { (exit 1); exit 1; }; }
8908 if test "$with_openssl" = yes ; then
8909 if test "$PORTNAME" != "win32"; then
8911 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8912 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8913 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8914 $as_echo_n "(cached) " >&6
8916 ac_check_lib_save_LIBS=$LIBS
8917 LIBS="-lcrypto $LIBS"
8918 cat >conftest.$ac_ext <<_ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8925 /* Override any GCC internal prototype to avoid an error.
8926 Use char because int might match the return type of a GCC
8927 builtin and then its argument prototype would still apply. */
8931 char CRYPTO_new_ex_data ();
8935 return CRYPTO_new_ex_data ();
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8947 $as_echo "$ac_try_echo") >&5
8948 (eval "$ac_link") 2>conftest.er1
8950 grep -v '^ *+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest$ac_exeext && {
8958 test "$cross_compiling" = yes ||
8959 $as_test_x conftest$ac_exeext
8961 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8963 $as_echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8966 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8969 rm -rf conftest.dSYM
8970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8971 conftest$ac_exeext conftest.$ac_ext
8972 LIBS=$ac_check_lib_save_LIBS
8974 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8975 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8976 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8977 cat >>confdefs.h <<_ACEOF
8978 #define HAVE_LIBCRYPTO 1
8981 LIBS="-lcrypto $LIBS"
8984 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8985 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8986 { (exit 1); exit 1; }; }
8990 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8991 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8992 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8993 $as_echo_n "(cached) " >&6
8995 ac_check_lib_save_LIBS=$LIBS
8997 cat >conftest.$ac_ext <<_ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9010 char SSL_library_init ();
9014 return SSL_library_init ();
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (ac_try="$ac_link"
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9026 $as_echo "$ac_try_echo") >&5
9027 (eval "$ac_link") 2>conftest.er1
9029 grep -v '^ *+' conftest.er1 >conftest.err
9031 cat conftest.err >&5
9032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } && {
9034 test -z "$ac_c_werror_flag" ||
9035 test ! -s conftest.err
9036 } && test -s conftest$ac_exeext && {
9037 test "$cross_compiling" = yes ||
9038 $as_test_x conftest$ac_exeext
9040 ac_cv_lib_ssl_SSL_library_init=yes
9042 $as_echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9045 ac_cv_lib_ssl_SSL_library_init=no
9048 rm -rf conftest.dSYM
9049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9050 conftest$ac_exeext conftest.$ac_ext
9051 LIBS=$ac_check_lib_save_LIBS
9053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9054 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9055 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9056 cat >>confdefs.h <<_ACEOF
9057 #define HAVE_LIBSSL 1
9063 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9064 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9065 { (exit 1); exit 1; }; }
9070 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9071 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
9072 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9073 $as_echo_n "(cached) " >&6
9075 ac_check_lib_save_LIBS=$LIBS
9076 LIBS="-leay32 $LIBS"
9077 cat >conftest.$ac_ext <<_ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9084 /* Override any GCC internal prototype to avoid an error.
9085 Use char because int might match the return type of a GCC
9086 builtin and then its argument prototype would still apply. */
9090 char CRYPTO_new_ex_data ();
9094 return CRYPTO_new_ex_data ();
9099 rm -f conftest.$ac_objext conftest$ac_exeext
9100 if { (ac_try="$ac_link"
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9106 $as_echo "$ac_try_echo") >&5
9107 (eval "$ac_link") 2>conftest.er1
9109 grep -v '^ *+' conftest.er1 >conftest.err
9111 cat conftest.err >&5
9112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } && {
9114 test -z "$ac_c_werror_flag" ||
9115 test ! -s conftest.err
9116 } && test -s conftest$ac_exeext && {
9117 test "$cross_compiling" = yes ||
9118 $as_test_x conftest$ac_exeext
9120 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9122 $as_echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9125 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9128 rm -rf conftest.dSYM
9129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9130 conftest$ac_exeext conftest.$ac_ext
9131 LIBS=$ac_check_lib_save_LIBS
9133 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9134 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9135 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9136 cat >>confdefs.h <<_ACEOF
9137 #define HAVE_LIBEAY32 1
9140 LIBS="-leay32 $LIBS"
9143 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9144 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9145 { (exit 1); exit 1; }; }
9149 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9150 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9151 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9152 $as_echo_n "(cached) " >&6
9154 ac_check_lib_save_LIBS=$LIBS
9155 LIBS="-lssleay32 $LIBS"
9156 cat >conftest.$ac_ext <<_ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9163 /* Override any GCC internal prototype to avoid an error.
9164 Use char because int might match the return type of a GCC
9165 builtin and then its argument prototype would still apply. */
9169 char SSL_library_init ();
9173 return SSL_library_init ();
9178 rm -f conftest.$ac_objext conftest$ac_exeext
9179 if { (ac_try="$ac_link"
9181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182 *) ac_try_echo=$ac_try;;
9184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9185 $as_echo "$ac_try_echo") >&5
9186 (eval "$ac_link") 2>conftest.er1
9188 grep -v '^ *+' conftest.er1 >conftest.err
9190 cat conftest.err >&5
9191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } && {
9193 test -z "$ac_c_werror_flag" ||
9194 test ! -s conftest.err
9195 } && test -s conftest$ac_exeext && {
9196 test "$cross_compiling" = yes ||
9197 $as_test_x conftest$ac_exeext
9199 ac_cv_lib_ssleay32_SSL_library_init=yes
9201 $as_echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 ac_cv_lib_ssleay32_SSL_library_init=no
9207 rm -rf conftest.dSYM
9208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9209 conftest$ac_exeext conftest.$ac_ext
9210 LIBS=$ac_check_lib_save_LIBS
9212 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9213 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9214 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9215 cat >>confdefs.h <<_ACEOF
9216 #define HAVE_LIBSSLEAY32 1
9219 LIBS="-lssleay32 $LIBS"
9222 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9223 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9224 { (exit 1); exit 1; }; }
9230 if test "$with_pam" = yes ; then
9232 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9233 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9234 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9235 $as_echo_n "(cached) " >&6
9237 ac_check_lib_save_LIBS=$LIBS
9239 cat >conftest.$ac_ext <<_ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9246 /* Override any GCC internal prototype to avoid an error.
9247 Use char because int might match the return type of a GCC
9248 builtin and then its argument prototype would still apply. */
9256 return pam_start ();
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (ac_try="$ac_link"
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9268 $as_echo "$ac_try_echo") >&5
9269 (eval "$ac_link") 2>conftest.er1
9271 grep -v '^ *+' conftest.er1 >conftest.err
9273 cat conftest.err >&5
9274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } && {
9276 test -z "$ac_c_werror_flag" ||
9277 test ! -s conftest.err
9278 } && test -s conftest$ac_exeext && {
9279 test "$cross_compiling" = yes ||
9280 $as_test_x conftest$ac_exeext
9282 ac_cv_lib_pam_pam_start=yes
9284 $as_echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9287 ac_cv_lib_pam_pam_start=no
9290 rm -rf conftest.dSYM
9291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9292 conftest$ac_exeext conftest.$ac_ext
9293 LIBS=$ac_check_lib_save_LIBS
9295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9296 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9297 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9298 cat >>confdefs.h <<_ACEOF
9299 #define HAVE_LIBPAM 1
9305 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9306 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9307 { (exit 1); exit 1; }; }
9312 if test "$with_libxml" = yes ; then
9314 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9315 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9316 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9317 $as_echo_n "(cached) " >&6
9319 ac_check_lib_save_LIBS=$LIBS
9321 cat >conftest.$ac_ext <<_ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9328 /* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
9334 char xmlSaveToBuffer ();
9338 return xmlSaveToBuffer ();
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 *) ac_try_echo=$ac_try;;
9349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9350 $as_echo "$ac_try_echo") >&5
9351 (eval "$ac_link") 2>conftest.er1
9353 grep -v '^ *+' conftest.er1 >conftest.err
9355 cat conftest.err >&5
9356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && {
9358 test -z "$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9360 } && test -s conftest$ac_exeext && {
9361 test "$cross_compiling" = yes ||
9362 $as_test_x conftest$ac_exeext
9364 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9366 $as_echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9369 ac_cv_lib_xml2_xmlSaveToBuffer=no
9372 rm -rf conftest.dSYM
9373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9374 conftest$ac_exeext conftest.$ac_ext
9375 LIBS=$ac_check_lib_save_LIBS
9377 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9378 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9379 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9380 cat >>confdefs.h <<_ACEOF
9381 #define HAVE_LIBXML2 1
9387 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9388 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9389 { (exit 1); exit 1; }; }
9394 if test "$with_libxslt" = yes ; then
9396 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9397 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9398 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9399 $as_echo_n "(cached) " >&6
9401 ac_check_lib_save_LIBS=$LIBS
9403 cat >conftest.$ac_ext <<_ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9410 /* Override any GCC internal prototype to avoid an error.
9411 Use char because int might match the return type of a GCC
9412 builtin and then its argument prototype would still apply. */
9416 char xsltCleanupGlobals ();
9420 return xsltCleanupGlobals ();
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (ac_try="$ac_link"
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9432 $as_echo "$ac_try_echo") >&5
9433 (eval "$ac_link") 2>conftest.er1
9435 grep -v '^ *+' conftest.er1 >conftest.err
9437 cat conftest.err >&5
9438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && {
9440 test -z "$ac_c_werror_flag" ||
9441 test ! -s conftest.err
9442 } && test -s conftest$ac_exeext && {
9443 test "$cross_compiling" = yes ||
9444 $as_test_x conftest$ac_exeext
9446 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9448 $as_echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 ac_cv_lib_xslt_xsltCleanupGlobals=no
9454 rm -rf conftest.dSYM
9455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9456 conftest$ac_exeext conftest.$ac_ext
9457 LIBS=$ac_check_lib_save_LIBS
9459 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9460 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9461 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9462 cat >>confdefs.h <<_ACEOF
9463 #define HAVE_LIBXSLT 1
9469 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9470 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9471 { (exit 1); exit 1; }; }
9476 # for contrib/sepgsql
9477 if test "$with_selinux" = yes; then
9479 { $as_echo "$as_me:$LINENO: checking for selinux_sepgsql_context_path in -lselinux" >&5
9480 $as_echo_n "checking for selinux_sepgsql_context_path in -lselinux... " >&6; }
9481 if test "${ac_cv_lib_selinux_selinux_sepgsql_context_path+set}" = set; then
9482 $as_echo_n "(cached) " >&6
9484 ac_check_lib_save_LIBS=$LIBS
9485 LIBS="-lselinux $LIBS"
9486 cat >conftest.$ac_ext <<_ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9493 /* Override any GCC internal prototype to avoid an error.
9494 Use char because int might match the return type of a GCC
9495 builtin and then its argument prototype would still apply. */
9499 char selinux_sepgsql_context_path ();
9503 return selinux_sepgsql_context_path ();
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9515 $as_echo "$ac_try_echo") >&5
9516 (eval "$ac_link") 2>conftest.er1
9518 grep -v '^ *+' conftest.er1 >conftest.err
9520 cat conftest.err >&5
9521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } && {
9523 test -z "$ac_c_werror_flag" ||
9524 test ! -s conftest.err
9525 } && test -s conftest$ac_exeext && {
9526 test "$cross_compiling" = yes ||
9527 $as_test_x conftest$ac_exeext
9529 ac_cv_lib_selinux_selinux_sepgsql_context_path=yes
9531 $as_echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_lib_selinux_selinux_sepgsql_context_path=no
9537 rm -rf conftest.dSYM
9538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9539 conftest$ac_exeext conftest.$ac_ext
9540 LIBS=$ac_check_lib_save_LIBS
9542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_sepgsql_context_path" >&5
9543 $as_echo "$ac_cv_lib_selinux_selinux_sepgsql_context_path" >&6; }
9544 if test "x$ac_cv_lib_selinux_selinux_sepgsql_context_path" = x""yes; then
9545 cat >>confdefs.h <<_ACEOF
9546 #define HAVE_LIBSELINUX 1
9549 LIBS="-lselinux $LIBS"
9552 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.93 or newer, is required for SELinux support" >&5
9553 $as_echo "$as_me: error: library 'libselinux', version 2.0.93 or newer, is required for SELinux support" >&2;}
9554 { (exit 1); exit 1; }; }
9559 # for contrib/uuid-ossp
9560 if test "$with_ossp_uuid" = yes ; then
9561 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9562 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9563 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9564 $as_echo_n "(cached) " >&6
9566 ac_check_lib_save_LIBS=$LIBS
9567 LIBS="-lossp-uuid $LIBS"
9568 cat >conftest.$ac_ext <<_ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9581 char uuid_export ();
9585 return uuid_export ();
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (ac_try="$ac_link"
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9597 $as_echo "$ac_try_echo") >&5
9598 (eval "$ac_link") 2>conftest.er1
9600 grep -v '^ *+' conftest.er1 >conftest.err
9602 cat conftest.err >&5
9603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } && {
9605 test -z "$ac_c_werror_flag" ||
9606 test ! -s conftest.err
9607 } && test -s conftest$ac_exeext && {
9608 test "$cross_compiling" = yes ||
9609 $as_test_x conftest$ac_exeext
9611 ac_cv_lib_ossp_uuid_uuid_export=yes
9613 $as_echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_cv_lib_ossp_uuid_uuid_export=no
9619 rm -rf conftest.dSYM
9620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9621 conftest$ac_exeext conftest.$ac_ext
9622 LIBS=$ac_check_lib_save_LIBS
9624 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9625 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9626 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9627 OSSP_UUID_LIBS="-lossp-uuid"
9629 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9630 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9631 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9632 $as_echo_n "(cached) " >&6
9634 ac_check_lib_save_LIBS=$LIBS
9636 cat >conftest.$ac_ext <<_ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9649 char uuid_export ();
9653 return uuid_export ();
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9665 $as_echo "$ac_try_echo") >&5
9666 (eval "$ac_link") 2>conftest.er1
9668 grep -v '^ *+' conftest.er1 >conftest.err
9670 cat conftest.err >&5
9671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } && {
9673 test -z "$ac_c_werror_flag" ||
9674 test ! -s conftest.err
9675 } && test -s conftest$ac_exeext && {
9676 test "$cross_compiling" = yes ||
9677 $as_test_x conftest$ac_exeext
9679 ac_cv_lib_uuid_uuid_export=yes
9681 $as_echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9684 ac_cv_lib_uuid_uuid_export=no
9687 rm -rf conftest.dSYM
9688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9689 conftest$ac_exeext conftest.$ac_ext
9690 LIBS=$ac_check_lib_save_LIBS
9692 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9693 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9694 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9695 OSSP_UUID_LIBS="-luuid"
9697 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9698 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9699 { (exit 1); exit 1; }; }
9712 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9713 $as_echo_n "checking for ANSI C header files... " >&6; }
9714 if test "${ac_cv_header_stdc+set}" = set; then
9715 $as_echo_n "(cached) " >&6
9717 cat >conftest.$ac_ext <<_ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9736 rm -f conftest.$ac_objext
9737 if { (ac_try="$ac_compile"
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9743 $as_echo "$ac_try_echo") >&5
9744 (eval "$ac_compile") 2>conftest.er1
9746 grep -v '^ *+' conftest.er1 >conftest.err
9748 cat conftest.err >&5
9749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } && {
9751 test -z "$ac_c_werror_flag" ||
9752 test ! -s conftest.err
9753 } && test -s conftest.$ac_objext; then
9754 ac_cv_header_stdc=yes
9756 $as_echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9759 ac_cv_header_stdc=no
9762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764 if test $ac_cv_header_stdc = yes; then
9765 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9766 cat >conftest.$ac_ext <<_ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9776 $EGREP "memchr" >/dev/null 2>&1; then
9779 ac_cv_header_stdc=no
9785 if test $ac_cv_header_stdc = yes; then
9786 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9787 cat >conftest.$ac_ext <<_ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9797 $EGREP "free" >/dev/null 2>&1; then
9800 ac_cv_header_stdc=no
9806 if test $ac_cv_header_stdc = yes; then
9807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9808 if test "$cross_compiling" = yes; then
9811 cat >conftest.$ac_ext <<_ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9819 #if ((' ' & 0x0FF) == 0x020)
9820 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9821 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9823 # define ISLOWER(c) \
9824 (('a' <= (c) && (c) <= 'i') \
9825 || ('j' <= (c) && (c) <= 'r') \
9826 || ('s' <= (c) && (c) <= 'z'))
9827 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9830 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9835 for (i = 0; i < 256; i++)
9836 if (XOR (islower (i), ISLOWER (i))
9837 || toupper (i) != TOUPPER (i))
9842 rm -f conftest$ac_exeext
9843 if { (ac_try="$ac_link"
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9849 $as_echo "$ac_try_echo") >&5
9850 (eval "$ac_link") 2>&5
9852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9854 { (case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9859 $as_echo "$ac_try_echo") >&5
9860 (eval "$ac_try") 2>&5
9862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9866 $as_echo "$as_me: program exited with status $ac_status" >&5
9867 $as_echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9871 ac_cv_header_stdc=no
9873 rm -rf conftest.dSYM
9874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9880 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9881 $as_echo "$ac_cv_header_stdc" >&6; }
9882 if test $ac_cv_header_stdc = yes; then
9884 cat >>confdefs.h <<\_ACEOF
9885 #define STDC_HEADERS 1
9890 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9900 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9901 inttypes.h stdint.h unistd.h
9903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9905 $as_echo_n "checking for $ac_header... " >&6; }
9906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9907 $as_echo_n "(cached) " >&6
9909 cat >conftest.$ac_ext <<_ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915 $ac_includes_default
9917 #include <$ac_header>
9919 rm -f conftest.$ac_objext
9920 if { (ac_try="$ac_compile"
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9926 $as_echo "$ac_try_echo") >&5
9927 (eval "$ac_compile") 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest.$ac_objext; then
9937 eval "$as_ac_Header=yes"
9939 $as_echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 eval "$as_ac_Header=no"
9945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9947 ac_res=`eval 'as_val=${'$as_ac_Header'}
9948 $as_echo "$as_val"'`
9949 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9950 $as_echo "$ac_res" >&6; }
9951 as_val=`eval 'as_val=${'$as_ac_Header'}
9952 $as_echo "$as_val"'`
9953 if test "x$as_val" = x""yes; then
9954 cat >>confdefs.h <<_ACEOF
9955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9994 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9999 $as_echo_n "checking for $ac_header... " >&6; }
10000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10001 $as_echo_n "(cached) " >&6
10003 ac_res=`eval 'as_val=${'$as_ac_Header'}
10004 $as_echo "$as_val"'`
10005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10006 $as_echo "$ac_res" >&6; }
10008 # Is the header compilable?
10009 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10010 $as_echo_n "checking $ac_header usability... " >&6; }
10011 cat >conftest.$ac_ext <<_ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10017 $ac_includes_default
10018 #include <$ac_header>
10020 rm -f conftest.$ac_objext
10021 if { (ac_try="$ac_compile"
10022 case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10027 $as_echo "$ac_try_echo") >&5
10028 (eval "$ac_compile") 2>conftest.er1
10030 grep -v '^ *+' conftest.er1 >conftest.err
10032 cat conftest.err >&5
10033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } && {
10035 test -z "$ac_c_werror_flag" ||
10036 test ! -s conftest.err
10037 } && test -s conftest.$ac_objext; then
10038 ac_header_compiler=yes
10040 $as_echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10043 ac_header_compiler=no
10046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10048 $as_echo "$ac_header_compiler" >&6; }
10050 # Is the header present?
10051 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10052 $as_echo_n "checking $ac_header presence... " >&6; }
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 #include <$ac_header>
10061 if { (ac_try="$ac_cpp conftest.$ac_ext"
10062 case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10067 $as_echo "$ac_try_echo") >&5
10068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10070 grep -v '^ *+' conftest.er1 >conftest.err
10072 cat conftest.err >&5
10073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } >/dev/null && {
10075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10076 test ! -s conftest.err
10078 ac_header_preproc=yes
10080 $as_echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 ac_header_preproc=no
10086 rm -f conftest.err conftest.$ac_ext
10087 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10088 $as_echo "$ac_header_preproc" >&6; }
10090 # So? What about this header?
10091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10094 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10097 ac_header_preproc=yes
10100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10101 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10103 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10105 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10107 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10111 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10113 ## ---------------------------------------- ##
10114 ## Report this to pgsql-bugs@postgresql.org ##
10115 ## ---------------------------------------- ##
10117 ) | sed "s/^/$as_me: WARNING: /" >&2
10120 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10121 $as_echo_n "checking for $ac_header... " >&6; }
10122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10123 $as_echo_n "(cached) " >&6
10125 eval "$as_ac_Header=\$ac_header_preproc"
10127 ac_res=`eval 'as_val=${'$as_ac_Header'}
10128 $as_echo "$as_val"'`
10129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10130 $as_echo "$ac_res" >&6; }
10133 as_val=`eval 'as_val=${'$as_ac_Header'}
10134 $as_echo "$as_val"'`
10135 if test "x$as_val" = x""yes; then
10136 cat >>confdefs.h <<_ACEOF
10137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10145 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10146 # is included first.
10148 for ac_header in net/if.h
10150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10152 $as_echo_n "checking for $ac_header... " >&6; }
10153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10154 $as_echo_n "(cached) " >&6
10156 cat >conftest.$ac_ext <<_ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 $ac_includes_default
10163 #ifdef HAVE_SYS_SOCKET_H
10164 #include <sys/socket.h>
10168 #include <$ac_header>
10170 rm -f conftest.$ac_objext
10171 if { (ac_try="$ac_compile"
10172 case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10177 $as_echo "$ac_try_echo") >&5
10178 (eval "$ac_compile") 2>conftest.er1
10180 grep -v '^ *+' conftest.er1 >conftest.err
10182 cat conftest.err >&5
10183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && {
10185 test -z "$ac_c_werror_flag" ||
10186 test ! -s conftest.err
10187 } && test -s conftest.$ac_objext; then
10188 eval "$as_ac_Header=yes"
10190 $as_echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10193 eval "$as_ac_Header=no"
10196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10198 ac_res=`eval 'as_val=${'$as_ac_Header'}
10199 $as_echo "$as_val"'`
10200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10201 $as_echo "$ac_res" >&6; }
10202 as_val=`eval 'as_val=${'$as_ac_Header'}
10203 $as_echo "$as_val"'`
10204 if test "x$as_val" = x""yes; then
10205 cat >>confdefs.h <<_ACEOF
10206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10214 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10215 # netinet/in.h is included first.
10217 for ac_header in netinet/in.h
10219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10221 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10222 $as_echo_n "checking for $ac_header... " >&6; }
10223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10224 $as_echo_n "(cached) " >&6
10226 ac_res=`eval 'as_val=${'$as_ac_Header'}
10227 $as_echo "$as_val"'`
10228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10229 $as_echo "$ac_res" >&6; }
10231 # Is the header compilable?
10232 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10233 $as_echo_n "checking $ac_header usability... " >&6; }
10234 cat >conftest.$ac_ext <<_ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10240 $ac_includes_default
10241 #include <$ac_header>
10243 rm -f conftest.$ac_objext
10244 if { (ac_try="$ac_compile"
10245 case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10250 $as_echo "$ac_try_echo") >&5
10251 (eval "$ac_compile") 2>conftest.er1
10253 grep -v '^ *+' conftest.er1 >conftest.err
10255 cat conftest.err >&5
10256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } && {
10258 test -z "$ac_c_werror_flag" ||
10259 test ! -s conftest.err
10260 } && test -s conftest.$ac_objext; then
10261 ac_header_compiler=yes
10263 $as_echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_header_compiler=no
10269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10270 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10271 $as_echo "$ac_header_compiler" >&6; }
10273 # Is the header present?
10274 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10275 $as_echo_n "checking $ac_header presence... " >&6; }
10276 cat >conftest.$ac_ext <<_ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10282 #include <$ac_header>
10284 if { (ac_try="$ac_cpp conftest.$ac_ext"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10290 $as_echo "$ac_try_echo") >&5
10291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10293 grep -v '^ *+' conftest.er1 >conftest.err
10295 cat conftest.err >&5
10296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } >/dev/null && {
10298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10299 test ! -s conftest.err
10301 ac_header_preproc=yes
10303 $as_echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 ac_header_preproc=no
10309 rm -f conftest.err conftest.$ac_ext
10310 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10311 $as_echo "$ac_header_preproc" >&6; }
10313 # So? What about this header?
10314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10317 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10319 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10320 ac_header_preproc=yes
10323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10324 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10326 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10328 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10330 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10332 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10334 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10336 ## ---------------------------------------- ##
10337 ## Report this to pgsql-bugs@postgresql.org ##
10338 ## ---------------------------------------- ##
10340 ) | sed "s/^/$as_me: WARNING: /" >&2
10343 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10344 $as_echo_n "checking for $ac_header... " >&6; }
10345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10346 $as_echo_n "(cached) " >&6
10348 eval "$as_ac_Header=\$ac_header_preproc"
10350 ac_res=`eval 'as_val=${'$as_ac_Header'}
10351 $as_echo "$as_val"'`
10352 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10353 $as_echo "$ac_res" >&6; }
10356 as_val=`eval 'as_val=${'$as_ac_Header'}
10357 $as_echo "$as_val"'`
10358 if test "x$as_val" = x""yes; then
10359 cat >>confdefs.h <<_ACEOF
10360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10368 for ac_header in netinet/tcp.h
10370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10372 $as_echo_n "checking for $ac_header... " >&6; }
10373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10374 $as_echo_n "(cached) " >&6
10376 cat >conftest.$ac_ext <<_ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10382 $ac_includes_default
10383 #ifdef HAVE_NETINET_IN_H
10384 #include <netinet/in.h>
10388 #include <$ac_header>
10390 rm -f conftest.$ac_objext
10391 if { (ac_try="$ac_compile"
10392 case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10397 $as_echo "$ac_try_echo") >&5
10398 (eval "$ac_compile") 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest.$ac_objext; then
10408 eval "$as_ac_Header=yes"
10410 $as_echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 eval "$as_ac_Header=no"
10416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418 ac_res=`eval 'as_val=${'$as_ac_Header'}
10419 $as_echo "$as_val"'`
10420 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10421 $as_echo "$ac_res" >&6; }
10422 as_val=`eval 'as_val=${'$as_ac_Header'}
10423 $as_echo "$as_val"'`
10424 if test "x$as_val" = x""yes; then
10425 cat >>confdefs.h <<_ACEOF
10426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10434 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10436 for ac_header in readline/readline.h
10438 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10440 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10441 $as_echo_n "checking for $ac_header... " >&6; }
10442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10443 $as_echo_n "(cached) " >&6
10445 ac_res=`eval 'as_val=${'$as_ac_Header'}
10446 $as_echo "$as_val"'`
10447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10448 $as_echo "$ac_res" >&6; }
10450 # Is the header compilable?
10451 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10452 $as_echo_n "checking $ac_header usability... " >&6; }
10453 cat >conftest.$ac_ext <<_ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10459 $ac_includes_default
10460 #include <$ac_header>
10462 rm -f conftest.$ac_objext
10463 if { (ac_try="$ac_compile"
10464 case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10469 $as_echo "$ac_try_echo") >&5
10470 (eval "$ac_compile") 2>conftest.er1
10472 grep -v '^ *+' conftest.er1 >conftest.err
10474 cat conftest.err >&5
10475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest.$ac_objext; then
10480 ac_header_compiler=yes
10482 $as_echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10485 ac_header_compiler=no
10488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10489 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10490 $as_echo "$ac_header_compiler" >&6; }
10492 # Is the header present?
10493 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10494 $as_echo_n "checking $ac_header presence... " >&6; }
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 #include <$ac_header>
10503 if { (ac_try="$ac_cpp conftest.$ac_ext"
10504 case "(($ac_try" in
10505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10506 *) ac_try_echo=$ac_try;;
10508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10509 $as_echo "$ac_try_echo") >&5
10510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10512 grep -v '^ *+' conftest.er1 >conftest.err
10514 cat conftest.err >&5
10515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } >/dev/null && {
10517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10518 test ! -s conftest.err
10520 ac_header_preproc=yes
10522 $as_echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10525 ac_header_preproc=no
10528 rm -f conftest.err conftest.$ac_ext
10529 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10530 $as_echo "$ac_header_preproc" >&6; }
10532 # So? What about this header?
10533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10536 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10538 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10539 ac_header_preproc=yes
10542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10543 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10545 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10547 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10549 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10551 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10553 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10555 ## ---------------------------------------- ##
10556 ## Report this to pgsql-bugs@postgresql.org ##
10557 ## ---------------------------------------- ##
10559 ) | sed "s/^/$as_me: WARNING: /" >&2
10562 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10563 $as_echo_n "checking for $ac_header... " >&6; }
10564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10565 $as_echo_n "(cached) " >&6
10567 eval "$as_ac_Header=\$ac_header_preproc"
10569 ac_res=`eval 'as_val=${'$as_ac_Header'}
10570 $as_echo "$as_val"'`
10571 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10572 $as_echo "$ac_res" >&6; }
10575 as_val=`eval 'as_val=${'$as_ac_Header'}
10576 $as_echo "$as_val"'`
10577 if test "x$as_val" = x""yes; then
10578 cat >>confdefs.h <<_ACEOF
10579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10584 for ac_header in readline.h
10586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10589 $as_echo_n "checking for $ac_header... " >&6; }
10590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10591 $as_echo_n "(cached) " >&6
10593 ac_res=`eval 'as_val=${'$as_ac_Header'}
10594 $as_echo "$as_val"'`
10595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10596 $as_echo "$ac_res" >&6; }
10598 # Is the header compilable?
10599 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10600 $as_echo_n "checking $ac_header usability... " >&6; }
10601 cat >conftest.$ac_ext <<_ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 $ac_includes_default
10608 #include <$ac_header>
10610 rm -f conftest.$ac_objext
10611 if { (ac_try="$ac_compile"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10617 $as_echo "$ac_try_echo") >&5
10618 (eval "$ac_compile") 2>conftest.er1
10620 grep -v '^ *+' conftest.er1 >conftest.err
10622 cat conftest.err >&5
10623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } && {
10625 test -z "$ac_c_werror_flag" ||
10626 test ! -s conftest.err
10627 } && test -s conftest.$ac_objext; then
10628 ac_header_compiler=yes
10630 $as_echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_header_compiler=no
10636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10638 $as_echo "$ac_header_compiler" >&6; }
10640 # Is the header present?
10641 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10642 $as_echo_n "checking $ac_header presence... " >&6; }
10643 cat >conftest.$ac_ext <<_ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649 #include <$ac_header>
10651 if { (ac_try="$ac_cpp conftest.$ac_ext"
10652 case "(($ac_try" in
10653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654 *) ac_try_echo=$ac_try;;
10656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10657 $as_echo "$ac_try_echo") >&5
10658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10660 grep -v '^ *+' conftest.er1 >conftest.err
10662 cat conftest.err >&5
10663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } >/dev/null && {
10665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10666 test ! -s conftest.err
10668 ac_header_preproc=yes
10670 $as_echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 ac_header_preproc=no
10676 rm -f conftest.err conftest.$ac_ext
10677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10678 $as_echo "$ac_header_preproc" >&6; }
10680 # So? What about this header?
10681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10684 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10687 ac_header_preproc=yes
10690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10691 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10693 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10695 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10697 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10701 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10703 ## ---------------------------------------- ##
10704 ## Report this to pgsql-bugs@postgresql.org ##
10705 ## ---------------------------------------- ##
10707 ) | sed "s/^/$as_me: WARNING: /" >&2
10710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10711 $as_echo_n "checking for $ac_header... " >&6; }
10712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10713 $as_echo_n "(cached) " >&6
10715 eval "$as_ac_Header=\$ac_header_preproc"
10717 ac_res=`eval 'as_val=${'$as_ac_Header'}
10718 $as_echo "$as_val"'`
10719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10720 $as_echo "$ac_res" >&6; }
10723 as_val=`eval 'as_val=${'$as_ac_Header'}
10724 $as_echo "$as_val"'`
10725 if test "x$as_val" = x""yes; then
10726 cat >>confdefs.h <<_ACEOF
10727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10731 { { $as_echo "$as_me:$LINENO: error: readline header not found
10732 If you have readline already installed, see config.log for details on the
10733 failure. It is possible the compiler isn't looking in the proper directory.
10734 Use --without-readline to disable readline support." >&5
10735 $as_echo "$as_me: error: readline header not found
10736 If you have readline already installed, see config.log for details on the
10737 failure. It is possible the compiler isn't looking in the proper directory.
10738 Use --without-readline to disable readline support." >&2;}
10739 { (exit 1); exit 1; }; }
10749 for ac_header in readline/history.h
10751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10754 $as_echo_n "checking for $ac_header... " >&6; }
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756 $as_echo_n "(cached) " >&6
10758 ac_res=`eval 'as_val=${'$as_ac_Header'}
10759 $as_echo "$as_val"'`
10760 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10761 $as_echo "$ac_res" >&6; }
10763 # Is the header compilable?
10764 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10765 $as_echo_n "checking $ac_header usability... " >&6; }
10766 cat >conftest.$ac_ext <<_ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 $ac_includes_default
10773 #include <$ac_header>
10775 rm -f conftest.$ac_objext
10776 if { (ac_try="$ac_compile"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10782 $as_echo "$ac_try_echo") >&5
10783 (eval "$ac_compile") 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && {
10790 test -z "$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10792 } && test -s conftest.$ac_objext; then
10793 ac_header_compiler=yes
10795 $as_echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_header_compiler=no
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10803 $as_echo "$ac_header_compiler" >&6; }
10805 # Is the header present?
10806 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10807 $as_echo_n "checking $ac_header presence... " >&6; }
10808 cat >conftest.$ac_ext <<_ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <$ac_header>
10816 if { (ac_try="$ac_cpp conftest.$ac_ext"
10817 case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10822 $as_echo "$ac_try_echo") >&5
10823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10825 grep -v '^ *+' conftest.er1 >conftest.err
10827 cat conftest.err >&5
10828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } >/dev/null && {
10830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10833 ac_header_preproc=yes
10835 $as_echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_header_preproc=no
10841 rm -f conftest.err conftest.$ac_ext
10842 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10843 $as_echo "$ac_header_preproc" >&6; }
10845 # So? What about this header?
10846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10849 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10851 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10852 ac_header_preproc=yes
10855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10856 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10858 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10860 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10862 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10864 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10866 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10868 ## ---------------------------------------- ##
10869 ## Report this to pgsql-bugs@postgresql.org ##
10870 ## ---------------------------------------- ##
10872 ) | sed "s/^/$as_me: WARNING: /" >&2
10875 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10876 $as_echo_n "checking for $ac_header... " >&6; }
10877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10878 $as_echo_n "(cached) " >&6
10880 eval "$as_ac_Header=\$ac_header_preproc"
10882 ac_res=`eval 'as_val=${'$as_ac_Header'}
10883 $as_echo "$as_val"'`
10884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10885 $as_echo "$ac_res" >&6; }
10888 as_val=`eval 'as_val=${'$as_ac_Header'}
10889 $as_echo "$as_val"'`
10890 if test "x$as_val" = x""yes; then
10891 cat >>confdefs.h <<_ACEOF
10892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10897 for ac_header in history.h
10899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10902 $as_echo_n "checking for $ac_header... " >&6; }
10903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10904 $as_echo_n "(cached) " >&6
10906 ac_res=`eval 'as_val=${'$as_ac_Header'}
10907 $as_echo "$as_val"'`
10908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10909 $as_echo "$ac_res" >&6; }
10911 # Is the header compilable?
10912 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10913 $as_echo_n "checking $ac_header usability... " >&6; }
10914 cat >conftest.$ac_ext <<_ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10920 $ac_includes_default
10921 #include <$ac_header>
10923 rm -f conftest.$ac_objext
10924 if { (ac_try="$ac_compile"
10925 case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10930 $as_echo "$ac_try_echo") >&5
10931 (eval "$ac_compile") 2>conftest.er1
10933 grep -v '^ *+' conftest.er1 >conftest.err
10935 cat conftest.err >&5
10936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && {
10938 test -z "$ac_c_werror_flag" ||
10939 test ! -s conftest.err
10940 } && test -s conftest.$ac_objext; then
10941 ac_header_compiler=yes
10943 $as_echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10946 ac_header_compiler=no
10949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10951 $as_echo "$ac_header_compiler" >&6; }
10953 # Is the header present?
10954 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10955 $as_echo_n "checking $ac_header presence... " >&6; }
10956 cat >conftest.$ac_ext <<_ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 #include <$ac_header>
10964 if { (ac_try="$ac_cpp conftest.$ac_ext"
10965 case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10970 $as_echo "$ac_try_echo") >&5
10971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10973 grep -v '^ *+' conftest.er1 >conftest.err
10975 cat conftest.err >&5
10976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } >/dev/null && {
10978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10979 test ! -s conftest.err
10981 ac_header_preproc=yes
10983 $as_echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 ac_header_preproc=no
10989 rm -f conftest.err conftest.$ac_ext
10990 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10991 $as_echo "$ac_header_preproc" >&6; }
10993 # So? What about this header?
10994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10997 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11000 ac_header_preproc=yes
11003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11004 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11006 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11008 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11010 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11012 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11014 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11016 ## ---------------------------------------- ##
11017 ## Report this to pgsql-bugs@postgresql.org ##
11018 ## ---------------------------------------- ##
11020 ) | sed "s/^/$as_me: WARNING: /" >&2
11023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11024 $as_echo_n "checking for $ac_header... " >&6; }
11025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11026 $as_echo_n "(cached) " >&6
11028 eval "$as_ac_Header=\$ac_header_preproc"
11030 ac_res=`eval 'as_val=${'$as_ac_Header'}
11031 $as_echo "$as_val"'`
11032 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11033 $as_echo "$ac_res" >&6; }
11036 as_val=`eval 'as_val=${'$as_ac_Header'}
11037 $as_echo "$as_val"'`
11038 if test "x$as_val" = x""yes; then
11039 cat >>confdefs.h <<_ACEOF
11040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11044 { { $as_echo "$as_me:$LINENO: error: history header not found
11045 If you have readline already installed, see config.log for details on the
11046 failure. It is possible the compiler isn't looking in the proper directory.
11047 Use --without-readline to disable readline support." >&5
11048 $as_echo "$as_me: error: history header not found
11049 If you have readline already installed, see config.log for details on the
11050 failure. It is possible the compiler isn't looking in the proper directory.
11051 Use --without-readline to disable readline support." >&2;}
11052 { (exit 1); exit 1; }; }
11063 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11064 # Some installations of libedit usurp /usr/include/readline/, which seems
11065 # bad practice, since in combined installations readline will have its headers
11066 # there. We might have to resort to AC_EGREP checks to make sure we found
11067 # the proper header...
11069 for ac_header in editline/readline.h
11071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11074 $as_echo_n "checking for $ac_header... " >&6; }
11075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11076 $as_echo_n "(cached) " >&6
11078 ac_res=`eval 'as_val=${'$as_ac_Header'}
11079 $as_echo "$as_val"'`
11080 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11081 $as_echo "$ac_res" >&6; }
11083 # Is the header compilable?
11084 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11085 $as_echo_n "checking $ac_header usability... " >&6; }
11086 cat >conftest.$ac_ext <<_ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 $ac_includes_default
11093 #include <$ac_header>
11095 rm -f conftest.$ac_objext
11096 if { (ac_try="$ac_compile"
11097 case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102 $as_echo "$ac_try_echo") >&5
11103 (eval "$ac_compile") 2>conftest.er1
11105 grep -v '^ *+' conftest.er1 >conftest.err
11107 cat conftest.err >&5
11108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && {
11110 test -z "$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest.$ac_objext; then
11113 ac_header_compiler=yes
11115 $as_echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11118 ac_header_compiler=no
11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11123 $as_echo "$ac_header_compiler" >&6; }
11125 # Is the header present?
11126 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11127 $as_echo_n "checking $ac_header presence... " >&6; }
11128 cat >conftest.$ac_ext <<_ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11134 #include <$ac_header>
11136 if { (ac_try="$ac_cpp conftest.$ac_ext"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11142 $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11163 $as_echo "$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 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11169 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11172 ac_header_preproc=yes
11175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11176 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11178 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11180 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11182 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11184 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11186 $as_echo "$as_me: WARNING: $ac_header: 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 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11196 $as_echo_n "checking for $ac_header... " >&6; }
11197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11198 $as_echo_n "(cached) " >&6
11200 eval "$as_ac_Header=\$ac_header_preproc"
11202 ac_res=`eval 'as_val=${'$as_ac_Header'}
11203 $as_echo "$as_val"'`
11204 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11205 $as_echo "$ac_res" >&6; }
11208 as_val=`eval 'as_val=${'$as_ac_Header'}
11209 $as_echo "$as_val"'`
11210 if test "x$as_val" = x""yes; then
11211 cat >>confdefs.h <<_ACEOF
11212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11217 for ac_header in readline.h
11219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11221 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11222 $as_echo_n "checking for $ac_header... " >&6; }
11223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11224 $as_echo_n "(cached) " >&6
11226 ac_res=`eval 'as_val=${'$as_ac_Header'}
11227 $as_echo "$as_val"'`
11228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11229 $as_echo "$ac_res" >&6; }
11231 # Is the header compilable?
11232 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11233 $as_echo_n "checking $ac_header usability... " >&6; }
11234 cat >conftest.$ac_ext <<_ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 $ac_includes_default
11241 #include <$ac_header>
11243 rm -f conftest.$ac_objext
11244 if { (ac_try="$ac_compile"
11245 case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11250 $as_echo "$ac_try_echo") >&5
11251 (eval "$ac_compile") 2>conftest.er1
11253 grep -v '^ *+' conftest.er1 >conftest.err
11255 cat conftest.err >&5
11256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } && {
11258 test -z "$ac_c_werror_flag" ||
11259 test ! -s conftest.err
11260 } && test -s conftest.$ac_objext; then
11261 ac_header_compiler=yes
11263 $as_echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11266 ac_header_compiler=no
11269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11270 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11271 $as_echo "$ac_header_compiler" >&6; }
11273 # Is the header present?
11274 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11275 $as_echo_n "checking $ac_header presence... " >&6; }
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 #include <$ac_header>
11284 if { (ac_try="$ac_cpp conftest.$ac_ext"
11285 case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11290 $as_echo "$ac_try_echo") >&5
11291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } >/dev/null && {
11298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11299 test ! -s conftest.err
11301 ac_header_preproc=yes
11303 $as_echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 ac_header_preproc=no
11309 rm -f conftest.err conftest.$ac_ext
11310 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11311 $as_echo "$ac_header_preproc" >&6; }
11313 # So? What about this header?
11314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11317 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11319 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11320 ac_header_preproc=yes
11323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11324 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11326 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11328 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11330 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11332 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11334 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11336 ## ---------------------------------------- ##
11337 ## Report this to pgsql-bugs@postgresql.org ##
11338 ## ---------------------------------------- ##
11340 ) | sed "s/^/$as_me: WARNING: /" >&2
11343 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11344 $as_echo_n "checking for $ac_header... " >&6; }
11345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11346 $as_echo_n "(cached) " >&6
11348 eval "$as_ac_Header=\$ac_header_preproc"
11350 ac_res=`eval 'as_val=${'$as_ac_Header'}
11351 $as_echo "$as_val"'`
11352 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11353 $as_echo "$ac_res" >&6; }
11356 as_val=`eval 'as_val=${'$as_ac_Header'}
11357 $as_echo "$as_val"'`
11358 if test "x$as_val" = x""yes; then
11359 cat >>confdefs.h <<_ACEOF
11360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11365 for ac_header in readline/readline.h
11367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11369 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11370 $as_echo_n "checking for $ac_header... " >&6; }
11371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11372 $as_echo_n "(cached) " >&6
11374 ac_res=`eval 'as_val=${'$as_ac_Header'}
11375 $as_echo "$as_val"'`
11376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11377 $as_echo "$ac_res" >&6; }
11379 # Is the header compilable?
11380 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11381 $as_echo_n "checking $ac_header usability... " >&6; }
11382 cat >conftest.$ac_ext <<_ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 $ac_includes_default
11389 #include <$ac_header>
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11398 $as_echo "$ac_try_echo") >&5
11399 (eval "$ac_compile") 2>conftest.er1
11401 grep -v '^ *+' conftest.er1 >conftest.err
11403 cat conftest.err >&5
11404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } && {
11406 test -z "$ac_c_werror_flag" ||
11407 test ! -s conftest.err
11408 } && test -s conftest.$ac_objext; then
11409 ac_header_compiler=yes
11411 $as_echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ac_header_compiler=no
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419 $as_echo "$ac_header_compiler" >&6; }
11421 # Is the header present?
11422 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11423 $as_echo_n "checking $ac_header presence... " >&6; }
11424 cat >conftest.$ac_ext <<_ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 #include <$ac_header>
11432 if { (ac_try="$ac_cpp conftest.$ac_ext"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11438 $as_echo "$ac_try_echo") >&5
11439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11441 grep -v '^ *+' conftest.er1 >conftest.err
11443 cat conftest.err >&5
11444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } >/dev/null && {
11446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11447 test ! -s conftest.err
11449 ac_header_preproc=yes
11451 $as_echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 ac_header_preproc=no
11457 rm -f conftest.err conftest.$ac_ext
11458 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11459 $as_echo "$ac_header_preproc" >&6; }
11461 # So? What about this header?
11462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11465 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11467 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11468 ac_header_preproc=yes
11471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11472 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11474 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11476 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11478 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11480 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11482 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11484 ## ---------------------------------------- ##
11485 ## Report this to pgsql-bugs@postgresql.org ##
11486 ## ---------------------------------------- ##
11488 ) | sed "s/^/$as_me: WARNING: /" >&2
11491 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11492 $as_echo_n "checking for $ac_header... " >&6; }
11493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11494 $as_echo_n "(cached) " >&6
11496 eval "$as_ac_Header=\$ac_header_preproc"
11498 ac_res=`eval 'as_val=${'$as_ac_Header'}
11499 $as_echo "$as_val"'`
11500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11501 $as_echo "$ac_res" >&6; }
11504 as_val=`eval 'as_val=${'$as_ac_Header'}
11505 $as_echo "$as_val"'`
11506 if test "x$as_val" = x""yes; then
11507 cat >>confdefs.h <<_ACEOF
11508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11512 { { $as_echo "$as_me:$LINENO: error: readline header not found
11513 If you have libedit already installed, see config.log for details on the
11514 failure. It is possible the compiler isn't looking in the proper directory.
11515 Use --without-readline to disable libedit support." >&5
11516 $as_echo "$as_me: error: readline header not found
11517 If you have libedit already installed, see config.log for details on the
11518 failure. It is possible the compiler isn't looking in the proper directory.
11519 Use --without-readline to disable libedit support." >&2;}
11520 { (exit 1); exit 1; }; }
11533 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11534 # not be there at all. Hence, don't complain if not found. We must check
11535 # though, since in yet other versions it is an independent header.
11537 for ac_header in editline/history.h
11539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11542 $as_echo_n "checking for $ac_header... " >&6; }
11543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11544 $as_echo_n "(cached) " >&6
11546 ac_res=`eval 'as_val=${'$as_ac_Header'}
11547 $as_echo "$as_val"'`
11548 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11549 $as_echo "$ac_res" >&6; }
11551 # Is the header compilable?
11552 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11553 $as_echo_n "checking $ac_header usability... " >&6; }
11554 cat >conftest.$ac_ext <<_ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h. */
11560 $ac_includes_default
11561 #include <$ac_header>
11563 rm -f conftest.$ac_objext
11564 if { (ac_try="$ac_compile"
11565 case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11570 $as_echo "$ac_try_echo") >&5
11571 (eval "$ac_compile") 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest.$ac_objext; then
11581 ac_header_compiler=yes
11583 $as_echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11586 ac_header_compiler=no
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11591 $as_echo "$ac_header_compiler" >&6; }
11593 # Is the header present?
11594 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11595 $as_echo_n "checking $ac_header presence... " >&6; }
11596 cat >conftest.$ac_ext <<_ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11602 #include <$ac_header>
11604 if { (ac_try="$ac_cpp conftest.$ac_ext"
11605 case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11610 $as_echo "$ac_try_echo") >&5
11611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11613 grep -v '^ *+' conftest.er1 >conftest.err
11615 cat conftest.err >&5
11616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } >/dev/null && {
11618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11619 test ! -s conftest.err
11621 ac_header_preproc=yes
11623 $as_echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 ac_header_preproc=no
11629 rm -f conftest.err conftest.$ac_ext
11630 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11631 $as_echo "$ac_header_preproc" >&6; }
11633 # So? What about this header?
11634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11637 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11639 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11640 ac_header_preproc=yes
11643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11644 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11646 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11648 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11650 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11652 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11654 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11656 ## ---------------------------------------- ##
11657 ## Report this to pgsql-bugs@postgresql.org ##
11658 ## ---------------------------------------- ##
11660 ) | sed "s/^/$as_me: WARNING: /" >&2
11663 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11664 $as_echo_n "checking for $ac_header... " >&6; }
11665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11666 $as_echo_n "(cached) " >&6
11668 eval "$as_ac_Header=\$ac_header_preproc"
11670 ac_res=`eval 'as_val=${'$as_ac_Header'}
11671 $as_echo "$as_val"'`
11672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11673 $as_echo "$ac_res" >&6; }
11676 as_val=`eval 'as_val=${'$as_ac_Header'}
11677 $as_echo "$as_val"'`
11678 if test "x$as_val" = x""yes; then
11679 cat >>confdefs.h <<_ACEOF
11680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11685 for ac_header in history.h
11687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11689 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11690 $as_echo_n "checking for $ac_header... " >&6; }
11691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11692 $as_echo_n "(cached) " >&6
11694 ac_res=`eval 'as_val=${'$as_ac_Header'}
11695 $as_echo "$as_val"'`
11696 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11697 $as_echo "$ac_res" >&6; }
11699 # Is the header compilable?
11700 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11701 $as_echo_n "checking $ac_header usability... " >&6; }
11702 cat >conftest.$ac_ext <<_ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 $ac_includes_default
11709 #include <$ac_header>
11711 rm -f conftest.$ac_objext
11712 if { (ac_try="$ac_compile"
11713 case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11718 $as_echo "$ac_try_echo") >&5
11719 (eval "$ac_compile") 2>conftest.er1
11721 grep -v '^ *+' conftest.er1 >conftest.err
11723 cat conftest.err >&5
11724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } && {
11726 test -z "$ac_c_werror_flag" ||
11727 test ! -s conftest.err
11728 } && test -s conftest.$ac_objext; then
11729 ac_header_compiler=yes
11731 $as_echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 ac_header_compiler=no
11737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11739 $as_echo "$ac_header_compiler" >&6; }
11741 # Is the header present?
11742 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11743 $as_echo_n "checking $ac_header presence... " >&6; }
11744 cat >conftest.$ac_ext <<_ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 #include <$ac_header>
11752 if { (ac_try="$ac_cpp conftest.$ac_ext"
11753 case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11758 $as_echo "$ac_try_echo") >&5
11759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11761 grep -v '^ *+' conftest.er1 >conftest.err
11763 cat conftest.err >&5
11764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } >/dev/null && {
11766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11767 test ! -s conftest.err
11769 ac_header_preproc=yes
11771 $as_echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11774 ac_header_preproc=no
11777 rm -f conftest.err conftest.$ac_ext
11778 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11779 $as_echo "$ac_header_preproc" >&6; }
11781 # So? What about this header?
11782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11785 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11787 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11788 ac_header_preproc=yes
11791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11792 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11794 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11796 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11798 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11800 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11802 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11804 ## ---------------------------------------- ##
11805 ## Report this to pgsql-bugs@postgresql.org ##
11806 ## ---------------------------------------- ##
11808 ) | sed "s/^/$as_me: WARNING: /" >&2
11811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11812 $as_echo_n "checking for $ac_header... " >&6; }
11813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11814 $as_echo_n "(cached) " >&6
11816 eval "$as_ac_Header=\$ac_header_preproc"
11818 ac_res=`eval 'as_val=${'$as_ac_Header'}
11819 $as_echo "$as_val"'`
11820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11821 $as_echo "$ac_res" >&6; }
11824 as_val=`eval 'as_val=${'$as_ac_Header'}
11825 $as_echo "$as_val"'`
11826 if test "x$as_val" = x""yes; then
11827 cat >>confdefs.h <<_ACEOF
11828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11833 for ac_header in readline/history.h
11835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11838 $as_echo_n "checking for $ac_header... " >&6; }
11839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11840 $as_echo_n "(cached) " >&6
11842 ac_res=`eval 'as_val=${'$as_ac_Header'}
11843 $as_echo "$as_val"'`
11844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11845 $as_echo "$ac_res" >&6; }
11847 # Is the header compilable?
11848 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11849 $as_echo_n "checking $ac_header usability... " >&6; }
11850 cat >conftest.$ac_ext <<_ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 $ac_includes_default
11857 #include <$ac_header>
11859 rm -f conftest.$ac_objext
11860 if { (ac_try="$ac_compile"
11861 case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11866 $as_echo "$ac_try_echo") >&5
11867 (eval "$ac_compile") 2>conftest.er1
11869 grep -v '^ *+' conftest.er1 >conftest.err
11871 cat conftest.err >&5
11872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } && {
11874 test -z "$ac_c_werror_flag" ||
11875 test ! -s conftest.err
11876 } && test -s conftest.$ac_objext; then
11877 ac_header_compiler=yes
11879 $as_echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 ac_header_compiler=no
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11887 $as_echo "$ac_header_compiler" >&6; }
11889 # Is the header present?
11890 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11891 $as_echo_n "checking $ac_header presence... " >&6; }
11892 cat >conftest.$ac_ext <<_ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 #include <$ac_header>
11900 if { (ac_try="$ac_cpp conftest.$ac_ext"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906 $as_echo "$ac_try_echo") >&5
11907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11909 grep -v '^ *+' conftest.er1 >conftest.err
11911 cat conftest.err >&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } >/dev/null && {
11914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11917 ac_header_preproc=yes
11919 $as_echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_header_preproc=no
11925 rm -f conftest.err conftest.$ac_ext
11926 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927 $as_echo "$ac_header_preproc" >&6; }
11929 # So? What about this header?
11930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11933 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11936 ac_header_preproc=yes
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11942 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11944 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11946 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11948 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11950 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11952 ## ---------------------------------------- ##
11953 ## Report this to pgsql-bugs@postgresql.org ##
11954 ## ---------------------------------------- ##
11956 ) | sed "s/^/$as_me: WARNING: /" >&2
11959 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 $as_echo_n "checking for $ac_header... " >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962 $as_echo_n "(cached) " >&6
11964 eval "$as_ac_Header=\$ac_header_preproc"
11966 ac_res=`eval 'as_val=${'$as_ac_Header'}
11967 $as_echo "$as_val"'`
11968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11969 $as_echo "$ac_res" >&6; }
11972 as_val=`eval 'as_val=${'$as_ac_Header'}
11973 $as_echo "$as_val"'`
11974 if test "x$as_val" = x""yes; then
11975 cat >>confdefs.h <<_ACEOF
11976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11993 if test "$with_zlib" = yes; then
11994 if test "${ac_cv_header_zlib_h+set}" = set; then
11995 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11996 $as_echo_n "checking for zlib.h... " >&6; }
11997 if test "${ac_cv_header_zlib_h+set}" = set; then
11998 $as_echo_n "(cached) " >&6
12000 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12001 $as_echo "$ac_cv_header_zlib_h" >&6; }
12003 # Is the header compilable?
12004 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12005 $as_echo_n "checking zlib.h usability... " >&6; }
12006 cat >conftest.$ac_ext <<_ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12012 $ac_includes_default
12015 rm -f conftest.$ac_objext
12016 if { (ac_try="$ac_compile"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12022 $as_echo "$ac_try_echo") >&5
12023 (eval "$ac_compile") 2>conftest.er1
12025 grep -v '^ *+' conftest.er1 >conftest.err
12027 cat conftest.err >&5
12028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } && {
12030 test -z "$ac_c_werror_flag" ||
12031 test ! -s conftest.err
12032 } && test -s conftest.$ac_objext; then
12033 ac_header_compiler=yes
12035 $as_echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12038 ac_header_compiler=no
12041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12043 $as_echo "$ac_header_compiler" >&6; }
12045 # Is the header present?
12046 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12047 $as_echo_n "checking zlib.h presence... " >&6; }
12048 cat >conftest.$ac_ext <<_ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12056 if { (ac_try="$ac_cpp conftest.$ac_ext"
12057 case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12062 $as_echo "$ac_try_echo") >&5
12063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12065 grep -v '^ *+' conftest.er1 >conftest.err
12067 cat conftest.err >&5
12068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } >/dev/null && {
12070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12071 test ! -s conftest.err
12073 ac_header_preproc=yes
12075 $as_echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ac_header_preproc=no
12081 rm -f conftest.err conftest.$ac_ext
12082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12083 $as_echo "$ac_header_preproc" >&6; }
12085 # So? What about this header?
12086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12088 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12089 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12090 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12091 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12092 ac_header_preproc=yes
12095 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12096 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12097 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12098 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12099 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12100 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12101 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12102 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12103 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12104 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12105 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12106 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12108 ## ---------------------------------------- ##
12109 ## Report this to pgsql-bugs@postgresql.org ##
12110 ## ---------------------------------------- ##
12112 ) | sed "s/^/$as_me: WARNING: /" >&2
12115 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12116 $as_echo_n "checking for zlib.h... " >&6; }
12117 if test "${ac_cv_header_zlib_h+set}" = set; then
12118 $as_echo_n "(cached) " >&6
12120 ac_cv_header_zlib_h=$ac_header_preproc
12122 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12123 $as_echo "$ac_cv_header_zlib_h" >&6; }
12126 if test "x$ac_cv_header_zlib_h" = x""yes; then
12129 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12130 If you have zlib already installed, see config.log for details on the
12131 failure. It is possible the compiler isn't looking in the proper directory.
12132 Use --without-zlib to disable zlib support." >&5
12133 $as_echo "$as_me: error: zlib header not found
12134 If you have zlib already installed, see config.log for details on the
12135 failure. It is possible the compiler isn't looking in the proper directory.
12136 Use --without-zlib to disable zlib support." >&2;}
12137 { (exit 1); exit 1; }; }
12143 if test "$with_gssapi" = yes ; then
12145 for ac_header in gssapi/gssapi.h
12147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12150 $as_echo_n "checking for $ac_header... " >&6; }
12151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12152 $as_echo_n "(cached) " >&6
12154 ac_res=`eval 'as_val=${'$as_ac_Header'}
12155 $as_echo "$as_val"'`
12156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12157 $as_echo "$ac_res" >&6; }
12159 # Is the header compilable?
12160 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12161 $as_echo_n "checking $ac_header usability... " >&6; }
12162 cat >conftest.$ac_ext <<_ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h. */
12168 $ac_includes_default
12169 #include <$ac_header>
12171 rm -f conftest.$ac_objext
12172 if { (ac_try="$ac_compile"
12173 case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12178 $as_echo "$ac_try_echo") >&5
12179 (eval "$ac_compile") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } && {
12186 test -z "$ac_c_werror_flag" ||
12187 test ! -s conftest.err
12188 } && test -s conftest.$ac_objext; then
12189 ac_header_compiler=yes
12191 $as_echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194 ac_header_compiler=no
12197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12199 $as_echo "$ac_header_compiler" >&6; }
12201 # Is the header present?
12202 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12203 $as_echo_n "checking $ac_header presence... " >&6; }
12204 cat >conftest.$ac_ext <<_ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h. */
12210 #include <$ac_header>
12212 if { (ac_try="$ac_cpp conftest.$ac_ext"
12213 case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12218 $as_echo "$ac_try_echo") >&5
12219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12221 grep -v '^ *+' conftest.er1 >conftest.err
12223 cat conftest.err >&5
12224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } >/dev/null && {
12226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12227 test ! -s conftest.err
12229 ac_header_preproc=yes
12231 $as_echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_header_preproc=no
12237 rm -f conftest.err conftest.$ac_ext
12238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12239 $as_echo "$ac_header_preproc" >&6; }
12241 # So? What about this header?
12242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12245 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12248 ac_header_preproc=yes
12251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12252 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12254 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12256 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12258 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12262 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12264 ## ---------------------------------------- ##
12265 ## Report this to pgsql-bugs@postgresql.org ##
12266 ## ---------------------------------------- ##
12268 ) | sed "s/^/$as_me: WARNING: /" >&2
12271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12272 $as_echo_n "checking for $ac_header... " >&6; }
12273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12274 $as_echo_n "(cached) " >&6
12276 eval "$as_ac_Header=\$ac_header_preproc"
12278 ac_res=`eval 'as_val=${'$as_ac_Header'}
12279 $as_echo "$as_val"'`
12280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12281 $as_echo "$ac_res" >&6; }
12284 as_val=`eval 'as_val=${'$as_ac_Header'}
12285 $as_echo "$as_val"'`
12286 if test "x$as_val" = x""yes; then
12287 cat >>confdefs.h <<_ACEOF
12288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12293 for ac_header in gssapi.h
12295 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12297 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12298 $as_echo_n "checking for $ac_header... " >&6; }
12299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12300 $as_echo_n "(cached) " >&6
12302 ac_res=`eval 'as_val=${'$as_ac_Header'}
12303 $as_echo "$as_val"'`
12304 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12305 $as_echo "$ac_res" >&6; }
12307 # Is the header compilable?
12308 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12309 $as_echo_n "checking $ac_header usability... " >&6; }
12310 cat >conftest.$ac_ext <<_ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 $ac_includes_default
12317 #include <$ac_header>
12319 rm -f conftest.$ac_objext
12320 if { (ac_try="$ac_compile"
12321 case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12326 $as_echo "$ac_try_echo") >&5
12327 (eval "$ac_compile") 2>conftest.er1
12329 grep -v '^ *+' conftest.er1 >conftest.err
12331 cat conftest.err >&5
12332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } && {
12334 test -z "$ac_c_werror_flag" ||
12335 test ! -s conftest.err
12336 } && test -s conftest.$ac_objext; then
12337 ac_header_compiler=yes
12339 $as_echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12342 ac_header_compiler=no
12345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12347 $as_echo "$ac_header_compiler" >&6; }
12349 # Is the header present?
12350 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12351 $as_echo_n "checking $ac_header presence... " >&6; }
12352 cat >conftest.$ac_ext <<_ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12358 #include <$ac_header>
12360 if { (ac_try="$ac_cpp conftest.$ac_ext"
12361 case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12366 $as_echo "$ac_try_echo") >&5
12367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } >/dev/null && {
12374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12377 ac_header_preproc=yes
12379 $as_echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_header_preproc=no
12385 rm -f conftest.err conftest.$ac_ext
12386 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12387 $as_echo "$ac_header_preproc" >&6; }
12389 # So? What about this header?
12390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12393 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12395 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12396 ac_header_preproc=yes
12399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12400 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12402 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12404 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12406 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12408 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12410 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12412 ## ---------------------------------------- ##
12413 ## Report this to pgsql-bugs@postgresql.org ##
12414 ## ---------------------------------------- ##
12416 ) | sed "s/^/$as_me: WARNING: /" >&2
12419 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12420 $as_echo_n "checking for $ac_header... " >&6; }
12421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12422 $as_echo_n "(cached) " >&6
12424 eval "$as_ac_Header=\$ac_header_preproc"
12426 ac_res=`eval 'as_val=${'$as_ac_Header'}
12427 $as_echo "$as_val"'`
12428 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12429 $as_echo "$ac_res" >&6; }
12432 as_val=`eval 'as_val=${'$as_ac_Header'}
12433 $as_echo "$as_val"'`
12434 if test "x$as_val" = x""yes; then
12435 cat >>confdefs.h <<_ACEOF
12436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12440 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12441 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12442 { (exit 1); exit 1; }; }
12453 if test "$with_krb5" = yes ; then
12454 if test "${ac_cv_header_krb5_h+set}" = set; then
12455 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12456 $as_echo_n "checking for krb5.h... " >&6; }
12457 if test "${ac_cv_header_krb5_h+set}" = set; then
12458 $as_echo_n "(cached) " >&6
12460 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12461 $as_echo "$ac_cv_header_krb5_h" >&6; }
12463 # Is the header compilable?
12464 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12465 $as_echo_n "checking krb5.h usability... " >&6; }
12466 cat >conftest.$ac_ext <<_ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12472 $ac_includes_default
12475 rm -f conftest.$ac_objext
12476 if { (ac_try="$ac_compile"
12477 case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12482 $as_echo "$ac_try_echo") >&5
12483 (eval "$ac_compile") 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } && {
12490 test -z "$ac_c_werror_flag" ||
12491 test ! -s conftest.err
12492 } && test -s conftest.$ac_objext; then
12493 ac_header_compiler=yes
12495 $as_echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12498 ac_header_compiler=no
12501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12503 $as_echo "$ac_header_compiler" >&6; }
12505 # Is the header present?
12506 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12507 $as_echo_n "checking krb5.h presence... " >&6; }
12508 cat >conftest.$ac_ext <<_ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12516 if { (ac_try="$ac_cpp conftest.$ac_ext"
12517 case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12522 $as_echo "$ac_try_echo") >&5
12523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } >/dev/null && {
12530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12531 test ! -s conftest.err
12533 ac_header_preproc=yes
12535 $as_echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12538 ac_header_preproc=no
12541 rm -f conftest.err conftest.$ac_ext
12542 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12543 $as_echo "$ac_header_preproc" >&6; }
12545 # So? What about this header?
12546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12548 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12549 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12550 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12551 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12552 ac_header_preproc=yes
12555 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12556 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12557 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12558 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12559 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12560 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12561 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12562 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12563 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12564 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12565 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12566 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12568 ## ---------------------------------------- ##
12569 ## Report this to pgsql-bugs@postgresql.org ##
12570 ## ---------------------------------------- ##
12572 ) | sed "s/^/$as_me: WARNING: /" >&2
12575 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12576 $as_echo_n "checking for krb5.h... " >&6; }
12577 if test "${ac_cv_header_krb5_h+set}" = set; then
12578 $as_echo_n "(cached) " >&6
12580 ac_cv_header_krb5_h=$ac_header_preproc
12582 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12583 $as_echo "$ac_cv_header_krb5_h" >&6; }
12586 if test "x$ac_cv_header_krb5_h" = x""yes; then
12589 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12590 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12591 { (exit 1); exit 1; }; }
12597 if test "$with_openssl" = yes ; then
12598 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12599 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12600 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12601 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12602 $as_echo_n "(cached) " >&6
12604 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12605 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12607 # Is the header compilable?
12608 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12609 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12610 cat >conftest.$ac_ext <<_ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 $ac_includes_default
12617 #include <openssl/ssl.h>
12619 rm -f conftest.$ac_objext
12620 if { (ac_try="$ac_compile"
12621 case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12626 $as_echo "$ac_try_echo") >&5
12627 (eval "$ac_compile") 2>conftest.er1
12629 grep -v '^ *+' conftest.er1 >conftest.err
12631 cat conftest.err >&5
12632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } && {
12634 test -z "$ac_c_werror_flag" ||
12635 test ! -s conftest.err
12636 } && test -s conftest.$ac_objext; then
12637 ac_header_compiler=yes
12639 $as_echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_header_compiler=no
12645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12647 $as_echo "$ac_header_compiler" >&6; }
12649 # Is the header present?
12650 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12651 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12652 cat >conftest.$ac_ext <<_ACEOF
12655 cat confdefs.h >>conftest.$ac_ext
12656 cat >>conftest.$ac_ext <<_ACEOF
12657 /* end confdefs.h. */
12658 #include <openssl/ssl.h>
12660 if { (ac_try="$ac_cpp conftest.$ac_ext"
12661 case "(($ac_try" in
12662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663 *) ac_try_echo=$ac_try;;
12665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12666 $as_echo "$ac_try_echo") >&5
12667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12669 grep -v '^ *+' conftest.er1 >conftest.err
12671 cat conftest.err >&5
12672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } >/dev/null && {
12674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12675 test ! -s conftest.err
12677 ac_header_preproc=yes
12679 $as_echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12682 ac_header_preproc=no
12685 rm -f conftest.err conftest.$ac_ext
12686 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12687 $as_echo "$ac_header_preproc" >&6; }
12689 # So? What about this header?
12690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12692 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12693 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12694 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12695 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12696 ac_header_preproc=yes
12699 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12700 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12701 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12702 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12703 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12704 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12705 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12706 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12707 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12708 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12709 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12710 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12712 ## ---------------------------------------- ##
12713 ## Report this to pgsql-bugs@postgresql.org ##
12714 ## ---------------------------------------- ##
12716 ) | sed "s/^/$as_me: WARNING: /" >&2
12719 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12720 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12721 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12722 $as_echo_n "(cached) " >&6
12724 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12726 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12727 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12730 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12733 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12734 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12735 { (exit 1); exit 1; }; }
12739 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12740 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12741 $as_echo_n "checking for openssl/err.h... " >&6; }
12742 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12743 $as_echo_n "(cached) " >&6
12745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12746 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12748 # Is the header compilable?
12749 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12750 $as_echo_n "checking openssl/err.h usability... " >&6; }
12751 cat >conftest.$ac_ext <<_ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12757 $ac_includes_default
12758 #include <openssl/err.h>
12760 rm -f conftest.$ac_objext
12761 if { (ac_try="$ac_compile"
12762 case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12767 $as_echo "$ac_try_echo") >&5
12768 (eval "$ac_compile") 2>conftest.er1
12770 grep -v '^ *+' conftest.er1 >conftest.err
12772 cat conftest.err >&5
12773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } && {
12775 test -z "$ac_c_werror_flag" ||
12776 test ! -s conftest.err
12777 } && test -s conftest.$ac_objext; then
12778 ac_header_compiler=yes
12780 $as_echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12783 ac_header_compiler=no
12786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12788 $as_echo "$ac_header_compiler" >&6; }
12790 # Is the header present?
12791 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12792 $as_echo_n "checking openssl/err.h presence... " >&6; }
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 #include <openssl/err.h>
12801 if { (ac_try="$ac_cpp conftest.$ac_ext"
12802 case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12807 $as_echo "$ac_try_echo") >&5
12808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12810 grep -v '^ *+' conftest.er1 >conftest.err
12812 cat conftest.err >&5
12813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } >/dev/null && {
12815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12818 ac_header_preproc=yes
12820 $as_echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_header_preproc=no
12826 rm -f conftest.err conftest.$ac_ext
12827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12828 $as_echo "$ac_header_preproc" >&6; }
12830 # So? What about this header?
12831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12833 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12834 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12835 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12836 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12837 ac_header_preproc=yes
12840 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12841 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12842 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12843 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12844 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12845 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12846 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12847 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12848 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12849 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12850 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12851 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12853 ## ---------------------------------------- ##
12854 ## Report this to pgsql-bugs@postgresql.org ##
12855 ## ---------------------------------------- ##
12857 ) | sed "s/^/$as_me: WARNING: /" >&2
12860 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12861 $as_echo_n "checking for openssl/err.h... " >&6; }
12862 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12863 $as_echo_n "(cached) " >&6
12865 ac_cv_header_openssl_err_h=$ac_header_preproc
12867 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12868 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12871 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12874 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12875 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12876 { (exit 1); exit 1; }; }
12881 for ac_func in ERR_set_mark
12883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12885 $as_echo_n "checking for $ac_func... " >&6; }
12886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12887 $as_echo_n "(cached) " >&6
12889 cat >conftest.$ac_ext <<_ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12897 #define $ac_func innocuous_$ac_func
12899 /* System header to define __stub macros and hopefully few prototypes,
12900 which can conflict with char $ac_func (); below.
12901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12902 <limits.h> exists even on freestanding compilers. */
12905 # include <limits.h>
12907 # include <assert.h>
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12919 /* The GNU C library defines this for functions which it implements
12920 to always fail with ENOSYS. Some functions are actually named
12921 something starting with __ and the normal name is an alias. */
12922 #if defined __stub_$ac_func || defined __stub___$ac_func
12929 return $ac_func ();
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (ac_try="$ac_link"
12936 case "(($ac_try" in
12937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938 *) ac_try_echo=$ac_try;;
12940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12941 $as_echo "$ac_try_echo") >&5
12942 (eval "$ac_link") 2>conftest.er1
12944 grep -v '^ *+' conftest.er1 >conftest.err
12946 cat conftest.err >&5
12947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } && {
12949 test -z "$ac_c_werror_flag" ||
12950 test ! -s conftest.err
12951 } && test -s conftest$ac_exeext && {
12952 test "$cross_compiling" = yes ||
12953 $as_test_x conftest$ac_exeext
12955 eval "$as_ac_var=yes"
12957 $as_echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12960 eval "$as_ac_var=no"
12963 rm -rf conftest.dSYM
12964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12965 conftest$ac_exeext conftest.$ac_ext
12967 ac_res=`eval 'as_val=${'$as_ac_var'}
12968 $as_echo "$as_val"'`
12969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12970 $as_echo "$ac_res" >&6; }
12971 as_val=`eval 'as_val=${'$as_ac_var'}
12972 $as_echo "$as_val"'`
12973 if test "x$as_val" = x""yes; then
12974 cat >>confdefs.h <<_ACEOF
12975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12983 if test "$with_pam" = yes ; then
12985 for ac_header in security/pam_appl.h
12987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12989 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12990 $as_echo_n "checking for $ac_header... " >&6; }
12991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12992 $as_echo_n "(cached) " >&6
12994 ac_res=`eval 'as_val=${'$as_ac_Header'}
12995 $as_echo "$as_val"'`
12996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12997 $as_echo "$ac_res" >&6; }
12999 # Is the header compilable?
13000 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13001 $as_echo_n "checking $ac_header usability... " >&6; }
13002 cat >conftest.$ac_ext <<_ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13008 $ac_includes_default
13009 #include <$ac_header>
13011 rm -f conftest.$ac_objext
13012 if { (ac_try="$ac_compile"
13013 case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13018 $as_echo "$ac_try_echo") >&5
13019 (eval "$ac_compile") 2>conftest.er1
13021 grep -v '^ *+' conftest.er1 >conftest.err
13023 cat conftest.err >&5
13024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } && {
13026 test -z "$ac_c_werror_flag" ||
13027 test ! -s conftest.err
13028 } && test -s conftest.$ac_objext; then
13029 ac_header_compiler=yes
13031 $as_echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13034 ac_header_compiler=no
13037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13038 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13039 $as_echo "$ac_header_compiler" >&6; }
13041 # Is the header present?
13042 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13043 $as_echo_n "checking $ac_header presence... " >&6; }
13044 cat >conftest.$ac_ext <<_ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13050 #include <$ac_header>
13052 if { (ac_try="$ac_cpp conftest.$ac_ext"
13053 case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13058 $as_echo "$ac_try_echo") >&5
13059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13061 grep -v '^ *+' conftest.er1 >conftest.err
13063 cat conftest.err >&5
13064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } >/dev/null && {
13066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13069 ac_header_preproc=yes
13071 $as_echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_header_preproc=no
13077 rm -f conftest.err conftest.$ac_ext
13078 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13079 $as_echo "$ac_header_preproc" >&6; }
13081 # So? What about this header?
13082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13085 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13087 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13088 ac_header_preproc=yes
13091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13092 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13094 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13096 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13098 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13100 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13102 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13104 ## ---------------------------------------- ##
13105 ## Report this to pgsql-bugs@postgresql.org ##
13106 ## ---------------------------------------- ##
13108 ) | sed "s/^/$as_me: WARNING: /" >&2
13111 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13112 $as_echo_n "checking for $ac_header... " >&6; }
13113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13114 $as_echo_n "(cached) " >&6
13116 eval "$as_ac_Header=\$ac_header_preproc"
13118 ac_res=`eval 'as_val=${'$as_ac_Header'}
13119 $as_echo "$as_val"'`
13120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13121 $as_echo "$ac_res" >&6; }
13124 as_val=`eval 'as_val=${'$as_ac_Header'}
13125 $as_echo "$as_val"'`
13126 if test "x$as_val" = x""yes; then
13127 cat >>confdefs.h <<_ACEOF
13128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13133 for ac_header in pam/pam_appl.h
13135 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13137 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13138 $as_echo_n "checking for $ac_header... " >&6; }
13139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13140 $as_echo_n "(cached) " >&6
13142 ac_res=`eval 'as_val=${'$as_ac_Header'}
13143 $as_echo "$as_val"'`
13144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13145 $as_echo "$ac_res" >&6; }
13147 # Is the header compilable?
13148 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13149 $as_echo_n "checking $ac_header usability... " >&6; }
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 $ac_includes_default
13157 #include <$ac_header>
13159 rm -f conftest.$ac_objext
13160 if { (ac_try="$ac_compile"
13161 case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13166 $as_echo "$ac_try_echo") >&5
13167 (eval "$ac_compile") 2>conftest.er1
13169 grep -v '^ *+' conftest.er1 >conftest.err
13171 cat conftest.err >&5
13172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } && {
13174 test -z "$ac_c_werror_flag" ||
13175 test ! -s conftest.err
13176 } && test -s conftest.$ac_objext; then
13177 ac_header_compiler=yes
13179 $as_echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 ac_header_compiler=no
13185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13186 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13187 $as_echo "$ac_header_compiler" >&6; }
13189 # Is the header present?
13190 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13191 $as_echo_n "checking $ac_header presence... " >&6; }
13192 cat >conftest.$ac_ext <<_ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 #include <$ac_header>
13200 if { (ac_try="$ac_cpp conftest.$ac_ext"
13201 case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13206 $as_echo "$ac_try_echo") >&5
13207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13209 grep -v '^ *+' conftest.er1 >conftest.err
13211 cat conftest.err >&5
13212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } >/dev/null && {
13214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13215 test ! -s conftest.err
13217 ac_header_preproc=yes
13219 $as_echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13222 ac_header_preproc=no
13225 rm -f conftest.err conftest.$ac_ext
13226 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13227 $as_echo "$ac_header_preproc" >&6; }
13229 # So? What about this header?
13230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13233 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13235 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13236 ac_header_preproc=yes
13239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13240 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13242 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13244 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13246 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13248 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13250 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13252 ## ---------------------------------------- ##
13253 ## Report this to pgsql-bugs@postgresql.org ##
13254 ## ---------------------------------------- ##
13256 ) | sed "s/^/$as_me: WARNING: /" >&2
13259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13260 $as_echo_n "checking for $ac_header... " >&6; }
13261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13262 $as_echo_n "(cached) " >&6
13264 eval "$as_ac_Header=\$ac_header_preproc"
13266 ac_res=`eval 'as_val=${'$as_ac_Header'}
13267 $as_echo "$as_val"'`
13268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13269 $as_echo "$ac_res" >&6; }
13272 as_val=`eval 'as_val=${'$as_ac_Header'}
13273 $as_echo "$as_val"'`
13274 if test "x$as_val" = x""yes; then
13275 cat >>confdefs.h <<_ACEOF
13276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13280 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13281 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13282 { (exit 1); exit 1; }; }
13293 if test "$with_libxml" = yes ; then
13294 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13295 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13296 $as_echo_n "checking for libxml/parser.h... " >&6; }
13297 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13298 $as_echo_n "(cached) " >&6
13300 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13301 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13303 # Is the header compilable?
13304 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13305 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13306 cat >conftest.$ac_ext <<_ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 $ac_includes_default
13313 #include <libxml/parser.h>
13315 rm -f conftest.$ac_objext
13316 if { (ac_try="$ac_compile"
13317 case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13322 $as_echo "$ac_try_echo") >&5
13323 (eval "$ac_compile") 2>conftest.er1
13325 grep -v '^ *+' conftest.er1 >conftest.err
13327 cat conftest.err >&5
13328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } && {
13330 test -z "$ac_c_werror_flag" ||
13331 test ! -s conftest.err
13332 } && test -s conftest.$ac_objext; then
13333 ac_header_compiler=yes
13335 $as_echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13338 ac_header_compiler=no
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13342 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13343 $as_echo "$ac_header_compiler" >&6; }
13345 # Is the header present?
13346 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13347 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 #include <libxml/parser.h>
13356 if { (ac_try="$ac_cpp conftest.$ac_ext"
13357 case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13362 $as_echo "$ac_try_echo") >&5
13363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13365 grep -v '^ *+' conftest.er1 >conftest.err
13367 cat conftest.err >&5
13368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } >/dev/null && {
13370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13371 test ! -s conftest.err
13373 ac_header_preproc=yes
13375 $as_echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ac_header_preproc=no
13381 rm -f conftest.err conftest.$ac_ext
13382 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13383 $as_echo "$ac_header_preproc" >&6; }
13385 # So? What about this header?
13386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13388 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13389 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13390 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13391 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13392 ac_header_preproc=yes
13395 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13396 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13397 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13398 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13399 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13400 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13401 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13402 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13403 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13404 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13405 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13406 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13408 ## ---------------------------------------- ##
13409 ## Report this to pgsql-bugs@postgresql.org ##
13410 ## ---------------------------------------- ##
13412 ) | sed "s/^/$as_me: WARNING: /" >&2
13415 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13416 $as_echo_n "checking for libxml/parser.h... " >&6; }
13417 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13418 $as_echo_n "(cached) " >&6
13420 ac_cv_header_libxml_parser_h=$ac_header_preproc
13422 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13423 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13426 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13429 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13430 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13431 { (exit 1); exit 1; }; }
13437 if test "$with_libxslt" = yes ; then
13438 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13439 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13440 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13441 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13442 $as_echo_n "(cached) " >&6
13444 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13445 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13447 # Is the header compilable?
13448 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13449 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13450 cat >conftest.$ac_ext <<_ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13456 $ac_includes_default
13457 #include <libxslt/xslt.h>
13459 rm -f conftest.$ac_objext
13460 if { (ac_try="$ac_compile"
13461 case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13466 $as_echo "$ac_try_echo") >&5
13467 (eval "$ac_compile") 2>conftest.er1
13469 grep -v '^ *+' conftest.er1 >conftest.err
13471 cat conftest.err >&5
13472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } && {
13474 test -z "$ac_c_werror_flag" ||
13475 test ! -s conftest.err
13476 } && test -s conftest.$ac_objext; then
13477 ac_header_compiler=yes
13479 $as_echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 ac_header_compiler=no
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13487 $as_echo "$ac_header_compiler" >&6; }
13489 # Is the header present?
13490 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13491 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 #include <libxslt/xslt.h>
13500 if { (ac_try="$ac_cpp conftest.$ac_ext"
13501 case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13506 $as_echo "$ac_try_echo") >&5
13507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13509 grep -v '^ *+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } >/dev/null && {
13514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13517 ac_header_preproc=yes
13519 $as_echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_header_preproc=no
13525 rm -f conftest.err conftest.$ac_ext
13526 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13527 $as_echo "$ac_header_preproc" >&6; }
13529 # So? What about this header?
13530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13532 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13533 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13534 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13535 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13536 ac_header_preproc=yes
13539 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13540 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13541 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13542 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13543 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13544 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13545 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13546 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13547 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13548 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13549 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13550 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13552 ## ---------------------------------------- ##
13553 ## Report this to pgsql-bugs@postgresql.org ##
13554 ## ---------------------------------------- ##
13556 ) | sed "s/^/$as_me: WARNING: /" >&2
13559 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13560 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13561 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13562 $as_echo_n "(cached) " >&6
13564 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13566 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13567 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13570 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13573 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13574 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13575 { (exit 1); exit 1; }; }
13581 if test "$with_ldap" = yes ; then
13582 if test "$PORTNAME" != "win32"; then
13584 for ac_header in ldap.h
13586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13589 $as_echo_n "checking for $ac_header... " >&6; }
13590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13591 $as_echo_n "(cached) " >&6
13593 ac_res=`eval 'as_val=${'$as_ac_Header'}
13594 $as_echo "$as_val"'`
13595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13596 $as_echo "$ac_res" >&6; }
13598 # Is the header compilable?
13599 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13600 $as_echo_n "checking $ac_header usability... " >&6; }
13601 cat >conftest.$ac_ext <<_ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607 $ac_includes_default
13608 #include <$ac_header>
13610 rm -f conftest.$ac_objext
13611 if { (ac_try="$ac_compile"
13612 case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13617 $as_echo "$ac_try_echo") >&5
13618 (eval "$ac_compile") 2>conftest.er1
13620 grep -v '^ *+' conftest.er1 >conftest.err
13622 cat conftest.err >&5
13623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } && {
13625 test -z "$ac_c_werror_flag" ||
13626 test ! -s conftest.err
13627 } && test -s conftest.$ac_objext; then
13628 ac_header_compiler=yes
13630 $as_echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13633 ac_header_compiler=no
13636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13638 $as_echo "$ac_header_compiler" >&6; }
13640 # Is the header present?
13641 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13642 $as_echo_n "checking $ac_header presence... " >&6; }
13643 cat >conftest.$ac_ext <<_ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13649 #include <$ac_header>
13651 if { (ac_try="$ac_cpp conftest.$ac_ext"
13652 case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13657 $as_echo "$ac_try_echo") >&5
13658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13660 grep -v '^ *+' conftest.er1 >conftest.err
13662 cat conftest.err >&5
13663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } >/dev/null && {
13665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13666 test ! -s conftest.err
13668 ac_header_preproc=yes
13670 $as_echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13673 ac_header_preproc=no
13676 rm -f conftest.err conftest.$ac_ext
13677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13678 $as_echo "$ac_header_preproc" >&6; }
13680 # So? What about this header?
13681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13684 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13687 ac_header_preproc=yes
13690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13691 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13693 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13695 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13697 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13701 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13703 ## ---------------------------------------- ##
13704 ## Report this to pgsql-bugs@postgresql.org ##
13705 ## ---------------------------------------- ##
13707 ) | sed "s/^/$as_me: WARNING: /" >&2
13710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13711 $as_echo_n "checking for $ac_header... " >&6; }
13712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13713 $as_echo_n "(cached) " >&6
13715 eval "$as_ac_Header=\$ac_header_preproc"
13717 ac_res=`eval 'as_val=${'$as_ac_Header'}
13718 $as_echo "$as_val"'`
13719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13720 $as_echo "$ac_res" >&6; }
13723 as_val=`eval 'as_val=${'$as_ac_Header'}
13724 $as_echo "$as_val"'`
13725 if test "x$as_val" = x""yes; then
13726 cat >>confdefs.h <<_ACEOF
13727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13731 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13732 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13733 { (exit 1); exit 1; }; }
13740 for ac_header in winldap.h
13742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13744 $as_echo_n "checking for $ac_header... " >&6; }
13745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13746 $as_echo_n "(cached) " >&6
13748 cat >conftest.$ac_ext <<_ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13754 $ac_includes_default
13755 #include <windows.h>
13758 #include <$ac_header>
13760 rm -f conftest.$ac_objext
13761 if { (ac_try="$ac_compile"
13762 case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13767 $as_echo "$ac_try_echo") >&5
13768 (eval "$ac_compile") 2>conftest.er1
13770 grep -v '^ *+' conftest.er1 >conftest.err
13772 cat conftest.err >&5
13773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } && {
13775 test -z "$ac_c_werror_flag" ||
13776 test ! -s conftest.err
13777 } && test -s conftest.$ac_objext; then
13778 eval "$as_ac_Header=yes"
13780 $as_echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13783 eval "$as_ac_Header=no"
13786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13788 ac_res=`eval 'as_val=${'$as_ac_Header'}
13789 $as_echo "$as_val"'`
13790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13791 $as_echo "$ac_res" >&6; }
13792 as_val=`eval 'as_val=${'$as_ac_Header'}
13793 $as_echo "$as_val"'`
13794 if test "x$as_val" = x""yes; then
13795 cat >>confdefs.h <<_ACEOF
13796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13800 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13801 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13802 { (exit 1); exit 1; }; }
13810 if test "$with_bonjour" = yes ; then
13811 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13812 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13813 $as_echo_n "checking for dns_sd.h... " >&6; }
13814 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13815 $as_echo_n "(cached) " >&6
13817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13818 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13820 # Is the header compilable?
13821 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13822 $as_echo_n "checking dns_sd.h usability... " >&6; }
13823 cat >conftest.$ac_ext <<_ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h. */
13829 $ac_includes_default
13830 #include <dns_sd.h>
13832 rm -f conftest.$ac_objext
13833 if { (ac_try="$ac_compile"
13834 case "(($ac_try" in
13835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836 *) ac_try_echo=$ac_try;;
13838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13839 $as_echo "$ac_try_echo") >&5
13840 (eval "$ac_compile") 2>conftest.er1
13842 grep -v '^ *+' conftest.er1 >conftest.err
13844 cat conftest.err >&5
13845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } && {
13847 test -z "$ac_c_werror_flag" ||
13848 test ! -s conftest.err
13849 } && test -s conftest.$ac_objext; then
13850 ac_header_compiler=yes
13852 $as_echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13855 ac_header_compiler=no
13858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13859 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13860 $as_echo "$ac_header_compiler" >&6; }
13862 # Is the header present?
13863 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13864 $as_echo_n "checking dns_sd.h presence... " >&6; }
13865 cat >conftest.$ac_ext <<_ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13871 #include <dns_sd.h>
13873 if { (ac_try="$ac_cpp conftest.$ac_ext"
13874 case "(($ac_try" in
13875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876 *) ac_try_echo=$ac_try;;
13878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13879 $as_echo "$ac_try_echo") >&5
13880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } >/dev/null && {
13887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13890 ac_header_preproc=yes
13892 $as_echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13895 ac_header_preproc=no
13898 rm -f conftest.err conftest.$ac_ext
13899 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13900 $as_echo "$ac_header_preproc" >&6; }
13902 # So? What about this header?
13903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13905 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13906 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13907 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13908 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13909 ac_header_preproc=yes
13912 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13913 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13914 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
13915 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
13916 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13917 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13918 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
13919 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
13920 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13921 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13922 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13923 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13925 ## ---------------------------------------- ##
13926 ## Report this to pgsql-bugs@postgresql.org ##
13927 ## ---------------------------------------- ##
13929 ) | sed "s/^/$as_me: WARNING: /" >&2
13932 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13933 $as_echo_n "checking for dns_sd.h... " >&6; }
13934 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13935 $as_echo_n "(cached) " >&6
13937 ac_cv_header_dns_sd_h=$ac_header_preproc
13939 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13940 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13943 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13946 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13947 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13948 { (exit 1); exit 1; }; }
13954 # for contrib/uuid-ossp
13955 if test "$with_ossp_uuid" = yes ; then
13957 for ac_header in ossp/uuid.h
13959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13962 $as_echo_n "checking for $ac_header... " >&6; }
13963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13964 $as_echo_n "(cached) " >&6
13966 ac_res=`eval 'as_val=${'$as_ac_Header'}
13967 $as_echo "$as_val"'`
13968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13969 $as_echo "$ac_res" >&6; }
13971 # Is the header compilable?
13972 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13973 $as_echo_n "checking $ac_header usability... " >&6; }
13974 cat >conftest.$ac_ext <<_ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 $ac_includes_default
13981 #include <$ac_header>
13983 rm -f conftest.$ac_objext
13984 if { (ac_try="$ac_compile"
13985 case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13990 $as_echo "$ac_try_echo") >&5
13991 (eval "$ac_compile") 2>conftest.er1
13993 grep -v '^ *+' conftest.er1 >conftest.err
13995 cat conftest.err >&5
13996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } && {
13998 test -z "$ac_c_werror_flag" ||
13999 test ! -s conftest.err
14000 } && test -s conftest.$ac_objext; then
14001 ac_header_compiler=yes
14003 $as_echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14006 ac_header_compiler=no
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14011 $as_echo "$ac_header_compiler" >&6; }
14013 # Is the header present?
14014 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14015 $as_echo_n "checking $ac_header presence... " >&6; }
14016 cat >conftest.$ac_ext <<_ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14022 #include <$ac_header>
14024 if { (ac_try="$ac_cpp conftest.$ac_ext"
14025 case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14030 $as_echo "$ac_try_echo") >&5
14031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14033 grep -v '^ *+' conftest.er1 >conftest.err
14035 cat conftest.err >&5
14036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } >/dev/null && {
14038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14039 test ! -s conftest.err
14041 ac_header_preproc=yes
14043 $as_echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ac_header_preproc=no
14049 rm -f conftest.err conftest.$ac_ext
14050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14051 $as_echo "$ac_header_preproc" >&6; }
14053 # So? What about this header?
14054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14057 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14059 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14060 ac_header_preproc=yes
14063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14064 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14066 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14068 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14070 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14072 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14074 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14076 ## ---------------------------------------- ##
14077 ## Report this to pgsql-bugs@postgresql.org ##
14078 ## ---------------------------------------- ##
14080 ) | sed "s/^/$as_me: WARNING: /" >&2
14083 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14084 $as_echo_n "checking for $ac_header... " >&6; }
14085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14086 $as_echo_n "(cached) " >&6
14088 eval "$as_ac_Header=\$ac_header_preproc"
14090 ac_res=`eval 'as_val=${'$as_ac_Header'}
14091 $as_echo "$as_val"'`
14092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14093 $as_echo "$ac_res" >&6; }
14096 as_val=`eval 'as_val=${'$as_ac_Header'}
14097 $as_echo "$as_val"'`
14098 if test "x$as_val" = x""yes; then
14099 cat >>confdefs.h <<_ACEOF
14100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14106 for ac_header in uuid.h
14108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14111 $as_echo_n "checking for $ac_header... " >&6; }
14112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14113 $as_echo_n "(cached) " >&6
14115 ac_res=`eval 'as_val=${'$as_ac_Header'}
14116 $as_echo "$as_val"'`
14117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14118 $as_echo "$ac_res" >&6; }
14120 # Is the header compilable?
14121 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14122 $as_echo_n "checking $ac_header usability... " >&6; }
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 $ac_includes_default
14130 #include <$ac_header>
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14139 $as_echo "$ac_try_echo") >&5
14140 (eval "$ac_compile") 2>conftest.er1
14142 grep -v '^ *+' conftest.er1 >conftest.err
14144 cat conftest.err >&5
14145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } && {
14147 test -z "$ac_c_werror_flag" ||
14148 test ! -s conftest.err
14149 } && test -s conftest.$ac_objext; then
14150 ac_header_compiler=yes
14152 $as_echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 ac_header_compiler=no
14158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14160 $as_echo "$ac_header_compiler" >&6; }
14162 # Is the header present?
14163 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14164 $as_echo_n "checking $ac_header presence... " >&6; }
14165 cat >conftest.$ac_ext <<_ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 #include <$ac_header>
14173 if { (ac_try="$ac_cpp conftest.$ac_ext"
14174 case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14179 $as_echo "$ac_try_echo") >&5
14180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14182 grep -v '^ *+' conftest.er1 >conftest.err
14184 cat conftest.err >&5
14185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } >/dev/null && {
14187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14188 test ! -s conftest.err
14190 ac_header_preproc=yes
14192 $as_echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14195 ac_header_preproc=no
14198 rm -f conftest.err conftest.$ac_ext
14199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14200 $as_echo "$ac_header_preproc" >&6; }
14202 # So? What about this header?
14203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14206 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14208 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14209 ac_header_preproc=yes
14212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14213 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14215 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14217 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14219 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14223 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14225 ## ---------------------------------------- ##
14226 ## Report this to pgsql-bugs@postgresql.org ##
14227 ## ---------------------------------------- ##
14229 ) | sed "s/^/$as_me: WARNING: /" >&2
14232 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14233 $as_echo_n "checking for $ac_header... " >&6; }
14234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14235 $as_echo_n "(cached) " >&6
14237 eval "$as_ac_Header=\$ac_header_preproc"
14239 ac_res=`eval 'as_val=${'$as_ac_Header'}
14240 $as_echo "$as_val"'`
14241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14242 $as_echo "$ac_res" >&6; }
14245 as_val=`eval 'as_val=${'$as_ac_Header'}
14246 $as_echo "$as_val"'`
14247 if test "x$as_val" = x""yes; then
14248 cat >>confdefs.h <<_ACEOF
14249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14253 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14254 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14255 { (exit 1); exit 1; }; }
14268 ## Types, structures, compiler characteristics
14272 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14273 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14274 if test "${ac_cv_c_bigendian+set}" = set; then
14275 $as_echo_n "(cached) " >&6
14277 ac_cv_c_bigendian=unknown
14278 # See if we're dealing with a universal compiler.
14279 cat >conftest.$ac_ext <<_ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 #ifndef __APPLE_CC__
14286 not a universal capable compiler
14291 rm -f conftest.$ac_objext
14292 if { (ac_try="$ac_compile"
14293 case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14298 $as_echo "$ac_try_echo") >&5
14299 (eval "$ac_compile") 2>conftest.er1
14301 grep -v '^ *+' conftest.er1 >conftest.err
14303 cat conftest.err >&5
14304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } && {
14306 test -z "$ac_c_werror_flag" ||
14307 test ! -s conftest.err
14308 } && test -s conftest.$ac_objext; then
14310 # Check for potential -arch flags. It is not universal unless
14311 # there are some -arch flags. Note that *ppc* also matches
14312 # ppc64. This check is also rather less than ideal.
14313 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14314 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14317 $as_echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 if test $ac_cv_c_bigendian = unknown; then
14325 # See if sys/param.h defines the BYTE_ORDER macro.
14326 cat >conftest.$ac_ext <<_ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14332 #include <sys/types.h>
14333 #include <sys/param.h>
14338 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14339 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14341 bogus endian macros
14348 rm -f conftest.$ac_objext
14349 if { (ac_try="$ac_compile"
14350 case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14355 $as_echo "$ac_try_echo") >&5
14356 (eval "$ac_compile") 2>conftest.er1
14358 grep -v '^ *+' conftest.er1 >conftest.err
14360 cat conftest.err >&5
14361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } && {
14363 test -z "$ac_c_werror_flag" ||
14364 test ! -s conftest.err
14365 } && test -s conftest.$ac_objext; then
14366 # It does; now see whether it defined to BIG_ENDIAN or not.
14367 cat >conftest.$ac_ext <<_ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 #include <sys/types.h>
14374 #include <sys/param.h>
14379 #if BYTE_ORDER != BIG_ENDIAN
14387 rm -f conftest.$ac_objext
14388 if { (ac_try="$ac_compile"
14389 case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14394 $as_echo "$ac_try_echo") >&5
14395 (eval "$ac_compile") 2>conftest.er1
14397 grep -v '^ *+' conftest.er1 >conftest.err
14399 cat conftest.err >&5
14400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } && {
14402 test -z "$ac_c_werror_flag" ||
14403 test ! -s conftest.err
14404 } && test -s conftest.$ac_objext; then
14405 ac_cv_c_bigendian=yes
14407 $as_echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14410 ac_cv_c_bigendian=no
14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415 $as_echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 if test $ac_cv_c_bigendian = unknown; then
14424 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14425 cat >conftest.$ac_ext <<_ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 #include <limits.h>
14436 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14437 bogus endian macros
14444 rm -f conftest.$ac_objext
14445 if { (ac_try="$ac_compile"
14446 case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14451 $as_echo "$ac_try_echo") >&5
14452 (eval "$ac_compile") 2>conftest.er1
14454 grep -v '^ *+' conftest.er1 >conftest.err
14456 cat conftest.err >&5
14457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } && {
14459 test -z "$ac_c_werror_flag" ||
14460 test ! -s conftest.err
14461 } && test -s conftest.$ac_objext; then
14462 # It does; now see whether it defined to _BIG_ENDIAN or not.
14463 cat >conftest.$ac_ext <<_ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14469 #include <limits.h>
14474 #ifndef _BIG_ENDIAN
14482 rm -f conftest.$ac_objext
14483 if { (ac_try="$ac_compile"
14484 case "(($ac_try" in
14485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14489 $as_echo "$ac_try_echo") >&5
14490 (eval "$ac_compile") 2>conftest.er1
14492 grep -v '^ *+' conftest.er1 >conftest.err
14494 cat conftest.err >&5
14495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } && {
14497 test -z "$ac_c_werror_flag" ||
14498 test ! -s conftest.err
14499 } && test -s conftest.$ac_objext; then
14500 ac_cv_c_bigendian=yes
14502 $as_echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_cv_c_bigendian=no
14508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14510 $as_echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 if test $ac_cv_c_bigendian = unknown; then
14519 # Compile a test program.
14520 if test "$cross_compiling" = yes; then
14521 # Try to guess by grepping values from an object file.
14522 cat >conftest.$ac_ext <<_ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528 short int ascii_mm[] =
14529 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14530 short int ascii_ii[] =
14531 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14532 int use_ascii (int i) {
14533 return ascii_mm[i] + ascii_ii[i];
14535 short int ebcdic_ii[] =
14536 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14537 short int ebcdic_mm[] =
14538 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14539 int use_ebcdic (int i) {
14540 return ebcdic_mm[i] + ebcdic_ii[i];
14547 return use_ascii (foo) == use_ebcdic (foo);
14552 rm -f conftest.$ac_objext
14553 if { (ac_try="$ac_compile"
14554 case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14559 $as_echo "$ac_try_echo") >&5
14560 (eval "$ac_compile") 2>conftest.er1
14562 grep -v '^ *+' conftest.er1 >conftest.err
14564 cat conftest.err >&5
14565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } && {
14567 test -z "$ac_c_werror_flag" ||
14568 test ! -s conftest.err
14569 } && test -s conftest.$ac_objext; then
14570 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14571 ac_cv_c_bigendian=yes
14573 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14574 if test "$ac_cv_c_bigendian" = unknown; then
14575 ac_cv_c_bigendian=no
14577 # finding both strings is unlikely to happen, but who knows?
14578 ac_cv_c_bigendian=unknown
14582 $as_echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590 cat >conftest.$ac_ext <<_ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 $ac_includes_default
14601 /* Are we little or big endian? From Harbison&Steele. */
14605 char c[sizeof (long int)];
14608 return u.c[sizeof (long int) - 1] == 1;
14614 rm -f conftest$ac_exeext
14615 if { (ac_try="$ac_link"
14616 case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14621 $as_echo "$ac_try_echo") >&5
14622 (eval "$ac_link") 2>&5
14624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14626 { (case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14631 $as_echo "$ac_try_echo") >&5
14632 (eval "$ac_try") 2>&5
14634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_cv_c_bigendian=no
14638 $as_echo "$as_me: program exited with status $ac_status" >&5
14639 $as_echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 ( exit $ac_status )
14643 ac_cv_c_bigendian=yes
14645 rm -rf conftest.dSYM
14646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14652 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14653 $as_echo "$ac_cv_c_bigendian" >&6; }
14654 case $ac_cv_c_bigendian in #(
14656 cat >>confdefs.h <<\_ACEOF
14657 #define WORDS_BIGENDIAN 1
14664 cat >>confdefs.h <<\_ACEOF
14665 #define AC_APPLE_UNIVERSAL_BUILD 1
14670 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14671 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14672 $as_echo "$as_me: error: unknown endianness
14673 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14674 { (exit 1); exit 1; }; } ;;
14677 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14678 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14679 if test "${ac_cv_c_const+set}" = set; then
14680 $as_echo_n "(cached) " >&6
14682 cat >conftest.$ac_ext <<_ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h. */
14692 /* FIXME: Include the comments suggested by Paul. */
14693 #ifndef __cplusplus
14694 /* Ultrix mips cc rejects this. */
14695 typedef int charset[2];
14697 /* SunOS 4.1.1 cc rejects this. */
14698 char const *const *pcpcc;
14700 /* NEC SVR4.0.2 mips cc rejects this. */
14701 struct point {int x, y;};
14702 static struct point const zero = {0,0};
14703 /* AIX XL C 1.02.0.0 rejects this.
14704 It does not let you subtract one const X* pointer from another in
14705 an arm of an if-expression whose if-part is not a constant
14707 const char *g = "string";
14708 pcpcc = &g + (g ? g-g : 0);
14709 /* HPUX 7.0 cc rejects these. */
14711 ppc = (char**) pcpcc;
14712 pcpcc = (char const *const *) ppc;
14713 { /* SCO 3.2v4 cc rejects this. */
14715 char const *s = 0 ? (char *) 0 : (char const *) 0;
14720 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14721 int x[] = {25, 17};
14722 const int *foo = &x[0];
14725 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14726 typedef const int *iptr;
14730 { /* AIX XL C 1.02.0.0 rejects this saying
14731 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14732 struct s { int j; const int *ap[3]; };
14733 struct s *b; b->j = 5;
14735 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14736 const int foo = 10;
14737 if (!foo) return 0;
14739 return !cs[0] && !zero.x;
14746 rm -f conftest.$ac_objext
14747 if { (ac_try="$ac_compile"
14748 case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14753 $as_echo "$ac_try_echo") >&5
14754 (eval "$ac_compile") 2>conftest.er1
14756 grep -v '^ *+' conftest.er1 >conftest.err
14758 cat conftest.err >&5
14759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } && {
14761 test -z "$ac_c_werror_flag" ||
14762 test ! -s conftest.err
14763 } && test -s conftest.$ac_objext; then
14766 $as_echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14774 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14775 $as_echo "$ac_cv_c_const" >&6; }
14776 if test $ac_cv_c_const = no; then
14778 cat >>confdefs.h <<\_ACEOF
14784 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14785 $as_echo_n "checking for inline... " >&6; }
14786 if test "${ac_cv_c_inline+set}" = set; then
14787 $as_echo_n "(cached) " >&6
14790 for ac_kw in inline __inline__ __inline; do
14791 cat >conftest.$ac_ext <<_ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14797 #ifndef __cplusplus
14799 static $ac_kw foo_t static_foo () {return 0; }
14800 $ac_kw foo_t foo () {return 0; }
14804 rm -f conftest.$ac_objext
14805 if { (ac_try="$ac_compile"
14806 case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14811 $as_echo "$ac_try_echo") >&5
14812 (eval "$ac_compile") 2>conftest.er1
14814 grep -v '^ *+' conftest.er1 >conftest.err
14816 cat conftest.err >&5
14817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } && {
14819 test -z "$ac_c_werror_flag" ||
14820 test ! -s conftest.err
14821 } && test -s conftest.$ac_objext; then
14822 ac_cv_c_inline=$ac_kw
14824 $as_echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831 test "$ac_cv_c_inline" != no && break
14835 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14836 $as_echo "$ac_cv_c_inline" >&6; }
14839 case $ac_cv_c_inline in
14842 case $ac_cv_c_inline in
14844 *) ac_val=$ac_cv_c_inline;;
14846 cat >>confdefs.h <<_ACEOF
14847 #ifndef __cplusplus
14848 #define inline $ac_val
14854 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14855 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14856 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14857 $as_echo_n "(cached) " >&6
14859 pgac_cv_c_inline_quietly=no
14860 if test "$ac_cv_c_inline" != no; then
14861 pgac_c_inline_save_werror=$ac_c_werror_flag
14862 ac_c_werror_flag=yes
14863 cat >conftest.$ac_ext <<_ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 static inline int fun () {return 0;}
14878 rm -f conftest.$ac_objext conftest$ac_exeext
14879 if { (ac_try="$ac_link"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14885 $as_echo "$ac_try_echo") >&5
14886 (eval "$ac_link") 2>conftest.er1
14888 grep -v '^ *+' conftest.er1 >conftest.err
14890 cat conftest.err >&5
14891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } && {
14893 test -z "$ac_c_werror_flag" ||
14894 test ! -s conftest.err
14895 } && test -s conftest$ac_exeext && {
14896 test "$cross_compiling" = yes ||
14897 $as_test_x conftest$ac_exeext
14899 pgac_cv_c_inline_quietly=yes
14901 $as_echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14907 rm -rf conftest.dSYM
14908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14909 conftest$ac_exeext conftest.$ac_ext
14910 ac_c_werror_flag=$pgac_c_inline_save_werror
14913 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14914 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14915 if test "$pgac_cv_c_inline_quietly" != no; then
14917 cat >>confdefs.h <<_ACEOF
14918 #define USE_INLINE 1
14923 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14924 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14925 if test "${ac_cv_c_stringize+set}" = set; then
14926 $as_echo_n "(cached) " >&6
14928 cat >conftest.$ac_ext <<_ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14936 char *s = x(teststring);
14938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14939 $EGREP "#teststring" >/dev/null 2>&1; then
14940 ac_cv_c_stringize=no
14942 ac_cv_c_stringize=yes
14947 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14948 $as_echo "$ac_cv_c_stringize" >&6; }
14949 if test $ac_cv_c_stringize = yes; then
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_STRINGIZE 1
14958 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
14959 $as_echo_n "checking for flexible array members... " >&6; }
14960 if test "${ac_cv_c_flexmember+set}" = set; then
14961 $as_echo_n "(cached) " >&6
14963 cat >conftest.$ac_ext <<_ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 #include <stdlib.h>
14971 #include <stddef.h>
14972 struct s { int n; double d[]; };
14976 int m = getchar ();
14977 struct s *p = malloc (offsetof (struct s, d)
14978 + m * sizeof (double));
14980 return p->d != (double *) NULL;
14985 rm -f conftest.$ac_objext
14986 if { (ac_try="$ac_compile"
14987 case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14992 $as_echo "$ac_try_echo") >&5
14993 (eval "$ac_compile") 2>conftest.er1
14995 grep -v '^ *+' conftest.er1 >conftest.err
14997 cat conftest.err >&5
14998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest.$ac_objext; then
15003 ac_cv_c_flexmember=yes
15005 $as_echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15008 ac_cv_c_flexmember=no
15011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15013 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15014 $as_echo "$ac_cv_c_flexmember" >&6; }
15015 if test $ac_cv_c_flexmember = yes; then
15017 cat >>confdefs.h <<\_ACEOF
15018 #define FLEXIBLE_ARRAY_MEMBER /**/
15022 cat >>confdefs.h <<\_ACEOF
15023 #define FLEXIBLE_ARRAY_MEMBER 1
15028 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15029 $as_echo_n "checking for signed types... " >&6; }
15030 if test "${pgac_cv_c_signed+set}" = set; then
15031 $as_echo_n "(cached) " >&6
15033 cat >conftest.$ac_ext <<_ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15043 signed char c; signed short s; signed int i;
15048 rm -f conftest.$ac_objext
15049 if { (ac_try="$ac_compile"
15050 case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15055 $as_echo "$ac_try_echo") >&5
15056 (eval "$ac_compile") 2>conftest.er1
15058 grep -v '^ *+' conftest.er1 >conftest.err
15060 cat conftest.err >&5
15061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } && {
15063 test -z "$ac_c_werror_flag" ||
15064 test ! -s conftest.err
15065 } && test -s conftest.$ac_objext; then
15066 pgac_cv_c_signed=yes
15068 $as_echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 pgac_cv_c_signed=no
15074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15077 $as_echo "$pgac_cv_c_signed" >&6; }
15078 if test x"$pgac_cv_c_signed" = xno ; then
15080 cat >>confdefs.h <<\_ACEOF
15081 #define signed /**/
15085 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15086 $as_echo_n "checking for working volatile... " >&6; }
15087 if test "${ac_cv_c_volatile+set}" = set; then
15088 $as_echo_n "(cached) " >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15102 int * volatile y = (int *) 0;
15108 rm -f conftest.$ac_objext
15109 if { (ac_try="$ac_compile"
15110 case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15115 $as_echo "$ac_try_echo") >&5
15116 (eval "$ac_compile") 2>conftest.er1
15118 grep -v '^ *+' conftest.er1 >conftest.err
15120 cat conftest.err >&5
15121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } && {
15123 test -z "$ac_c_werror_flag" ||
15124 test ! -s conftest.err
15125 } && test -s conftest.$ac_objext; then
15126 ac_cv_c_volatile=yes
15128 $as_echo "$as_me: failed program was:" >&5
15129 sed 's/^/| /' conftest.$ac_ext >&5
15131 ac_cv_c_volatile=no
15134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15136 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15137 $as_echo "$ac_cv_c_volatile" >&6; }
15138 if test $ac_cv_c_volatile = no; then
15140 cat >>confdefs.h <<\_ACEOF
15141 #define volatile /**/
15146 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15147 $as_echo_n "checking for __func__... " >&6; }
15148 if test "${pgac_cv_funcname_func_support+set}" = set; then
15149 $as_echo_n "(cached) " >&6
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15161 printf("%s\n", __func__);
15166 rm -f conftest.$ac_objext
15167 if { (ac_try="$ac_compile"
15168 case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15173 $as_echo "$ac_try_echo") >&5
15174 (eval "$ac_compile") 2>conftest.er1
15176 grep -v '^ *+' conftest.er1 >conftest.err
15178 cat conftest.err >&5
15179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } && {
15181 test -z "$ac_c_werror_flag" ||
15182 test ! -s conftest.err
15183 } && test -s conftest.$ac_objext; then
15184 pgac_cv_funcname_func_support=yes
15186 $as_echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 pgac_cv_funcname_func_support=no
15192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15194 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15195 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15196 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15198 cat >>confdefs.h <<\_ACEOF
15199 #define HAVE_FUNCNAME__FUNC 1
15203 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15204 $as_echo_n "checking for __FUNCTION__... " >&6; }
15205 if test "${pgac_cv_funcname_function_support+set}" = set; then
15206 $as_echo_n "(cached) " >&6
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15218 printf("%s\n", __FUNCTION__);
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15230 $as_echo "$ac_try_echo") >&5
15231 (eval "$ac_compile") 2>conftest.er1
15233 grep -v '^ *+' conftest.er1 >conftest.err
15235 cat conftest.err >&5
15236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } && {
15238 test -z "$ac_c_werror_flag" ||
15239 test ! -s conftest.err
15240 } && test -s conftest.$ac_objext; then
15241 pgac_cv_funcname_function_support=yes
15243 $as_echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15246 pgac_cv_funcname_function_support=no
15249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15252 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15253 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15255 cat >>confdefs.h <<\_ACEOF
15256 #define HAVE_FUNCNAME__FUNCTION 1
15261 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15262 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15263 if test "${ac_cv_struct_tm+set}" = set; then
15264 $as_echo_n "(cached) " >&6
15266 cat >conftest.$ac_ext <<_ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15272 #include <sys/types.h>
15279 int *p = &tm.tm_sec;
15285 rm -f conftest.$ac_objext
15286 if { (ac_try="$ac_compile"
15287 case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15292 $as_echo "$ac_try_echo") >&5
15293 (eval "$ac_compile") 2>conftest.er1
15295 grep -v '^ *+' conftest.er1 >conftest.err
15297 cat conftest.err >&5
15298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } && {
15300 test -z "$ac_c_werror_flag" ||
15301 test ! -s conftest.err
15302 } && test -s conftest.$ac_objext; then
15303 ac_cv_struct_tm=time.h
15305 $as_echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15308 ac_cv_struct_tm=sys/time.h
15311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15313 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15314 $as_echo "$ac_cv_struct_tm" >&6; }
15315 if test $ac_cv_struct_tm = sys/time.h; then
15317 cat >>confdefs.h <<\_ACEOF
15318 #define TM_IN_SYS_TIME 1
15323 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15324 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15325 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15326 $as_echo_n "(cached) " >&6
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15334 #include <sys/types.h>
15335 #include <$ac_cv_struct_tm>
15341 static struct tm ac_aggr;
15342 if (ac_aggr.tm_zone)
15348 rm -f conftest.$ac_objext
15349 if { (ac_try="$ac_compile"
15350 case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15355 $as_echo "$ac_try_echo") >&5
15356 (eval "$ac_compile") 2>conftest.er1
15358 grep -v '^ *+' conftest.er1 >conftest.err
15360 cat conftest.err >&5
15361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && {
15363 test -z "$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 } && test -s conftest.$ac_objext; then
15366 ac_cv_member_struct_tm_tm_zone=yes
15368 $as_echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 cat >conftest.$ac_ext <<_ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 #include <sys/types.h>
15378 #include <$ac_cv_struct_tm>
15384 static struct tm ac_aggr;
15385 if (sizeof ac_aggr.tm_zone)
15391 rm -f conftest.$ac_objext
15392 if { (ac_try="$ac_compile"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15398 $as_echo "$ac_try_echo") >&5
15399 (eval "$ac_compile") 2>conftest.er1
15401 grep -v '^ *+' conftest.er1 >conftest.err
15403 cat conftest.err >&5
15404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } && {
15406 test -z "$ac_c_werror_flag" ||
15407 test ! -s conftest.err
15408 } && test -s conftest.$ac_objext; then
15409 ac_cv_member_struct_tm_tm_zone=yes
15411 $as_echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 ac_cv_member_struct_tm_tm_zone=no
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15422 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15423 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15424 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15426 cat >>confdefs.h <<_ACEOF
15427 #define HAVE_STRUCT_TM_TM_ZONE 1
15433 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15435 cat >>confdefs.h <<\_ACEOF
15436 #define HAVE_TM_ZONE 1
15440 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15441 $as_echo_n "checking for tzname... " >&6; }
15442 if test "${ac_cv_var_tzname+set}" = set; then
15443 $as_echo_n "(cached) " >&6
15445 cat >conftest.$ac_ext <<_ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15452 #ifndef tzname /* For SGI. */
15453 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (ac_try="$ac_link"
15466 case "(($ac_try" in
15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468 *) ac_try_echo=$ac_try;;
15470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15471 $as_echo "$ac_try_echo") >&5
15472 (eval "$ac_link") 2>conftest.er1
15474 grep -v '^ *+' conftest.er1 >conftest.err
15476 cat conftest.err >&5
15477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } && {
15479 test -z "$ac_c_werror_flag" ||
15480 test ! -s conftest.err
15481 } && test -s conftest$ac_exeext && {
15482 test "$cross_compiling" = yes ||
15483 $as_test_x conftest$ac_exeext
15485 ac_cv_var_tzname=yes
15487 $as_echo "$as_me: failed program was:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15490 ac_cv_var_tzname=no
15493 rm -rf conftest.dSYM
15494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15495 conftest$ac_exeext conftest.$ac_ext
15497 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15498 $as_echo "$ac_cv_var_tzname" >&6; }
15499 if test $ac_cv_var_tzname = yes; then
15501 cat >>confdefs.h <<\_ACEOF
15502 #define HAVE_TZNAME 1
15507 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15508 $as_echo_n "checking for union semun... " >&6; }
15509 if test "${ac_cv_type_union_semun+set}" = set; then
15510 $as_echo_n "(cached) " >&6
15512 ac_cv_type_union_semun=no
15513 cat >conftest.$ac_ext <<_ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 #include <sys/types.h>
15520 #include <sys/ipc.h>
15521 #include <sys/sem.h>
15526 if (sizeof (union semun))
15532 rm -f conftest.$ac_objext
15533 if { (ac_try="$ac_compile"
15534 case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15539 $as_echo "$ac_try_echo") >&5
15540 (eval "$ac_compile") 2>conftest.er1
15542 grep -v '^ *+' conftest.er1 >conftest.err
15544 cat conftest.err >&5
15545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); } && {
15547 test -z "$ac_c_werror_flag" ||
15548 test ! -s conftest.err
15549 } && test -s conftest.$ac_objext; then
15550 cat >conftest.$ac_ext <<_ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h. */
15556 #include <sys/types.h>
15557 #include <sys/ipc.h>
15558 #include <sys/sem.h>
15563 if (sizeof ((union semun)))
15569 rm -f conftest.$ac_objext
15570 if { (ac_try="$ac_compile"
15571 case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15576 $as_echo "$ac_try_echo") >&5
15577 (eval "$ac_compile") 2>conftest.er1
15579 grep -v '^ *+' conftest.er1 >conftest.err
15581 cat conftest.err >&5
15582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } && {
15584 test -z "$ac_c_werror_flag" ||
15585 test ! -s conftest.err
15586 } && test -s conftest.$ac_objext; then
15589 $as_echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15592 ac_cv_type_union_semun=yes
15595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15597 $as_echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15605 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15606 $as_echo "$ac_cv_type_union_semun" >&6; }
15607 if test "x$ac_cv_type_union_semun" = x""yes; then
15609 cat >>confdefs.h <<_ACEOF
15610 #define HAVE_UNION_SEMUN 1
15616 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15617 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15618 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15619 $as_echo_n "(cached) " >&6
15621 ac_cv_type_struct_sockaddr_un=no
15622 cat >conftest.$ac_ext <<_ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 #include <sys/types.h>
15629 #ifdef HAVE_SYS_UN_H
15630 #include <sys/un.h>
15637 if (sizeof (struct sockaddr_un))
15643 rm -f conftest.$ac_objext
15644 if { (ac_try="$ac_compile"
15645 case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15650 $as_echo "$ac_try_echo") >&5
15651 (eval "$ac_compile") 2>conftest.er1
15653 grep -v '^ *+' conftest.er1 >conftest.err
15655 cat conftest.err >&5
15656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } && {
15658 test -z "$ac_c_werror_flag" ||
15659 test ! -s conftest.err
15660 } && test -s conftest.$ac_objext; then
15661 cat >conftest.$ac_ext <<_ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15667 #include <sys/types.h>
15668 #ifdef HAVE_SYS_UN_H
15669 #include <sys/un.h>
15676 if (sizeof ((struct sockaddr_un)))
15682 rm -f conftest.$ac_objext
15683 if { (ac_try="$ac_compile"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15689 $as_echo "$ac_try_echo") >&5
15690 (eval "$ac_compile") 2>conftest.er1
15692 grep -v '^ *+' conftest.er1 >conftest.err
15694 cat conftest.err >&5
15695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } && {
15697 test -z "$ac_c_werror_flag" ||
15698 test ! -s conftest.err
15699 } && test -s conftest.$ac_objext; then
15702 $as_echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 ac_cv_type_struct_sockaddr_un=yes
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710 $as_echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15719 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15720 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15722 cat >>confdefs.h <<_ACEOF
15723 #define HAVE_STRUCT_SOCKADDR_UN 1
15727 cat >>confdefs.h <<\_ACEOF
15728 #define HAVE_UNIX_SOCKETS 1
15733 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15734 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15735 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15736 $as_echo_n "(cached) " >&6
15738 ac_cv_type_struct_sockaddr_storage=no
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 #include <sys/types.h>
15746 #ifdef HAVE_SYS_SOCKET_H
15747 #include <sys/socket.h>
15754 if (sizeof (struct sockaddr_storage))
15760 rm -f conftest.$ac_objext
15761 if { (ac_try="$ac_compile"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_compile") 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest.$ac_objext; then
15778 cat >conftest.$ac_ext <<_ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 #include <sys/types.h>
15785 #ifdef HAVE_SYS_SOCKET_H
15786 #include <sys/socket.h>
15793 if (sizeof ((struct sockaddr_storage)))
15799 rm -f conftest.$ac_objext
15800 if { (ac_try="$ac_compile"
15801 case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15806 $as_echo "$ac_try_echo") >&5
15807 (eval "$ac_compile") 2>conftest.er1
15809 grep -v '^ *+' conftest.er1 >conftest.err
15811 cat conftest.err >&5
15812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } && {
15814 test -z "$ac_c_werror_flag" ||
15815 test ! -s conftest.err
15816 } && test -s conftest.$ac_objext; then
15819 $as_echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15822 ac_cv_type_struct_sockaddr_storage=yes
15825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15827 $as_echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15835 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15836 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15837 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15839 cat >>confdefs.h <<_ACEOF
15840 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15846 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15847 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15848 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15849 $as_echo_n "(cached) " >&6
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 #include <sys/types.h>
15858 #ifdef HAVE_SYS_SOCKET_H
15859 #include <sys/socket.h>
15866 static struct sockaddr_storage ac_aggr;
15867 if (ac_aggr.ss_family)
15873 rm -f conftest.$ac_objext
15874 if { (ac_try="$ac_compile"
15875 case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15880 $as_echo "$ac_try_echo") >&5
15881 (eval "$ac_compile") 2>conftest.er1
15883 grep -v '^ *+' conftest.er1 >conftest.err
15885 cat conftest.err >&5
15886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } && {
15888 test -z "$ac_c_werror_flag" ||
15889 test ! -s conftest.err
15890 } && test -s conftest.$ac_objext; then
15891 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15893 $as_echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 cat >conftest.$ac_ext <<_ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15902 #include <sys/types.h>
15903 #ifdef HAVE_SYS_SOCKET_H
15904 #include <sys/socket.h>
15911 static struct sockaddr_storage ac_aggr;
15912 if (sizeof ac_aggr.ss_family)
15918 rm -f conftest.$ac_objext
15919 if { (ac_try="$ac_compile"
15920 case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15925 $as_echo "$ac_try_echo") >&5
15926 (eval "$ac_compile") 2>conftest.er1
15928 grep -v '^ *+' conftest.er1 >conftest.err
15930 cat conftest.err >&5
15931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest.$ac_objext; then
15936 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15938 $as_echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 ac_cv_member_struct_sockaddr_storage_ss_family=no
15944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15950 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15951 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15953 cat >>confdefs.h <<_ACEOF
15954 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15959 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15960 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15961 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15962 $as_echo_n "(cached) " >&6
15964 cat >conftest.$ac_ext <<_ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h. */
15970 #include <sys/types.h>
15971 #ifdef HAVE_SYS_SOCKET_H
15972 #include <sys/socket.h>
15979 static struct sockaddr_storage ac_aggr;
15980 if (ac_aggr.__ss_family)
15986 rm -f conftest.$ac_objext
15987 if { (ac_try="$ac_compile"
15988 case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15993 $as_echo "$ac_try_echo") >&5
15994 (eval "$ac_compile") 2>conftest.er1
15996 grep -v '^ *+' conftest.er1 >conftest.err
15998 cat conftest.err >&5
15999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } && {
16001 test -z "$ac_c_werror_flag" ||
16002 test ! -s conftest.err
16003 } && test -s conftest.$ac_objext; then
16004 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16006 $as_echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16009 cat >conftest.$ac_ext <<_ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 #include <sys/types.h>
16016 #ifdef HAVE_SYS_SOCKET_H
16017 #include <sys/socket.h>
16024 static struct sockaddr_storage ac_aggr;
16025 if (sizeof ac_aggr.__ss_family)
16031 rm -f conftest.$ac_objext
16032 if { (ac_try="$ac_compile"
16033 case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16038 $as_echo "$ac_try_echo") >&5
16039 (eval "$ac_compile") 2>conftest.er1
16041 grep -v '^ *+' conftest.er1 >conftest.err
16043 cat conftest.err >&5
16044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } && {
16046 test -z "$ac_c_werror_flag" ||
16047 test ! -s conftest.err
16048 } && test -s conftest.$ac_objext; then
16049 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16051 $as_echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 ac_cv_member_struct_sockaddr_storage___ss_family=no
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16063 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16064 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16066 cat >>confdefs.h <<_ACEOF
16067 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16072 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16073 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16074 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16075 $as_echo_n "(cached) " >&6
16077 cat >conftest.$ac_ext <<_ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <sys/types.h>
16084 #ifdef HAVE_SYS_SOCKET_H
16085 #include <sys/socket.h>
16092 static struct sockaddr_storage ac_aggr;
16093 if (ac_aggr.ss_len)
16099 rm -f conftest.$ac_objext
16100 if { (ac_try="$ac_compile"
16101 case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16106 $as_echo "$ac_try_echo") >&5
16107 (eval "$ac_compile") 2>conftest.er1
16109 grep -v '^ *+' conftest.er1 >conftest.err
16111 cat conftest.err >&5
16112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } && {
16114 test -z "$ac_c_werror_flag" ||
16115 test ! -s conftest.err
16116 } && test -s conftest.$ac_objext; then
16117 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16119 $as_echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16122 cat >conftest.$ac_ext <<_ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h. */
16128 #include <sys/types.h>
16129 #ifdef HAVE_SYS_SOCKET_H
16130 #include <sys/socket.h>
16137 static struct sockaddr_storage ac_aggr;
16138 if (sizeof ac_aggr.ss_len)
16144 rm -f conftest.$ac_objext
16145 if { (ac_try="$ac_compile"
16146 case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16151 $as_echo "$ac_try_echo") >&5
16152 (eval "$ac_compile") 2>conftest.er1
16154 grep -v '^ *+' conftest.er1 >conftest.err
16156 cat conftest.err >&5
16157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } && {
16159 test -z "$ac_c_werror_flag" ||
16160 test ! -s conftest.err
16161 } && test -s conftest.$ac_objext; then
16162 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16164 $as_echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 ac_cv_member_struct_sockaddr_storage_ss_len=no
16170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16176 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16177 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16179 cat >>confdefs.h <<_ACEOF
16180 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16185 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16186 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16187 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16188 $as_echo_n "(cached) " >&6
16190 cat >conftest.$ac_ext <<_ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16196 #include <sys/types.h>
16197 #ifdef HAVE_SYS_SOCKET_H
16198 #include <sys/socket.h>
16205 static struct sockaddr_storage ac_aggr;
16206 if (ac_aggr.__ss_len)
16212 rm -f conftest.$ac_objext
16213 if { (ac_try="$ac_compile"
16214 case "(($ac_try" in
16215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216 *) ac_try_echo=$ac_try;;
16218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16219 $as_echo "$ac_try_echo") >&5
16220 (eval "$ac_compile") 2>conftest.er1
16222 grep -v '^ *+' conftest.er1 >conftest.err
16224 cat conftest.err >&5
16225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } && {
16227 test -z "$ac_c_werror_flag" ||
16228 test ! -s conftest.err
16229 } && test -s conftest.$ac_objext; then
16230 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16232 $as_echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16235 cat >conftest.$ac_ext <<_ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 #include <sys/types.h>
16242 #ifdef HAVE_SYS_SOCKET_H
16243 #include <sys/socket.h>
16250 static struct sockaddr_storage ac_aggr;
16251 if (sizeof ac_aggr.__ss_len)
16257 rm -f conftest.$ac_objext
16258 if { (ac_try="$ac_compile"
16259 case "(($ac_try" in
16260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261 *) ac_try_echo=$ac_try;;
16263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16264 $as_echo "$ac_try_echo") >&5
16265 (eval "$ac_compile") 2>conftest.er1
16267 grep -v '^ *+' conftest.er1 >conftest.err
16269 cat conftest.err >&5
16270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } && {
16272 test -z "$ac_c_werror_flag" ||
16273 test ! -s conftest.err
16274 } && test -s conftest.$ac_objext; then
16275 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16277 $as_echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 ac_cv_member_struct_sockaddr_storage___ss_len=no
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16288 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16289 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16290 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16292 cat >>confdefs.h <<_ACEOF
16293 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16298 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16299 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16300 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16301 $as_echo_n "(cached) " >&6
16303 cat >conftest.$ac_ext <<_ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16309 #include <sys/types.h>
16310 #ifdef HAVE_SYS_SOCKET_H
16311 #include <sys/socket.h>
16318 static struct sockaddr ac_aggr;
16319 if (ac_aggr.sa_len)
16325 rm -f conftest.$ac_objext
16326 if { (ac_try="$ac_compile"
16327 case "(($ac_try" in
16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329 *) ac_try_echo=$ac_try;;
16331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16332 $as_echo "$ac_try_echo") >&5
16333 (eval "$ac_compile") 2>conftest.er1
16335 grep -v '^ *+' conftest.er1 >conftest.err
16337 cat conftest.err >&5
16338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } && {
16340 test -z "$ac_c_werror_flag" ||
16341 test ! -s conftest.err
16342 } && test -s conftest.$ac_objext; then
16343 ac_cv_member_struct_sockaddr_sa_len=yes
16345 $as_echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 cat >conftest.$ac_ext <<_ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16354 #include <sys/types.h>
16355 #ifdef HAVE_SYS_SOCKET_H
16356 #include <sys/socket.h>
16363 static struct sockaddr ac_aggr;
16364 if (sizeof ac_aggr.sa_len)
16370 rm -f conftest.$ac_objext
16371 if { (ac_try="$ac_compile"
16372 case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16377 $as_echo "$ac_try_echo") >&5
16378 (eval "$ac_compile") 2>conftest.er1
16380 grep -v '^ *+' conftest.er1 >conftest.err
16382 cat conftest.err >&5
16383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } && {
16385 test -z "$ac_c_werror_flag" ||
16386 test ! -s conftest.err
16387 } && test -s conftest.$ac_objext; then
16388 ac_cv_member_struct_sockaddr_sa_len=yes
16390 $as_echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16393 ac_cv_member_struct_sockaddr_sa_len=no
16396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16402 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16403 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16405 cat >>confdefs.h <<_ACEOF
16406 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16412 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16413 $as_echo_n "checking for struct addrinfo... " >&6; }
16414 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16415 $as_echo_n "(cached) " >&6
16417 ac_cv_type_struct_addrinfo=no
16418 cat >conftest.$ac_ext <<_ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 #include <sys/types.h>
16425 #include <sys/socket.h>
16432 if (sizeof (struct addrinfo))
16438 rm -f conftest.$ac_objext
16439 if { (ac_try="$ac_compile"
16440 case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16445 $as_echo "$ac_try_echo") >&5
16446 (eval "$ac_compile") 2>conftest.er1
16448 grep -v '^ *+' conftest.er1 >conftest.err
16450 cat conftest.err >&5
16451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && {
16453 test -z "$ac_c_werror_flag" ||
16454 test ! -s conftest.err
16455 } && test -s conftest.$ac_objext; then
16456 cat >conftest.$ac_ext <<_ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 #include <sys/types.h>
16463 #include <sys/socket.h>
16470 if (sizeof ((struct addrinfo)))
16476 rm -f conftest.$ac_objext
16477 if { (ac_try="$ac_compile"
16478 case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16483 $as_echo "$ac_try_echo") >&5
16484 (eval "$ac_compile") 2>conftest.er1
16486 grep -v '^ *+' conftest.er1 >conftest.err
16488 cat conftest.err >&5
16489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } && {
16491 test -z "$ac_c_werror_flag" ||
16492 test ! -s conftest.err
16493 } && test -s conftest.$ac_objext; then
16496 $as_echo "$as_me: failed program was:" >&5
16497 sed 's/^/| /' conftest.$ac_ext >&5
16499 ac_cv_type_struct_addrinfo=yes
16502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16504 $as_echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16513 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16514 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16516 cat >>confdefs.h <<_ACEOF
16517 #define HAVE_STRUCT_ADDRINFO 1
16524 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16525 $as_echo_n "checking for intptr_t... " >&6; }
16526 if test "${ac_cv_type_intptr_t+set}" = set; then
16527 $as_echo_n "(cached) " >&6
16529 ac_cv_type_intptr_t=no
16530 cat >conftest.$ac_ext <<_ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16536 $ac_includes_default
16540 if (sizeof (intptr_t))
16546 rm -f conftest.$ac_objext
16547 if { (ac_try="$ac_compile"
16548 case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16553 $as_echo "$ac_try_echo") >&5
16554 (eval "$ac_compile") 2>conftest.er1
16556 grep -v '^ *+' conftest.er1 >conftest.err
16558 cat conftest.err >&5
16559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } && {
16561 test -z "$ac_c_werror_flag" ||
16562 test ! -s conftest.err
16563 } && test -s conftest.$ac_objext; then
16564 cat >conftest.$ac_ext <<_ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 $ac_includes_default
16574 if (sizeof ((intptr_t)))
16580 rm -f conftest.$ac_objext
16581 if { (ac_try="$ac_compile"
16582 case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16587 $as_echo "$ac_try_echo") >&5
16588 (eval "$ac_compile") 2>conftest.er1
16590 grep -v '^ *+' conftest.er1 >conftest.err
16592 cat conftest.err >&5
16593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } && {
16595 test -z "$ac_c_werror_flag" ||
16596 test ! -s conftest.err
16597 } && test -s conftest.$ac_objext; then
16600 $as_echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16603 ac_cv_type_intptr_t=yes
16606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608 $as_echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16616 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16617 $as_echo "$ac_cv_type_intptr_t" >&6; }
16618 if test "x$ac_cv_type_intptr_t" = x""yes; then
16620 cat >>confdefs.h <<\_ACEOF
16621 #define HAVE_INTPTR_T 1
16625 for ac_type in 'int' 'long int' 'long long int'; do
16626 cat >conftest.$ac_ext <<_ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632 $ac_includes_default
16636 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16643 rm -f conftest.$ac_objext
16644 if { (ac_try="$ac_compile"
16645 case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16650 $as_echo "$ac_try_echo") >&5
16651 (eval "$ac_compile") 2>conftest.er1
16653 grep -v '^ *+' conftest.er1 >conftest.err
16655 cat conftest.err >&5
16656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest.$ac_objext; then
16662 cat >>confdefs.h <<_ACEOF
16663 #define intptr_t $ac_type
16668 $as_echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 test -z "$ac_type" && break
16681 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16682 $as_echo_n "checking for uintptr_t... " >&6; }
16683 if test "${ac_cv_type_uintptr_t+set}" = set; then
16684 $as_echo_n "(cached) " >&6
16686 ac_cv_type_uintptr_t=no
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 $ac_includes_default
16697 if (sizeof (uintptr_t))
16703 rm -f conftest.$ac_objext
16704 if { (ac_try="$ac_compile"
16705 case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16710 $as_echo "$ac_try_echo") >&5
16711 (eval "$ac_compile") 2>conftest.er1
16713 grep -v '^ *+' conftest.er1 >conftest.err
16715 cat conftest.err >&5
16716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } && {
16718 test -z "$ac_c_werror_flag" ||
16719 test ! -s conftest.err
16720 } && test -s conftest.$ac_objext; then
16721 cat >conftest.$ac_ext <<_ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16727 $ac_includes_default
16731 if (sizeof ((uintptr_t)))
16737 rm -f conftest.$ac_objext
16738 if { (ac_try="$ac_compile"
16739 case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16744 $as_echo "$ac_try_echo") >&5
16745 (eval "$ac_compile") 2>conftest.er1
16747 grep -v '^ *+' conftest.er1 >conftest.err
16749 cat conftest.err >&5
16750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } && {
16752 test -z "$ac_c_werror_flag" ||
16753 test ! -s conftest.err
16754 } && test -s conftest.$ac_objext; then
16757 $as_echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 ac_cv_type_uintptr_t=yes
16763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765 $as_echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16773 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16774 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16775 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16777 cat >>confdefs.h <<\_ACEOF
16778 #define HAVE_UINTPTR_T 1
16782 for ac_type in 'unsigned int' 'unsigned long int' \
16783 'unsigned long long int'; do
16784 cat >conftest.$ac_ext <<_ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16790 $ac_includes_default
16794 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16801 rm -f conftest.$ac_objext
16802 if { (ac_try="$ac_compile"
16803 case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16808 $as_echo "$ac_try_echo") >&5
16809 (eval "$ac_compile") 2>conftest.er1
16811 grep -v '^ *+' conftest.er1 >conftest.err
16813 cat conftest.err >&5
16814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } && {
16816 test -z "$ac_c_werror_flag" ||
16817 test ! -s conftest.err
16818 } && test -s conftest.$ac_objext; then
16820 cat >>confdefs.h <<_ACEOF
16821 #define uintptr_t $ac_type
16826 $as_echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833 test -z "$ac_type" && break
16839 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16840 $as_echo_n "checking for long long int... " >&6; }
16841 if test "${ac_cv_type_long_long_int+set}" = set; then
16842 $as_echo_n "(cached) " >&6
16844 cat >conftest.$ac_ext <<_ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h. */
16851 /* For now, do not test the preprocessor; as of 2007 there are too many
16852 implementations with broken preprocessors. Perhaps this can
16853 be revisited in 2012. In the meantime, code should not expect
16854 #if to work with literals wider than 32 bits. */
16855 /* Test literals. */
16856 long long int ll = 9223372036854775807ll;
16857 long long int nll = -9223372036854775807LL;
16858 unsigned long long int ull = 18446744073709551615ULL;
16859 /* Test constant expressions. */
16860 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16862 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16868 /* Test availability of runtime routines for shift and division. */
16869 long long int llmax = 9223372036854775807ll;
16870 unsigned long long int ullmax = 18446744073709551615ull;
16871 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16872 | (llmax / ll) | (llmax % ll)
16873 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16874 | (ullmax / ull) | (ullmax % ull));
16880 rm -f conftest.$ac_objext conftest$ac_exeext
16881 if { (ac_try="$ac_link"
16882 case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16887 $as_echo "$ac_try_echo") >&5
16888 (eval "$ac_link") 2>conftest.er1
16890 grep -v '^ *+' conftest.er1 >conftest.err
16892 cat conftest.err >&5
16893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } && {
16895 test -z "$ac_c_werror_flag" ||
16896 test ! -s conftest.err
16897 } && test -s conftest$ac_exeext && {
16898 test "$cross_compiling" = yes ||
16899 $as_test_x conftest$ac_exeext
16901 if test "$cross_compiling" = yes; then
16902 ac_cv_type_long_long_int=yes
16904 cat >conftest.$ac_ext <<_ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 #include <limits.h>
16913 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16914 # define LLONG_MAX (HALF - 1 + HALF)
16919 long long int n = 1;
16923 long long int m = n << i;
16926 if (LLONG_MAX / 2 < m)
16934 rm -f conftest$ac_exeext
16935 if { (ac_try="$ac_link"
16936 case "(($ac_try" in
16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938 *) ac_try_echo=$ac_try;;
16940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16941 $as_echo "$ac_try_echo") >&5
16942 (eval "$ac_link") 2>&5
16944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16951 $as_echo "$ac_try_echo") >&5
16952 (eval "$ac_try") 2>&5
16954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16956 ac_cv_type_long_long_int=yes
16958 $as_echo "$as_me: program exited with status $ac_status" >&5
16959 $as_echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 ( exit $ac_status )
16963 ac_cv_type_long_long_int=no
16965 rm -rf conftest.dSYM
16966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16971 $as_echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16974 ac_cv_type_long_long_int=no
16977 rm -rf conftest.dSYM
16978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16979 conftest$ac_exeext conftest.$ac_ext
16981 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16982 $as_echo "$ac_cv_type_long_long_int" >&6; }
16983 if test $ac_cv_type_long_long_int = yes; then
16985 cat >>confdefs.h <<\_ACEOF
16986 #define HAVE_LONG_LONG_INT 1
16992 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
16993 $as_echo_n "checking for locale_t... " >&6; }
16994 if test "${pgac_cv_type_locale_t+set}" = set; then
16995 $as_echo_n "(cached) " >&6
16997 cat >conftest.$ac_ext <<_ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17003 #include <locale.h>
17013 rm -f conftest.$ac_objext
17014 if { (ac_try="$ac_compile"
17015 case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17020 $as_echo "$ac_try_echo") >&5
17021 (eval "$ac_compile") 2>conftest.er1
17023 grep -v '^ *+' conftest.er1 >conftest.err
17025 cat conftest.err >&5
17026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } && {
17028 test -z "$ac_c_werror_flag" ||
17029 test ! -s conftest.err
17030 } && test -s conftest.$ac_objext; then
17031 pgac_cv_type_locale_t=yes
17033 $as_echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 #include <xlocale.h>
17052 rm -f conftest.$ac_objext
17053 if { (ac_try="$ac_compile"
17054 case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17059 $as_echo "$ac_try_echo") >&5
17060 (eval "$ac_compile") 2>conftest.er1
17062 grep -v '^ *+' conftest.er1 >conftest.err
17064 cat conftest.err >&5
17065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } && {
17067 test -z "$ac_c_werror_flag" ||
17068 test ! -s conftest.err
17069 } && test -s conftest.$ac_objext; then
17070 pgac_cv_type_locale_t='yes (in xlocale.h)'
17072 $as_echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 pgac_cv_type_locale_t=no
17078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17084 $as_echo "$pgac_cv_type_locale_t" >&6; }
17085 if test "$pgac_cv_type_locale_t" != no; then
17087 cat >>confdefs.h <<\_ACEOF
17088 #define HAVE_LOCALE_T 1
17092 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17094 cat >>confdefs.h <<\_ACEOF
17095 #define LOCALE_T_IN_XLOCALE 1
17100 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17101 $as_echo_n "checking for struct cmsgcred... " >&6; }
17102 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17103 $as_echo_n "(cached) " >&6
17105 ac_cv_type_struct_cmsgcred=no
17106 cat >conftest.$ac_ext <<_ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17112 #include <sys/socket.h>
17113 #ifdef HAVE_SYS_UCRED_H
17114 #include <sys/ucred.h>
17120 if (sizeof (struct cmsgcred))
17126 rm -f conftest.$ac_objext
17127 if { (ac_try="$ac_compile"
17128 case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17133 $as_echo "$ac_try_echo") >&5
17134 (eval "$ac_compile") 2>conftest.er1
17136 grep -v '^ *+' conftest.er1 >conftest.err
17138 cat conftest.err >&5
17139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } && {
17141 test -z "$ac_c_werror_flag" ||
17142 test ! -s conftest.err
17143 } && test -s conftest.$ac_objext; then
17144 cat >conftest.$ac_ext <<_ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h. */
17150 #include <sys/socket.h>
17151 #ifdef HAVE_SYS_UCRED_H
17152 #include <sys/ucred.h>
17158 if (sizeof ((struct cmsgcred)))
17164 rm -f conftest.$ac_objext
17165 if { (ac_try="$ac_compile"
17166 case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17171 $as_echo "$ac_try_echo") >&5
17172 (eval "$ac_compile") 2>conftest.er1
17174 grep -v '^ *+' conftest.er1 >conftest.err
17176 cat conftest.err >&5
17177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } && {
17179 test -z "$ac_c_werror_flag" ||
17180 test ! -s conftest.err
17181 } && test -s conftest.$ac_objext; then
17184 $as_echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 ac_cv_type_struct_cmsgcred=yes
17190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 $as_echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17201 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17202 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17204 cat >>confdefs.h <<_ACEOF
17205 #define HAVE_STRUCT_CMSGCRED 1
17212 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17213 $as_echo_n "checking for struct option... " >&6; }
17214 if test "${ac_cv_type_struct_option+set}" = set; then
17215 $as_echo_n "(cached) " >&6
17217 ac_cv_type_struct_option=no
17218 cat >conftest.$ac_ext <<_ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 #ifdef HAVE_GETOPT_H
17225 #include <getopt.h>
17231 if (sizeof (struct option))
17237 rm -f conftest.$ac_objext
17238 if { (ac_try="$ac_compile"
17239 case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17244 $as_echo "$ac_try_echo") >&5
17245 (eval "$ac_compile") 2>conftest.er1
17247 grep -v '^ *+' conftest.er1 >conftest.err
17249 cat conftest.err >&5
17250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } && {
17252 test -z "$ac_c_werror_flag" ||
17253 test ! -s conftest.err
17254 } && test -s conftest.$ac_objext; then
17255 cat >conftest.$ac_ext <<_ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261 #ifdef HAVE_GETOPT_H
17262 #include <getopt.h>
17268 if (sizeof ((struct option)))
17274 rm -f conftest.$ac_objext
17275 if { (ac_try="$ac_compile"
17276 case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17281 $as_echo "$ac_try_echo") >&5
17282 (eval "$ac_compile") 2>conftest.er1
17284 grep -v '^ *+' conftest.er1 >conftest.err
17286 cat conftest.err >&5
17287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } && {
17289 test -z "$ac_c_werror_flag" ||
17290 test ! -s conftest.err
17291 } && test -s conftest.$ac_objext; then
17294 $as_echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17297 ac_cv_type_struct_option=yes
17300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17302 $as_echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17311 $as_echo "$ac_cv_type_struct_option" >&6; }
17312 if test "x$ac_cv_type_struct_option" = x""yes; then
17314 cat >>confdefs.h <<_ACEOF
17315 #define HAVE_STRUCT_OPTION 1
17322 if test "$with_zlib" = yes; then
17323 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17324 # did not). While we could work around the lack of z_streamp, it
17325 # seems unwise to encourage people to use such old zlib versions...
17326 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17327 $as_echo_n "checking for z_streamp... " >&6; }
17328 if test "${ac_cv_type_z_streamp+set}" = set; then
17329 $as_echo_n "(cached) " >&6
17331 ac_cv_type_z_streamp=no
17332 cat >conftest.$ac_ext <<_ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17343 if (sizeof (z_streamp))
17349 rm -f conftest.$ac_objext
17350 if { (ac_try="$ac_compile"
17351 case "(($ac_try" in
17352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17353 *) ac_try_echo=$ac_try;;
17355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17356 $as_echo "$ac_try_echo") >&5
17357 (eval "$ac_compile") 2>conftest.er1
17359 grep -v '^ *+' conftest.er1 >conftest.err
17361 cat conftest.err >&5
17362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } && {
17364 test -z "$ac_c_werror_flag" ||
17365 test ! -s conftest.err
17366 } && test -s conftest.$ac_objext; then
17367 cat >conftest.$ac_ext <<_ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17378 if (sizeof ((z_streamp)))
17384 rm -f conftest.$ac_objext
17385 if { (ac_try="$ac_compile"
17386 case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17391 $as_echo "$ac_try_echo") >&5
17392 (eval "$ac_compile") 2>conftest.er1
17394 grep -v '^ *+' conftest.er1 >conftest.err
17396 cat conftest.err >&5
17397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } && {
17399 test -z "$ac_c_werror_flag" ||
17400 test ! -s conftest.err
17401 } && test -s conftest.$ac_objext; then
17404 $as_echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 ac_cv_type_z_streamp=yes
17410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412 $as_echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17420 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17421 $as_echo "$ac_cv_type_z_streamp" >&6; }
17422 if test "x$ac_cv_type_z_streamp" = x""yes; then
17425 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17426 Use --without-zlib to disable zlib support." >&5
17427 $as_echo "$as_me: error: zlib version is too old
17428 Use --without-zlib to disable zlib support." >&2;}
17429 { (exit 1); exit 1; }; }
17434 if test "$with_krb5" = yes; then
17435 # Check for differences between MIT and Heimdal (KTH) releases
17436 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17437 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17438 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17439 $as_echo_n "(cached) " >&6
17441 cat >conftest.$ac_ext <<_ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17452 static krb5_ticket ac_aggr;
17453 if (ac_aggr.enc_part2)
17459 rm -f conftest.$ac_objext
17460 if { (ac_try="$ac_compile"
17461 case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17466 $as_echo "$ac_try_echo") >&5
17467 (eval "$ac_compile") 2>conftest.er1
17469 grep -v '^ *+' conftest.er1 >conftest.err
17471 cat conftest.err >&5
17472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } && {
17474 test -z "$ac_c_werror_flag" ||
17475 test ! -s conftest.err
17476 } && test -s conftest.$ac_objext; then
17477 ac_cv_member_krb5_ticket_enc_part2=yes
17479 $as_echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17482 cat >conftest.$ac_ext <<_ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17493 static krb5_ticket ac_aggr;
17494 if (sizeof ac_aggr.enc_part2)
17500 rm -f conftest.$ac_objext
17501 if { (ac_try="$ac_compile"
17502 case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17507 $as_echo "$ac_try_echo") >&5
17508 (eval "$ac_compile") 2>conftest.er1
17510 grep -v '^ *+' conftest.er1 >conftest.err
17512 cat conftest.err >&5
17513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } && {
17515 test -z "$ac_c_werror_flag" ||
17516 test ! -s conftest.err
17517 } && test -s conftest.$ac_objext; then
17518 ac_cv_member_krb5_ticket_enc_part2=yes
17520 $as_echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17523 ac_cv_member_krb5_ticket_enc_part2=no
17526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17531 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17532 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17533 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17535 cat >>confdefs.h <<_ACEOF
17536 #define HAVE_KRB5_TICKET_ENC_PART2 1
17541 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17542 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17543 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17544 $as_echo_n "(cached) " >&6
17546 cat >conftest.$ac_ext <<_ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17557 static krb5_ticket ac_aggr;
17558 if (ac_aggr.client)
17564 rm -f conftest.$ac_objext
17565 if { (ac_try="$ac_compile"
17566 case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17571 $as_echo "$ac_try_echo") >&5
17572 (eval "$ac_compile") 2>conftest.er1
17574 grep -v '^ *+' conftest.er1 >conftest.err
17576 cat conftest.err >&5
17577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } && {
17579 test -z "$ac_c_werror_flag" ||
17580 test ! -s conftest.err
17581 } && test -s conftest.$ac_objext; then
17582 ac_cv_member_krb5_ticket_client=yes
17584 $as_echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17587 cat >conftest.$ac_ext <<_ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17598 static krb5_ticket ac_aggr;
17599 if (sizeof ac_aggr.client)
17605 rm -f conftest.$ac_objext
17606 if { (ac_try="$ac_compile"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17612 $as_echo "$ac_try_echo") >&5
17613 (eval "$ac_compile") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest.$ac_objext; then
17623 ac_cv_member_krb5_ticket_client=yes
17625 $as_echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 ac_cv_member_krb5_ticket_client=no
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17636 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17637 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17638 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17640 cat >>confdefs.h <<_ACEOF
17641 #define HAVE_KRB5_TICKET_CLIENT 1
17646 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17647 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17648 { (exit 1); exit 1; }; }
17653 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17654 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17655 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17656 $as_echo_n "(cached) " >&6
17658 cat >conftest.$ac_ext <<_ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17669 static krb5_error ac_aggr;
17670 if (ac_aggr.text.data)
17676 rm -f conftest.$ac_objext
17677 if { (ac_try="$ac_compile"
17678 case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17683 $as_echo "$ac_try_echo") >&5
17684 (eval "$ac_compile") 2>conftest.er1
17686 grep -v '^ *+' conftest.er1 >conftest.err
17688 cat conftest.err >&5
17689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } && {
17691 test -z "$ac_c_werror_flag" ||
17692 test ! -s conftest.err
17693 } && test -s conftest.$ac_objext; then
17694 ac_cv_member_krb5_error_text_data=yes
17696 $as_echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17699 cat >conftest.$ac_ext <<_ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17710 static krb5_error ac_aggr;
17711 if (sizeof ac_aggr.text.data)
17717 rm -f conftest.$ac_objext
17718 if { (ac_try="$ac_compile"
17719 case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17724 $as_echo "$ac_try_echo") >&5
17725 (eval "$ac_compile") 2>conftest.er1
17727 grep -v '^ *+' conftest.er1 >conftest.err
17729 cat conftest.err >&5
17730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } && {
17732 test -z "$ac_c_werror_flag" ||
17733 test ! -s conftest.err
17734 } && test -s conftest.$ac_objext; then
17735 ac_cv_member_krb5_error_text_data=yes
17737 $as_echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 ac_cv_member_krb5_error_text_data=no
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17748 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17749 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17750 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17752 cat >>confdefs.h <<_ACEOF
17753 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17758 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17759 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17760 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17761 $as_echo_n "(cached) " >&6
17763 cat >conftest.$ac_ext <<_ACEOF
17766 cat confdefs.h >>conftest.$ac_ext
17767 cat >>conftest.$ac_ext <<_ACEOF
17768 /* end confdefs.h. */
17774 static krb5_error ac_aggr;
17775 if (ac_aggr.e_data)
17781 rm -f conftest.$ac_objext
17782 if { (ac_try="$ac_compile"
17783 case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17788 $as_echo "$ac_try_echo") >&5
17789 (eval "$ac_compile") 2>conftest.er1
17791 grep -v '^ *+' conftest.er1 >conftest.err
17793 cat conftest.err >&5
17794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } && {
17796 test -z "$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17798 } && test -s conftest.$ac_objext; then
17799 ac_cv_member_krb5_error_e_data=yes
17801 $as_echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804 cat >conftest.$ac_ext <<_ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17815 static krb5_error ac_aggr;
17816 if (sizeof ac_aggr.e_data)
17822 rm -f conftest.$ac_objext
17823 if { (ac_try="$ac_compile"
17824 case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17829 $as_echo "$ac_try_echo") >&5
17830 (eval "$ac_compile") 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } && {
17837 test -z "$ac_c_werror_flag" ||
17838 test ! -s conftest.err
17839 } && test -s conftest.$ac_objext; then
17840 ac_cv_member_krb5_error_e_data=yes
17842 $as_echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 ac_cv_member_krb5_error_e_data=no
17848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17854 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17855 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17857 cat >>confdefs.h <<_ACEOF
17858 #define HAVE_KRB5_ERROR_E_DATA 1
17863 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17864 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17865 { (exit 1); exit 1; }; }
17871 # Win32 requires headers to be loaded for __stdcall, so can't use
17872 # AC_CHECK_FUNCS here.
17873 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17874 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17875 cat >conftest.$ac_ext <<_ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17885 krb5_free_unparsed_name(NULL,NULL);
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17897 $as_echo "$ac_try_echo") >&5
17898 (eval "$ac_link") 2>conftest.er1
17900 grep -v '^ *+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } && {
17905 test -z "$ac_c_werror_flag" ||
17906 test ! -s conftest.err
17907 } && test -s conftest$ac_exeext && {
17908 test "$cross_compiling" = yes ||
17909 $as_test_x conftest$ac_exeext
17912 cat >>confdefs.h <<\_ACEOF
17913 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17916 { $as_echo "$as_me:$LINENO: result: yes" >&5
17917 $as_echo "yes" >&6; }
17919 $as_echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17922 { $as_echo "$as_me:$LINENO: result: no" >&5
17923 $as_echo "no" >&6; }
17926 rm -rf conftest.dSYM
17927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17928 conftest$ac_exeext conftest.$ac_ext
17931 # Check largefile support. You might think this is a system service not a
17932 # compiler characteristic, but you'd be wrong. We must check this before
17933 # probing existence of related functions such as fseeko, since the largefile
17934 # defines can affect what is generated for that.
17935 # Check whether --enable-largefile was given.
17936 if test "${enable_largefile+set}" = set; then
17937 enableval=$enable_largefile;
17940 if test "$enable_largefile" != no; then
17942 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17943 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17944 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17945 $as_echo_n "(cached) " >&6
17947 ac_cv_sys_largefile_CC=no
17948 if test "$GCC" != yes; then
17951 # IRIX 6.2 and later do not support large files by default,
17952 # so use the C compiler's -n32 option if that helps.
17953 cat >conftest.$ac_ext <<_ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17959 #include <sys/types.h>
17960 /* Check that off_t can represent 2**63 - 1 correctly.
17961 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17962 since some C++ compilers masquerading as C compilers
17963 incorrectly reject 9223372036854775807. */
17964 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17965 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17966 && LARGE_OFF_T % 2147483647 == 1)
17976 rm -f conftest.$ac_objext
17977 if { (ac_try="$ac_compile"
17978 case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17983 $as_echo "$ac_try_echo") >&5
17984 (eval "$ac_compile") 2>conftest.er1
17986 grep -v '^ *+' conftest.er1 >conftest.err
17988 cat conftest.err >&5
17989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } && {
17991 test -z "$ac_c_werror_flag" ||
17992 test ! -s conftest.err
17993 } && test -s conftest.$ac_objext; then
17996 $as_echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
18002 rm -f core conftest.err conftest.$ac_objext
18004 rm -f conftest.$ac_objext
18005 if { (ac_try="$ac_compile"
18006 case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18011 $as_echo "$ac_try_echo") >&5
18012 (eval "$ac_compile") 2>conftest.er1
18014 grep -v '^ *+' conftest.er1 >conftest.err
18016 cat conftest.err >&5
18017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } && {
18019 test -z "$ac_c_werror_flag" ||
18020 test ! -s conftest.err
18021 } && test -s conftest.$ac_objext; then
18022 ac_cv_sys_largefile_CC=' -n32'; break
18024 $as_echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18030 rm -f core conftest.err conftest.$ac_objext
18034 rm -f conftest.$ac_ext
18037 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18038 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18039 if test "$ac_cv_sys_largefile_CC" != no; then
18040 CC=$CC$ac_cv_sys_largefile_CC
18043 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18044 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18045 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18046 $as_echo_n "(cached) " >&6
18049 cat >conftest.$ac_ext <<_ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055 #include <sys/types.h>
18056 /* Check that off_t can represent 2**63 - 1 correctly.
18057 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18058 since some C++ compilers masquerading as C compilers
18059 incorrectly reject 9223372036854775807. */
18060 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18061 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18062 && LARGE_OFF_T % 2147483647 == 1)
18072 rm -f conftest.$ac_objext
18073 if { (ac_try="$ac_compile"
18074 case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18079 $as_echo "$ac_try_echo") >&5
18080 (eval "$ac_compile") 2>conftest.er1
18082 grep -v '^ *+' conftest.er1 >conftest.err
18084 cat conftest.err >&5
18085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } && {
18087 test -z "$ac_c_werror_flag" ||
18088 test ! -s conftest.err
18089 } && test -s conftest.$ac_objext; then
18090 ac_cv_sys_file_offset_bits=no; break
18092 $as_echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18099 cat >conftest.$ac_ext <<_ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h. */
18105 #define _FILE_OFFSET_BITS 64
18106 #include <sys/types.h>
18107 /* Check that off_t can represent 2**63 - 1 correctly.
18108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18109 since some C++ compilers masquerading as C compilers
18110 incorrectly reject 9223372036854775807. */
18111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18113 && LARGE_OFF_T % 2147483647 == 1)
18123 rm -f conftest.$ac_objext
18124 if { (ac_try="$ac_compile"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18130 $as_echo "$ac_try_echo") >&5
18131 (eval "$ac_compile") 2>conftest.er1
18133 grep -v '^ *+' conftest.er1 >conftest.err
18135 cat conftest.err >&5
18136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } && {
18138 test -z "$ac_c_werror_flag" ||
18139 test ! -s conftest.err
18140 } && test -s conftest.$ac_objext; then
18141 ac_cv_sys_file_offset_bits=64; break
18143 $as_echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150 ac_cv_sys_file_offset_bits=unknown
18154 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18155 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18156 case $ac_cv_sys_file_offset_bits in #(
18159 cat >>confdefs.h <<_ACEOF
18160 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18165 if test $ac_cv_sys_file_offset_bits = unknown; then
18166 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18167 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18168 if test "${ac_cv_sys_large_files+set}" = set; then
18169 $as_echo_n "(cached) " >&6
18172 cat >conftest.$ac_ext <<_ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 #include <sys/types.h>
18179 /* Check that off_t can represent 2**63 - 1 correctly.
18180 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18181 since some C++ compilers masquerading as C compilers
18182 incorrectly reject 9223372036854775807. */
18183 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18184 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18185 && LARGE_OFF_T % 2147483647 == 1)
18195 rm -f conftest.$ac_objext
18196 if { (ac_try="$ac_compile"
18197 case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18202 $as_echo "$ac_try_echo") >&5
18203 (eval "$ac_compile") 2>conftest.er1
18205 grep -v '^ *+' conftest.er1 >conftest.err
18207 cat conftest.err >&5
18208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } && {
18210 test -z "$ac_c_werror_flag" ||
18211 test ! -s conftest.err
18212 } && test -s conftest.$ac_objext; then
18213 ac_cv_sys_large_files=no; break
18215 $as_echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18222 cat >conftest.$ac_ext <<_ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h. */
18228 #define _LARGE_FILES 1
18229 #include <sys/types.h>
18230 /* Check that off_t can represent 2**63 - 1 correctly.
18231 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18232 since some C++ compilers masquerading as C compilers
18233 incorrectly reject 9223372036854775807. */
18234 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18236 && LARGE_OFF_T % 2147483647 == 1)
18246 rm -f conftest.$ac_objext
18247 if { (ac_try="$ac_compile"
18248 case "(($ac_try" in
18249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250 *) ac_try_echo=$ac_try;;
18252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18253 $as_echo "$ac_try_echo") >&5
18254 (eval "$ac_compile") 2>conftest.er1
18256 grep -v '^ *+' conftest.er1 >conftest.err
18258 cat conftest.err >&5
18259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } && {
18261 test -z "$ac_c_werror_flag" ||
18262 test ! -s conftest.err
18263 } && test -s conftest.$ac_objext; then
18264 ac_cv_sys_large_files=1; break
18266 $as_echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18273 ac_cv_sys_large_files=unknown
18277 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18278 $as_echo "$ac_cv_sys_large_files" >&6; }
18279 case $ac_cv_sys_large_files in #(
18282 cat >>confdefs.h <<_ACEOF
18283 #define _LARGE_FILES $ac_cv_sys_large_files
18292 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18293 # The cast to long int works around a bug in the HP C Compiler
18294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18296 # This bug is HP SR number 8606223364.
18297 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18298 $as_echo_n "checking size of off_t... " >&6; }
18299 if test "${ac_cv_sizeof_off_t+set}" = set; then
18300 $as_echo_n "(cached) " >&6
18302 if test "$cross_compiling" = yes; then
18303 # Depending upon the size, compute the lo and hi bounds.
18304 cat >conftest.$ac_ext <<_ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18310 $ac_includes_default
18314 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18321 rm -f conftest.$ac_objext
18322 if { (ac_try="$ac_compile"
18323 case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18328 $as_echo "$ac_try_echo") >&5
18329 (eval "$ac_compile") 2>conftest.er1
18331 grep -v '^ *+' conftest.er1 >conftest.err
18333 cat conftest.err >&5
18334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } && {
18336 test -z "$ac_c_werror_flag" ||
18337 test ! -s conftest.err
18338 } && test -s conftest.$ac_objext; then
18341 cat >conftest.$ac_ext <<_ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18347 $ac_includes_default
18351 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18358 rm -f conftest.$ac_objext
18359 if { (ac_try="$ac_compile"
18360 case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18365 $as_echo "$ac_try_echo") >&5
18366 (eval "$ac_compile") 2>conftest.er1
18368 grep -v '^ *+' conftest.er1 >conftest.err
18370 cat conftest.err >&5
18371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); } && {
18373 test -z "$ac_c_werror_flag" ||
18374 test ! -s conftest.err
18375 } && test -s conftest.$ac_objext; then
18376 ac_hi=$ac_mid; break
18378 $as_echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 ac_lo=`expr $ac_mid + 1`
18382 if test $ac_lo -le $ac_mid; then
18386 ac_mid=`expr 2 '*' $ac_mid + 1`
18389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18392 $as_echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 cat >conftest.$ac_ext <<_ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 $ac_includes_default
18405 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18412 rm -f conftest.$ac_objext
18413 if { (ac_try="$ac_compile"
18414 case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18419 $as_echo "$ac_try_echo") >&5
18420 (eval "$ac_compile") 2>conftest.er1
18422 grep -v '^ *+' conftest.er1 >conftest.err
18424 cat conftest.err >&5
18425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } && {
18427 test -z "$ac_c_werror_flag" ||
18428 test ! -s conftest.err
18429 } && test -s conftest.$ac_objext; then
18432 cat >conftest.$ac_ext <<_ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438 $ac_includes_default
18442 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18449 rm -f conftest.$ac_objext
18450 if { (ac_try="$ac_compile"
18451 case "(($ac_try" in
18452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453 *) ac_try_echo=$ac_try;;
18455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18456 $as_echo "$ac_try_echo") >&5
18457 (eval "$ac_compile") 2>conftest.er1
18459 grep -v '^ *+' conftest.er1 >conftest.err
18461 cat conftest.err >&5
18462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } && {
18464 test -z "$ac_c_werror_flag" ||
18465 test ! -s conftest.err
18466 } && test -s conftest.$ac_objext; then
18467 ac_lo=$ac_mid; break
18469 $as_echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 ac_hi=`expr '(' $ac_mid ')' - 1`
18473 if test $ac_mid -le $ac_hi; then
18477 ac_mid=`expr 2 '*' $ac_mid`
18480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18483 $as_echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18493 # Binary search between lo and hi bounds.
18494 while test "x$ac_lo" != "x$ac_hi"; do
18495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18496 cat >conftest.$ac_ext <<_ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h. */
18502 $ac_includes_default
18506 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18513 rm -f conftest.$ac_objext
18514 if { (ac_try="$ac_compile"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18520 $as_echo "$ac_try_echo") >&5
18521 (eval "$ac_compile") 2>conftest.er1
18523 grep -v '^ *+' conftest.er1 >conftest.err
18525 cat conftest.err >&5
18526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } && {
18528 test -z "$ac_c_werror_flag" ||
18529 test ! -s conftest.err
18530 } && test -s conftest.$ac_objext; then
18533 $as_echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18536 ac_lo=`expr '(' $ac_mid ')' + 1`
18539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18542 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18543 '') if test "$ac_cv_type_off_t" = yes; then
18544 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18546 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18547 See \`config.log' for more details." >&5
18548 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18549 See \`config.log' for more details." >&2;}
18550 { (exit 77); exit 77; }; }; }
18552 ac_cv_sizeof_off_t=0
18556 cat >conftest.$ac_ext <<_ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h. */
18562 $ac_includes_default
18563 static long int longval () { return (long int) (sizeof (off_t)); }
18564 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18566 #include <stdlib.h>
18571 FILE *f = fopen ("conftest.val", "w");
18574 if (((long int) (sizeof (off_t))) < 0)
18576 long int i = longval ();
18577 if (i != ((long int) (sizeof (off_t))))
18579 fprintf (f, "%ld", i);
18583 unsigned long int i = ulongval ();
18584 if (i != ((long int) (sizeof (off_t))))
18586 fprintf (f, "%lu", i);
18588 /* Do not output a trailing newline, as this causes \r\n confusion
18589 on some platforms. */
18590 return ferror (f) || fclose (f) != 0;
18596 rm -f conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18603 $as_echo "$ac_try_echo") >&5
18604 (eval "$ac_link") 2>&5
18606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18608 { (case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18613 $as_echo "$ac_try_echo") >&5
18614 (eval "$ac_try") 2>&5
18616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_sizeof_off_t=`cat conftest.val`
18620 $as_echo "$as_me: program exited with status $ac_status" >&5
18621 $as_echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18624 ( exit $ac_status )
18625 if test "$ac_cv_type_off_t" = yes; then
18626 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18628 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18629 See \`config.log' for more details." >&5
18630 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18631 See \`config.log' for more details." >&2;}
18632 { (exit 77); exit 77; }; }; }
18634 ac_cv_sizeof_off_t=0
18637 rm -rf conftest.dSYM
18638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18642 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18643 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18647 cat >>confdefs.h <<_ACEOF
18648 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18653 # If we don't have largefile support, can't handle segsize >= 2GB.
18654 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18655 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18656 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18657 { (exit 1); exit 1; }; }
18662 ## Functions, global variables
18665 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18666 $as_echo_n "checking for int timezone... " >&6; }
18667 if test "${pgac_cv_var_int_timezone+set}" = set; then
18668 $as_echo_n "(cached) " >&6
18670 cat >conftest.$ac_ext <<_ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18682 res = timezone / 60;
18684 res = _timezone / 60;
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18697 $as_echo "$ac_try_echo") >&5
18698 (eval "$ac_link") 2>conftest.er1
18700 grep -v '^ *+' conftest.er1 >conftest.err
18702 cat conftest.err >&5
18703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } && {
18705 test -z "$ac_c_werror_flag" ||
18706 test ! -s conftest.err
18707 } && test -s conftest$ac_exeext && {
18708 test "$cross_compiling" = yes ||
18709 $as_test_x conftest$ac_exeext
18711 pgac_cv_var_int_timezone=yes
18713 $as_echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 pgac_cv_var_int_timezone=no
18719 rm -rf conftest.dSYM
18720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18721 conftest$ac_exeext conftest.$ac_ext
18723 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18724 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18725 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18727 cat >>confdefs.h <<\_ACEOF
18728 #define HAVE_INT_TIMEZONE /**/
18732 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18733 $as_echo_n "checking types of arguments for accept()... " >&6; }
18734 if test "${ac_cv_func_accept_return+set}" = set; then
18735 $as_echo_n "(cached) " >&6
18737 if test "${ac_cv_func_accept_arg1+set}" = set; then
18738 $as_echo_n "(cached) " >&6
18740 if test "${ac_cv_func_accept_arg2+set}" = set; then
18741 $as_echo_n "(cached) " >&6
18743 if test "${ac_cv_func_accept_arg3+set}" = set; then
18744 $as_echo_n "(cached) " >&6
18746 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
18747 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
18748 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18749 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756 #ifdef HAVE_SYS_TYPES_H
18757 #include <sys/types.h>
18759 #ifdef HAVE_SYS_SOCKET_H
18760 #include <sys/socket.h>
18762 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18771 rm -f conftest.$ac_objext
18772 if { (ac_try="$ac_compile"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18778 $as_echo "$ac_try_echo") >&5
18779 (eval "$ac_compile") 2>conftest.er1
18781 grep -v '^ *+' conftest.er1 >conftest.err
18783 cat conftest.err >&5
18784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } && {
18786 test -z "$ac_c_werror_flag" ||
18787 test ! -s conftest.err
18788 } && test -s conftest.$ac_objext; then
18789 ac_not_found=no; break 4
18791 $as_echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18802 if test "$ac_not_found" = yes; then
18803 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18804 $as_echo "$as_me: error: could not determine argument types" >&2;}
18805 { (exit 1); exit 1; }; }
18807 if test "$ac_cv_func_accept_arg3" = "void"; then
18808 ac_cv_func_accept_arg3=int
18818 { $as_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
18819 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18821 cat >>confdefs.h <<_ACEOF
18822 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18826 cat >>confdefs.h <<_ACEOF
18827 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18831 cat >>confdefs.h <<_ACEOF
18832 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18836 cat >>confdefs.h <<_ACEOF
18837 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18841 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18842 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18843 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18844 $as_echo_n "(cached) " >&6
18846 cat >conftest.$ac_ext <<_ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18852 #include <sys/time.h>
18856 struct timeval *tp;
18857 struct timezone *tzp;
18858 gettimeofday(tp,tzp);
18863 rm -f conftest.$ac_objext
18864 if { (ac_try="$ac_compile"
18865 case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18870 $as_echo "$ac_try_echo") >&5
18871 (eval "$ac_compile") 2>conftest.er1
18873 grep -v '^ *+' conftest.er1 >conftest.err
18875 cat conftest.err >&5
18876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } && {
18878 test -z "$ac_c_werror_flag" ||
18879 test ! -s conftest.err
18880 } && test -s conftest.$ac_objext; then
18881 pgac_cv_func_gettimeofday_1arg=no
18883 $as_echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18886 pgac_cv_func_gettimeofday_1arg=yes
18889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18891 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18892 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18893 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18895 cat >>confdefs.h <<\_ACEOF
18896 #define GETTIMEOFDAY_1ARG /**/
18926 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
18928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18929 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18930 $as_echo_n "checking for $ac_func... " >&6; }
18931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18932 $as_echo_n "(cached) " >&6
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18942 #define $ac_func innocuous_$ac_func
18944 /* System header to define __stub macros and hopefully few prototypes,
18945 which can conflict with char $ac_func (); below.
18946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18947 <limits.h> exists even on freestanding compilers. */
18950 # include <limits.h>
18952 # include <assert.h>
18957 /* Override any GCC internal prototype to avoid an error.
18958 Use char because int might match the return type of a GCC
18959 builtin and then its argument prototype would still apply. */
18964 /* The GNU C library defines this for functions which it implements
18965 to always fail with ENOSYS. Some functions are actually named
18966 something starting with __ and the normal name is an alias. */
18967 #if defined __stub_$ac_func || defined __stub___$ac_func
18974 return $ac_func ();
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18986 $as_echo "$ac_try_echo") >&5
18987 (eval "$ac_link") 2>conftest.er1
18989 grep -v '^ *+' conftest.er1 >conftest.err
18991 cat conftest.err >&5
18992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } && {
18994 test -z "$ac_c_werror_flag" ||
18995 test ! -s conftest.err
18996 } && test -s conftest$ac_exeext && {
18997 test "$cross_compiling" = yes ||
18998 $as_test_x conftest$ac_exeext
19000 eval "$as_ac_var=yes"
19002 $as_echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 eval "$as_ac_var=no"
19008 rm -rf conftest.dSYM
19009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19010 conftest$ac_exeext conftest.$ac_ext
19012 ac_res=`eval 'as_val=${'$as_ac_var'}
19013 $as_echo "$as_val"'`
19014 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19015 $as_echo "$ac_res" >&6; }
19016 as_val=`eval 'as_val=${'$as_ac_var'}
19017 $as_echo "$as_val"'`
19018 if test "x$as_val" = x""yes; then
19019 cat >>confdefs.h <<_ACEOF
19020 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19028 for ac_func in fseeko
19030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19031 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19032 $as_echo_n "checking for $ac_func... " >&6; }
19033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19034 $as_echo_n "(cached) " >&6
19036 cat >conftest.$ac_ext <<_ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19044 #define $ac_func innocuous_$ac_func
19046 /* System header to define __stub macros and hopefully few prototypes,
19047 which can conflict with char $ac_func (); below.
19048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19049 <limits.h> exists even on freestanding compilers. */
19052 # include <limits.h>
19054 # include <assert.h>
19059 /* Override any GCC internal prototype to avoid an error.
19060 Use char because int might match the return type of a GCC
19061 builtin and then its argument prototype would still apply. */
19066 /* The GNU C library defines this for functions which it implements
19067 to always fail with ENOSYS. Some functions are actually named
19068 something starting with __ and the normal name is an alias. */
19069 #if defined __stub_$ac_func || defined __stub___$ac_func
19076 return $ac_func ();
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (ac_try="$ac_link"
19083 case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19088 $as_echo "$ac_try_echo") >&5
19089 (eval "$ac_link") 2>conftest.er1
19091 grep -v '^ *+' conftest.er1 >conftest.err
19093 cat conftest.err >&5
19094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } && {
19096 test -z "$ac_c_werror_flag" ||
19097 test ! -s conftest.err
19098 } && test -s conftest$ac_exeext && {
19099 test "$cross_compiling" = yes ||
19100 $as_test_x conftest$ac_exeext
19102 eval "$as_ac_var=yes"
19104 $as_echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19107 eval "$as_ac_var=no"
19110 rm -rf conftest.dSYM
19111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19112 conftest$ac_exeext conftest.$ac_ext
19114 ac_res=`eval 'as_val=${'$as_ac_var'}
19115 $as_echo "$as_val"'`
19116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19117 $as_echo "$ac_res" >&6; }
19118 as_val=`eval 'as_val=${'$as_ac_var'}
19119 $as_echo "$as_val"'`
19120 if test "x$as_val" = x""yes; then
19121 cat >>confdefs.h <<_ACEOF
19122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19126 case " $LIBOBJS " in
19127 *" $ac_func.$ac_objext "* ) ;;
19128 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19137 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19138 # Mingw uses macros to access Win32 API calls
19139 bsdi*|netbsd*|mingw*)
19141 cat >>confdefs.h <<\_ACEOF
19142 #define HAVE_FSEEKO 1
19145 ac_cv_func_fseeko=yes;;
19147 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19148 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19149 if test "${ac_cv_sys_largefile_source+set}" = set; then
19150 $as_echo_n "(cached) " >&6
19153 cat >conftest.$ac_ext <<_ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h. */
19159 #include <sys/types.h> /* for off_t */
19164 int (*fp) (FILE *, off_t, int) = fseeko;
19165 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19170 rm -f conftest.$ac_objext conftest$ac_exeext
19171 if { (ac_try="$ac_link"
19172 case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19177 $as_echo "$ac_try_echo") >&5
19178 (eval "$ac_link") 2>conftest.er1
19180 grep -v '^ *+' conftest.er1 >conftest.err
19182 cat conftest.err >&5
19183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } && {
19185 test -z "$ac_c_werror_flag" ||
19186 test ! -s conftest.err
19187 } && test -s conftest$ac_exeext && {
19188 test "$cross_compiling" = yes ||
19189 $as_test_x conftest$ac_exeext
19191 ac_cv_sys_largefile_source=no; break
19193 $as_echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19199 rm -rf conftest.dSYM
19200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19201 conftest$ac_exeext conftest.$ac_ext
19202 cat >conftest.$ac_ext <<_ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h. */
19208 #define _LARGEFILE_SOURCE 1
19209 #include <sys/types.h> /* for off_t */
19214 int (*fp) (FILE *, off_t, int) = fseeko;
19215 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19220 rm -f conftest.$ac_objext conftest$ac_exeext
19221 if { (ac_try="$ac_link"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19227 $as_echo "$ac_try_echo") >&5
19228 (eval "$ac_link") 2>conftest.er1
19230 grep -v '^ *+' conftest.er1 >conftest.err
19232 cat conftest.err >&5
19233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } && {
19235 test -z "$ac_c_werror_flag" ||
19236 test ! -s conftest.err
19237 } && test -s conftest$ac_exeext && {
19238 test "$cross_compiling" = yes ||
19239 $as_test_x conftest$ac_exeext
19241 ac_cv_sys_largefile_source=1; break
19243 $as_echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19249 rm -rf conftest.dSYM
19250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19251 conftest$ac_exeext conftest.$ac_ext
19252 ac_cv_sys_largefile_source=unknown
19256 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19257 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19258 case $ac_cv_sys_largefile_source in #(
19261 cat >>confdefs.h <<_ACEOF
19262 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19268 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19269 # in glibc 2.1.3, but that breaks too many other things.
19270 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19271 if test $ac_cv_sys_largefile_source != unknown; then
19273 cat >>confdefs.h <<\_ACEOF
19274 #define HAVE_FSEEKO 1
19281 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19282 # by calling it, 2009-04-02
19283 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19284 if test "$PORTNAME" != "solaris"; then
19286 for ac_func in posix_fadvise
19288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19289 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19290 $as_echo_n "checking for $ac_func... " >&6; }
19291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19292 $as_echo_n "(cached) " >&6
19294 cat >conftest.$ac_ext <<_ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19302 #define $ac_func innocuous_$ac_func
19304 /* System header to define __stub macros and hopefully few prototypes,
19305 which can conflict with char $ac_func (); below.
19306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19307 <limits.h> exists even on freestanding compilers. */
19310 # include <limits.h>
19312 # include <assert.h>
19317 /* Override any GCC internal prototype to avoid an error.
19318 Use char because int might match the return type of a GCC
19319 builtin and then its argument prototype would still apply. */
19324 /* The GNU C library defines this for functions which it implements
19325 to always fail with ENOSYS. Some functions are actually named
19326 something starting with __ and the normal name is an alias. */
19327 #if defined __stub_$ac_func || defined __stub___$ac_func
19334 return $ac_func ();
19339 rm -f conftest.$ac_objext conftest$ac_exeext
19340 if { (ac_try="$ac_link"
19341 case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19346 $as_echo "$ac_try_echo") >&5
19347 (eval "$ac_link") 2>conftest.er1
19349 grep -v '^ *+' conftest.er1 >conftest.err
19351 cat conftest.err >&5
19352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } && {
19354 test -z "$ac_c_werror_flag" ||
19355 test ! -s conftest.err
19356 } && test -s conftest$ac_exeext && {
19357 test "$cross_compiling" = yes ||
19358 $as_test_x conftest$ac_exeext
19360 eval "$as_ac_var=yes"
19362 $as_echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19365 eval "$as_ac_var=no"
19368 rm -rf conftest.dSYM
19369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19370 conftest$ac_exeext conftest.$ac_ext
19372 ac_res=`eval 'as_val=${'$as_ac_var'}
19373 $as_echo "$as_val"'`
19374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19375 $as_echo "$ac_res" >&6; }
19376 as_val=`eval 'as_val=${'$as_ac_var'}
19377 $as_echo "$as_val"'`
19378 if test "x$as_val" = x""yes; then
19379 cat >>confdefs.h <<_ACEOF
19380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19386 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19387 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19388 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19389 $as_echo_n "(cached) " >&6
19391 cat >conftest.$ac_ext <<_ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19402 #ifndef posix_fadvise
19403 (void) posix_fadvise;
19410 rm -f conftest.$ac_objext
19411 if { (ac_try="$ac_compile"
19412 case "(($ac_try" in
19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414 *) ac_try_echo=$ac_try;;
19416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19417 $as_echo "$ac_try_echo") >&5
19418 (eval "$ac_compile") 2>conftest.er1
19420 grep -v '^ *+' conftest.er1 >conftest.err
19422 cat conftest.err >&5
19423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } && {
19425 test -z "$ac_c_werror_flag" ||
19426 test ! -s conftest.err
19427 } && test -s conftest.$ac_objext; then
19428 ac_cv_have_decl_posix_fadvise=yes
19430 $as_echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19433 ac_cv_have_decl_posix_fadvise=no
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19439 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19440 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19442 cat >>confdefs.h <<_ACEOF
19443 #define HAVE_DECL_POSIX_FADVISE 1
19448 cat >>confdefs.h <<_ACEOF
19449 #define HAVE_DECL_POSIX_FADVISE 0
19458 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19459 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19460 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19461 $as_echo_n "(cached) " >&6
19463 cat >conftest.$ac_ext <<_ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19469 #include <unistd.h>
19482 rm -f conftest.$ac_objext
19483 if { (ac_try="$ac_compile"
19484 case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19489 $as_echo "$ac_try_echo") >&5
19490 (eval "$ac_compile") 2>conftest.er1
19492 grep -v '^ *+' conftest.er1 >conftest.err
19494 cat conftest.err >&5
19495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } && {
19497 test -z "$ac_c_werror_flag" ||
19498 test ! -s conftest.err
19499 } && test -s conftest.$ac_objext; then
19500 ac_cv_have_decl_fdatasync=yes
19502 $as_echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 ac_cv_have_decl_fdatasync=no
19508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19510 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19511 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19512 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19514 cat >>confdefs.h <<_ACEOF
19515 #define HAVE_DECL_FDATASYNC 1
19520 cat >>confdefs.h <<_ACEOF
19521 #define HAVE_DECL_FDATASYNC 0
19528 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19529 $as_echo_n "checking whether strlcat is declared... " >&6; }
19530 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19531 $as_echo_n "(cached) " >&6
19533 cat >conftest.$ac_ext <<_ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19539 $ac_includes_default
19551 rm -f conftest.$ac_objext
19552 if { (ac_try="$ac_compile"
19553 case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19558 $as_echo "$ac_try_echo") >&5
19559 (eval "$ac_compile") 2>conftest.er1
19561 grep -v '^ *+' conftest.er1 >conftest.err
19563 cat conftest.err >&5
19564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } && {
19566 test -z "$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19568 } && test -s conftest.$ac_objext; then
19569 ac_cv_have_decl_strlcat=yes
19571 $as_echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 ac_cv_have_decl_strlcat=no
19577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19579 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19580 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19581 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19583 cat >>confdefs.h <<_ACEOF
19584 #define HAVE_DECL_STRLCAT 1
19589 cat >>confdefs.h <<_ACEOF
19590 #define HAVE_DECL_STRLCAT 0
19595 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19596 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19597 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19598 $as_echo_n "(cached) " >&6
19600 cat >conftest.$ac_ext <<_ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19606 $ac_includes_default
19618 rm -f conftest.$ac_objext
19619 if { (ac_try="$ac_compile"
19620 case "(($ac_try" in
19621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622 *) ac_try_echo=$ac_try;;
19624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19625 $as_echo "$ac_try_echo") >&5
19626 (eval "$ac_compile") 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } && {
19633 test -z "$ac_c_werror_flag" ||
19634 test ! -s conftest.err
19635 } && test -s conftest.$ac_objext; then
19636 ac_cv_have_decl_strlcpy=yes
19638 $as_echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19641 ac_cv_have_decl_strlcpy=no
19644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19646 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19647 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19648 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19650 cat >>confdefs.h <<_ACEOF
19651 #define HAVE_DECL_STRLCPY 1
19656 cat >>confdefs.h <<_ACEOF
19657 #define HAVE_DECL_STRLCPY 0
19664 # This is probably only present on Darwin, but may as well check always
19665 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19666 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19667 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19668 $as_echo_n "(cached) " >&6
19670 cat >conftest.$ac_ext <<_ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19681 #ifndef F_FULLFSYNC
19682 (void) F_FULLFSYNC;
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19696 $as_echo "$ac_try_echo") >&5
19697 (eval "$ac_compile") 2>conftest.er1
19699 grep -v '^ *+' conftest.er1 >conftest.err
19701 cat conftest.err >&5
19702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } && {
19704 test -z "$ac_c_werror_flag" ||
19705 test ! -s conftest.err
19706 } && test -s conftest.$ac_objext; then
19707 ac_cv_have_decl_F_FULLFSYNC=yes
19709 $as_echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19712 ac_cv_have_decl_F_FULLFSYNC=no
19715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19718 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19719 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19721 cat >>confdefs.h <<_ACEOF
19722 #define HAVE_DECL_F_FULLFSYNC 1
19727 cat >>confdefs.h <<_ACEOF
19728 #define HAVE_DECL_F_FULLFSYNC 0
19737 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19738 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19739 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19740 $as_echo_n "(cached) " >&6
19742 ac_cv_type_struct_sockaddr_in6=no
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19749 $ac_includes_default
19750 #include <netinet/in.h>
19755 if (sizeof (struct sockaddr_in6))
19761 rm -f conftest.$ac_objext
19762 if { (ac_try="$ac_compile"
19763 case "(($ac_try" in
19764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765 *) ac_try_echo=$ac_try;;
19767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19768 $as_echo "$ac_try_echo") >&5
19769 (eval "$ac_compile") 2>conftest.er1
19771 grep -v '^ *+' conftest.er1 >conftest.err
19773 cat conftest.err >&5
19774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } && {
19776 test -z "$ac_c_werror_flag" ||
19777 test ! -s conftest.err
19778 } && test -s conftest.$ac_objext; then
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 $ac_includes_default
19786 #include <netinet/in.h>
19791 if (sizeof ((struct sockaddr_in6)))
19797 rm -f conftest.$ac_objext
19798 if { (ac_try="$ac_compile"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19804 $as_echo "$ac_try_echo") >&5
19805 (eval "$ac_compile") 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest.$ac_objext; then
19817 $as_echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 ac_cv_type_struct_sockaddr_in6=yes
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825 $as_echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19833 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19834 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19835 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19837 cat >>confdefs.h <<\_ACEOF
19838 #define HAVE_IPV6 1
19846 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19847 $as_echo_n "checking for PS_STRINGS... " >&6; }
19848 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19849 $as_echo_n "(cached) " >&6
19851 cat >conftest.$ac_ext <<_ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857 #include <machine/vmparam.h>
19858 #include <sys/exec.h>
19863 PS_STRINGS->ps_nargvstr = 1;
19864 PS_STRINGS->ps_argvstr = "foo";
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (ac_try="$ac_link"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19876 $as_echo "$ac_try_echo") >&5
19877 (eval "$ac_link") 2>conftest.er1
19879 grep -v '^ *+' conftest.er1 >conftest.err
19881 cat conftest.err >&5
19882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } && {
19884 test -z "$ac_c_werror_flag" ||
19885 test ! -s conftest.err
19886 } && test -s conftest$ac_exeext && {
19887 test "$cross_compiling" = yes ||
19888 $as_test_x conftest$ac_exeext
19890 pgac_cv_var_PS_STRINGS=yes
19892 $as_echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 pgac_cv_var_PS_STRINGS=no
19898 rm -rf conftest.dSYM
19899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19900 conftest$ac_exeext conftest.$ac_ext
19902 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19903 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19904 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19906 cat >>confdefs.h <<\_ACEOF
19907 #define HAVE_PS_STRINGS /**/
19913 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19914 # is missing. Yes, there are machines that have only one. We may
19915 # also decide to use snprintf.c if snprintf() is present but does not
19916 # have all the features we need --- see below.
19918 if test "$PORTNAME" = "win32"; then
19919 # Win32 gets snprintf.c built unconditionally.
19921 # To properly translate all NLS languages strings, we must support the
19922 # *printf() %$ format, which allows *printf() arguments to be selected
19923 # by position in the translated string.
19925 # libintl versions < 0.13 use the native *printf() functions, and Win32
19926 # *printf() doesn't understand %$, so we must use our /port versions,
19927 # which do understand %$. libintl versions >= 0.13 include their own
19928 # *printf versions on Win32. The libintl 0.13 release note text is:
19930 # C format strings with positions, as they arise when a translator
19931 # needs to reorder a sentence, are now supported on all platforms.
19932 # On those few platforms (NetBSD and Woe32) for which the native
19933 # printf()/fprintf()/... functions don't support such format
19934 # strings, replacements are provided through <libintl.h>.
19936 # We could use libintl >= 0.13's *printf() if we were sure that we had
19937 # a litint >= 0.13 at runtime, but seeing that there is no clean way
19938 # to guarantee that, it is best to just use our own, so we are sure to
19939 # get %$ support. In include/port.h we disable the *printf() macros
19940 # that might have been defined by libintl.
19942 # We do this unconditionally whether NLS is used or not so we are sure
19943 # that all Win32 libraries and binaries behave the same.
19944 pgac_need_repl_snprintf=yes
19946 pgac_need_repl_snprintf=no
19948 for ac_func in snprintf
19950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19951 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19952 $as_echo_n "checking for $ac_func... " >&6; }
19953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19954 $as_echo_n "(cached) " >&6
19956 cat >conftest.$ac_ext <<_ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h. */
19962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19964 #define $ac_func innocuous_$ac_func
19966 /* System header to define __stub macros and hopefully few prototypes,
19967 which can conflict with char $ac_func (); below.
19968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19969 <limits.h> exists even on freestanding compilers. */
19972 # include <limits.h>
19974 # include <assert.h>
19979 /* Override any GCC internal prototype to avoid an error.
19980 Use char because int might match the return type of a GCC
19981 builtin and then its argument prototype would still apply. */
19986 /* The GNU C library defines this for functions which it implements
19987 to always fail with ENOSYS. Some functions are actually named
19988 something starting with __ and the normal name is an alias. */
19989 #if defined __stub_$ac_func || defined __stub___$ac_func
19996 return $ac_func ();
20001 rm -f conftest.$ac_objext conftest$ac_exeext
20002 if { (ac_try="$ac_link"
20003 case "(($ac_try" in
20004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005 *) ac_try_echo=$ac_try;;
20007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20008 $as_echo "$ac_try_echo") >&5
20009 (eval "$ac_link") 2>conftest.er1
20011 grep -v '^ *+' conftest.er1 >conftest.err
20013 cat conftest.err >&5
20014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } && {
20016 test -z "$ac_c_werror_flag" ||
20017 test ! -s conftest.err
20018 } && test -s conftest$ac_exeext && {
20019 test "$cross_compiling" = yes ||
20020 $as_test_x conftest$ac_exeext
20022 eval "$as_ac_var=yes"
20024 $as_echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20027 eval "$as_ac_var=no"
20030 rm -rf conftest.dSYM
20031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20032 conftest$ac_exeext conftest.$ac_ext
20034 ac_res=`eval 'as_val=${'$as_ac_var'}
20035 $as_echo "$as_val"'`
20036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20037 $as_echo "$ac_res" >&6; }
20038 as_val=`eval 'as_val=${'$as_ac_var'}
20039 $as_echo "$as_val"'`
20040 if test "x$as_val" = x""yes; then
20041 cat >>confdefs.h <<_ACEOF
20042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20046 pgac_need_repl_snprintf=yes
20051 for ac_func in vsnprintf
20053 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20054 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20055 $as_echo_n "checking for $ac_func... " >&6; }
20056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20057 $as_echo_n "(cached) " >&6
20059 cat >conftest.$ac_ext <<_ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20067 #define $ac_func innocuous_$ac_func
20069 /* System header to define __stub macros and hopefully few prototypes,
20070 which can conflict with char $ac_func (); below.
20071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20072 <limits.h> exists even on freestanding compilers. */
20075 # include <limits.h>
20077 # include <assert.h>
20082 /* Override any GCC internal prototype to avoid an error.
20083 Use char because int might match the return type of a GCC
20084 builtin and then its argument prototype would still apply. */
20089 /* The GNU C library defines this for functions which it implements
20090 to always fail with ENOSYS. Some functions are actually named
20091 something starting with __ and the normal name is an alias. */
20092 #if defined __stub_$ac_func || defined __stub___$ac_func
20099 return $ac_func ();
20104 rm -f conftest.$ac_objext conftest$ac_exeext
20105 if { (ac_try="$ac_link"
20106 case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20111 $as_echo "$ac_try_echo") >&5
20112 (eval "$ac_link") 2>conftest.er1
20114 grep -v '^ *+' conftest.er1 >conftest.err
20116 cat conftest.err >&5
20117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } && {
20119 test -z "$ac_c_werror_flag" ||
20120 test ! -s conftest.err
20121 } && test -s conftest$ac_exeext && {
20122 test "$cross_compiling" = yes ||
20123 $as_test_x conftest$ac_exeext
20125 eval "$as_ac_var=yes"
20127 $as_echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20130 eval "$as_ac_var=no"
20133 rm -rf conftest.dSYM
20134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20135 conftest$ac_exeext conftest.$ac_ext
20137 ac_res=`eval 'as_val=${'$as_ac_var'}
20138 $as_echo "$as_val"'`
20139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20140 $as_echo "$ac_res" >&6; }
20141 as_val=`eval 'as_val=${'$as_ac_var'}
20142 $as_echo "$as_val"'`
20143 if test "x$as_val" = x""yes; then
20144 cat >>confdefs.h <<_ACEOF
20145 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20149 pgac_need_repl_snprintf=yes
20156 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20157 # include/c.h will provide declarations. Note this is a separate test
20158 # from whether the functions exist in the C library --- there are
20159 # systems that have the functions but don't bother to declare them :-(
20161 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20162 $as_echo_n "checking whether snprintf is declared... " >&6; }
20163 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20164 $as_echo_n "(cached) " >&6
20166 cat >conftest.$ac_ext <<_ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20172 $ac_includes_default
20184 rm -f conftest.$ac_objext
20185 if { (ac_try="$ac_compile"
20186 case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20191 $as_echo "$ac_try_echo") >&5
20192 (eval "$ac_compile") 2>conftest.er1
20194 grep -v '^ *+' conftest.er1 >conftest.err
20196 cat conftest.err >&5
20197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && {
20199 test -z "$ac_c_werror_flag" ||
20200 test ! -s conftest.err
20201 } && test -s conftest.$ac_objext; then
20202 ac_cv_have_decl_snprintf=yes
20204 $as_echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20207 ac_cv_have_decl_snprintf=no
20210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20212 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20213 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20214 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_DECL_SNPRINTF 1
20222 cat >>confdefs.h <<_ACEOF
20223 #define HAVE_DECL_SNPRINTF 0
20228 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20229 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20230 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20231 $as_echo_n "(cached) " >&6
20233 cat >conftest.$ac_ext <<_ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20239 $ac_includes_default
20251 rm -f conftest.$ac_objext
20252 if { (ac_try="$ac_compile"
20253 case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20258 $as_echo "$ac_try_echo") >&5
20259 (eval "$ac_compile") 2>conftest.er1
20261 grep -v '^ *+' conftest.er1 >conftest.err
20263 cat conftest.err >&5
20264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } && {
20266 test -z "$ac_c_werror_flag" ||
20267 test ! -s conftest.err
20268 } && test -s conftest.$ac_objext; then
20269 ac_cv_have_decl_vsnprintf=yes
20271 $as_echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20274 ac_cv_have_decl_vsnprintf=no
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20280 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20281 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20283 cat >>confdefs.h <<_ACEOF
20284 #define HAVE_DECL_VSNPRINTF 1
20289 cat >>confdefs.h <<_ACEOF
20290 #define HAVE_DECL_VSNPRINTF 0
20299 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20300 $as_echo_n "checking for isinf... " >&6; }
20301 if test "${ac_cv_func_isinf+set}" = set; then
20302 $as_echo_n "(cached) " >&6
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20312 double glob_double;
20317 return isinf(glob_double) ? 0 : 1;
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323 if { (ac_try="$ac_link"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20329 $as_echo "$ac_try_echo") >&5
20330 (eval "$ac_link") 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest$ac_exeext && {
20340 test "$cross_compiling" = yes ||
20341 $as_test_x conftest$ac_exeext
20343 ac_cv_func_isinf=yes
20345 $as_echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_cv_func_isinf=no
20351 rm -rf conftest.dSYM
20352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20353 conftest$ac_exeext conftest.$ac_ext
20355 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20356 $as_echo "$ac_cv_func_isinf" >&6; }
20358 if test $ac_cv_func_isinf = yes ; then
20360 cat >>confdefs.h <<\_ACEOF
20361 #define HAVE_ISINF 1
20365 case " $LIBOBJS " in
20366 *" isinf.$ac_objext "* ) ;;
20367 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20371 # Look for a way to implement a substitute for isinf()
20376 for ac_func in fpclass fp_class fp_class_d class
20378 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20379 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20380 $as_echo_n "checking for $ac_func... " >&6; }
20381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20382 $as_echo_n "(cached) " >&6
20384 cat >conftest.$ac_ext <<_ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20392 #define $ac_func innocuous_$ac_func
20394 /* System header to define __stub macros and hopefully few prototypes,
20395 which can conflict with char $ac_func (); below.
20396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20397 <limits.h> exists even on freestanding compilers. */
20400 # include <limits.h>
20402 # include <assert.h>
20407 /* Override any GCC internal prototype to avoid an error.
20408 Use char because int might match the return type of a GCC
20409 builtin and then its argument prototype would still apply. */
20414 /* The GNU C library defines this for functions which it implements
20415 to always fail with ENOSYS. Some functions are actually named
20416 something starting with __ and the normal name is an alias. */
20417 #if defined __stub_$ac_func || defined __stub___$ac_func
20424 return $ac_func ();
20429 rm -f conftest.$ac_objext conftest$ac_exeext
20430 if { (ac_try="$ac_link"
20431 case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20436 $as_echo "$ac_try_echo") >&5
20437 (eval "$ac_link") 2>conftest.er1
20439 grep -v '^ *+' conftest.er1 >conftest.err
20441 cat conftest.err >&5
20442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } && {
20444 test -z "$ac_c_werror_flag" ||
20445 test ! -s conftest.err
20446 } && test -s conftest$ac_exeext && {
20447 test "$cross_compiling" = yes ||
20448 $as_test_x conftest$ac_exeext
20450 eval "$as_ac_var=yes"
20452 $as_echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 eval "$as_ac_var=no"
20458 rm -rf conftest.dSYM
20459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20460 conftest$ac_exeext conftest.$ac_ext
20462 ac_res=`eval 'as_val=${'$as_ac_var'}
20463 $as_echo "$as_val"'`
20464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20465 $as_echo "$ac_res" >&6; }
20466 as_val=`eval 'as_val=${'$as_ac_var'}
20467 $as_echo "$as_val"'`
20468 if test "x$as_val" = x""yes; then
20469 cat >>confdefs.h <<_ACEOF
20470 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20478 # Some versions of libedit contain strlcpy(); so disregard that library while
20479 # checking for these standard libc functions.
20480 pgac_save_LIBS="$LIBS"
20481 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20498 for ac_func in crypt erand48 getopt getpeereid getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20501 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20502 $as_echo_n "checking for $ac_func... " >&6; }
20503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20504 $as_echo_n "(cached) " >&6
20506 cat >conftest.$ac_ext <<_ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h. */
20512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20514 #define $ac_func innocuous_$ac_func
20516 /* System header to define __stub macros and hopefully few prototypes,
20517 which can conflict with char $ac_func (); below.
20518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20519 <limits.h> exists even on freestanding compilers. */
20522 # include <limits.h>
20524 # include <assert.h>
20529 /* Override any GCC internal prototype to avoid an error.
20530 Use char because int might match the return type of a GCC
20531 builtin and then its argument prototype would still apply. */
20536 /* The GNU C library defines this for functions which it implements
20537 to always fail with ENOSYS. Some functions are actually named
20538 something starting with __ and the normal name is an alias. */
20539 #if defined __stub_$ac_func || defined __stub___$ac_func
20546 return $ac_func ();
20551 rm -f conftest.$ac_objext conftest$ac_exeext
20552 if { (ac_try="$ac_link"
20553 case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20558 $as_echo "$ac_try_echo") >&5
20559 (eval "$ac_link") 2>conftest.er1
20561 grep -v '^ *+' conftest.er1 >conftest.err
20563 cat conftest.err >&5
20564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest$ac_exeext && {
20569 test "$cross_compiling" = yes ||
20570 $as_test_x conftest$ac_exeext
20572 eval "$as_ac_var=yes"
20574 $as_echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 eval "$as_ac_var=no"
20580 rm -rf conftest.dSYM
20581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20582 conftest$ac_exeext conftest.$ac_ext
20584 ac_res=`eval 'as_val=${'$as_ac_var'}
20585 $as_echo "$as_val"'`
20586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20587 $as_echo "$ac_res" >&6; }
20588 as_val=`eval 'as_val=${'$as_ac_var'}
20589 $as_echo "$as_val"'`
20590 if test "x$as_val" = x""yes; then
20591 cat >>confdefs.h <<_ACEOF
20592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20596 case " $LIBOBJS " in
20597 *" $ac_func.$ac_objext "* ) ;;
20598 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20609 # Windows uses a specialised env handler
20612 cat >>confdefs.h <<\_ACEOF
20613 #define HAVE_UNSETENV 1
20616 ac_cv_func_unsetenv=yes;;
20619 for ac_func in unsetenv
20621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20623 $as_echo_n "checking for $ac_func... " >&6; }
20624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20625 $as_echo_n "(cached) " >&6
20627 cat >conftest.$ac_ext <<_ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20635 #define $ac_func innocuous_$ac_func
20637 /* System header to define __stub macros and hopefully few prototypes,
20638 which can conflict with char $ac_func (); below.
20639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20640 <limits.h> exists even on freestanding compilers. */
20643 # include <limits.h>
20645 # include <assert.h>
20650 /* Override any GCC internal prototype to avoid an error.
20651 Use char because int might match the return type of a GCC
20652 builtin and then its argument prototype would still apply. */
20657 /* The GNU C library defines this for functions which it implements
20658 to always fail with ENOSYS. Some functions are actually named
20659 something starting with __ and the normal name is an alias. */
20660 #if defined __stub_$ac_func || defined __stub___$ac_func
20667 return $ac_func ();
20672 rm -f conftest.$ac_objext conftest$ac_exeext
20673 if { (ac_try="$ac_link"
20674 case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20679 $as_echo "$ac_try_echo") >&5
20680 (eval "$ac_link") 2>conftest.er1
20682 grep -v '^ *+' conftest.er1 >conftest.err
20684 cat conftest.err >&5
20685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } && {
20687 test -z "$ac_c_werror_flag" ||
20688 test ! -s conftest.err
20689 } && test -s conftest$ac_exeext && {
20690 test "$cross_compiling" = yes ||
20691 $as_test_x conftest$ac_exeext
20693 eval "$as_ac_var=yes"
20695 $as_echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20698 eval "$as_ac_var=no"
20701 rm -rf conftest.dSYM
20702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20703 conftest$ac_exeext conftest.$ac_ext
20705 ac_res=`eval 'as_val=${'$as_ac_var'}
20706 $as_echo "$as_val"'`
20707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20708 $as_echo "$ac_res" >&6; }
20709 as_val=`eval 'as_val=${'$as_ac_var'}
20710 $as_echo "$as_val"'`
20711 if test "x$as_val" = x""yes; then
20712 cat >>confdefs.h <<_ACEOF
20713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20717 case " $LIBOBJS " in
20718 *" $ac_func.$ac_objext "* ) ;;
20719 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20731 LIBS="$pgac_save_LIBS"
20733 # System's version of getaddrinfo(), if any, may be used only if we found
20734 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20735 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20736 # versions of getaddrinfo don't follow normal C call protocol. This is OK
20737 # because we want to use our own getaddrinfo.c on Windows anyway.)
20738 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20740 for ac_func in getaddrinfo
20742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20743 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20744 $as_echo_n "checking for $ac_func... " >&6; }
20745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20746 $as_echo_n "(cached) " >&6
20748 cat >conftest.$ac_ext <<_ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20756 #define $ac_func innocuous_$ac_func
20758 /* System header to define __stub macros and hopefully few prototypes,
20759 which can conflict with char $ac_func (); below.
20760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20761 <limits.h> exists even on freestanding compilers. */
20764 # include <limits.h>
20766 # include <assert.h>
20771 /* Override any GCC internal prototype to avoid an error.
20772 Use char because int might match the return type of a GCC
20773 builtin and then its argument prototype would still apply. */
20778 /* The GNU C library defines this for functions which it implements
20779 to always fail with ENOSYS. Some functions are actually named
20780 something starting with __ and the normal name is an alias. */
20781 #if defined __stub_$ac_func || defined __stub___$ac_func
20788 return $ac_func ();
20793 rm -f conftest.$ac_objext conftest$ac_exeext
20794 if { (ac_try="$ac_link"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_link") 2>conftest.er1
20803 grep -v '^ *+' conftest.er1 >conftest.err
20805 cat conftest.err >&5
20806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } && {
20808 test -z "$ac_c_werror_flag" ||
20809 test ! -s conftest.err
20810 } && test -s conftest$ac_exeext && {
20811 test "$cross_compiling" = yes ||
20812 $as_test_x conftest$ac_exeext
20814 eval "$as_ac_var=yes"
20816 $as_echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20819 eval "$as_ac_var=no"
20822 rm -rf conftest.dSYM
20823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20824 conftest$ac_exeext conftest.$ac_ext
20826 ac_res=`eval 'as_val=${'$as_ac_var'}
20827 $as_echo "$as_val"'`
20828 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20829 $as_echo "$ac_res" >&6; }
20830 as_val=`eval 'as_val=${'$as_ac_var'}
20831 $as_echo "$as_val"'`
20832 if test "x$as_val" = x""yes; then
20833 cat >>confdefs.h <<_ACEOF
20834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20838 case " $LIBOBJS " in
20839 *" $ac_func.$ac_objext "* ) ;;
20840 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20849 case " $LIBOBJS " in
20850 *" getaddrinfo.$ac_objext "* ) ;;
20851 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20857 # Similarly, use system's getopt_long() only if system provides struct option.
20858 if test x"$ac_cv_type_struct_option" = xyes ; then
20860 for ac_func in getopt_long
20862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20863 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20864 $as_echo_n "checking for $ac_func... " >&6; }
20865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20866 $as_echo_n "(cached) " >&6
20868 cat >conftest.$ac_ext <<_ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20876 #define $ac_func innocuous_$ac_func
20878 /* System header to define __stub macros and hopefully few prototypes,
20879 which can conflict with char $ac_func (); below.
20880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20881 <limits.h> exists even on freestanding compilers. */
20884 # include <limits.h>
20886 # include <assert.h>
20891 /* Override any GCC internal prototype to avoid an error.
20892 Use char because int might match the return type of a GCC
20893 builtin and then its argument prototype would still apply. */
20898 /* The GNU C library defines this for functions which it implements
20899 to always fail with ENOSYS. Some functions are actually named
20900 something starting with __ and the normal name is an alias. */
20901 #if defined __stub_$ac_func || defined __stub___$ac_func
20908 return $ac_func ();
20913 rm -f conftest.$ac_objext conftest$ac_exeext
20914 if { (ac_try="$ac_link"
20915 case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20920 $as_echo "$ac_try_echo") >&5
20921 (eval "$ac_link") 2>conftest.er1
20923 grep -v '^ *+' conftest.er1 >conftest.err
20925 cat conftest.err >&5
20926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } && {
20928 test -z "$ac_c_werror_flag" ||
20929 test ! -s conftest.err
20930 } && test -s conftest$ac_exeext && {
20931 test "$cross_compiling" = yes ||
20932 $as_test_x conftest$ac_exeext
20934 eval "$as_ac_var=yes"
20936 $as_echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20939 eval "$as_ac_var=no"
20942 rm -rf conftest.dSYM
20943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20944 conftest$ac_exeext conftest.$ac_ext
20946 ac_res=`eval 'as_val=${'$as_ac_var'}
20947 $as_echo "$as_val"'`
20948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20949 $as_echo "$ac_res" >&6; }
20950 as_val=`eval 'as_val=${'$as_ac_var'}
20951 $as_echo "$as_val"'`
20952 if test "x$as_val" = x""yes; then
20953 cat >>confdefs.h <<_ACEOF
20954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20958 case " $LIBOBJS " in
20959 *" $ac_func.$ac_objext "* ) ;;
20960 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20969 case " $LIBOBJS " in
20970 *" getopt_long.$ac_objext "* ) ;;
20971 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20977 # Solaris' getopt() doesn't do what we want for long options, so always use
20978 # our version on that platform.
20979 if test "$PORTNAME" = "solaris"; then
20980 case " $LIBOBJS " in
20981 *" getopt.$ac_objext "* ) ;;
20982 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20988 # mingw has adopted a GNU-centric interpretation of optind/optreset,
20989 # so always use our version on Windows.
20990 if test "$PORTNAME" = "win32"; then
20991 case " $LIBOBJS " in
20992 *" getopt.$ac_objext "* ) ;;
20993 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20997 case " $LIBOBJS " in
20998 *" getopt_long.$ac_objext "* ) ;;
20999 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21005 # Cygwin's erand48() is broken (always returns zero) in some releases,
21006 # so force use of ours.
21007 if test "$PORTNAME" = "cygwin"; then
21008 case " $LIBOBJS " in
21009 *" erand48.$ac_objext "* ) ;;
21010 *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
21017 if test "$PORTNAME" = "win32"; then
21019 for ac_func in gettimeofday
21021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21022 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21023 $as_echo_n "checking for $ac_func... " >&6; }
21024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21025 $as_echo_n "(cached) " >&6
21027 cat >conftest.$ac_ext <<_ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21035 #define $ac_func innocuous_$ac_func
21037 /* System header to define __stub macros and hopefully few prototypes,
21038 which can conflict with char $ac_func (); below.
21039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21040 <limits.h> exists even on freestanding compilers. */
21043 # include <limits.h>
21045 # include <assert.h>
21050 /* Override any GCC internal prototype to avoid an error.
21051 Use char because int might match the return type of a GCC
21052 builtin and then its argument prototype would still apply. */
21057 /* The GNU C library defines this for functions which it implements
21058 to always fail with ENOSYS. Some functions are actually named
21059 something starting with __ and the normal name is an alias. */
21060 #if defined __stub_$ac_func || defined __stub___$ac_func
21067 return $ac_func ();
21072 rm -f conftest.$ac_objext conftest$ac_exeext
21073 if { (ac_try="$ac_link"
21074 case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21079 $as_echo "$ac_try_echo") >&5
21080 (eval "$ac_link") 2>conftest.er1
21082 grep -v '^ *+' conftest.er1 >conftest.err
21084 cat conftest.err >&5
21085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest$ac_exeext && {
21090 test "$cross_compiling" = yes ||
21091 $as_test_x conftest$ac_exeext
21093 eval "$as_ac_var=yes"
21095 $as_echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 eval "$as_ac_var=no"
21101 rm -rf conftest.dSYM
21102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21103 conftest$ac_exeext conftest.$ac_ext
21105 ac_res=`eval 'as_val=${'$as_ac_var'}
21106 $as_echo "$as_val"'`
21107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21108 $as_echo "$ac_res" >&6; }
21109 as_val=`eval 'as_val=${'$as_ac_var'}
21110 $as_echo "$as_val"'`
21111 if test "x$as_val" = x""yes; then
21112 cat >>confdefs.h <<_ACEOF
21113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21117 case " $LIBOBJS " in
21118 *" $ac_func.$ac_objext "* ) ;;
21119 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21127 case " $LIBOBJS " in
21128 *" kill.$ac_objext "* ) ;;
21129 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21133 case " $LIBOBJS " in
21134 *" open.$ac_objext "* ) ;;
21135 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21139 case " $LIBOBJS " in
21140 *" win32env.$ac_objext "* ) ;;
21141 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21145 case " $LIBOBJS " in
21146 *" win32error.$ac_objext "* ) ;;
21147 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21152 cat >>confdefs.h <<\_ACEOF
21153 #define HAVE_SYMLINK 1
21156 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21157 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21158 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21159 $as_echo_n "(cached) " >&6
21161 ac_cv_type_MINIDUMP_TYPE=no
21162 cat >conftest.$ac_ext <<_ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21169 #define WIN32_LEAN_AND_MEAN
21170 #include <windows.h>
21171 #include <string.h>
21172 #include <dbghelp.h>
21177 if (sizeof (MINIDUMP_TYPE))
21183 rm -f conftest.$ac_objext
21184 if { (ac_try="$ac_compile"
21185 case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21190 $as_echo "$ac_try_echo") >&5
21191 (eval "$ac_compile") 2>conftest.er1
21193 grep -v '^ *+' conftest.er1 >conftest.err
21195 cat conftest.err >&5
21196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } && {
21198 test -z "$ac_c_werror_flag" ||
21199 test ! -s conftest.err
21200 } && test -s conftest.$ac_objext; then
21201 cat >conftest.$ac_ext <<_ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h. */
21208 #define WIN32_LEAN_AND_MEAN
21209 #include <windows.h>
21210 #include <string.h>
21211 #include <dbghelp.h>
21216 if (sizeof ((MINIDUMP_TYPE)))
21222 rm -f conftest.$ac_objext
21223 if { (ac_try="$ac_compile"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21229 $as_echo "$ac_try_echo") >&5
21230 (eval "$ac_compile") 2>conftest.er1
21232 grep -v '^ *+' conftest.er1 >conftest.err
21234 cat conftest.err >&5
21235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } && {
21237 test -z "$ac_c_werror_flag" ||
21238 test ! -s conftest.err
21239 } && test -s conftest.$ac_objext; then
21242 $as_echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21245 ac_cv_type_MINIDUMP_TYPE=yes
21248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 $as_echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21259 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21260 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21262 cat >>confdefs.h <<_ACEOF
21263 #define HAVE_MINIDUMP_TYPE 1
21266 pgac_minidump_type=yes
21268 pgac_minidump_type=no
21272 if test x"$pgac_minidump_type" = x"yes" ; then
21273 have_win32_dbghelp=yes
21276 have_win32_dbghelp=no
21280 if test "$with_readline" = yes; then
21281 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21282 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21283 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21284 $as_echo_n "(cached) " >&6
21286 cat >conftest.$ac_ext <<_ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h. */
21293 #ifdef HAVE_READLINE_READLINE_H
21294 # include <readline/readline.h>
21295 #elif defined(HAVE_READLINE_H)
21296 # include <readline.h>
21302 rl_completion_append_character = 'x';
21307 rm -f conftest.$ac_objext conftest$ac_exeext
21308 if { (ac_try="$ac_link"
21309 case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21314 $as_echo "$ac_try_echo") >&5
21315 (eval "$ac_link") 2>conftest.er1
21317 grep -v '^ *+' conftest.er1 >conftest.err
21319 cat conftest.err >&5
21320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest$ac_exeext && {
21325 test "$cross_compiling" = yes ||
21326 $as_test_x conftest$ac_exeext
21328 pgac_cv_var_rl_completion_append_character=yes
21330 $as_echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 pgac_cv_var_rl_completion_append_character=no
21336 rm -rf conftest.dSYM
21337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21338 conftest$ac_exeext conftest.$ac_ext
21340 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21341 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21342 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21344 cat >>confdefs.h <<\_ACEOF
21345 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21351 for ac_func in rl_completion_matches rl_filename_completion_function
21353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21354 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21355 $as_echo_n "checking for $ac_func... " >&6; }
21356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21357 $as_echo_n "(cached) " >&6
21359 cat >conftest.$ac_ext <<_ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h. */
21365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21367 #define $ac_func innocuous_$ac_func
21369 /* System header to define __stub macros and hopefully few prototypes,
21370 which can conflict with char $ac_func (); below.
21371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21372 <limits.h> exists even on freestanding compilers. */
21375 # include <limits.h>
21377 # include <assert.h>
21382 /* Override any GCC internal prototype to avoid an error.
21383 Use char because int might match the return type of a GCC
21384 builtin and then its argument prototype would still apply. */
21389 /* The GNU C library defines this for functions which it implements
21390 to always fail with ENOSYS. Some functions are actually named
21391 something starting with __ and the normal name is an alias. */
21392 #if defined __stub_$ac_func || defined __stub___$ac_func
21399 return $ac_func ();
21404 rm -f conftest.$ac_objext conftest$ac_exeext
21405 if { (ac_try="$ac_link"
21406 case "(($ac_try" in
21407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408 *) ac_try_echo=$ac_try;;
21410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21411 $as_echo "$ac_try_echo") >&5
21412 (eval "$ac_link") 2>conftest.er1
21414 grep -v '^ *+' conftest.er1 >conftest.err
21416 cat conftest.err >&5
21417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } && {
21419 test -z "$ac_c_werror_flag" ||
21420 test ! -s conftest.err
21421 } && test -s conftest$ac_exeext && {
21422 test "$cross_compiling" = yes ||
21423 $as_test_x conftest$ac_exeext
21425 eval "$as_ac_var=yes"
21427 $as_echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21430 eval "$as_ac_var=no"
21433 rm -rf conftest.dSYM
21434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21435 conftest$ac_exeext conftest.$ac_ext
21437 ac_res=`eval 'as_val=${'$as_ac_var'}
21438 $as_echo "$as_val"'`
21439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21440 $as_echo "$ac_res" >&6; }
21441 as_val=`eval 'as_val=${'$as_ac_var'}
21442 $as_echo "$as_val"'`
21443 if test "x$as_val" = x""yes; then
21444 cat >>confdefs.h <<_ACEOF
21445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21453 for ac_func in append_history history_truncate_file
21455 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21456 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21457 $as_echo_n "checking for $ac_func... " >&6; }
21458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21459 $as_echo_n "(cached) " >&6
21461 cat >conftest.$ac_ext <<_ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h. */
21467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21469 #define $ac_func innocuous_$ac_func
21471 /* System header to define __stub macros and hopefully few prototypes,
21472 which can conflict with char $ac_func (); below.
21473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21474 <limits.h> exists even on freestanding compilers. */
21477 # include <limits.h>
21479 # include <assert.h>
21484 /* Override any GCC internal prototype to avoid an error.
21485 Use char because int might match the return type of a GCC
21486 builtin and then its argument prototype would still apply. */
21491 /* The GNU C library defines this for functions which it implements
21492 to always fail with ENOSYS. Some functions are actually named
21493 something starting with __ and the normal name is an alias. */
21494 #if defined __stub_$ac_func || defined __stub___$ac_func
21501 return $ac_func ();
21506 rm -f conftest.$ac_objext conftest$ac_exeext
21507 if { (ac_try="$ac_link"
21508 case "(($ac_try" in
21509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510 *) ac_try_echo=$ac_try;;
21512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21513 $as_echo "$ac_try_echo") >&5
21514 (eval "$ac_link") 2>conftest.er1
21516 grep -v '^ *+' conftest.er1 >conftest.err
21518 cat conftest.err >&5
21519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } && {
21521 test -z "$ac_c_werror_flag" ||
21522 test ! -s conftest.err
21523 } && test -s conftest$ac_exeext && {
21524 test "$cross_compiling" = yes ||
21525 $as_test_x conftest$ac_exeext
21527 eval "$as_ac_var=yes"
21529 $as_echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21532 eval "$as_ac_var=no"
21535 rm -rf conftest.dSYM
21536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21537 conftest$ac_exeext conftest.$ac_ext
21539 ac_res=`eval 'as_val=${'$as_ac_var'}
21540 $as_echo "$as_val"'`
21541 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21542 $as_echo "$ac_res" >&6; }
21543 as_val=`eval 'as_val=${'$as_ac_var'}
21544 $as_echo "$as_val"'`
21545 if test "x$as_val" = x""yes; then
21546 cat >>confdefs.h <<_ACEOF
21547 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21556 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21557 $as_echo_n "checking for sigsetjmp... " >&6; }
21558 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21559 $as_echo_n "(cached) " >&6
21561 cat >conftest.$ac_ext <<_ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h. */
21567 #include <setjmp.h>
21571 sigjmp_buf x; sigsetjmp(x, 1);
21576 rm -f conftest.$ac_objext conftest$ac_exeext
21577 if { (ac_try="$ac_link"
21578 case "(($ac_try" in
21579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580 *) ac_try_echo=$ac_try;;
21582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21583 $as_echo "$ac_try_echo") >&5
21584 (eval "$ac_link") 2>conftest.er1
21586 grep -v '^ *+' conftest.er1 >conftest.err
21588 cat conftest.err >&5
21589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest$ac_exeext && {
21594 test "$cross_compiling" = yes ||
21595 $as_test_x conftest$ac_exeext
21597 pgac_cv_func_sigsetjmp=yes
21599 $as_echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21602 pgac_cv_func_sigsetjmp=no
21605 rm -rf conftest.dSYM
21606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21607 conftest$ac_exeext conftest.$ac_ext
21609 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21610 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21611 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21613 cat >>confdefs.h <<\_ACEOF
21614 #define HAVE_SIGSETJMP 1
21619 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21620 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21621 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21622 $as_echo_n "(cached) " >&6
21624 cat >conftest.$ac_ext <<_ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h. */
21630 #include <signal.h>
21631 /* NetBSD declares sys_siglist in unistd.h. */
21632 #ifdef HAVE_UNISTD_H
21633 # include <unistd.h>
21640 #ifndef sys_siglist
21641 (void) sys_siglist;
21648 rm -f conftest.$ac_objext
21649 if { (ac_try="$ac_compile"
21650 case "(($ac_try" in
21651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652 *) ac_try_echo=$ac_try;;
21654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21655 $as_echo "$ac_try_echo") >&5
21656 (eval "$ac_compile") 2>conftest.er1
21658 grep -v '^ *+' conftest.er1 >conftest.err
21660 cat conftest.err >&5
21661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } && {
21663 test -z "$ac_c_werror_flag" ||
21664 test ! -s conftest.err
21665 } && test -s conftest.$ac_objext; then
21666 ac_cv_have_decl_sys_siglist=yes
21668 $as_echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21671 ac_cv_have_decl_sys_siglist=no
21674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21676 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21677 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21678 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21680 cat >>confdefs.h <<_ACEOF
21681 #define HAVE_DECL_SYS_SIGLIST 1
21686 cat >>confdefs.h <<_ACEOF
21687 #define HAVE_DECL_SYS_SIGLIST 0
21696 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21697 $as_echo_n "checking for syslog... " >&6; }
21698 if test "${ac_cv_func_syslog+set}" = set; then
21699 $as_echo_n "(cached) " >&6
21701 cat >conftest.$ac_ext <<_ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h. */
21707 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21709 #define syslog innocuous_syslog
21711 /* System header to define __stub macros and hopefully few prototypes,
21712 which can conflict with char syslog (); below.
21713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21714 <limits.h> exists even on freestanding compilers. */
21717 # include <limits.h>
21719 # include <assert.h>
21724 /* Override any GCC internal prototype to avoid an error.
21725 Use char because int might match the return type of a GCC
21726 builtin and then its argument prototype would still apply. */
21731 /* The GNU C library defines this for functions which it implements
21732 to always fail with ENOSYS. Some functions are actually named
21733 something starting with __ and the normal name is an alias. */
21734 #if defined __stub_syslog || defined __stub___syslog
21746 rm -f conftest.$ac_objext conftest$ac_exeext
21747 if { (ac_try="$ac_link"
21748 case "(($ac_try" in
21749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750 *) ac_try_echo=$ac_try;;
21752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21753 $as_echo "$ac_try_echo") >&5
21754 (eval "$ac_link") 2>conftest.er1
21756 grep -v '^ *+' conftest.er1 >conftest.err
21758 cat conftest.err >&5
21759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } && {
21761 test -z "$ac_c_werror_flag" ||
21762 test ! -s conftest.err
21763 } && test -s conftest$ac_exeext && {
21764 test "$cross_compiling" = yes ||
21765 $as_test_x conftest$ac_exeext
21767 ac_cv_func_syslog=yes
21769 $as_echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21772 ac_cv_func_syslog=no
21775 rm -rf conftest.dSYM
21776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21777 conftest$ac_exeext conftest.$ac_ext
21779 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21780 $as_echo "$ac_cv_func_syslog" >&6; }
21781 if test "x$ac_cv_func_syslog" = x""yes; then
21782 if test "${ac_cv_header_syslog_h+set}" = set; then
21783 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21784 $as_echo_n "checking for syslog.h... " >&6; }
21785 if test "${ac_cv_header_syslog_h+set}" = set; then
21786 $as_echo_n "(cached) " >&6
21788 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21789 $as_echo "$ac_cv_header_syslog_h" >&6; }
21791 # Is the header compilable?
21792 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21793 $as_echo_n "checking syslog.h usability... " >&6; }
21794 cat >conftest.$ac_ext <<_ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 $ac_includes_default
21801 #include <syslog.h>
21803 rm -f conftest.$ac_objext
21804 if { (ac_try="$ac_compile"
21805 case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21810 $as_echo "$ac_try_echo") >&5
21811 (eval "$ac_compile") 2>conftest.er1
21813 grep -v '^ *+' conftest.er1 >conftest.err
21815 cat conftest.err >&5
21816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); } && {
21818 test -z "$ac_c_werror_flag" ||
21819 test ! -s conftest.err
21820 } && test -s conftest.$ac_objext; then
21821 ac_header_compiler=yes
21823 $as_echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21826 ac_header_compiler=no
21829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21830 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21831 $as_echo "$ac_header_compiler" >&6; }
21833 # Is the header present?
21834 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21835 $as_echo_n "checking syslog.h presence... " >&6; }
21836 cat >conftest.$ac_ext <<_ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21842 #include <syslog.h>
21844 if { (ac_try="$ac_cpp conftest.$ac_ext"
21845 case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21850 $as_echo "$ac_try_echo") >&5
21851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21853 grep -v '^ *+' conftest.er1 >conftest.err
21855 cat conftest.err >&5
21856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } >/dev/null && {
21858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21859 test ! -s conftest.err
21861 ac_header_preproc=yes
21863 $as_echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21866 ac_header_preproc=no
21869 rm -f conftest.err conftest.$ac_ext
21870 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21871 $as_echo "$ac_header_preproc" >&6; }
21873 # So? What about this header?
21874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21876 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21877 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21878 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21879 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21880 ac_header_preproc=yes
21883 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21884 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21885 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
21886 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
21887 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21888 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21889 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
21890 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
21891 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21892 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21893 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21894 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21896 ## ---------------------------------------- ##
21897 ## Report this to pgsql-bugs@postgresql.org ##
21898 ## ---------------------------------------- ##
21900 ) | sed "s/^/$as_me: WARNING: /" >&2
21903 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21904 $as_echo_n "checking for syslog.h... " >&6; }
21905 if test "${ac_cv_header_syslog_h+set}" = set; then
21906 $as_echo_n "(cached) " >&6
21908 ac_cv_header_syslog_h=$ac_header_preproc
21910 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21911 $as_echo "$ac_cv_header_syslog_h" >&6; }
21914 if test "x$ac_cv_header_syslog_h" = x""yes; then
21916 cat >>confdefs.h <<\_ACEOF
21917 #define HAVE_SYSLOG 1
21926 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21927 $as_echo_n "checking for opterr... " >&6; }
21928 if test "${pgac_cv_var_int_opterr+set}" = set; then
21929 $as_echo_n "(cached) " >&6
21931 cat >conftest.$ac_ext <<_ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21937 #include <unistd.h>
21941 extern int opterr; opterr = 1;
21946 rm -f conftest.$ac_objext conftest$ac_exeext
21947 if { (ac_try="$ac_link"
21948 case "(($ac_try" in
21949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950 *) ac_try_echo=$ac_try;;
21952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21953 $as_echo "$ac_try_echo") >&5
21954 (eval "$ac_link") 2>conftest.er1
21956 grep -v '^ *+' conftest.er1 >conftest.err
21958 cat conftest.err >&5
21959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } && {
21961 test -z "$ac_c_werror_flag" ||
21962 test ! -s conftest.err
21963 } && test -s conftest$ac_exeext && {
21964 test "$cross_compiling" = yes ||
21965 $as_test_x conftest$ac_exeext
21967 pgac_cv_var_int_opterr=yes
21969 $as_echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21972 pgac_cv_var_int_opterr=no
21975 rm -rf conftest.dSYM
21976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21977 conftest$ac_exeext conftest.$ac_ext
21979 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
21980 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21981 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21983 cat >>confdefs.h <<\_ACEOF
21984 #define HAVE_INT_OPTERR 1
21989 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
21990 $as_echo_n "checking for optreset... " >&6; }
21991 if test "${pgac_cv_var_int_optreset+set}" = set; then
21992 $as_echo_n "(cached) " >&6
21994 cat >conftest.$ac_ext <<_ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h. */
22000 #include <unistd.h>
22004 extern int optreset; optreset = 1;
22009 rm -f conftest.$ac_objext conftest$ac_exeext
22010 if { (ac_try="$ac_link"
22011 case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22016 $as_echo "$ac_try_echo") >&5
22017 (eval "$ac_link") 2>conftest.er1
22019 grep -v '^ *+' conftest.er1 >conftest.err
22021 cat conftest.err >&5
22022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } && {
22024 test -z "$ac_c_werror_flag" ||
22025 test ! -s conftest.err
22026 } && test -s conftest$ac_exeext && {
22027 test "$cross_compiling" = yes ||
22028 $as_test_x conftest$ac_exeext
22030 pgac_cv_var_int_optreset=yes
22032 $as_echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22035 pgac_cv_var_int_optreset=no
22038 rm -rf conftest.dSYM
22039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22040 conftest$ac_exeext conftest.$ac_ext
22042 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22043 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22044 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22046 cat >>confdefs.h <<\_ACEOF
22047 #define HAVE_INT_OPTRESET 1
22054 for ac_func in strtoll strtoq
22056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22057 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22058 $as_echo_n "checking for $ac_func... " >&6; }
22059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22060 $as_echo_n "(cached) " >&6
22062 cat >conftest.$ac_ext <<_ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h. */
22068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22070 #define $ac_func innocuous_$ac_func
22072 /* System header to define __stub macros and hopefully few prototypes,
22073 which can conflict with char $ac_func (); below.
22074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22075 <limits.h> exists even on freestanding compilers. */
22078 # include <limits.h>
22080 # include <assert.h>
22085 /* Override any GCC internal prototype to avoid an error.
22086 Use char because int might match the return type of a GCC
22087 builtin and then its argument prototype would still apply. */
22092 /* The GNU C library defines this for functions which it implements
22093 to always fail with ENOSYS. Some functions are actually named
22094 something starting with __ and the normal name is an alias. */
22095 #if defined __stub_$ac_func || defined __stub___$ac_func
22102 return $ac_func ();
22107 rm -f conftest.$ac_objext conftest$ac_exeext
22108 if { (ac_try="$ac_link"
22109 case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22114 $as_echo "$ac_try_echo") >&5
22115 (eval "$ac_link") 2>conftest.er1
22117 grep -v '^ *+' conftest.er1 >conftest.err
22119 cat conftest.err >&5
22120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } && {
22122 test -z "$ac_c_werror_flag" ||
22123 test ! -s conftest.err
22124 } && test -s conftest$ac_exeext && {
22125 test "$cross_compiling" = yes ||
22126 $as_test_x conftest$ac_exeext
22128 eval "$as_ac_var=yes"
22130 $as_echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22133 eval "$as_ac_var=no"
22136 rm -rf conftest.dSYM
22137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22138 conftest$ac_exeext conftest.$ac_ext
22140 ac_res=`eval 'as_val=${'$as_ac_var'}
22141 $as_echo "$as_val"'`
22142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22143 $as_echo "$ac_res" >&6; }
22144 as_val=`eval 'as_val=${'$as_ac_var'}
22145 $as_echo "$as_val"'`
22146 if test "x$as_val" = x""yes; then
22147 cat >>confdefs.h <<_ACEOF
22148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22156 for ac_func in strtoull strtouq
22158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22159 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22160 $as_echo_n "checking for $ac_func... " >&6; }
22161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22162 $as_echo_n "(cached) " >&6
22164 cat >conftest.$ac_ext <<_ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h. */
22170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22172 #define $ac_func innocuous_$ac_func
22174 /* System header to define __stub macros and hopefully few prototypes,
22175 which can conflict with char $ac_func (); below.
22176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22177 <limits.h> exists even on freestanding compilers. */
22180 # include <limits.h>
22182 # include <assert.h>
22187 /* Override any GCC internal prototype to avoid an error.
22188 Use char because int might match the return type of a GCC
22189 builtin and then its argument prototype would still apply. */
22194 /* The GNU C library defines this for functions which it implements
22195 to always fail with ENOSYS. Some functions are actually named
22196 something starting with __ and the normal name is an alias. */
22197 #if defined __stub_$ac_func || defined __stub___$ac_func
22204 return $ac_func ();
22209 rm -f conftest.$ac_objext conftest$ac_exeext
22210 if { (ac_try="$ac_link"
22211 case "(($ac_try" in
22212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22216 $as_echo "$ac_try_echo") >&5
22217 (eval "$ac_link") 2>conftest.er1
22219 grep -v '^ *+' conftest.er1 >conftest.err
22221 cat conftest.err >&5
22222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } && {
22224 test -z "$ac_c_werror_flag" ||
22225 test ! -s conftest.err
22226 } && test -s conftest$ac_exeext && {
22227 test "$cross_compiling" = yes ||
22228 $as_test_x conftest$ac_exeext
22230 eval "$as_ac_var=yes"
22232 $as_echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22235 eval "$as_ac_var=no"
22238 rm -rf conftest.dSYM
22239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22240 conftest$ac_exeext conftest.$ac_ext
22242 ac_res=`eval 'as_val=${'$as_ac_var'}
22243 $as_echo "$as_val"'`
22244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22245 $as_echo "$ac_res" >&6; }
22246 as_val=`eval 'as_val=${'$as_ac_var'}
22247 $as_echo "$as_val"'`
22248 if test "x$as_val" = x""yes; then
22249 cat >>confdefs.h <<_ACEOF
22250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22257 # Check for one of atexit() or on_exit()
22259 for ac_func in atexit
22261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22262 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22263 $as_echo_n "checking for $ac_func... " >&6; }
22264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22265 $as_echo_n "(cached) " >&6
22267 cat >conftest.$ac_ext <<_ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22275 #define $ac_func innocuous_$ac_func
22277 /* System header to define __stub macros and hopefully few prototypes,
22278 which can conflict with char $ac_func (); below.
22279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22280 <limits.h> exists even on freestanding compilers. */
22283 # include <limits.h>
22285 # include <assert.h>
22290 /* Override any GCC internal prototype to avoid an error.
22291 Use char because int might match the return type of a GCC
22292 builtin and then its argument prototype would still apply. */
22297 /* The GNU C library defines this for functions which it implements
22298 to always fail with ENOSYS. Some functions are actually named
22299 something starting with __ and the normal name is an alias. */
22300 #if defined __stub_$ac_func || defined __stub___$ac_func
22307 return $ac_func ();
22312 rm -f conftest.$ac_objext conftest$ac_exeext
22313 if { (ac_try="$ac_link"
22314 case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22319 $as_echo "$ac_try_echo") >&5
22320 (eval "$ac_link") 2>conftest.er1
22322 grep -v '^ *+' conftest.er1 >conftest.err
22324 cat conftest.err >&5
22325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } && {
22327 test -z "$ac_c_werror_flag" ||
22328 test ! -s conftest.err
22329 } && test -s conftest$ac_exeext && {
22330 test "$cross_compiling" = yes ||
22331 $as_test_x conftest$ac_exeext
22333 eval "$as_ac_var=yes"
22335 $as_echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22338 eval "$as_ac_var=no"
22341 rm -rf conftest.dSYM
22342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22343 conftest$ac_exeext conftest.$ac_ext
22345 ac_res=`eval 'as_val=${'$as_ac_var'}
22346 $as_echo "$as_val"'`
22347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22348 $as_echo "$ac_res" >&6; }
22349 as_val=`eval 'as_val=${'$as_ac_var'}
22350 $as_echo "$as_val"'`
22351 if test "x$as_val" = x""yes; then
22352 cat >>confdefs.h <<_ACEOF
22353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22358 for ac_func in on_exit
22360 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22361 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22362 $as_echo_n "checking for $ac_func... " >&6; }
22363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22364 $as_echo_n "(cached) " >&6
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22374 #define $ac_func innocuous_$ac_func
22376 /* System header to define __stub macros and hopefully few prototypes,
22377 which can conflict with char $ac_func (); below.
22378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22379 <limits.h> exists even on freestanding compilers. */
22382 # include <limits.h>
22384 # include <assert.h>
22389 /* Override any GCC internal prototype to avoid an error.
22390 Use char because int might match the return type of a GCC
22391 builtin and then its argument prototype would still apply. */
22396 /* The GNU C library defines this for functions which it implements
22397 to always fail with ENOSYS. Some functions are actually named
22398 something starting with __ and the normal name is an alias. */
22399 #if defined __stub_$ac_func || defined __stub___$ac_func
22406 return $ac_func ();
22411 rm -f conftest.$ac_objext conftest$ac_exeext
22412 if { (ac_try="$ac_link"
22413 case "(($ac_try" in
22414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22418 $as_echo "$ac_try_echo") >&5
22419 (eval "$ac_link") 2>conftest.er1
22421 grep -v '^ *+' conftest.er1 >conftest.err
22423 cat conftest.err >&5
22424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest$ac_exeext && {
22429 test "$cross_compiling" = yes ||
22430 $as_test_x conftest$ac_exeext
22432 eval "$as_ac_var=yes"
22434 $as_echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22437 eval "$as_ac_var=no"
22440 rm -rf conftest.dSYM
22441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22442 conftest$ac_exeext conftest.$ac_ext
22444 ac_res=`eval 'as_val=${'$as_ac_var'}
22445 $as_echo "$as_val"'`
22446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22447 $as_echo "$ac_res" >&6; }
22448 as_val=`eval 'as_val=${'$as_ac_var'}
22449 $as_echo "$as_val"'`
22450 if test "x$as_val" = x""yes; then
22451 cat >>confdefs.h <<_ACEOF
22452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22456 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22457 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22458 { (exit 1); exit 1; }; }
22470 # For each platform, we need to know about any special compile and link
22471 # libraries, and whether the normal C function names are thread-safe.
22472 # See the comment at the top of src/port/thread.c for more information.
22473 # WIN32 doesn't need the pthread tests; it always uses threads
22474 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22479 ac_cpp='$CPP $CPPFLAGS'
22480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22486 # We used to check for pthread.h first, but this fails if pthread.h
22487 # requires special compiler flags (e.g. on True64 or Sequent).
22488 # It gets checked for in the link test anyway.
22490 # First of all, check if the user has set any of the PTHREAD_LIBS,
22491 # etcetera environment variables, and if threads linking works using
22493 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22494 save_CFLAGS="$CFLAGS"
22495 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22497 LIBS="$PTHREAD_LIBS $LIBS"
22498 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22499 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22500 cat >conftest.$ac_ext <<_ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h. */
22507 /* Override any GCC internal prototype to avoid an error.
22508 Use char because int might match the return type of a GCC
22509 builtin and then its argument prototype would still apply. */
22513 char pthread_join ();
22517 return pthread_join ();
22522 rm -f conftest.$ac_objext conftest$ac_exeext
22523 if { (ac_try="$ac_link"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22529 $as_echo "$ac_try_echo") >&5
22530 (eval "$ac_link") 2>conftest.er1
22532 grep -v '^ *+' conftest.er1 >conftest.err
22534 cat conftest.err >&5
22535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } && {
22537 test -z "$ac_c_werror_flag" ||
22538 test ! -s conftest.err
22539 } && test -s conftest$ac_exeext && {
22540 test "$cross_compiling" = yes ||
22541 $as_test_x conftest$ac_exeext
22545 $as_echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22551 rm -rf conftest.dSYM
22552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22553 conftest$ac_exeext conftest.$ac_ext
22554 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22555 $as_echo "$acx_pthread_ok" >&6; }
22556 if test x"$acx_pthread_ok" = xno; then
22561 CFLAGS="$save_CFLAGS"
22564 # We must check for the threads library under a number of different
22565 # names; the ordering is very important because some systems
22566 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22567 # libraries is broken (non-POSIX).
22569 # Create a list of thread flags to try. Items starting with a "-" are
22570 # C compiler flags, and other items are library names, except for "none"
22571 # which indicates that we try without any flags at all, and "pthread-config"
22572 # which is a program returning the flags for the Pth emulation library.
22574 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22576 # The ordering *is* (sometimes) important. Some notes on the
22577 # individual items follow:
22579 # pthreads: AIX (must check this before -lpthread)
22580 # none: in case threads are in libc; should be tried before -Kthread and
22581 # other compiler flags to prevent continual compiler warnings
22582 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22583 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22584 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22585 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22586 # -pthreads: Solaris/gcc
22587 # -mthreads: Mingw32/gcc, Lynx/gcc
22588 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22589 # doesn't hurt to check since this sometimes defines pthreads too;
22590 # also defines -D_REENTRANT)
22591 # pthread: Linux, etcetera
22592 # --thread-safe: KAI C++
22593 # pthread-config: use pthread-config program (for GNU Pth library)
22595 case "${host_cpu}-${host_os}" in
22598 # On Solaris (at least, for some versions), libc contains stubbed
22599 # (non-functional) versions of the pthreads routines, so link-based
22600 # tests will erroneously succeed. (We need to link with -pthread or
22601 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22602 # a function called by this macro, so we could check for that, but
22603 # who knows whether they'll stub that too in a future libc.) So,
22604 # we'll just look for -pthreads and -lpthread first:
22606 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22610 if test x"$acx_pthread_ok" = xno; then
22611 for flag in $acx_pthread_flags; do
22613 tryPTHREAD_CFLAGS=""
22617 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22618 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22622 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22623 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22624 tryPTHREAD_CFLAGS="$flag"
22628 # skip this if we already have flags defined, for PostgreSQL
22629 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22630 # Extract the first word of "pthread-config", so it can be a program name with args.
22631 set dummy pthread-config; ac_word=$2
22632 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22633 $as_echo_n "checking for $ac_word... " >&6; }
22634 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22635 $as_echo_n "(cached) " >&6
22637 if test -n "$acx_pthread_config"; then
22638 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22641 for as_dir in $PATH
22644 test -z "$as_dir" && as_dir=.
22645 for ac_exec_ext in '' $ac_executable_extensions; do
22646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22647 ac_cv_prog_acx_pthread_config="yes"
22648 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22655 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22658 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22659 if test -n "$acx_pthread_config"; then
22660 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22661 $as_echo "$acx_pthread_config" >&6; }
22663 { $as_echo "$as_me:$LINENO: result: no" >&5
22664 $as_echo "no" >&6; }
22668 if test x"$acx_pthread_config" = xno; then continue; fi
22669 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22670 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22674 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22675 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22676 tryPTHREAD_LIBS="-l$flag"
22681 save_CFLAGS="$CFLAGS"
22682 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22683 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22685 # Check for various functions. We must include pthread.h,
22686 # since some functions may be macros. (On the Sequent, we
22687 # need a special flag -Kthread to make this header compile.)
22688 # We check for pthread_join because it is in -lpthread on IRIX
22689 # while pthread_create is in libc. We check for pthread_attr_init
22690 # due to DEC craziness with -lpthreads. We check for
22691 # pthread_cleanup_push because it is one of the few pthread
22692 # functions on Solaris that doesn't have a non-functional libc stub.
22693 # We try pthread_create on general principles.
22694 cat >conftest.$ac_ext <<_ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22700 #include <pthread.h>
22704 pthread_t th; pthread_join(th, 0);
22705 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22706 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22711 rm -f conftest.$ac_objext conftest$ac_exeext
22712 if { (ac_try="$ac_link"
22713 case "(($ac_try" in
22714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715 *) ac_try_echo=$ac_try;;
22717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22718 $as_echo "$ac_try_echo") >&5
22719 (eval "$ac_link") 2>conftest.er1
22721 grep -v '^ *+' conftest.er1 >conftest.err
22723 cat conftest.err >&5
22724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } && {
22726 test -z "$ac_c_werror_flag" ||
22727 test ! -s conftest.err
22728 } && test -s conftest$ac_exeext && {
22729 test "$cross_compiling" = yes ||
22730 $as_test_x conftest$ac_exeext
22734 $as_echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22740 rm -rf conftest.dSYM
22741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22742 conftest$ac_exeext conftest.$ac_ext
22744 if test "x$acx_pthread_ok" = xyes; then
22745 # Don't use options that are ignored by the compiler.
22746 # We find them by checking stderror.
22747 cat >conftest.$ac_ext <<_ACEOF
22749 main (int argc, char **argv)
22756 rm -f conftest.$ac_objext conftest$ac_exeext
22757 # Check both linking and compiling, because they might tolerate different options.
22758 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22759 # we continue with more flags because Linux needs -lpthread
22760 # for libpq builds on PostgreSQL. The test above only
22761 # tests for building binaries, not shared libraries.
22762 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22763 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22764 else acx_pthread_ok=no
22769 CFLAGS="$save_CFLAGS"
22771 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22772 $as_echo "$acx_pthread_ok" >&6; }
22776 # Various other checks:
22777 if test "x$acx_pthread_ok" = xyes; then
22779 LIBS="$PTHREAD_LIBS $LIBS"
22780 save_CFLAGS="$CFLAGS"
22781 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22783 # Detect AIX lossage: threads are created detached by default
22784 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22785 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22786 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22787 cat >conftest.$ac_ext <<_ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h. */
22793 #include <pthread.h>
22797 int attr=PTHREAD_CREATE_JOINABLE;
22802 rm -f conftest.$ac_objext conftest$ac_exeext
22803 if { (ac_try="$ac_link"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22809 $as_echo "$ac_try_echo") >&5
22810 (eval "$ac_link") 2>conftest.er1
22812 grep -v '^ *+' conftest.er1 >conftest.err
22814 cat conftest.err >&5
22815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); } && {
22817 test -z "$ac_c_werror_flag" ||
22818 test ! -s conftest.err
22819 } && test -s conftest$ac_exeext && {
22820 test "$cross_compiling" = yes ||
22821 $as_test_x conftest$ac_exeext
22823 ok=PTHREAD_CREATE_JOINABLE
22825 $as_echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22831 rm -rf conftest.dSYM
22832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22833 conftest$ac_exeext conftest.$ac_ext
22834 if test x"$ok" = xunknown; then
22835 cat >conftest.$ac_ext <<_ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h. */
22841 #include <pthread.h>
22845 int attr=PTHREAD_CREATE_UNDETACHED;
22850 rm -f conftest.$ac_objext conftest$ac_exeext
22851 if { (ac_try="$ac_link"
22852 case "(($ac_try" in
22853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854 *) ac_try_echo=$ac_try;;
22856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22857 $as_echo "$ac_try_echo") >&5
22858 (eval "$ac_link") 2>conftest.er1
22860 grep -v '^ *+' conftest.er1 >conftest.err
22862 cat conftest.err >&5
22863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } && {
22865 test -z "$ac_c_werror_flag" ||
22866 test ! -s conftest.err
22867 } && test -s conftest$ac_exeext && {
22868 test "$cross_compiling" = yes ||
22869 $as_test_x conftest$ac_exeext
22871 ok=PTHREAD_CREATE_UNDETACHED
22873 $as_echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22879 rm -rf conftest.dSYM
22880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22881 conftest$ac_exeext conftest.$ac_ext
22883 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22885 cat >>confdefs.h <<\_ACEOF
22886 #define PTHREAD_CREATE_JOINABLE $ok
22890 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22891 $as_echo "${ok}" >&6; }
22892 if test x"$ok" = xunknown; then
22893 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22894 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22897 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22898 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22900 # We always add these in PostgreSQL
22901 # case "${host_cpu}-${host_os}" in
22902 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22903 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22905 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22906 $as_echo "${flag}" >&6; }
22907 if test "x$flag" != xno; then
22908 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22912 CFLAGS="$save_CFLAGS"
22914 # Supporting cc_r would require a special CC in all places that
22915 # use libpq, and that is ugly, so we don't do it. Users can still
22916 # define their compiler as cc_r to do thread builds of everything.
22917 # More AIX lossage: must compile with cc_r
22918 # Extract the first word of "cc_r", so it can be a program name with args.
22919 set dummy cc_r; ac_word=$2
22920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22921 $as_echo_n "checking for $ac_word... " >&6; }
22922 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22923 $as_echo_n "(cached) " >&6
22925 if test -n "$PTHREAD_CC"; then
22926 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22929 for as_dir in $PATH
22932 test -z "$as_dir" && as_dir=.
22933 for ac_exec_ext in '' $ac_executable_extensions; do
22934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22935 ac_cv_prog_PTHREAD_CC="cc_r"
22936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22943 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22946 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22947 if test -n "$PTHREAD_CC"; then
22948 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22949 $as_echo "$PTHREAD_CC" >&6; }
22951 { $as_echo "$as_me:$LINENO: result: no" >&5
22952 $as_echo "no" >&6; }
22964 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22965 if test x"$acx_pthread_ok" = xyes; then
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_PTHREAD 1
22977 ac_cpp='$CPP $CPPFLAGS'
22978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22984 # Some platforms use these, so just define them. They can't hurt if they
22985 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22986 # enables 5-arg getpwuid_r, among other things.
22987 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22990 # At this point, we don't want to muck with the compiler name for threading.
22991 # Let's see who fails, perhaps AIX. 2004-04-23
22992 if test "$PTHREAD_CC" != "$CC"; then
22993 { { $as_echo "$as_me:$LINENO: error:
22994 PostgreSQL does not support platforms that require a special compiler
22995 for thread safety; use --disable-thread-safety to disable thread safety." >&5
22996 $as_echo "$as_me: error:
22997 PostgreSQL does not support platforms that require a special compiler
22998 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
22999 { (exit 1); exit 1; }; }
23002 # Check for *_r functions
23005 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23006 LIBS="$LIBS $PTHREAD_LIBS"
23008 if test "$PORTNAME" != "win32"; then
23009 if test "${ac_cv_header_pthread_h+set}" = set; then
23010 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23011 $as_echo_n "checking for pthread.h... " >&6; }
23012 if test "${ac_cv_header_pthread_h+set}" = set; then
23013 $as_echo_n "(cached) " >&6
23015 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23016 $as_echo "$ac_cv_header_pthread_h" >&6; }
23018 # Is the header compilable?
23019 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23020 $as_echo_n "checking pthread.h usability... " >&6; }
23021 cat >conftest.$ac_ext <<_ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 $ac_includes_default
23028 #include <pthread.h>
23030 rm -f conftest.$ac_objext
23031 if { (ac_try="$ac_compile"
23032 case "(($ac_try" in
23033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034 *) ac_try_echo=$ac_try;;
23036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23037 $as_echo "$ac_try_echo") >&5
23038 (eval "$ac_compile") 2>conftest.er1
23040 grep -v '^ *+' conftest.er1 >conftest.err
23042 cat conftest.err >&5
23043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } && {
23045 test -z "$ac_c_werror_flag" ||
23046 test ! -s conftest.err
23047 } && test -s conftest.$ac_objext; then
23048 ac_header_compiler=yes
23050 $as_echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23053 ac_header_compiler=no
23056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23057 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23058 $as_echo "$ac_header_compiler" >&6; }
23060 # Is the header present?
23061 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23062 $as_echo_n "checking pthread.h presence... " >&6; }
23063 cat >conftest.$ac_ext <<_ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h. */
23069 #include <pthread.h>
23071 if { (ac_try="$ac_cpp conftest.$ac_ext"
23072 case "(($ac_try" in
23073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074 *) ac_try_echo=$ac_try;;
23076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23077 $as_echo "$ac_try_echo") >&5
23078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23080 grep -v '^ *+' conftest.er1 >conftest.err
23082 cat conftest.err >&5
23083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); } >/dev/null && {
23085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23086 test ! -s conftest.err
23088 ac_header_preproc=yes
23090 $as_echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23093 ac_header_preproc=no
23096 rm -f conftest.err conftest.$ac_ext
23097 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23098 $as_echo "$ac_header_preproc" >&6; }
23100 # So? What about this header?
23101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23103 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23104 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23105 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23106 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23107 ac_header_preproc=yes
23110 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23111 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23112 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23113 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23114 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23115 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23116 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23117 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23118 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23119 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23120 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23121 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23123 ## ---------------------------------------- ##
23124 ## Report this to pgsql-bugs@postgresql.org ##
23125 ## ---------------------------------------- ##
23127 ) | sed "s/^/$as_me: WARNING: /" >&2
23130 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23131 $as_echo_n "checking for pthread.h... " >&6; }
23132 if test "${ac_cv_header_pthread_h+set}" = set; then
23133 $as_echo_n "(cached) " >&6
23135 ac_cv_header_pthread_h=$ac_header_preproc
23137 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23138 $as_echo "$ac_cv_header_pthread_h" >&6; }
23141 if test "x$ac_cv_header_pthread_h" = x""yes; then
23144 { { $as_echo "$as_me:$LINENO: error:
23145 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23146 $as_echo "$as_me: error:
23147 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23148 { (exit 1); exit 1; }; }
23157 for ac_func in strerror_r getpwuid_r gethostbyname_r
23159 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23160 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23161 $as_echo_n "checking for $ac_func... " >&6; }
23162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23163 $as_echo_n "(cached) " >&6
23165 cat >conftest.$ac_ext <<_ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h. */
23171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23173 #define $ac_func innocuous_$ac_func
23175 /* System header to define __stub macros and hopefully few prototypes,
23176 which can conflict with char $ac_func (); below.
23177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23178 <limits.h> exists even on freestanding compilers. */
23181 # include <limits.h>
23183 # include <assert.h>
23188 /* Override any GCC internal prototype to avoid an error.
23189 Use char because int might match the return type of a GCC
23190 builtin and then its argument prototype would still apply. */
23195 /* The GNU C library defines this for functions which it implements
23196 to always fail with ENOSYS. Some functions are actually named
23197 something starting with __ and the normal name is an alias. */
23198 #if defined __stub_$ac_func || defined __stub___$ac_func
23205 return $ac_func ();
23210 rm -f conftest.$ac_objext conftest$ac_exeext
23211 if { (ac_try="$ac_link"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23217 $as_echo "$ac_try_echo") >&5
23218 (eval "$ac_link") 2>conftest.er1
23220 grep -v '^ *+' conftest.er1 >conftest.err
23222 cat conftest.err >&5
23223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } && {
23225 test -z "$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23227 } && test -s conftest$ac_exeext && {
23228 test "$cross_compiling" = yes ||
23229 $as_test_x conftest$ac_exeext
23231 eval "$as_ac_var=yes"
23233 $as_echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23236 eval "$as_ac_var=no"
23239 rm -rf conftest.dSYM
23240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23241 conftest$ac_exeext conftest.$ac_ext
23243 ac_res=`eval 'as_val=${'$as_ac_var'}
23244 $as_echo "$as_val"'`
23245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23246 $as_echo "$ac_res" >&6; }
23247 as_val=`eval 'as_val=${'$as_ac_var'}
23248 $as_echo "$as_val"'`
23249 if test "x$as_val" = x""yes; then
23250 cat >>confdefs.h <<_ACEOF
23251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23258 # Do test here with the proper thread flags
23259 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23260 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23261 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23262 $as_echo_n "(cached) " >&6
23264 cat >conftest.$ac_ext <<_ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h. */
23270 #include <sys/types.h>
23276 struct passwd *space;
23279 struct passwd **result;
23280 getpwuid_r(uid, space, buf, bufsize, result);
23285 rm -f conftest.$ac_objext
23286 if { (ac_try="$ac_compile"
23287 case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23292 $as_echo "$ac_try_echo") >&5
23293 (eval "$ac_compile") 2>conftest.er1
23295 grep -v '^ *+' conftest.er1 >conftest.err
23297 cat conftest.err >&5
23298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } && {
23300 test -z "$ac_c_werror_flag" ||
23301 test ! -s conftest.err
23302 } && test -s conftest.$ac_objext; then
23303 pgac_cv_func_getpwuid_r_5arg=yes
23305 $as_echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 pgac_cv_func_getpwuid_r_5arg=no
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23313 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23314 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23315 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23317 cat >>confdefs.h <<\_ACEOF
23318 #define GETPWUID_R_5ARG /**/
23323 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23324 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23325 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23326 $as_echo_n "(cached) " >&6
23328 cat >conftest.$ac_ext <<_ACEOF
23331 cat confdefs.h >>conftest.$ac_ext
23332 cat >>conftest.$ac_ext <<_ACEOF
23333 /* end confdefs.h. */
23334 #include <string.h>
23339 int strerror_r(int, char *, size_t);
23341 /* Older AIX has 'int' for the third argument so we don't test the args. */
23348 rm -f conftest.$ac_objext
23349 if { (ac_try="$ac_compile"
23350 case "(($ac_try" in
23351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23352 *) ac_try_echo=$ac_try;;
23354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23355 $as_echo "$ac_try_echo") >&5
23356 (eval "$ac_compile") 2>conftest.er1
23358 grep -v '^ *+' conftest.er1 >conftest.err
23360 cat conftest.err >&5
23361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); } && {
23363 test -z "$ac_c_werror_flag" ||
23364 test ! -s conftest.err
23365 } && test -s conftest.$ac_objext; then
23366 pgac_cv_func_strerror_r_int=yes
23368 $as_echo "$as_me: failed program was:" >&5
23369 sed 's/^/| /' conftest.$ac_ext >&5
23371 pgac_cv_func_strerror_r_int=no
23374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23376 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23377 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23378 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23380 cat >>confdefs.h <<\_ACEOF
23381 #define STRERROR_R_INT /**/
23391 # do not use values from template file
23400 # We can test for libldap_r only after we know PTHREAD_LIBS
23401 if test "$with_ldap" = yes ; then
23403 if test "$PORTNAME" != "win32"; then
23405 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23406 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23407 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23408 $as_echo_n "(cached) " >&6
23410 ac_check_lib_save_LIBS=$LIBS
23411 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23412 cat >conftest.$ac_ext <<_ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h. */
23419 /* Override any GCC internal prototype to avoid an error.
23420 Use char because int might match the return type of a GCC
23421 builtin and then its argument prototype would still apply. */
23429 return ldap_bind ();
23434 rm -f conftest.$ac_objext conftest$ac_exeext
23435 if { (ac_try="$ac_link"
23436 case "(($ac_try" in
23437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438 *) ac_try_echo=$ac_try;;
23440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23441 $as_echo "$ac_try_echo") >&5
23442 (eval "$ac_link") 2>conftest.er1
23444 grep -v '^ *+' conftest.er1 >conftest.err
23446 cat conftest.err >&5
23447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } && {
23449 test -z "$ac_c_werror_flag" ||
23450 test ! -s conftest.err
23451 } && test -s conftest$ac_exeext && {
23452 test "$cross_compiling" = yes ||
23453 $as_test_x conftest$ac_exeext
23455 ac_cv_lib_ldap_ldap_bind=yes
23457 $as_echo "$as_me: failed program was:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23460 ac_cv_lib_ldap_ldap_bind=no
23463 rm -rf conftest.dSYM
23464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23465 conftest$ac_exeext conftest.$ac_ext
23466 LIBS=$ac_check_lib_save_LIBS
23468 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23469 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23470 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23471 cat >>confdefs.h <<_ACEOF
23472 #define HAVE_LIBLDAP 1
23475 LIBS="-lldap $LIBS"
23478 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23479 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23480 { (exit 1); exit 1; }; }
23483 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23484 if test "$enable_thread_safety" = yes; then
23485 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23487 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23488 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23489 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23490 $as_echo_n "(cached) " >&6
23492 ac_check_lib_save_LIBS=$LIBS
23493 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23494 cat >conftest.$ac_ext <<_ACEOF
23497 cat confdefs.h >>conftest.$ac_ext
23498 cat >>conftest.$ac_ext <<_ACEOF
23499 /* end confdefs.h. */
23501 /* Override any GCC internal prototype to avoid an error.
23502 Use char because int might match the return type of a GCC
23503 builtin and then its argument prototype would still apply. */
23507 char ldap_simple_bind ();
23511 return ldap_simple_bind ();
23516 rm -f conftest.$ac_objext conftest$ac_exeext
23517 if { (ac_try="$ac_link"
23518 case "(($ac_try" in
23519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23520 *) ac_try_echo=$ac_try;;
23522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23523 $as_echo "$ac_try_echo") >&5
23524 (eval "$ac_link") 2>conftest.er1
23526 grep -v '^ *+' conftest.er1 >conftest.err
23528 cat conftest.err >&5
23529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } && {
23531 test -z "$ac_c_werror_flag" ||
23532 test ! -s conftest.err
23533 } && test -s conftest$ac_exeext && {
23534 test "$cross_compiling" = yes ||
23535 $as_test_x conftest$ac_exeext
23537 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23539 $as_echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23542 ac_cv_lib_ldap_r_ldap_simple_bind=no
23545 rm -rf conftest.dSYM
23546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23547 conftest$ac_exeext conftest.$ac_ext
23548 LIBS=$ac_check_lib_save_LIBS
23550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23551 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23552 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23553 cat >>confdefs.h <<_ACEOF
23554 #define HAVE_LIBLDAP_R 1
23557 LIBS="-lldap_r $LIBS"
23560 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23561 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23562 { (exit 1); exit 1; }; }
23565 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23567 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23571 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23572 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23573 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23574 $as_echo_n "(cached) " >&6
23576 ac_check_lib_save_LIBS=$LIBS
23577 LIBS="-lwldap32 $LIBS"
23578 cat >conftest.$ac_ext <<_ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23585 /* Override any GCC internal prototype to avoid an error.
23586 Use char because int might match the return type of a GCC
23587 builtin and then its argument prototype would still apply. */
23595 return ldap_bind ();
23600 rm -f conftest.$ac_objext conftest$ac_exeext
23601 if { (ac_try="$ac_link"
23602 case "(($ac_try" in
23603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23604 *) ac_try_echo=$ac_try;;
23606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23607 $as_echo "$ac_try_echo") >&5
23608 (eval "$ac_link") 2>conftest.er1
23610 grep -v '^ *+' conftest.er1 >conftest.err
23612 cat conftest.err >&5
23613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } && {
23615 test -z "$ac_c_werror_flag" ||
23616 test ! -s conftest.err
23617 } && test -s conftest$ac_exeext && {
23618 test "$cross_compiling" = yes ||
23619 $as_test_x conftest$ac_exeext
23621 ac_cv_lib_wldap32_ldap_bind=yes
23623 $as_echo "$as_me: failed program was:" >&5
23624 sed 's/^/| /' conftest.$ac_ext >&5
23626 ac_cv_lib_wldap32_ldap_bind=no
23629 rm -rf conftest.dSYM
23630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23631 conftest$ac_exeext conftest.$ac_ext
23632 LIBS=$ac_check_lib_save_LIBS
23634 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23635 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23636 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23637 cat >>confdefs.h <<_ACEOF
23638 #define HAVE_LIBWLDAP32 1
23641 LIBS="-lwldap32 $LIBS"
23644 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23645 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23646 { (exit 1); exit 1; }; }
23649 LDAP_LIBS_FE="-lwldap32"
23650 LDAP_LIBS_BE="-lwldap32"
23658 # This test makes sure that run tests work at all. Sometimes a shared
23659 # library is found by the linker, but the runtime linker can't find it.
23660 # This check should come after all modifications of compiler or linker
23661 # variables, and before any other run tests.
23662 { $as_echo "$as_me:$LINENO: checking test program" >&5
23663 $as_echo_n "checking test program... " >&6; }
23664 if test "$cross_compiling" = yes; then
23665 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23666 $as_echo "cross-compiling" >&6; }
23668 cat >conftest.$ac_ext <<_ACEOF
23671 cat confdefs.h >>conftest.$ac_ext
23672 cat >>conftest.$ac_ext <<_ACEOF
23673 /* end confdefs.h. */
23674 int main() { return 0; }
23676 rm -f conftest$ac_exeext
23677 if { (ac_try="$ac_link"
23678 case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23683 $as_echo "$ac_try_echo") >&5
23684 (eval "$ac_link") 2>&5
23686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23688 { (case "(($ac_try" in
23689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23690 *) ac_try_echo=$ac_try;;
23692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23693 $as_echo "$ac_try_echo") >&5
23694 (eval "$ac_try") 2>&5
23696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); }; }; then
23698 { $as_echo "$as_me:$LINENO: result: ok" >&5
23699 $as_echo "ok" >&6; }
23701 $as_echo "$as_me: program exited with status $ac_status" >&5
23702 $as_echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23705 ( exit $ac_status )
23706 { $as_echo "$as_me:$LINENO: result: failed" >&5
23707 $as_echo "failed" >&6; }
23708 { { $as_echo "$as_me:$LINENO: error:
23709 Could not execute a simple test program. This may be a problem
23710 related to locating shared libraries. Check the file 'config.log'
23711 for the exact reason." >&5
23712 $as_echo "$as_me: error:
23713 Could not execute a simple test program. This may be a problem
23714 related to locating shared libraries. Check the file 'config.log'
23715 for the exact reason." >&2;}
23716 { (exit 1); exit 1; }; }
23718 rm -rf conftest.dSYM
23719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23724 # --------------------
23725 # Run tests below here
23726 # --------------------
23728 # Force use of our snprintf if system's doesn't do arg control
23729 # See comment above at snprintf test for details.
23730 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23731 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23732 $as_echo_n "checking whether printf supports argument control... " >&6; }
23733 if test "${pgac_cv_printf_arg_control+set}" = set; then
23734 $as_echo_n "(cached) " >&6
23736 if test "$cross_compiling" = yes; then
23737 pgac_cv_printf_arg_control=cross
23739 cat >conftest.$ac_ext <<_ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23746 #include <string.h>
23752 /* can it swap arguments? */
23753 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23754 if (strcmp(buf, "4 3") != 0)
23759 rm -f conftest$ac_exeext
23760 if { (ac_try="$ac_link"
23761 case "(($ac_try" in
23762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763 *) ac_try_echo=$ac_try;;
23765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23766 $as_echo "$ac_try_echo") >&5
23767 (eval "$ac_link") 2>&5
23769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23771 { (case "(($ac_try" in
23772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23773 *) ac_try_echo=$ac_try;;
23775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23776 $as_echo "$ac_try_echo") >&5
23777 (eval "$ac_try") 2>&5
23779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); }; }; then
23781 pgac_cv_printf_arg_control=yes
23783 $as_echo "$as_me: program exited with status $ac_status" >&5
23784 $as_echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23787 ( exit $ac_status )
23788 pgac_cv_printf_arg_control=no
23790 rm -rf conftest.dSYM
23791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23797 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23798 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23800 if test $pgac_cv_printf_arg_control != yes ; then
23801 pgac_need_repl_snprintf=yes
23808 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23809 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23810 if test "${pgac_cv_type_long_int_64+set}" = set; then
23811 $as_echo_n "(cached) " >&6
23813 if test "$cross_compiling" = yes; then
23814 # If cross-compiling, check the size reported by the compiler and
23815 # trust that the arithmetic works.
23816 cat >conftest.$ac_ext <<_ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h. */
23826 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23833 rm -f conftest.$ac_objext
23834 if { (ac_try="$ac_compile"
23835 case "(($ac_try" in
23836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 *) ac_try_echo=$ac_try;;
23839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23840 $as_echo "$ac_try_echo") >&5
23841 (eval "$ac_compile") 2>conftest.er1
23843 grep -v '^ *+' conftest.er1 >conftest.err
23845 cat conftest.err >&5
23846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } && {
23848 test -z "$ac_c_werror_flag" ||
23849 test ! -s conftest.err
23850 } && test -s conftest.$ac_objext; then
23851 pgac_cv_type_long_int_64=yes
23853 $as_echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23856 pgac_cv_type_long_int_64=no
23859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23861 cat >conftest.$ac_ext <<_ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h. */
23867 typedef long int ac_int64;
23870 * These are globals to discourage the compiler from folding all the
23871 * arithmetic tests down to compile-time constants.
23873 ac_int64 a = 20000001;
23874 ac_int64 b = 40000005;
23876 int does_int64_work()
23880 if (sizeof(ac_int64) != 8)
23881 return 0; /* definitely not the right size */
23883 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23891 exit(! does_int64_work());
23894 rm -f conftest$ac_exeext
23895 if { (ac_try="$ac_link"
23896 case "(($ac_try" in
23897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898 *) ac_try_echo=$ac_try;;
23900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23901 $as_echo "$ac_try_echo") >&5
23902 (eval "$ac_link") 2>&5
23904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23906 { (case "(($ac_try" in
23907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908 *) ac_try_echo=$ac_try;;
23910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23911 $as_echo "$ac_try_echo") >&5
23912 (eval "$ac_try") 2>&5
23914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); }; }; then
23916 pgac_cv_type_long_int_64=yes
23918 $as_echo "$as_me: program exited with status $ac_status" >&5
23919 $as_echo "$as_me: failed program was:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23922 ( exit $ac_status )
23923 pgac_cv_type_long_int_64=no
23925 rm -rf conftest.dSYM
23926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23931 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23932 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23934 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23935 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23937 cat >>confdefs.h <<\_ACEOF
23938 #define HAVE_LONG_INT_64 1
23944 if test x"$HAVE_LONG_INT_64" = x"no" ; then
23945 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
23946 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
23947 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
23948 $as_echo_n "(cached) " >&6
23950 if test "$cross_compiling" = yes; then
23951 # If cross-compiling, check the size reported by the compiler and
23952 # trust that the arithmetic works.
23953 cat >conftest.$ac_ext <<_ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23963 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
23970 rm -f conftest.$ac_objext
23971 if { (ac_try="$ac_compile"
23972 case "(($ac_try" in
23973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23974 *) ac_try_echo=$ac_try;;
23976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23977 $as_echo "$ac_try_echo") >&5
23978 (eval "$ac_compile") 2>conftest.er1
23980 grep -v '^ *+' conftest.er1 >conftest.err
23982 cat conftest.err >&5
23983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } && {
23985 test -z "$ac_c_werror_flag" ||
23986 test ! -s conftest.err
23987 } && test -s conftest.$ac_objext; then
23988 pgac_cv_type_long_long_int_64=yes
23990 $as_echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23993 pgac_cv_type_long_long_int_64=no
23996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23998 cat >conftest.$ac_ext <<_ACEOF
24001 cat confdefs.h >>conftest.$ac_ext
24002 cat >>conftest.$ac_ext <<_ACEOF
24003 /* end confdefs.h. */
24004 typedef long long int ac_int64;
24007 * These are globals to discourage the compiler from folding all the
24008 * arithmetic tests down to compile-time constants.
24010 ac_int64 a = 20000001;
24011 ac_int64 b = 40000005;
24013 int does_int64_work()
24017 if (sizeof(ac_int64) != 8)
24018 return 0; /* definitely not the right size */
24020 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24028 exit(! does_int64_work());
24031 rm -f conftest$ac_exeext
24032 if { (ac_try="$ac_link"
24033 case "(($ac_try" in
24034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035 *) ac_try_echo=$ac_try;;
24037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24038 $as_echo "$ac_try_echo") >&5
24039 (eval "$ac_link") 2>&5
24041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24043 { (case "(($ac_try" in
24044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24045 *) ac_try_echo=$ac_try;;
24047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24048 $as_echo "$ac_try_echo") >&5
24049 (eval "$ac_try") 2>&5
24051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); }; }; then
24053 pgac_cv_type_long_long_int_64=yes
24055 $as_echo "$as_me: program exited with status $ac_status" >&5
24056 $as_echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24059 ( exit $ac_status )
24060 pgac_cv_type_long_long_int_64=no
24062 rm -rf conftest.dSYM
24063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24068 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24069 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24071 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24072 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24074 cat >>confdefs.h <<\_ACEOF
24075 #define HAVE_LONG_LONG_INT_64 1
24080 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24081 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24082 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24083 { (exit 1); exit 1; }; }
24089 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24090 cat >conftest.$ac_ext <<_ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24097 #define INT64CONST(x) x##LL
24098 long long int foo = INT64CONST(0x1234567890123456);
24108 rm -f conftest.$ac_objext
24109 if { (ac_try="$ac_compile"
24110 case "(($ac_try" in
24111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24112 *) ac_try_echo=$ac_try;;
24114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24115 $as_echo "$ac_try_echo") >&5
24116 (eval "$ac_compile") 2>conftest.er1
24118 grep -v '^ *+' conftest.er1 >conftest.err
24120 cat conftest.err >&5
24121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); } && {
24123 test -z "$ac_c_werror_flag" ||
24124 test ! -s conftest.err
24125 } && test -s conftest.$ac_objext; then
24127 cat >>confdefs.h <<\_ACEOF
24128 #define HAVE_LL_CONSTANTS 1
24132 $as_echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.$ac_ext >&5
24138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24142 # If we found "long int" is 64 bits, assume snprintf handles it. If
24143 # we found we need to use "long long int", better check. We cope with
24144 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24145 # work, fall back to our own snprintf emulation (which we know uses %lld).
24147 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24148 if test $pgac_need_repl_snprintf = no; then
24149 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24150 $as_echo_n "checking snprintf format for long long int... " >&6; }
24151 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24152 $as_echo_n "(cached) " >&6
24154 for pgac_format in '%lld' '%qd' '%I64d'; do
24155 if test "$cross_compiling" = yes; then
24156 pgac_cv_snprintf_long_long_int_format=cross; break
24158 cat >conftest.$ac_ext <<_ACEOF
24161 cat confdefs.h >>conftest.$ac_ext
24162 cat >>conftest.$ac_ext <<_ACEOF
24163 /* end confdefs.h. */
24165 typedef long long int ac_int64;
24166 #define INT64_FORMAT "$pgac_format"
24168 ac_int64 a = 20000001;
24169 ac_int64 b = 40000005;
24171 int does_int64_snprintf_work()
24176 if (sizeof(ac_int64) != 8)
24177 return 0; /* doesn't look like the right size */
24180 snprintf(buf, 100, INT64_FORMAT, c);
24181 if (strcmp(buf, "800000140000005") != 0)
24182 return 0; /* either multiply or snprintf is busted */
24186 exit(! does_int64_snprintf_work());
24189 rm -f conftest$ac_exeext
24190 if { (ac_try="$ac_link"
24191 case "(($ac_try" in
24192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193 *) ac_try_echo=$ac_try;;
24195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24196 $as_echo "$ac_try_echo") >&5
24197 (eval "$ac_link") 2>&5
24199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24201 { (case "(($ac_try" in
24202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24203 *) ac_try_echo=$ac_try;;
24205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24206 $as_echo "$ac_try_echo") >&5
24207 (eval "$ac_try") 2>&5
24209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); }; }; then
24211 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24213 $as_echo "$as_me: program exited with status $ac_status" >&5
24214 $as_echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24218 rm -rf conftest.dSYM
24219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24226 LONG_LONG_INT_FORMAT=''
24228 case $pgac_cv_snprintf_long_long_int_format in
24229 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24230 $as_echo "cannot test (not on host machine)" >&6; };;
24231 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24232 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24233 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24234 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24235 $as_echo "none" >&6; };;
24237 if test "$LONG_LONG_INT_FORMAT" = ""; then
24238 # Force usage of our own snprintf, since system snprintf is broken
24239 pgac_need_repl_snprintf=yes
24240 LONG_LONG_INT_FORMAT='%lld'
24243 # Here if we previously decided we needed to use our own snprintf
24244 LONG_LONG_INT_FORMAT='%lld'
24246 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24247 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24248 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24250 # Here if we are not using 'long long int' at all
24251 INT64_FORMAT='"%ld"'
24252 UINT64_FORMAT='"%lu"'
24256 cat >>confdefs.h <<_ACEOF
24257 #define INT64_FORMAT $INT64_FORMAT
24262 cat >>confdefs.h <<_ACEOF
24263 #define UINT64_FORMAT $UINT64_FORMAT
24267 # Now we have checked all the reasons to replace snprintf
24268 if test $pgac_need_repl_snprintf = yes; then
24270 cat >>confdefs.h <<\_ACEOF
24271 #define USE_REPL_SNPRINTF 1
24274 case " $LIBOBJS " in
24275 *" snprintf.$ac_objext "* ) ;;
24276 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24282 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24283 # The cast to long int works around a bug in the HP C Compiler
24284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24286 # This bug is HP SR number 8606223364.
24287 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24288 $as_echo_n "checking size of void *... " >&6; }
24289 if test "${ac_cv_sizeof_void_p+set}" = set; then
24290 $as_echo_n "(cached) " >&6
24292 if test "$cross_compiling" = yes; then
24293 # Depending upon the size, compute the lo and hi bounds.
24294 cat >conftest.$ac_ext <<_ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 $ac_includes_default
24304 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24311 rm -f conftest.$ac_objext
24312 if { (ac_try="$ac_compile"
24313 case "(($ac_try" in
24314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24315 *) ac_try_echo=$ac_try;;
24317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24318 $as_echo "$ac_try_echo") >&5
24319 (eval "$ac_compile") 2>conftest.er1
24321 grep -v '^ *+' conftest.er1 >conftest.err
24323 cat conftest.err >&5
24324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } && {
24326 test -z "$ac_c_werror_flag" ||
24327 test ! -s conftest.err
24328 } && test -s conftest.$ac_objext; then
24331 cat >conftest.$ac_ext <<_ACEOF
24334 cat confdefs.h >>conftest.$ac_ext
24335 cat >>conftest.$ac_ext <<_ACEOF
24336 /* end confdefs.h. */
24337 $ac_includes_default
24341 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24348 rm -f conftest.$ac_objext
24349 if { (ac_try="$ac_compile"
24350 case "(($ac_try" in
24351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352 *) ac_try_echo=$ac_try;;
24354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24355 $as_echo "$ac_try_echo") >&5
24356 (eval "$ac_compile") 2>conftest.er1
24358 grep -v '^ *+' conftest.er1 >conftest.err
24360 cat conftest.err >&5
24361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } && {
24363 test -z "$ac_c_werror_flag" ||
24364 test ! -s conftest.err
24365 } && test -s conftest.$ac_objext; then
24366 ac_hi=$ac_mid; break
24368 $as_echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24371 ac_lo=`expr $ac_mid + 1`
24372 if test $ac_lo -le $ac_mid; then
24376 ac_mid=`expr 2 '*' $ac_mid + 1`
24379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24382 $as_echo "$as_me: failed program was:" >&5
24383 sed 's/^/| /' conftest.$ac_ext >&5
24385 cat >conftest.$ac_ext <<_ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h. */
24391 $ac_includes_default
24395 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24402 rm -f conftest.$ac_objext
24403 if { (ac_try="$ac_compile"
24404 case "(($ac_try" in
24405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406 *) ac_try_echo=$ac_try;;
24408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24409 $as_echo "$ac_try_echo") >&5
24410 (eval "$ac_compile") 2>conftest.er1
24412 grep -v '^ *+' conftest.er1 >conftest.err
24414 cat conftest.err >&5
24415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } && {
24417 test -z "$ac_c_werror_flag" ||
24418 test ! -s conftest.err
24419 } && test -s conftest.$ac_objext; then
24422 cat >conftest.$ac_ext <<_ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24428 $ac_includes_default
24432 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24439 rm -f conftest.$ac_objext
24440 if { (ac_try="$ac_compile"
24441 case "(($ac_try" in
24442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443 *) ac_try_echo=$ac_try;;
24445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24446 $as_echo "$ac_try_echo") >&5
24447 (eval "$ac_compile") 2>conftest.er1
24449 grep -v '^ *+' conftest.er1 >conftest.err
24451 cat conftest.err >&5
24452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); } && {
24454 test -z "$ac_c_werror_flag" ||
24455 test ! -s conftest.err
24456 } && test -s conftest.$ac_objext; then
24457 ac_lo=$ac_mid; break
24459 $as_echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24462 ac_hi=`expr '(' $ac_mid ')' - 1`
24463 if test $ac_mid -le $ac_hi; then
24467 ac_mid=`expr 2 '*' $ac_mid`
24470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24473 $as_echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483 # Binary search between lo and hi bounds.
24484 while test "x$ac_lo" != "x$ac_hi"; do
24485 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24486 cat >conftest.$ac_ext <<_ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h. */
24492 $ac_includes_default
24496 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24510 $as_echo "$ac_try_echo") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24513 grep -v '^ *+' conftest.er1 >conftest.err
24515 cat conftest.err >&5
24516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24523 $as_echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24526 ac_lo=`expr '(' $ac_mid ')' + 1`
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24532 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24533 '') if test "$ac_cv_type_void_p" = yes; then
24534 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24536 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24537 See \`config.log' for more details." >&5
24538 $as_echo "$as_me: error: cannot compute sizeof (void *)
24539 See \`config.log' for more details." >&2;}
24540 { (exit 77); exit 77; }; }; }
24542 ac_cv_sizeof_void_p=0
24546 cat >conftest.$ac_ext <<_ACEOF
24549 cat confdefs.h >>conftest.$ac_ext
24550 cat >>conftest.$ac_ext <<_ACEOF
24551 /* end confdefs.h. */
24552 $ac_includes_default
24553 static long int longval () { return (long int) (sizeof (void *)); }
24554 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24556 #include <stdlib.h>
24561 FILE *f = fopen ("conftest.val", "w");
24564 if (((long int) (sizeof (void *))) < 0)
24566 long int i = longval ();
24567 if (i != ((long int) (sizeof (void *))))
24569 fprintf (f, "%ld", i);
24573 unsigned long int i = ulongval ();
24574 if (i != ((long int) (sizeof (void *))))
24576 fprintf (f, "%lu", i);
24578 /* Do not output a trailing newline, as this causes \r\n confusion
24579 on some platforms. */
24580 return ferror (f) || fclose (f) != 0;
24586 rm -f conftest$ac_exeext
24587 if { (ac_try="$ac_link"
24588 case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24593 $as_echo "$ac_try_echo") >&5
24594 (eval "$ac_link") 2>&5
24596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24598 { (case "(($ac_try" in
24599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600 *) ac_try_echo=$ac_try;;
24602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24603 $as_echo "$ac_try_echo") >&5
24604 (eval "$ac_try") 2>&5
24606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); }; }; then
24608 ac_cv_sizeof_void_p=`cat conftest.val`
24610 $as_echo "$as_me: program exited with status $ac_status" >&5
24611 $as_echo "$as_me: failed program was:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24614 ( exit $ac_status )
24615 if test "$ac_cv_type_void_p" = yes; then
24616 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24618 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24619 See \`config.log' for more details." >&5
24620 $as_echo "$as_me: error: cannot compute sizeof (void *)
24621 See \`config.log' for more details." >&2;}
24622 { (exit 77); exit 77; }; }; }
24624 ac_cv_sizeof_void_p=0
24627 rm -rf conftest.dSYM
24628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24632 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24633 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24637 cat >>confdefs.h <<_ACEOF
24638 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24642 # The cast to long int works around a bug in the HP C Compiler
24643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24645 # This bug is HP SR number 8606223364.
24646 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24647 $as_echo_n "checking size of size_t... " >&6; }
24648 if test "${ac_cv_sizeof_size_t+set}" = set; then
24649 $as_echo_n "(cached) " >&6
24651 if test "$cross_compiling" = yes; then
24652 # Depending upon the size, compute the lo and hi bounds.
24653 cat >conftest.$ac_ext <<_ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24659 $ac_includes_default
24663 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24670 rm -f conftest.$ac_objext
24671 if { (ac_try="$ac_compile"
24672 case "(($ac_try" in
24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24677 $as_echo "$ac_try_echo") >&5
24678 (eval "$ac_compile") 2>conftest.er1
24680 grep -v '^ *+' conftest.er1 >conftest.err
24682 cat conftest.err >&5
24683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); } && {
24685 test -z "$ac_c_werror_flag" ||
24686 test ! -s conftest.err
24687 } && test -s conftest.$ac_objext; then
24690 cat >conftest.$ac_ext <<_ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h. */
24696 $ac_includes_default
24700 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24707 rm -f conftest.$ac_objext
24708 if { (ac_try="$ac_compile"
24709 case "(($ac_try" in
24710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711 *) ac_try_echo=$ac_try;;
24713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24714 $as_echo "$ac_try_echo") >&5
24715 (eval "$ac_compile") 2>conftest.er1
24717 grep -v '^ *+' conftest.er1 >conftest.err
24719 cat conftest.err >&5
24720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); } && {
24722 test -z "$ac_c_werror_flag" ||
24723 test ! -s conftest.err
24724 } && test -s conftest.$ac_objext; then
24725 ac_hi=$ac_mid; break
24727 $as_echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24730 ac_lo=`expr $ac_mid + 1`
24731 if test $ac_lo -le $ac_mid; then
24735 ac_mid=`expr 2 '*' $ac_mid + 1`
24738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24741 $as_echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24744 cat >conftest.$ac_ext <<_ACEOF
24747 cat confdefs.h >>conftest.$ac_ext
24748 cat >>conftest.$ac_ext <<_ACEOF
24749 /* end confdefs.h. */
24750 $ac_includes_default
24754 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24761 rm -f conftest.$ac_objext
24762 if { (ac_try="$ac_compile"
24763 case "(($ac_try" in
24764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24765 *) ac_try_echo=$ac_try;;
24767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24768 $as_echo "$ac_try_echo") >&5
24769 (eval "$ac_compile") 2>conftest.er1
24771 grep -v '^ *+' conftest.er1 >conftest.err
24773 cat conftest.err >&5
24774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); } && {
24776 test -z "$ac_c_werror_flag" ||
24777 test ! -s conftest.err
24778 } && test -s conftest.$ac_objext; then
24781 cat >conftest.$ac_ext <<_ACEOF
24784 cat confdefs.h >>conftest.$ac_ext
24785 cat >>conftest.$ac_ext <<_ACEOF
24786 /* end confdefs.h. */
24787 $ac_includes_default
24791 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24798 rm -f conftest.$ac_objext
24799 if { (ac_try="$ac_compile"
24800 case "(($ac_try" in
24801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24802 *) ac_try_echo=$ac_try;;
24804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24805 $as_echo "$ac_try_echo") >&5
24806 (eval "$ac_compile") 2>conftest.er1
24808 grep -v '^ *+' conftest.er1 >conftest.err
24810 cat conftest.err >&5
24811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); } && {
24813 test -z "$ac_c_werror_flag" ||
24814 test ! -s conftest.err
24815 } && test -s conftest.$ac_objext; then
24816 ac_lo=$ac_mid; break
24818 $as_echo "$as_me: failed program was:" >&5
24819 sed 's/^/| /' conftest.$ac_ext >&5
24821 ac_hi=`expr '(' $ac_mid ')' - 1`
24822 if test $ac_mid -le $ac_hi; then
24826 ac_mid=`expr 2 '*' $ac_mid`
24829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24832 $as_echo "$as_me: failed program was:" >&5
24833 sed 's/^/| /' conftest.$ac_ext >&5
24838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24842 # Binary search between lo and hi bounds.
24843 while test "x$ac_lo" != "x$ac_hi"; do
24844 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24845 cat >conftest.$ac_ext <<_ACEOF
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h. */
24851 $ac_includes_default
24855 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24862 rm -f conftest.$ac_objext
24863 if { (ac_try="$ac_compile"
24864 case "(($ac_try" in
24865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24866 *) ac_try_echo=$ac_try;;
24868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24869 $as_echo "$ac_try_echo") >&5
24870 (eval "$ac_compile") 2>conftest.er1
24872 grep -v '^ *+' conftest.er1 >conftest.err
24874 cat conftest.err >&5
24875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } && {
24877 test -z "$ac_c_werror_flag" ||
24878 test ! -s conftest.err
24879 } && test -s conftest.$ac_objext; then
24882 $as_echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24885 ac_lo=`expr '(' $ac_mid ')' + 1`
24888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24892 '') if test "$ac_cv_type_size_t" = yes; then
24893 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24895 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24896 See \`config.log' for more details." >&5
24897 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24898 See \`config.log' for more details." >&2;}
24899 { (exit 77); exit 77; }; }; }
24901 ac_cv_sizeof_size_t=0
24905 cat >conftest.$ac_ext <<_ACEOF
24908 cat confdefs.h >>conftest.$ac_ext
24909 cat >>conftest.$ac_ext <<_ACEOF
24910 /* end confdefs.h. */
24911 $ac_includes_default
24912 static long int longval () { return (long int) (sizeof (size_t)); }
24913 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24915 #include <stdlib.h>
24920 FILE *f = fopen ("conftest.val", "w");
24923 if (((long int) (sizeof (size_t))) < 0)
24925 long int i = longval ();
24926 if (i != ((long int) (sizeof (size_t))))
24928 fprintf (f, "%ld", i);
24932 unsigned long int i = ulongval ();
24933 if (i != ((long int) (sizeof (size_t))))
24935 fprintf (f, "%lu", i);
24937 /* Do not output a trailing newline, as this causes \r\n confusion
24938 on some platforms. */
24939 return ferror (f) || fclose (f) != 0;
24945 rm -f conftest$ac_exeext
24946 if { (ac_try="$ac_link"
24947 case "(($ac_try" in
24948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24949 *) ac_try_echo=$ac_try;;
24951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24952 $as_echo "$ac_try_echo") >&5
24953 (eval "$ac_link") 2>&5
24955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24957 { (case "(($ac_try" in
24958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24959 *) ac_try_echo=$ac_try;;
24961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24962 $as_echo "$ac_try_echo") >&5
24963 (eval "$ac_try") 2>&5
24965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; }; then
24967 ac_cv_sizeof_size_t=`cat conftest.val`
24969 $as_echo "$as_me: program exited with status $ac_status" >&5
24970 $as_echo "$as_me: failed program was:" >&5
24971 sed 's/^/| /' conftest.$ac_ext >&5
24973 ( exit $ac_status )
24974 if test "$ac_cv_type_size_t" = yes; then
24975 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24977 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24978 See \`config.log' for more details." >&5
24979 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24980 See \`config.log' for more details." >&2;}
24981 { (exit 77); exit 77; }; }; }
24983 ac_cv_sizeof_size_t=0
24986 rm -rf conftest.dSYM
24987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24991 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
24992 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24996 cat >>confdefs.h <<_ACEOF
24997 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25001 # The cast to long int works around a bug in the HP C Compiler
25002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25004 # This bug is HP SR number 8606223364.
25005 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25006 $as_echo_n "checking size of long... " >&6; }
25007 if test "${ac_cv_sizeof_long+set}" = set; then
25008 $as_echo_n "(cached) " >&6
25010 if test "$cross_compiling" = yes; then
25011 # Depending upon the size, compute the lo and hi bounds.
25012 cat >conftest.$ac_ext <<_ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h. */
25018 $ac_includes_default
25022 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25029 rm -f conftest.$ac_objext
25030 if { (ac_try="$ac_compile"
25031 case "(($ac_try" in
25032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033 *) ac_try_echo=$ac_try;;
25035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25036 $as_echo "$ac_try_echo") >&5
25037 (eval "$ac_compile") 2>conftest.er1
25039 grep -v '^ *+' conftest.er1 >conftest.err
25041 cat conftest.err >&5
25042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); } && {
25044 test -z "$ac_c_werror_flag" ||
25045 test ! -s conftest.err
25046 } && test -s conftest.$ac_objext; then
25049 cat >conftest.$ac_ext <<_ACEOF
25052 cat confdefs.h >>conftest.$ac_ext
25053 cat >>conftest.$ac_ext <<_ACEOF
25054 /* end confdefs.h. */
25055 $ac_includes_default
25059 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25066 rm -f conftest.$ac_objext
25067 if { (ac_try="$ac_compile"
25068 case "(($ac_try" in
25069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25070 *) ac_try_echo=$ac_try;;
25072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25073 $as_echo "$ac_try_echo") >&5
25074 (eval "$ac_compile") 2>conftest.er1
25076 grep -v '^ *+' conftest.er1 >conftest.err
25078 cat conftest.err >&5
25079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); } && {
25081 test -z "$ac_c_werror_flag" ||
25082 test ! -s conftest.err
25083 } && test -s conftest.$ac_objext; then
25084 ac_hi=$ac_mid; break
25086 $as_echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25089 ac_lo=`expr $ac_mid + 1`
25090 if test $ac_lo -le $ac_mid; then
25094 ac_mid=`expr 2 '*' $ac_mid + 1`
25097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 $as_echo "$as_me: failed program was:" >&5
25101 sed 's/^/| /' conftest.$ac_ext >&5
25103 cat >conftest.$ac_ext <<_ACEOF
25106 cat confdefs.h >>conftest.$ac_ext
25107 cat >>conftest.$ac_ext <<_ACEOF
25108 /* end confdefs.h. */
25109 $ac_includes_default
25113 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25120 rm -f conftest.$ac_objext
25121 if { (ac_try="$ac_compile"
25122 case "(($ac_try" in
25123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25124 *) ac_try_echo=$ac_try;;
25126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25127 $as_echo "$ac_try_echo") >&5
25128 (eval "$ac_compile") 2>conftest.er1
25130 grep -v '^ *+' conftest.er1 >conftest.err
25132 cat conftest.err >&5
25133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); } && {
25135 test -z "$ac_c_werror_flag" ||
25136 test ! -s conftest.err
25137 } && test -s conftest.$ac_objext; then
25140 cat >conftest.$ac_ext <<_ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h. */
25146 $ac_includes_default
25150 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25157 rm -f conftest.$ac_objext
25158 if { (ac_try="$ac_compile"
25159 case "(($ac_try" in
25160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25161 *) ac_try_echo=$ac_try;;
25163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25164 $as_echo "$ac_try_echo") >&5
25165 (eval "$ac_compile") 2>conftest.er1
25167 grep -v '^ *+' conftest.er1 >conftest.err
25169 cat conftest.err >&5
25170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); } && {
25172 test -z "$ac_c_werror_flag" ||
25173 test ! -s conftest.err
25174 } && test -s conftest.$ac_objext; then
25175 ac_lo=$ac_mid; break
25177 $as_echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25180 ac_hi=`expr '(' $ac_mid ')' - 1`
25181 if test $ac_mid -le $ac_hi; then
25185 ac_mid=`expr 2 '*' $ac_mid`
25188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25191 $as_echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.$ac_ext >&5
25197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25201 # Binary search between lo and hi bounds.
25202 while test "x$ac_lo" != "x$ac_hi"; do
25203 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25204 cat >conftest.$ac_ext <<_ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h. */
25210 $ac_includes_default
25214 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25221 rm -f conftest.$ac_objext
25222 if { (ac_try="$ac_compile"
25223 case "(($ac_try" in
25224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225 *) ac_try_echo=$ac_try;;
25227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25228 $as_echo "$ac_try_echo") >&5
25229 (eval "$ac_compile") 2>conftest.er1
25231 grep -v '^ *+' conftest.er1 >conftest.err
25233 cat conftest.err >&5
25234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); } && {
25236 test -z "$ac_c_werror_flag" ||
25237 test ! -s conftest.err
25238 } && test -s conftest.$ac_objext; then
25241 $as_echo "$as_me: failed program was:" >&5
25242 sed 's/^/| /' conftest.$ac_ext >&5
25244 ac_lo=`expr '(' $ac_mid ')' + 1`
25247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25250 ?*) ac_cv_sizeof_long=$ac_lo;;
25251 '') if test "$ac_cv_type_long" = yes; then
25252 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25254 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25255 See \`config.log' for more details." >&5
25256 $as_echo "$as_me: error: cannot compute sizeof (long)
25257 See \`config.log' for more details." >&2;}
25258 { (exit 77); exit 77; }; }; }
25260 ac_cv_sizeof_long=0
25264 cat >conftest.$ac_ext <<_ACEOF
25267 cat confdefs.h >>conftest.$ac_ext
25268 cat >>conftest.$ac_ext <<_ACEOF
25269 /* end confdefs.h. */
25270 $ac_includes_default
25271 static long int longval () { return (long int) (sizeof (long)); }
25272 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25274 #include <stdlib.h>
25279 FILE *f = fopen ("conftest.val", "w");
25282 if (((long int) (sizeof (long))) < 0)
25284 long int i = longval ();
25285 if (i != ((long int) (sizeof (long))))
25287 fprintf (f, "%ld", i);
25291 unsigned long int i = ulongval ();
25292 if (i != ((long int) (sizeof (long))))
25294 fprintf (f, "%lu", i);
25296 /* Do not output a trailing newline, as this causes \r\n confusion
25297 on some platforms. */
25298 return ferror (f) || fclose (f) != 0;
25304 rm -f conftest$ac_exeext
25305 if { (ac_try="$ac_link"
25306 case "(($ac_try" in
25307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25308 *) ac_try_echo=$ac_try;;
25310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25311 $as_echo "$ac_try_echo") >&5
25312 (eval "$ac_link") 2>&5
25314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25316 { (case "(($ac_try" in
25317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318 *) ac_try_echo=$ac_try;;
25320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25321 $as_echo "$ac_try_echo") >&5
25322 (eval "$ac_try") 2>&5
25324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); }; }; then
25326 ac_cv_sizeof_long=`cat conftest.val`
25328 $as_echo "$as_me: program exited with status $ac_status" >&5
25329 $as_echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25332 ( exit $ac_status )
25333 if test "$ac_cv_type_long" = yes; then
25334 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25336 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25337 See \`config.log' for more details." >&5
25338 $as_echo "$as_me: error: cannot compute sizeof (long)
25339 See \`config.log' for more details." >&2;}
25340 { (exit 77); exit 77; }; }; }
25342 ac_cv_sizeof_long=0
25345 rm -rf conftest.dSYM
25346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25350 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25351 $as_echo "$ac_cv_sizeof_long" >&6; }
25355 cat >>confdefs.h <<_ACEOF
25356 #define SIZEOF_LONG $ac_cv_sizeof_long
25361 # Decide whether float4 is passed by value: user-selectable, enabled by default
25362 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25363 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25366 # Check whether --enable-float4-byval was given.
25367 if test "${enable_float4_byval+set}" = set; then
25368 enableval=$enable_float4_byval;
25372 cat >>confdefs.h <<\_ACEOF
25373 #define USE_FLOAT4_BYVAL 1
25376 float4passbyval=true
25379 float4passbyval=false
25382 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25383 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25384 { (exit 1); exit 1; }; }
25389 enable_float4_byval=yes
25391 cat >>confdefs.h <<\_ACEOF
25392 #define USE_FLOAT4_BYVAL 1
25395 float4passbyval=true
25399 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25400 $as_echo "$enable_float4_byval" >&6; }
25402 cat >>confdefs.h <<_ACEOF
25403 #define FLOAT4PASSBYVAL $float4passbyval
25407 # Decide whether float8 is passed by value.
25408 # Note: this setting also controls int8 and related types such as timestamp.
25409 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25410 # If not, trying to select it is an error.
25411 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25412 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25413 if test $ac_cv_sizeof_void_p -ge 8 ; then
25416 # Check whether --enable-float8-byval was given.
25417 if test "${enable_float8_byval+set}" = set; then
25418 enableval=$enable_float8_byval;
25427 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25428 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25429 { (exit 1); exit 1; }; }
25434 enable_float8_byval=yes
25442 # Check whether --enable-float8-byval was given.
25443 if test "${enable_float8_byval+set}" = set; then
25444 enableval=$enable_float8_byval;
25453 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25454 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25455 { (exit 1); exit 1; }; }
25460 enable_float8_byval=no
25465 if test "$enable_float8_byval" = yes ; then
25466 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25467 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25468 { (exit 1); exit 1; }; }
25471 if test "$enable_float8_byval" = yes ; then
25473 cat >>confdefs.h <<\_ACEOF
25474 #define USE_FLOAT8_BYVAL 1
25477 float8passbyval=true
25479 float8passbyval=false
25481 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25482 $as_echo "$enable_float8_byval" >&6; }
25484 cat >>confdefs.h <<_ACEOF
25485 #define FLOAT8PASSBYVAL $float8passbyval
25489 # Determine memory alignment requirements for the basic C data types.
25491 # The cast to long int works around a bug in the HP C Compiler,
25492 # see AC_CHECK_SIZEOF for more information.
25493 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25494 $as_echo_n "checking alignment of short... " >&6; }
25495 if test "${ac_cv_alignof_short+set}" = set; then
25496 $as_echo_n "(cached) " >&6
25498 if test "$cross_compiling" = yes; then
25499 # Depending upon the size, compute the lo and hi bounds.
25500 cat >conftest.$ac_ext <<_ACEOF
25503 cat confdefs.h >>conftest.$ac_ext
25504 cat >>conftest.$ac_ext <<_ACEOF
25505 /* end confdefs.h. */
25506 $ac_includes_default
25508 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25510 typedef struct { char x; short y; } ac__type_alignof_;
25514 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25521 rm -f conftest.$ac_objext
25522 if { (ac_try="$ac_compile"
25523 case "(($ac_try" in
25524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25525 *) ac_try_echo=$ac_try;;
25527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25528 $as_echo "$ac_try_echo") >&5
25529 (eval "$ac_compile") 2>conftest.er1
25531 grep -v '^ *+' conftest.er1 >conftest.err
25533 cat conftest.err >&5
25534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); } && {
25536 test -z "$ac_c_werror_flag" ||
25537 test ! -s conftest.err
25538 } && test -s conftest.$ac_objext; then
25541 cat >conftest.$ac_ext <<_ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h. */
25547 $ac_includes_default
25549 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25551 typedef struct { char x; short y; } ac__type_alignof_;
25555 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25562 rm -f conftest.$ac_objext
25563 if { (ac_try="$ac_compile"
25564 case "(($ac_try" in
25565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25566 *) ac_try_echo=$ac_try;;
25568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25569 $as_echo "$ac_try_echo") >&5
25570 (eval "$ac_compile") 2>conftest.er1
25572 grep -v '^ *+' conftest.er1 >conftest.err
25574 cat conftest.err >&5
25575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); } && {
25577 test -z "$ac_c_werror_flag" ||
25578 test ! -s conftest.err
25579 } && test -s conftest.$ac_objext; then
25580 ac_hi=$ac_mid; break
25582 $as_echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25585 ac_lo=`expr $ac_mid + 1`
25586 if test $ac_lo -le $ac_mid; then
25590 ac_mid=`expr 2 '*' $ac_mid + 1`
25593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25596 $as_echo "$as_me: failed program was:" >&5
25597 sed 's/^/| /' conftest.$ac_ext >&5
25599 cat >conftest.$ac_ext <<_ACEOF
25602 cat confdefs.h >>conftest.$ac_ext
25603 cat >>conftest.$ac_ext <<_ACEOF
25604 /* end confdefs.h. */
25605 $ac_includes_default
25607 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25609 typedef struct { char x; short y; } ac__type_alignof_;
25613 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25620 rm -f conftest.$ac_objext
25621 if { (ac_try="$ac_compile"
25622 case "(($ac_try" in
25623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25624 *) ac_try_echo=$ac_try;;
25626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25627 $as_echo "$ac_try_echo") >&5
25628 (eval "$ac_compile") 2>conftest.er1
25630 grep -v '^ *+' conftest.er1 >conftest.err
25632 cat conftest.err >&5
25633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); } && {
25635 test -z "$ac_c_werror_flag" ||
25636 test ! -s conftest.err
25637 } && test -s conftest.$ac_objext; then
25640 cat >conftest.$ac_ext <<_ACEOF
25643 cat confdefs.h >>conftest.$ac_ext
25644 cat >>conftest.$ac_ext <<_ACEOF
25645 /* end confdefs.h. */
25646 $ac_includes_default
25648 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25650 typedef struct { char x; short y; } ac__type_alignof_;
25654 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25661 rm -f conftest.$ac_objext
25662 if { (ac_try="$ac_compile"
25663 case "(($ac_try" in
25664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25665 *) ac_try_echo=$ac_try;;
25667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25668 $as_echo "$ac_try_echo") >&5
25669 (eval "$ac_compile") 2>conftest.er1
25671 grep -v '^ *+' conftest.er1 >conftest.err
25673 cat conftest.err >&5
25674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); } && {
25676 test -z "$ac_c_werror_flag" ||
25677 test ! -s conftest.err
25678 } && test -s conftest.$ac_objext; then
25679 ac_lo=$ac_mid; break
25681 $as_echo "$as_me: failed program was:" >&5
25682 sed 's/^/| /' conftest.$ac_ext >&5
25684 ac_hi=`expr '(' $ac_mid ')' - 1`
25685 if test $ac_mid -le $ac_hi; then
25689 ac_mid=`expr 2 '*' $ac_mid`
25692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25695 $as_echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25705 # Binary search between lo and hi bounds.
25706 while test "x$ac_lo" != "x$ac_hi"; do
25707 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25708 cat >conftest.$ac_ext <<_ACEOF
25711 cat confdefs.h >>conftest.$ac_ext
25712 cat >>conftest.$ac_ext <<_ACEOF
25713 /* end confdefs.h. */
25714 $ac_includes_default
25716 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25718 typedef struct { char x; short y; } ac__type_alignof_;
25722 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25729 rm -f conftest.$ac_objext
25730 if { (ac_try="$ac_compile"
25731 case "(($ac_try" in
25732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25733 *) ac_try_echo=$ac_try;;
25735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25736 $as_echo "$ac_try_echo") >&5
25737 (eval "$ac_compile") 2>conftest.er1
25739 grep -v '^ *+' conftest.er1 >conftest.err
25741 cat conftest.err >&5
25742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } && {
25744 test -z "$ac_c_werror_flag" ||
25745 test ! -s conftest.err
25746 } && test -s conftest.$ac_objext; then
25749 $as_echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.$ac_ext >&5
25752 ac_lo=`expr '(' $ac_mid ')' + 1`
25755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25758 ?*) ac_cv_alignof_short=$ac_lo;;
25759 '') if test "$ac_cv_type_short" = yes; then
25760 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25762 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25763 See \`config.log' for more details." >&5
25764 $as_echo "$as_me: error: cannot compute alignment of short
25765 See \`config.log' for more details." >&2;}
25766 { (exit 77); exit 77; }; }; }
25768 ac_cv_alignof_short=0
25772 cat >conftest.$ac_ext <<_ACEOF
25775 cat confdefs.h >>conftest.$ac_ext
25776 cat >>conftest.$ac_ext <<_ACEOF
25777 /* end confdefs.h. */
25778 $ac_includes_default
25780 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25782 typedef struct { char x; short y; } ac__type_alignof_;
25783 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25784 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25786 #include <stdlib.h>
25791 FILE *f = fopen ("conftest.val", "w");
25794 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25796 long int i = longval ();
25797 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25799 fprintf (f, "%ld", i);
25803 unsigned long int i = ulongval ();
25804 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25806 fprintf (f, "%lu", i);
25808 /* Do not output a trailing newline, as this causes \r\n confusion
25809 on some platforms. */
25810 return ferror (f) || fclose (f) != 0;
25816 rm -f conftest$ac_exeext
25817 if { (ac_try="$ac_link"
25818 case "(($ac_try" in
25819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25820 *) ac_try_echo=$ac_try;;
25822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25823 $as_echo "$ac_try_echo") >&5
25824 (eval "$ac_link") 2>&5
25826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25828 { (case "(($ac_try" in
25829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25830 *) ac_try_echo=$ac_try;;
25832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25833 $as_echo "$ac_try_echo") >&5
25834 (eval "$ac_try") 2>&5
25836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; }; then
25838 ac_cv_alignof_short=`cat conftest.val`
25840 $as_echo "$as_me: program exited with status $ac_status" >&5
25841 $as_echo "$as_me: failed program was:" >&5
25842 sed 's/^/| /' conftest.$ac_ext >&5
25844 ( exit $ac_status )
25845 if test "$ac_cv_type_short" = yes; then
25846 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25848 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25849 See \`config.log' for more details." >&5
25850 $as_echo "$as_me: error: cannot compute alignment of short
25851 See \`config.log' for more details." >&2;}
25852 { (exit 77); exit 77; }; }; }
25854 ac_cv_alignof_short=0
25857 rm -rf conftest.dSYM
25858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25862 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25863 $as_echo "$ac_cv_alignof_short" >&6; }
25867 cat >>confdefs.h <<_ACEOF
25868 #define ALIGNOF_SHORT $ac_cv_alignof_short
25872 # The cast to long int works around a bug in the HP C Compiler,
25873 # see AC_CHECK_SIZEOF for more information.
25874 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25875 $as_echo_n "checking alignment of int... " >&6; }
25876 if test "${ac_cv_alignof_int+set}" = set; then
25877 $as_echo_n "(cached) " >&6
25879 if test "$cross_compiling" = yes; then
25880 # Depending upon the size, compute the lo and hi bounds.
25881 cat >conftest.$ac_ext <<_ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h. */
25887 $ac_includes_default
25889 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25891 typedef struct { char x; int y; } ac__type_alignof_;
25895 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25902 rm -f conftest.$ac_objext
25903 if { (ac_try="$ac_compile"
25904 case "(($ac_try" in
25905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25906 *) ac_try_echo=$ac_try;;
25908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25909 $as_echo "$ac_try_echo") >&5
25910 (eval "$ac_compile") 2>conftest.er1
25912 grep -v '^ *+' conftest.er1 >conftest.err
25914 cat conftest.err >&5
25915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } && {
25917 test -z "$ac_c_werror_flag" ||
25918 test ! -s conftest.err
25919 } && test -s conftest.$ac_objext; then
25922 cat >conftest.$ac_ext <<_ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h. */
25928 $ac_includes_default
25930 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25932 typedef struct { char x; int y; } ac__type_alignof_;
25936 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25943 rm -f conftest.$ac_objext
25944 if { (ac_try="$ac_compile"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25950 $as_echo "$ac_try_echo") >&5
25951 (eval "$ac_compile") 2>conftest.er1
25953 grep -v '^ *+' conftest.er1 >conftest.err
25955 cat conftest.err >&5
25956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); } && {
25958 test -z "$ac_c_werror_flag" ||
25959 test ! -s conftest.err
25960 } && test -s conftest.$ac_objext; then
25961 ac_hi=$ac_mid; break
25963 $as_echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25966 ac_lo=`expr $ac_mid + 1`
25967 if test $ac_lo -le $ac_mid; then
25971 ac_mid=`expr 2 '*' $ac_mid + 1`
25974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25977 $as_echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25980 cat >conftest.$ac_ext <<_ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h. */
25986 $ac_includes_default
25988 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25990 typedef struct { char x; int y; } ac__type_alignof_;
25994 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26001 rm -f conftest.$ac_objext
26002 if { (ac_try="$ac_compile"
26003 case "(($ac_try" in
26004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26005 *) ac_try_echo=$ac_try;;
26007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26008 $as_echo "$ac_try_echo") >&5
26009 (eval "$ac_compile") 2>conftest.er1
26011 grep -v '^ *+' conftest.er1 >conftest.err
26013 cat conftest.err >&5
26014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } && {
26016 test -z "$ac_c_werror_flag" ||
26017 test ! -s conftest.err
26018 } && test -s conftest.$ac_objext; then
26021 cat >conftest.$ac_ext <<_ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26027 $ac_includes_default
26029 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26031 typedef struct { char x; int y; } ac__type_alignof_;
26035 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26042 rm -f conftest.$ac_objext
26043 if { (ac_try="$ac_compile"
26044 case "(($ac_try" in
26045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26046 *) ac_try_echo=$ac_try;;
26048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26049 $as_echo "$ac_try_echo") >&5
26050 (eval "$ac_compile") 2>conftest.er1
26052 grep -v '^ *+' conftest.er1 >conftest.err
26054 cat conftest.err >&5
26055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); } && {
26057 test -z "$ac_c_werror_flag" ||
26058 test ! -s conftest.err
26059 } && test -s conftest.$ac_objext; then
26060 ac_lo=$ac_mid; break
26062 $as_echo "$as_me: failed program was:" >&5
26063 sed 's/^/| /' conftest.$ac_ext >&5
26065 ac_hi=`expr '(' $ac_mid ')' - 1`
26066 if test $ac_mid -le $ac_hi; then
26070 ac_mid=`expr 2 '*' $ac_mid`
26073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26076 $as_echo "$as_me: failed program was:" >&5
26077 sed 's/^/| /' conftest.$ac_ext >&5
26082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26086 # Binary search between lo and hi bounds.
26087 while test "x$ac_lo" != "x$ac_hi"; do
26088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26089 cat >conftest.$ac_ext <<_ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h. */
26095 $ac_includes_default
26097 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26099 typedef struct { char x; int y; } ac__type_alignof_;
26103 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26110 rm -f conftest.$ac_objext
26111 if { (ac_try="$ac_compile"
26112 case "(($ac_try" in
26113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26114 *) ac_try_echo=$ac_try;;
26116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26117 $as_echo "$ac_try_echo") >&5
26118 (eval "$ac_compile") 2>conftest.er1
26120 grep -v '^ *+' conftest.er1 >conftest.err
26122 cat conftest.err >&5
26123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); } && {
26125 test -z "$ac_c_werror_flag" ||
26126 test ! -s conftest.err
26127 } && test -s conftest.$ac_objext; then
26130 $as_echo "$as_me: failed program was:" >&5
26131 sed 's/^/| /' conftest.$ac_ext >&5
26133 ac_lo=`expr '(' $ac_mid ')' + 1`
26136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26139 ?*) ac_cv_alignof_int=$ac_lo;;
26140 '') if test "$ac_cv_type_int" = yes; then
26141 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26143 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26144 See \`config.log' for more details." >&5
26145 $as_echo "$as_me: error: cannot compute alignment of int
26146 See \`config.log' for more details." >&2;}
26147 { (exit 77); exit 77; }; }; }
26149 ac_cv_alignof_int=0
26153 cat >conftest.$ac_ext <<_ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h. */
26159 $ac_includes_default
26161 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26163 typedef struct { char x; int y; } ac__type_alignof_;
26164 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26165 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26167 #include <stdlib.h>
26172 FILE *f = fopen ("conftest.val", "w");
26175 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26177 long int i = longval ();
26178 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26180 fprintf (f, "%ld", i);
26184 unsigned long int i = ulongval ();
26185 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26187 fprintf (f, "%lu", i);
26189 /* Do not output a trailing newline, as this causes \r\n confusion
26190 on some platforms. */
26191 return ferror (f) || fclose (f) != 0;
26197 rm -f conftest$ac_exeext
26198 if { (ac_try="$ac_link"
26199 case "(($ac_try" in
26200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26201 *) ac_try_echo=$ac_try;;
26203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26204 $as_echo "$ac_try_echo") >&5
26205 (eval "$ac_link") 2>&5
26207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26209 { (case "(($ac_try" in
26210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26211 *) ac_try_echo=$ac_try;;
26213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26214 $as_echo "$ac_try_echo") >&5
26215 (eval "$ac_try") 2>&5
26217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); }; }; then
26219 ac_cv_alignof_int=`cat conftest.val`
26221 $as_echo "$as_me: program exited with status $ac_status" >&5
26222 $as_echo "$as_me: failed program was:" >&5
26223 sed 's/^/| /' conftest.$ac_ext >&5
26225 ( exit $ac_status )
26226 if test "$ac_cv_type_int" = yes; then
26227 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26229 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26230 See \`config.log' for more details." >&5
26231 $as_echo "$as_me: error: cannot compute alignment of int
26232 See \`config.log' for more details." >&2;}
26233 { (exit 77); exit 77; }; }; }
26235 ac_cv_alignof_int=0
26238 rm -rf conftest.dSYM
26239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26243 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26244 $as_echo "$ac_cv_alignof_int" >&6; }
26248 cat >>confdefs.h <<_ACEOF
26249 #define ALIGNOF_INT $ac_cv_alignof_int
26253 # The cast to long int works around a bug in the HP C Compiler,
26254 # see AC_CHECK_SIZEOF for more information.
26255 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26256 $as_echo_n "checking alignment of long... " >&6; }
26257 if test "${ac_cv_alignof_long+set}" = set; then
26258 $as_echo_n "(cached) " >&6
26260 if test "$cross_compiling" = yes; then
26261 # Depending upon the size, compute the lo and hi bounds.
26262 cat >conftest.$ac_ext <<_ACEOF
26265 cat confdefs.h >>conftest.$ac_ext
26266 cat >>conftest.$ac_ext <<_ACEOF
26267 /* end confdefs.h. */
26268 $ac_includes_default
26270 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26272 typedef struct { char x; long y; } ac__type_alignof_;
26276 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26283 rm -f conftest.$ac_objext
26284 if { (ac_try="$ac_compile"
26285 case "(($ac_try" in
26286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26287 *) ac_try_echo=$ac_try;;
26289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26290 $as_echo "$ac_try_echo") >&5
26291 (eval "$ac_compile") 2>conftest.er1
26293 grep -v '^ *+' conftest.er1 >conftest.err
26295 cat conftest.err >&5
26296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); } && {
26298 test -z "$ac_c_werror_flag" ||
26299 test ! -s conftest.err
26300 } && test -s conftest.$ac_objext; then
26303 cat >conftest.$ac_ext <<_ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h. */
26309 $ac_includes_default
26311 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26313 typedef struct { char x; long y; } ac__type_alignof_;
26317 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26324 rm -f conftest.$ac_objext
26325 if { (ac_try="$ac_compile"
26326 case "(($ac_try" in
26327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328 *) ac_try_echo=$ac_try;;
26330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26331 $as_echo "$ac_try_echo") >&5
26332 (eval "$ac_compile") 2>conftest.er1
26334 grep -v '^ *+' conftest.er1 >conftest.err
26336 cat conftest.err >&5
26337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); } && {
26339 test -z "$ac_c_werror_flag" ||
26340 test ! -s conftest.err
26341 } && test -s conftest.$ac_objext; then
26342 ac_hi=$ac_mid; break
26344 $as_echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26347 ac_lo=`expr $ac_mid + 1`
26348 if test $ac_lo -le $ac_mid; then
26352 ac_mid=`expr 2 '*' $ac_mid + 1`
26355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26358 $as_echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26361 cat >conftest.$ac_ext <<_ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h. */
26367 $ac_includes_default
26369 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26371 typedef struct { char x; long y; } ac__type_alignof_;
26375 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26382 rm -f conftest.$ac_objext
26383 if { (ac_try="$ac_compile"
26384 case "(($ac_try" in
26385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26386 *) ac_try_echo=$ac_try;;
26388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26389 $as_echo "$ac_try_echo") >&5
26390 (eval "$ac_compile") 2>conftest.er1
26392 grep -v '^ *+' conftest.er1 >conftest.err
26394 cat conftest.err >&5
26395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); } && {
26397 test -z "$ac_c_werror_flag" ||
26398 test ! -s conftest.err
26399 } && test -s conftest.$ac_objext; then
26402 cat >conftest.$ac_ext <<_ACEOF
26405 cat confdefs.h >>conftest.$ac_ext
26406 cat >>conftest.$ac_ext <<_ACEOF
26407 /* end confdefs.h. */
26408 $ac_includes_default
26410 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26412 typedef struct { char x; long y; } ac__type_alignof_;
26416 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26423 rm -f conftest.$ac_objext
26424 if { (ac_try="$ac_compile"
26425 case "(($ac_try" in
26426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26427 *) ac_try_echo=$ac_try;;
26429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26430 $as_echo "$ac_try_echo") >&5
26431 (eval "$ac_compile") 2>conftest.er1
26433 grep -v '^ *+' conftest.er1 >conftest.err
26435 cat conftest.err >&5
26436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); } && {
26438 test -z "$ac_c_werror_flag" ||
26439 test ! -s conftest.err
26440 } && test -s conftest.$ac_objext; then
26441 ac_lo=$ac_mid; break
26443 $as_echo "$as_me: failed program was:" >&5
26444 sed 's/^/| /' conftest.$ac_ext >&5
26446 ac_hi=`expr '(' $ac_mid ')' - 1`
26447 if test $ac_mid -le $ac_hi; then
26451 ac_mid=`expr 2 '*' $ac_mid`
26454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26457 $as_echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26467 # Binary search between lo and hi bounds.
26468 while test "x$ac_lo" != "x$ac_hi"; do
26469 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26470 cat >conftest.$ac_ext <<_ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h. */
26476 $ac_includes_default
26478 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26480 typedef struct { char x; long y; } ac__type_alignof_;
26484 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26491 rm -f conftest.$ac_objext
26492 if { (ac_try="$ac_compile"
26493 case "(($ac_try" in
26494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26495 *) ac_try_echo=$ac_try;;
26497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26498 $as_echo "$ac_try_echo") >&5
26499 (eval "$ac_compile") 2>conftest.er1
26501 grep -v '^ *+' conftest.er1 >conftest.err
26503 cat conftest.err >&5
26504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } && {
26506 test -z "$ac_c_werror_flag" ||
26507 test ! -s conftest.err
26508 } && test -s conftest.$ac_objext; then
26511 $as_echo "$as_me: failed program was:" >&5
26512 sed 's/^/| /' conftest.$ac_ext >&5
26514 ac_lo=`expr '(' $ac_mid ')' + 1`
26517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26520 ?*) ac_cv_alignof_long=$ac_lo;;
26521 '') if test "$ac_cv_type_long" = yes; then
26522 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26524 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26525 See \`config.log' for more details." >&5
26526 $as_echo "$as_me: error: cannot compute alignment of long
26527 See \`config.log' for more details." >&2;}
26528 { (exit 77); exit 77; }; }; }
26530 ac_cv_alignof_long=0
26534 cat >conftest.$ac_ext <<_ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h. */
26540 $ac_includes_default
26542 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26544 typedef struct { char x; long y; } ac__type_alignof_;
26545 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26546 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26548 #include <stdlib.h>
26553 FILE *f = fopen ("conftest.val", "w");
26556 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26558 long int i = longval ();
26559 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26561 fprintf (f, "%ld", i);
26565 unsigned long int i = ulongval ();
26566 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26568 fprintf (f, "%lu", i);
26570 /* Do not output a trailing newline, as this causes \r\n confusion
26571 on some platforms. */
26572 return ferror (f) || fclose (f) != 0;
26578 rm -f conftest$ac_exeext
26579 if { (ac_try="$ac_link"
26580 case "(($ac_try" in
26581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582 *) ac_try_echo=$ac_try;;
26584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26585 $as_echo "$ac_try_echo") >&5
26586 (eval "$ac_link") 2>&5
26588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26590 { (case "(($ac_try" in
26591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592 *) ac_try_echo=$ac_try;;
26594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26595 $as_echo "$ac_try_echo") >&5
26596 (eval "$ac_try") 2>&5
26598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599 (exit $ac_status); }; }; then
26600 ac_cv_alignof_long=`cat conftest.val`
26602 $as_echo "$as_me: program exited with status $ac_status" >&5
26603 $as_echo "$as_me: failed program was:" >&5
26604 sed 's/^/| /' conftest.$ac_ext >&5
26606 ( exit $ac_status )
26607 if test "$ac_cv_type_long" = yes; then
26608 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26610 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26611 See \`config.log' for more details." >&5
26612 $as_echo "$as_me: error: cannot compute alignment of long
26613 See \`config.log' for more details." >&2;}
26614 { (exit 77); exit 77; }; }; }
26616 ac_cv_alignof_long=0
26619 rm -rf conftest.dSYM
26620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26624 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26625 $as_echo "$ac_cv_alignof_long" >&6; }
26629 cat >>confdefs.h <<_ACEOF
26630 #define ALIGNOF_LONG $ac_cv_alignof_long
26634 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26635 # The cast to long int works around a bug in the HP C Compiler,
26636 # see AC_CHECK_SIZEOF for more information.
26637 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26638 $as_echo_n "checking alignment of long long int... " >&6; }
26639 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26640 $as_echo_n "(cached) " >&6
26642 if test "$cross_compiling" = yes; then
26643 # Depending upon the size, compute the lo and hi bounds.
26644 cat >conftest.$ac_ext <<_ACEOF
26647 cat confdefs.h >>conftest.$ac_ext
26648 cat >>conftest.$ac_ext <<_ACEOF
26649 /* end confdefs.h. */
26650 $ac_includes_default
26652 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26654 typedef struct { char x; long long int y; } ac__type_alignof_;
26658 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26665 rm -f conftest.$ac_objext
26666 if { (ac_try="$ac_compile"
26667 case "(($ac_try" in
26668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26669 *) ac_try_echo=$ac_try;;
26671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26672 $as_echo "$ac_try_echo") >&5
26673 (eval "$ac_compile") 2>conftest.er1
26675 grep -v '^ *+' conftest.er1 >conftest.err
26677 cat conftest.err >&5
26678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); } && {
26680 test -z "$ac_c_werror_flag" ||
26681 test ! -s conftest.err
26682 } && test -s conftest.$ac_objext; then
26685 cat >conftest.$ac_ext <<_ACEOF
26688 cat confdefs.h >>conftest.$ac_ext
26689 cat >>conftest.$ac_ext <<_ACEOF
26690 /* end confdefs.h. */
26691 $ac_includes_default
26693 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26695 typedef struct { char x; long long int y; } ac__type_alignof_;
26699 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26706 rm -f conftest.$ac_objext
26707 if { (ac_try="$ac_compile"
26708 case "(($ac_try" in
26709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26710 *) ac_try_echo=$ac_try;;
26712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26713 $as_echo "$ac_try_echo") >&5
26714 (eval "$ac_compile") 2>conftest.er1
26716 grep -v '^ *+' conftest.er1 >conftest.err
26718 cat conftest.err >&5
26719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720 (exit $ac_status); } && {
26721 test -z "$ac_c_werror_flag" ||
26722 test ! -s conftest.err
26723 } && test -s conftest.$ac_objext; then
26724 ac_hi=$ac_mid; break
26726 $as_echo "$as_me: failed program was:" >&5
26727 sed 's/^/| /' conftest.$ac_ext >&5
26729 ac_lo=`expr $ac_mid + 1`
26730 if test $ac_lo -le $ac_mid; then
26734 ac_mid=`expr 2 '*' $ac_mid + 1`
26737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26740 $as_echo "$as_me: failed program was:" >&5
26741 sed 's/^/| /' conftest.$ac_ext >&5
26743 cat >conftest.$ac_ext <<_ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h. */
26749 $ac_includes_default
26751 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26753 typedef struct { char x; long long int y; } ac__type_alignof_;
26757 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26764 rm -f conftest.$ac_objext
26765 if { (ac_try="$ac_compile"
26766 case "(($ac_try" in
26767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26768 *) ac_try_echo=$ac_try;;
26770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26771 $as_echo "$ac_try_echo") >&5
26772 (eval "$ac_compile") 2>conftest.er1
26774 grep -v '^ *+' conftest.er1 >conftest.err
26776 cat conftest.err >&5
26777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778 (exit $ac_status); } && {
26779 test -z "$ac_c_werror_flag" ||
26780 test ! -s conftest.err
26781 } && test -s conftest.$ac_objext; then
26784 cat >conftest.$ac_ext <<_ACEOF
26787 cat confdefs.h >>conftest.$ac_ext
26788 cat >>conftest.$ac_ext <<_ACEOF
26789 /* end confdefs.h. */
26790 $ac_includes_default
26792 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26794 typedef struct { char x; long long int y; } ac__type_alignof_;
26798 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26805 rm -f conftest.$ac_objext
26806 if { (ac_try="$ac_compile"
26807 case "(($ac_try" in
26808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809 *) ac_try_echo=$ac_try;;
26811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26812 $as_echo "$ac_try_echo") >&5
26813 (eval "$ac_compile") 2>conftest.er1
26815 grep -v '^ *+' conftest.er1 >conftest.err
26817 cat conftest.err >&5
26818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); } && {
26820 test -z "$ac_c_werror_flag" ||
26821 test ! -s conftest.err
26822 } && test -s conftest.$ac_objext; then
26823 ac_lo=$ac_mid; break
26825 $as_echo "$as_me: failed program was:" >&5
26826 sed 's/^/| /' conftest.$ac_ext >&5
26828 ac_hi=`expr '(' $ac_mid ')' - 1`
26829 if test $ac_mid -le $ac_hi; then
26833 ac_mid=`expr 2 '*' $ac_mid`
26836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26839 $as_echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26849 # Binary search between lo and hi bounds.
26850 while test "x$ac_lo" != "x$ac_hi"; do
26851 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26852 cat >conftest.$ac_ext <<_ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h. */
26858 $ac_includes_default
26860 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26862 typedef struct { char x; long long int y; } ac__type_alignof_;
26866 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26873 rm -f conftest.$ac_objext
26874 if { (ac_try="$ac_compile"
26875 case "(($ac_try" in
26876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26877 *) ac_try_echo=$ac_try;;
26879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26880 $as_echo "$ac_try_echo") >&5
26881 (eval "$ac_compile") 2>conftest.er1
26883 grep -v '^ *+' conftest.er1 >conftest.err
26885 cat conftest.err >&5
26886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); } && {
26888 test -z "$ac_c_werror_flag" ||
26889 test ! -s conftest.err
26890 } && test -s conftest.$ac_objext; then
26893 $as_echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26896 ac_lo=`expr '(' $ac_mid ')' + 1`
26899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26902 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26903 '') if test "$ac_cv_type_long_long_int" = yes; then
26904 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26906 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26907 See \`config.log' for more details." >&5
26908 $as_echo "$as_me: error: cannot compute alignment of long long int
26909 See \`config.log' for more details." >&2;}
26910 { (exit 77); exit 77; }; }; }
26912 ac_cv_alignof_long_long_int=0
26916 cat >conftest.$ac_ext <<_ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26922 $ac_includes_default
26924 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26926 typedef struct { char x; long long int y; } ac__type_alignof_;
26927 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26928 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26930 #include <stdlib.h>
26935 FILE *f = fopen ("conftest.val", "w");
26938 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26940 long int i = longval ();
26941 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26943 fprintf (f, "%ld", i);
26947 unsigned long int i = ulongval ();
26948 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26950 fprintf (f, "%lu", i);
26952 /* Do not output a trailing newline, as this causes \r\n confusion
26953 on some platforms. */
26954 return ferror (f) || fclose (f) != 0;
26960 rm -f conftest$ac_exeext
26961 if { (ac_try="$ac_link"
26962 case "(($ac_try" in
26963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26964 *) ac_try_echo=$ac_try;;
26966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26967 $as_echo "$ac_try_echo") >&5
26968 (eval "$ac_link") 2>&5
26970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26972 { (case "(($ac_try" in
26973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26974 *) ac_try_echo=$ac_try;;
26976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26977 $as_echo "$ac_try_echo") >&5
26978 (eval "$ac_try") 2>&5
26980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); }; }; then
26982 ac_cv_alignof_long_long_int=`cat conftest.val`
26984 $as_echo "$as_me: program exited with status $ac_status" >&5
26985 $as_echo "$as_me: failed program was:" >&5
26986 sed 's/^/| /' conftest.$ac_ext >&5
26988 ( exit $ac_status )
26989 if test "$ac_cv_type_long_long_int" = yes; then
26990 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26992 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26993 See \`config.log' for more details." >&5
26994 $as_echo "$as_me: error: cannot compute alignment of long long int
26995 See \`config.log' for more details." >&2;}
26996 { (exit 77); exit 77; }; }; }
26998 ac_cv_alignof_long_long_int=0
27001 rm -rf conftest.dSYM
27002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27006 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27007 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27011 cat >>confdefs.h <<_ACEOF
27012 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27017 # The cast to long int works around a bug in the HP C Compiler,
27018 # see AC_CHECK_SIZEOF for more information.
27019 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27020 $as_echo_n "checking alignment of double... " >&6; }
27021 if test "${ac_cv_alignof_double+set}" = set; then
27022 $as_echo_n "(cached) " >&6
27024 if test "$cross_compiling" = yes; then
27025 # Depending upon the size, compute the lo and hi bounds.
27026 cat >conftest.$ac_ext <<_ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h. */
27032 $ac_includes_default
27034 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27036 typedef struct { char x; double y; } ac__type_alignof_;
27040 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27047 rm -f conftest.$ac_objext
27048 if { (ac_try="$ac_compile"
27049 case "(($ac_try" in
27050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051 *) ac_try_echo=$ac_try;;
27053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27054 $as_echo "$ac_try_echo") >&5
27055 (eval "$ac_compile") 2>conftest.er1
27057 grep -v '^ *+' conftest.er1 >conftest.err
27059 cat conftest.err >&5
27060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); } && {
27062 test -z "$ac_c_werror_flag" ||
27063 test ! -s conftest.err
27064 } && test -s conftest.$ac_objext; then
27067 cat >conftest.$ac_ext <<_ACEOF
27070 cat confdefs.h >>conftest.$ac_ext
27071 cat >>conftest.$ac_ext <<_ACEOF
27072 /* end confdefs.h. */
27073 $ac_includes_default
27075 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27077 typedef struct { char x; double y; } ac__type_alignof_;
27081 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27088 rm -f conftest.$ac_objext
27089 if { (ac_try="$ac_compile"
27090 case "(($ac_try" in
27091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27092 *) ac_try_echo=$ac_try;;
27094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27095 $as_echo "$ac_try_echo") >&5
27096 (eval "$ac_compile") 2>conftest.er1
27098 grep -v '^ *+' conftest.er1 >conftest.err
27100 cat conftest.err >&5
27101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); } && {
27103 test -z "$ac_c_werror_flag" ||
27104 test ! -s conftest.err
27105 } && test -s conftest.$ac_objext; then
27106 ac_hi=$ac_mid; break
27108 $as_echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27111 ac_lo=`expr $ac_mid + 1`
27112 if test $ac_lo -le $ac_mid; then
27116 ac_mid=`expr 2 '*' $ac_mid + 1`
27119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27122 $as_echo "$as_me: failed program was:" >&5
27123 sed 's/^/| /' conftest.$ac_ext >&5
27125 cat >conftest.$ac_ext <<_ACEOF
27128 cat confdefs.h >>conftest.$ac_ext
27129 cat >>conftest.$ac_ext <<_ACEOF
27130 /* end confdefs.h. */
27131 $ac_includes_default
27133 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27135 typedef struct { char x; double y; } ac__type_alignof_;
27139 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27146 rm -f conftest.$ac_objext
27147 if { (ac_try="$ac_compile"
27148 case "(($ac_try" in
27149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27150 *) ac_try_echo=$ac_try;;
27152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27153 $as_echo "$ac_try_echo") >&5
27154 (eval "$ac_compile") 2>conftest.er1
27156 grep -v '^ *+' conftest.er1 >conftest.err
27158 cat conftest.err >&5
27159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); } && {
27161 test -z "$ac_c_werror_flag" ||
27162 test ! -s conftest.err
27163 } && test -s conftest.$ac_objext; then
27166 cat >conftest.$ac_ext <<_ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h. */
27172 $ac_includes_default
27174 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27176 typedef struct { char x; double y; } ac__type_alignof_;
27180 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27187 rm -f conftest.$ac_objext
27188 if { (ac_try="$ac_compile"
27189 case "(($ac_try" in
27190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27191 *) ac_try_echo=$ac_try;;
27193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27194 $as_echo "$ac_try_echo") >&5
27195 (eval "$ac_compile") 2>conftest.er1
27197 grep -v '^ *+' conftest.er1 >conftest.err
27199 cat conftest.err >&5
27200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); } && {
27202 test -z "$ac_c_werror_flag" ||
27203 test ! -s conftest.err
27204 } && test -s conftest.$ac_objext; then
27205 ac_lo=$ac_mid; break
27207 $as_echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27210 ac_hi=`expr '(' $ac_mid ')' - 1`
27211 if test $ac_mid -le $ac_hi; then
27215 ac_mid=`expr 2 '*' $ac_mid`
27218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27221 $as_echo "$as_me: failed program was:" >&5
27222 sed 's/^/| /' conftest.$ac_ext >&5
27227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27231 # Binary search between lo and hi bounds.
27232 while test "x$ac_lo" != "x$ac_hi"; do
27233 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27234 cat >conftest.$ac_ext <<_ACEOF
27237 cat confdefs.h >>conftest.$ac_ext
27238 cat >>conftest.$ac_ext <<_ACEOF
27239 /* end confdefs.h. */
27240 $ac_includes_default
27242 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27244 typedef struct { char x; double y; } ac__type_alignof_;
27248 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27255 rm -f conftest.$ac_objext
27256 if { (ac_try="$ac_compile"
27257 case "(($ac_try" in
27258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27259 *) ac_try_echo=$ac_try;;
27261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27262 $as_echo "$ac_try_echo") >&5
27263 (eval "$ac_compile") 2>conftest.er1
27265 grep -v '^ *+' conftest.er1 >conftest.err
27267 cat conftest.err >&5
27268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); } && {
27270 test -z "$ac_c_werror_flag" ||
27271 test ! -s conftest.err
27272 } && test -s conftest.$ac_objext; then
27275 $as_echo "$as_me: failed program was:" >&5
27276 sed 's/^/| /' conftest.$ac_ext >&5
27278 ac_lo=`expr '(' $ac_mid ')' + 1`
27281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27284 ?*) ac_cv_alignof_double=$ac_lo;;
27285 '') if test "$ac_cv_type_double" = yes; then
27286 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27288 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27289 See \`config.log' for more details." >&5
27290 $as_echo "$as_me: error: cannot compute alignment of double
27291 See \`config.log' for more details." >&2;}
27292 { (exit 77); exit 77; }; }; }
27294 ac_cv_alignof_double=0
27298 cat >conftest.$ac_ext <<_ACEOF
27301 cat confdefs.h >>conftest.$ac_ext
27302 cat >>conftest.$ac_ext <<_ACEOF
27303 /* end confdefs.h. */
27304 $ac_includes_default
27306 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27308 typedef struct { char x; double y; } ac__type_alignof_;
27309 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27310 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27312 #include <stdlib.h>
27317 FILE *f = fopen ("conftest.val", "w");
27320 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27322 long int i = longval ();
27323 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27325 fprintf (f, "%ld", i);
27329 unsigned long int i = ulongval ();
27330 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27332 fprintf (f, "%lu", i);
27334 /* Do not output a trailing newline, as this causes \r\n confusion
27335 on some platforms. */
27336 return ferror (f) || fclose (f) != 0;
27342 rm -f conftest$ac_exeext
27343 if { (ac_try="$ac_link"
27344 case "(($ac_try" in
27345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346 *) ac_try_echo=$ac_try;;
27348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27349 $as_echo "$ac_try_echo") >&5
27350 (eval "$ac_link") 2>&5
27352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27354 { (case "(($ac_try" in
27355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27356 *) ac_try_echo=$ac_try;;
27358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27359 $as_echo "$ac_try_echo") >&5
27360 (eval "$ac_try") 2>&5
27362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); }; }; then
27364 ac_cv_alignof_double=`cat conftest.val`
27366 $as_echo "$as_me: program exited with status $ac_status" >&5
27367 $as_echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27370 ( exit $ac_status )
27371 if test "$ac_cv_type_double" = yes; then
27372 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27374 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27375 See \`config.log' for more details." >&5
27376 $as_echo "$as_me: error: cannot compute alignment of double
27377 See \`config.log' for more details." >&2;}
27378 { (exit 77); exit 77; }; }; }
27380 ac_cv_alignof_double=0
27383 rm -rf conftest.dSYM
27384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27388 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27389 $as_echo "$ac_cv_alignof_double" >&6; }
27393 cat >>confdefs.h <<_ACEOF
27394 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27399 # Compute maximum alignment of any basic type.
27400 # We assume long's alignment is at least as strong as char, short, or int;
27401 # but we must check long long (if it exists) and double.
27403 MAX_ALIGNOF=$ac_cv_alignof_long
27404 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27405 MAX_ALIGNOF=$ac_cv_alignof_double
27407 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27408 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27411 cat >>confdefs.h <<_ACEOF
27412 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27417 # Some platforms predefine the types int8, int16, etc. Only check
27418 # a (hopefully) representative subset.
27419 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27420 $as_echo_n "checking for int8... " >&6; }
27421 if test "${ac_cv_type_int8+set}" = set; then
27422 $as_echo_n "(cached) " >&6
27425 cat >conftest.$ac_ext <<_ACEOF
27428 cat confdefs.h >>conftest.$ac_ext
27429 cat >>conftest.$ac_ext <<_ACEOF
27430 /* end confdefs.h. */
27432 #ifdef HAVE_SUPPORTDEFS_H
27433 #include <SupportDefs.h>
27445 rm -f conftest.$ac_objext
27446 if { (ac_try="$ac_compile"
27447 case "(($ac_try" in
27448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27449 *) ac_try_echo=$ac_try;;
27451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27452 $as_echo "$ac_try_echo") >&5
27453 (eval "$ac_compile") 2>conftest.er1
27455 grep -v '^ *+' conftest.er1 >conftest.err
27457 cat conftest.err >&5
27458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); } && {
27460 test -z "$ac_c_werror_flag" ||
27461 test ! -s conftest.err
27462 } && test -s conftest.$ac_objext; then
27463 cat >conftest.$ac_ext <<_ACEOF
27466 cat confdefs.h >>conftest.$ac_ext
27467 cat >>conftest.$ac_ext <<_ACEOF
27468 /* end confdefs.h. */
27470 #ifdef HAVE_SUPPORTDEFS_H
27471 #include <SupportDefs.h>
27477 if (sizeof ((int8)))
27483 rm -f conftest.$ac_objext
27484 if { (ac_try="$ac_compile"
27485 case "(($ac_try" in
27486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27487 *) ac_try_echo=$ac_try;;
27489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27490 $as_echo "$ac_try_echo") >&5
27491 (eval "$ac_compile") 2>conftest.er1
27493 grep -v '^ *+' conftest.er1 >conftest.err
27495 cat conftest.err >&5
27496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); } && {
27498 test -z "$ac_c_werror_flag" ||
27499 test ! -s conftest.err
27500 } && test -s conftest.$ac_objext; then
27503 $as_echo "$as_me: failed program was:" >&5
27504 sed 's/^/| /' conftest.$ac_ext >&5
27506 ac_cv_type_int8=yes
27509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27511 $as_echo "$as_me: failed program was:" >&5
27512 sed 's/^/| /' conftest.$ac_ext >&5
27517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27519 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27520 $as_echo "$ac_cv_type_int8" >&6; }
27521 if test "x$ac_cv_type_int8" = x""yes; then
27523 cat >>confdefs.h <<_ACEOF
27524 #define HAVE_INT8 1
27529 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27530 $as_echo_n "checking for uint8... " >&6; }
27531 if test "${ac_cv_type_uint8+set}" = set; then
27532 $as_echo_n "(cached) " >&6
27534 ac_cv_type_uint8=no
27535 cat >conftest.$ac_ext <<_ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h. */
27542 #ifdef HAVE_SUPPORTDEFS_H
27543 #include <SupportDefs.h>
27549 if (sizeof (uint8))
27555 rm -f conftest.$ac_objext
27556 if { (ac_try="$ac_compile"
27557 case "(($ac_try" in
27558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27559 *) ac_try_echo=$ac_try;;
27561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27562 $as_echo "$ac_try_echo") >&5
27563 (eval "$ac_compile") 2>conftest.er1
27565 grep -v '^ *+' conftest.er1 >conftest.err
27567 cat conftest.err >&5
27568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); } && {
27570 test -z "$ac_c_werror_flag" ||
27571 test ! -s conftest.err
27572 } && test -s conftest.$ac_objext; then
27573 cat >conftest.$ac_ext <<_ACEOF
27576 cat confdefs.h >>conftest.$ac_ext
27577 cat >>conftest.$ac_ext <<_ACEOF
27578 /* end confdefs.h. */
27580 #ifdef HAVE_SUPPORTDEFS_H
27581 #include <SupportDefs.h>
27587 if (sizeof ((uint8)))
27593 rm -f conftest.$ac_objext
27594 if { (ac_try="$ac_compile"
27595 case "(($ac_try" in
27596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27597 *) ac_try_echo=$ac_try;;
27599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27600 $as_echo "$ac_try_echo") >&5
27601 (eval "$ac_compile") 2>conftest.er1
27603 grep -v '^ *+' conftest.er1 >conftest.err
27605 cat conftest.err >&5
27606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); } && {
27608 test -z "$ac_c_werror_flag" ||
27609 test ! -s conftest.err
27610 } && test -s conftest.$ac_objext; then
27613 $as_echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27616 ac_cv_type_uint8=yes
27619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27621 $as_echo "$as_me: failed program was:" >&5
27622 sed 's/^/| /' conftest.$ac_ext >&5
27627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27629 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27630 $as_echo "$ac_cv_type_uint8" >&6; }
27631 if test "x$ac_cv_type_uint8" = x""yes; then
27633 cat >>confdefs.h <<_ACEOF
27634 #define HAVE_UINT8 1
27639 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27640 $as_echo_n "checking for int64... " >&6; }
27641 if test "${ac_cv_type_int64+set}" = set; then
27642 $as_echo_n "(cached) " >&6
27644 ac_cv_type_int64=no
27645 cat >conftest.$ac_ext <<_ACEOF
27648 cat confdefs.h >>conftest.$ac_ext
27649 cat >>conftest.$ac_ext <<_ACEOF
27650 /* end confdefs.h. */
27652 #ifdef HAVE_SUPPORTDEFS_H
27653 #include <SupportDefs.h>
27659 if (sizeof (int64))
27665 rm -f conftest.$ac_objext
27666 if { (ac_try="$ac_compile"
27667 case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27672 $as_echo "$ac_try_echo") >&5
27673 (eval "$ac_compile") 2>conftest.er1
27675 grep -v '^ *+' conftest.er1 >conftest.err
27677 cat conftest.err >&5
27678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); } && {
27680 test -z "$ac_c_werror_flag" ||
27681 test ! -s conftest.err
27682 } && test -s conftest.$ac_objext; then
27683 cat >conftest.$ac_ext <<_ACEOF
27686 cat confdefs.h >>conftest.$ac_ext
27687 cat >>conftest.$ac_ext <<_ACEOF
27688 /* end confdefs.h. */
27690 #ifdef HAVE_SUPPORTDEFS_H
27691 #include <SupportDefs.h>
27697 if (sizeof ((int64)))
27703 rm -f conftest.$ac_objext
27704 if { (ac_try="$ac_compile"
27705 case "(($ac_try" in
27706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27707 *) ac_try_echo=$ac_try;;
27709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27710 $as_echo "$ac_try_echo") >&5
27711 (eval "$ac_compile") 2>conftest.er1
27713 grep -v '^ *+' conftest.er1 >conftest.err
27715 cat conftest.err >&5
27716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); } && {
27718 test -z "$ac_c_werror_flag" ||
27719 test ! -s conftest.err
27720 } && test -s conftest.$ac_objext; then
27723 $as_echo "$as_me: failed program was:" >&5
27724 sed 's/^/| /' conftest.$ac_ext >&5
27726 ac_cv_type_int64=yes
27729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27731 $as_echo "$as_me: failed program was:" >&5
27732 sed 's/^/| /' conftest.$ac_ext >&5
27737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27739 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27740 $as_echo "$ac_cv_type_int64" >&6; }
27741 if test "x$ac_cv_type_int64" = x""yes; then
27743 cat >>confdefs.h <<_ACEOF
27744 #define HAVE_INT64 1
27749 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27750 $as_echo_n "checking for uint64... " >&6; }
27751 if test "${ac_cv_type_uint64+set}" = set; then
27752 $as_echo_n "(cached) " >&6
27754 ac_cv_type_uint64=no
27755 cat >conftest.$ac_ext <<_ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h. */
27762 #ifdef HAVE_SUPPORTDEFS_H
27763 #include <SupportDefs.h>
27769 if (sizeof (uint64))
27775 rm -f conftest.$ac_objext
27776 if { (ac_try="$ac_compile"
27777 case "(($ac_try" in
27778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27779 *) ac_try_echo=$ac_try;;
27781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27782 $as_echo "$ac_try_echo") >&5
27783 (eval "$ac_compile") 2>conftest.er1
27785 grep -v '^ *+' conftest.er1 >conftest.err
27787 cat conftest.err >&5
27788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); } && {
27790 test -z "$ac_c_werror_flag" ||
27791 test ! -s conftest.err
27792 } && test -s conftest.$ac_objext; then
27793 cat >conftest.$ac_ext <<_ACEOF
27796 cat confdefs.h >>conftest.$ac_ext
27797 cat >>conftest.$ac_ext <<_ACEOF
27798 /* end confdefs.h. */
27800 #ifdef HAVE_SUPPORTDEFS_H
27801 #include <SupportDefs.h>
27807 if (sizeof ((uint64)))
27813 rm -f conftest.$ac_objext
27814 if { (ac_try="$ac_compile"
27815 case "(($ac_try" in
27816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27817 *) ac_try_echo=$ac_try;;
27819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27820 $as_echo "$ac_try_echo") >&5
27821 (eval "$ac_compile") 2>conftest.er1
27823 grep -v '^ *+' conftest.er1 >conftest.err
27825 cat conftest.err >&5
27826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); } && {
27828 test -z "$ac_c_werror_flag" ||
27829 test ! -s conftest.err
27830 } && test -s conftest.$ac_objext; then
27833 $as_echo "$as_me: failed program was:" >&5
27834 sed 's/^/| /' conftest.$ac_ext >&5
27836 ac_cv_type_uint64=yes
27839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27841 $as_echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27849 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27850 $as_echo "$ac_cv_type_uint64" >&6; }
27851 if test "x$ac_cv_type_uint64" = x""yes; then
27853 cat >>confdefs.h <<_ACEOF
27854 #define HAVE_UINT64 1
27861 # We also check for sig_atomic_t, which *should* be defined per ANSI
27862 # C, but is missing on some old platforms.
27863 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27864 $as_echo_n "checking for sig_atomic_t... " >&6; }
27865 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27866 $as_echo_n "(cached) " >&6
27868 ac_cv_type_sig_atomic_t=no
27869 cat >conftest.$ac_ext <<_ACEOF
27872 cat confdefs.h >>conftest.$ac_ext
27873 cat >>conftest.$ac_ext <<_ACEOF
27874 /* end confdefs.h. */
27875 #include <signal.h>
27880 if (sizeof (sig_atomic_t))
27886 rm -f conftest.$ac_objext
27887 if { (ac_try="$ac_compile"
27888 case "(($ac_try" in
27889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890 *) ac_try_echo=$ac_try;;
27892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27893 $as_echo "$ac_try_echo") >&5
27894 (eval "$ac_compile") 2>conftest.er1
27896 grep -v '^ *+' conftest.er1 >conftest.err
27898 cat conftest.err >&5
27899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); } && {
27901 test -z "$ac_c_werror_flag" ||
27902 test ! -s conftest.err
27903 } && test -s conftest.$ac_objext; then
27904 cat >conftest.$ac_ext <<_ACEOF
27907 cat confdefs.h >>conftest.$ac_ext
27908 cat >>conftest.$ac_ext <<_ACEOF
27909 /* end confdefs.h. */
27910 #include <signal.h>
27915 if (sizeof ((sig_atomic_t)))
27921 rm -f conftest.$ac_objext
27922 if { (ac_try="$ac_compile"
27923 case "(($ac_try" in
27924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925 *) ac_try_echo=$ac_try;;
27927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27928 $as_echo "$ac_try_echo") >&5
27929 (eval "$ac_compile") 2>conftest.er1
27931 grep -v '^ *+' conftest.er1 >conftest.err
27933 cat conftest.err >&5
27934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935 (exit $ac_status); } && {
27936 test -z "$ac_c_werror_flag" ||
27937 test ! -s conftest.err
27938 } && test -s conftest.$ac_objext; then
27941 $as_echo "$as_me: failed program was:" >&5
27942 sed 's/^/| /' conftest.$ac_ext >&5
27944 ac_cv_type_sig_atomic_t=yes
27947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27949 $as_echo "$as_me: failed program was:" >&5
27950 sed 's/^/| /' conftest.$ac_ext >&5
27955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27957 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27958 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
27959 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
27961 cat >>confdefs.h <<_ACEOF
27962 #define HAVE_SIG_ATOMIC_T 1
27970 if test "$PORTNAME" != "win32"
27972 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
27973 $as_echo_n "checking for POSIX signal interface... " >&6; }
27974 if test "${pgac_cv_func_posix_signals+set}" = set; then
27975 $as_echo_n "(cached) " >&6
27977 cat >conftest.$ac_ext <<_ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h. */
27983 #include <signal.h>
27988 struct sigaction act, oact;
27989 sigemptyset(&act.sa_mask);
27990 act.sa_flags = SA_RESTART;
27991 sigaction(0, &act, &oact);
27996 rm -f conftest.$ac_objext conftest$ac_exeext
27997 if { (ac_try="$ac_link"
27998 case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28003 $as_echo "$ac_try_echo") >&5
28004 (eval "$ac_link") 2>conftest.er1
28006 grep -v '^ *+' conftest.er1 >conftest.err
28008 cat conftest.err >&5
28009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); } && {
28011 test -z "$ac_c_werror_flag" ||
28012 test ! -s conftest.err
28013 } && test -s conftest$ac_exeext && {
28014 test "$cross_compiling" = yes ||
28015 $as_test_x conftest$ac_exeext
28017 pgac_cv_func_posix_signals=yes
28019 $as_echo "$as_me: failed program was:" >&5
28020 sed 's/^/| /' conftest.$ac_ext >&5
28022 pgac_cv_func_posix_signals=no
28025 rm -rf conftest.dSYM
28026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28027 conftest$ac_exeext conftest.$ac_ext
28029 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28030 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28031 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28033 cat >>confdefs.h <<\_ACEOF
28034 #define HAVE_POSIX_SIGNALS /**/
28038 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28040 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28041 { { $as_echo "$as_me:$LINENO: error:
28042 Thread-safety requires POSIX signals, which are not supported by this
28043 operating system; use --disable-thread-safety to disable thread safety." >&5
28044 $as_echo "$as_me: error:
28045 Thread-safety requires POSIX signals, which are not supported by this
28046 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28047 { (exit 1); exit 1; }; }
28051 # SunOS doesn't handle negative byte comparisons properly with +/- return
28052 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28053 $as_echo_n "checking for working memcmp... " >&6; }
28054 if test "${ac_cv_func_memcmp_working+set}" = set; then
28055 $as_echo_n "(cached) " >&6
28057 if test "$cross_compiling" = yes; then
28058 ac_cv_func_memcmp_working=no
28060 cat >conftest.$ac_ext <<_ACEOF
28063 cat confdefs.h >>conftest.$ac_ext
28064 cat >>conftest.$ac_ext <<_ACEOF
28065 /* end confdefs.h. */
28066 $ac_includes_default
28071 /* Some versions of memcmp are not 8-bit clean. */
28072 char c0 = '\100', c1 = '\200', c2 = '\201';
28073 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28076 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28077 or more and with at least one buffer not starting on a 4-byte boundary.
28078 William Lewis provided this test program. */
28083 for (i = 0; i < 4; i++)
28087 strcpy (a, "--------01111111");
28088 strcpy (b, "--------10000000");
28089 if (memcmp (a, b, 16) >= 0)
28099 rm -f conftest$ac_exeext
28100 if { (ac_try="$ac_link"
28101 case "(($ac_try" in
28102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28103 *) ac_try_echo=$ac_try;;
28105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28106 $as_echo "$ac_try_echo") >&5
28107 (eval "$ac_link") 2>&5
28109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28111 { (case "(($ac_try" in
28112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28113 *) ac_try_echo=$ac_try;;
28115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28116 $as_echo "$ac_try_echo") >&5
28117 (eval "$ac_try") 2>&5
28119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); }; }; then
28121 ac_cv_func_memcmp_working=yes
28123 $as_echo "$as_me: program exited with status $ac_status" >&5
28124 $as_echo "$as_me: failed program was:" >&5
28125 sed 's/^/| /' conftest.$ac_ext >&5
28127 ( exit $ac_status )
28128 ac_cv_func_memcmp_working=no
28130 rm -rf conftest.dSYM
28131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28136 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28137 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28138 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28139 *" memcmp.$ac_objext "* ) ;;
28140 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28147 # Select semaphore implementation type.
28148 if test "$PORTNAME" != "win32"; then
28149 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28151 cat >>confdefs.h <<\_ACEOF
28152 #define USE_NAMED_POSIX_SEMAPHORES 1
28155 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28157 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28159 cat >>confdefs.h <<\_ACEOF
28160 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28163 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28166 cat >>confdefs.h <<\_ACEOF
28167 #define USE_SYSV_SEMAPHORES 1
28170 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28175 cat >>confdefs.h <<\_ACEOF
28176 #define USE_WIN32_SEMAPHORES 1
28179 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28183 # Select shared-memory implementation type.
28184 if test "$PORTNAME" != "win32"; then
28186 cat >>confdefs.h <<\_ACEOF
28187 #define USE_SYSV_SHARED_MEMORY 1
28190 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28193 cat >>confdefs.h <<\_ACEOF
28194 #define USE_WIN32_SHARED_MEMORY 1
28197 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28200 # Select latch implementation type.
28201 if test "$PORTNAME" != "win32"; then
28202 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28204 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28207 # If not set in template file, set bytes to use libc memset()
28208 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28209 MEMSET_LOOP_LIMIT=1024
28212 cat >>confdefs.h <<_ACEOF
28213 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28218 if test "$enable_nls" = yes ; then
28220 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28221 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28222 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28223 $as_echo_n "(cached) " >&6
28225 ac_func_search_save_LIBS=$LIBS
28226 cat >conftest.$ac_ext <<_ACEOF
28229 cat confdefs.h >>conftest.$ac_ext
28230 cat >>conftest.$ac_ext <<_ACEOF
28231 /* end confdefs.h. */
28233 /* Override any GCC internal prototype to avoid an error.
28234 Use char because int might match the return type of a GCC
28235 builtin and then its argument prototype would still apply. */
28239 char bind_textdomain_codeset ();
28243 return bind_textdomain_codeset ();
28248 for ac_lib in '' intl; do
28249 if test -z "$ac_lib"; then
28250 ac_res="none required"
28253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28255 rm -f conftest.$ac_objext conftest$ac_exeext
28256 if { (ac_try="$ac_link"
28257 case "(($ac_try" in
28258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28259 *) ac_try_echo=$ac_try;;
28261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28262 $as_echo "$ac_try_echo") >&5
28263 (eval "$ac_link") 2>conftest.er1
28265 grep -v '^ *+' conftest.er1 >conftest.err
28267 cat conftest.err >&5
28268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); } && {
28270 test -z "$ac_c_werror_flag" ||
28271 test ! -s conftest.err
28272 } && test -s conftest$ac_exeext && {
28273 test "$cross_compiling" = yes ||
28274 $as_test_x conftest$ac_exeext
28276 ac_cv_search_bind_textdomain_codeset=$ac_res
28278 $as_echo "$as_me: failed program was:" >&5
28279 sed 's/^/| /' conftest.$ac_ext >&5
28284 rm -rf conftest.dSYM
28285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28287 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28291 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28294 ac_cv_search_bind_textdomain_codeset=no
28296 rm conftest.$ac_ext
28297 LIBS=$ac_func_search_save_LIBS
28299 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28300 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28301 ac_res=$ac_cv_search_bind_textdomain_codeset
28302 if test "$ac_res" != no; then
28303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28306 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28307 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28308 { (exit 1); exit 1; }; }
28311 if test "${ac_cv_header_libintl_h+set}" = set; then
28312 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28313 $as_echo_n "checking for libintl.h... " >&6; }
28314 if test "${ac_cv_header_libintl_h+set}" = set; then
28315 $as_echo_n "(cached) " >&6
28317 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28318 $as_echo "$ac_cv_header_libintl_h" >&6; }
28320 # Is the header compilable?
28321 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28322 $as_echo_n "checking libintl.h usability... " >&6; }
28323 cat >conftest.$ac_ext <<_ACEOF
28326 cat confdefs.h >>conftest.$ac_ext
28327 cat >>conftest.$ac_ext <<_ACEOF
28328 /* end confdefs.h. */
28329 $ac_includes_default
28330 #include <libintl.h>
28332 rm -f conftest.$ac_objext
28333 if { (ac_try="$ac_compile"
28334 case "(($ac_try" in
28335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28336 *) ac_try_echo=$ac_try;;
28338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28339 $as_echo "$ac_try_echo") >&5
28340 (eval "$ac_compile") 2>conftest.er1
28342 grep -v '^ *+' conftest.er1 >conftest.err
28344 cat conftest.err >&5
28345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); } && {
28347 test -z "$ac_c_werror_flag" ||
28348 test ! -s conftest.err
28349 } && test -s conftest.$ac_objext; then
28350 ac_header_compiler=yes
28352 $as_echo "$as_me: failed program was:" >&5
28353 sed 's/^/| /' conftest.$ac_ext >&5
28355 ac_header_compiler=no
28358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28359 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28360 $as_echo "$ac_header_compiler" >&6; }
28362 # Is the header present?
28363 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28364 $as_echo_n "checking libintl.h presence... " >&6; }
28365 cat >conftest.$ac_ext <<_ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h. */
28371 #include <libintl.h>
28373 if { (ac_try="$ac_cpp conftest.$ac_ext"
28374 case "(($ac_try" in
28375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28376 *) ac_try_echo=$ac_try;;
28378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28379 $as_echo "$ac_try_echo") >&5
28380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28382 grep -v '^ *+' conftest.er1 >conftest.err
28384 cat conftest.err >&5
28385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); } >/dev/null && {
28387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28388 test ! -s conftest.err
28390 ac_header_preproc=yes
28392 $as_echo "$as_me: failed program was:" >&5
28393 sed 's/^/| /' conftest.$ac_ext >&5
28395 ac_header_preproc=no
28398 rm -f conftest.err conftest.$ac_ext
28399 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28400 $as_echo "$ac_header_preproc" >&6; }
28402 # So? What about this header?
28403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28405 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28406 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28407 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28408 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28409 ac_header_preproc=yes
28412 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28413 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28414 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28415 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28416 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28417 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28418 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28419 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28420 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28421 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28422 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28423 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28425 ## ---------------------------------------- ##
28426 ## Report this to pgsql-bugs@postgresql.org ##
28427 ## ---------------------------------------- ##
28429 ) | sed "s/^/$as_me: WARNING: /" >&2
28432 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28433 $as_echo_n "checking for libintl.h... " >&6; }
28434 if test "${ac_cv_header_libintl_h+set}" = set; then
28435 $as_echo_n "(cached) " >&6
28437 ac_cv_header_libintl_h=$ac_header_preproc
28439 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28440 $as_echo "$ac_cv_header_libintl_h" >&6; }
28443 if test "x$ac_cv_header_libintl_h" = x""yes; then
28446 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28447 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28448 { (exit 1); exit 1; }; }
28452 for ac_prog in msgfmt
28454 # Extract the first word of "$ac_prog", so it can be a program name with args.
28455 set dummy $ac_prog; ac_word=$2
28456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28457 $as_echo_n "checking for $ac_word... " >&6; }
28458 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28459 $as_echo_n "(cached) " >&6
28461 if test -n "$MSGFMT"; then
28462 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28465 for as_dir in $PATH
28468 test -z "$as_dir" && as_dir=.
28469 for ac_exec_ext in '' $ac_executable_extensions; do
28470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28471 ac_cv_prog_MSGFMT="$ac_prog"
28472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28481 MSGFMT=$ac_cv_prog_MSGFMT
28482 if test -n "$MSGFMT"; then
28483 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28484 $as_echo "$MSGFMT" >&6; }
28486 { $as_echo "$as_me:$LINENO: result: no" >&5
28487 $as_echo "no" >&6; }
28491 test -n "$MSGFMT" && break
28494 if test -z "$MSGFMT"; then
28495 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28496 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28497 { (exit 1); exit 1; }; }
28499 for ac_prog in msgmerge
28501 # Extract the first word of "$ac_prog", so it can be a program name with args.
28502 set dummy $ac_prog; ac_word=$2
28503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28504 $as_echo_n "checking for $ac_word... " >&6; }
28505 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28506 $as_echo_n "(cached) " >&6
28508 if test -n "$MSGMERGE"; then
28509 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28512 for as_dir in $PATH
28515 test -z "$as_dir" && as_dir=.
28516 for ac_exec_ext in '' $ac_executable_extensions; do
28517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28518 ac_cv_prog_MSGMERGE="$ac_prog"
28519 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28528 MSGMERGE=$ac_cv_prog_MSGMERGE
28529 if test -n "$MSGMERGE"; then
28530 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28531 $as_echo "$MSGMERGE" >&6; }
28533 { $as_echo "$as_me:$LINENO: result: no" >&5
28534 $as_echo "no" >&6; }
28538 test -n "$MSGMERGE" && break
28541 for ac_prog in xgettext
28543 # Extract the first word of "$ac_prog", so it can be a program name with args.
28544 set dummy $ac_prog; ac_word=$2
28545 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28546 $as_echo_n "checking for $ac_word... " >&6; }
28547 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28548 $as_echo_n "(cached) " >&6
28550 if test -n "$XGETTEXT"; then
28551 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28554 for as_dir in $PATH
28557 test -z "$as_dir" && as_dir=.
28558 for ac_exec_ext in '' $ac_executable_extensions; do
28559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28560 ac_cv_prog_XGETTEXT="$ac_prog"
28561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28570 XGETTEXT=$ac_cv_prog_XGETTEXT
28571 if test -n "$XGETTEXT"; then
28572 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28573 $as_echo "$XGETTEXT" >&6; }
28575 { $as_echo "$as_me:$LINENO: result: no" >&5
28576 $as_echo "no" >&6; }
28580 test -n "$XGETTEXT" && break
28586 # Check for Tcl configuration script tclConfig.sh
28587 if test "$with_tcl" = yes; then
28588 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28590 # Extract the first word of "$ac_prog", so it can be a program name with args.
28591 set dummy $ac_prog; ac_word=$2
28592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28593 $as_echo_n "checking for $ac_word... " >&6; }
28594 if test "${ac_cv_path_TCLSH+set}" = set; then
28595 $as_echo_n "(cached) " >&6
28599 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28603 for as_dir in $PATH
28606 test -z "$as_dir" && as_dir=.
28607 for ac_exec_ext in '' $ac_executable_extensions; do
28608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28609 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28620 TCLSH=$ac_cv_path_TCLSH
28621 if test -n "$TCLSH"; then
28622 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28623 $as_echo "$TCLSH" >&6; }
28625 { $as_echo "$as_me:$LINENO: result: no" >&5
28626 $as_echo "no" >&6; }
28630 test -n "$TCLSH" && break
28633 if test x"$TCLSH" = x""; then
28634 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28635 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28636 { (exit 1); exit 1; }; }
28639 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28640 $as_echo_n "checking for tclConfig.sh... " >&6; }
28641 # Let user override test
28642 if test -z "$TCL_CONFIG_SH"; then
28643 pgac_test_dirs="$with_tclconfig"
28645 set X $pgac_test_dirs; shift
28646 if test $# -eq 0; then
28647 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28648 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28649 { (exit 1); exit 1; }; }
28650 set X `echo 'puts $auto_path' | $TCLSH`; shift
28654 if test -r "$pgac_dir/tclConfig.sh"; then
28655 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28661 if test -z "$TCL_CONFIG_SH"; then
28662 { $as_echo "$as_me:$LINENO: result: no" >&5
28663 $as_echo "no" >&6; }
28664 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28665 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28666 { (exit 1); exit 1; }; }
28668 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28669 $as_echo "$TCL_CONFIG_SH" >&6; }
28675 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28676 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28677 eval TCL_LIBS=\"$TCL_LIBS\"
28678 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28679 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28681 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28682 ac_save_CPPFLAGS=$CPPFLAGS
28683 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28684 if test "${ac_cv_header_tcl_h+set}" = set; then
28685 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28686 $as_echo_n "checking for tcl.h... " >&6; }
28687 if test "${ac_cv_header_tcl_h+set}" = set; then
28688 $as_echo_n "(cached) " >&6
28690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28691 $as_echo "$ac_cv_header_tcl_h" >&6; }
28693 # Is the header compilable?
28694 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28695 $as_echo_n "checking tcl.h usability... " >&6; }
28696 cat >conftest.$ac_ext <<_ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h. */
28702 $ac_includes_default
28705 rm -f conftest.$ac_objext
28706 if { (ac_try="$ac_compile"
28707 case "(($ac_try" in
28708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709 *) ac_try_echo=$ac_try;;
28711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28712 $as_echo "$ac_try_echo") >&5
28713 (eval "$ac_compile") 2>conftest.er1
28715 grep -v '^ *+' conftest.er1 >conftest.err
28717 cat conftest.err >&5
28718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); } && {
28720 test -z "$ac_c_werror_flag" ||
28721 test ! -s conftest.err
28722 } && test -s conftest.$ac_objext; then
28723 ac_header_compiler=yes
28725 $as_echo "$as_me: failed program was:" >&5
28726 sed 's/^/| /' conftest.$ac_ext >&5
28728 ac_header_compiler=no
28731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28732 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28733 $as_echo "$ac_header_compiler" >&6; }
28735 # Is the header present?
28736 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28737 $as_echo_n "checking tcl.h presence... " >&6; }
28738 cat >conftest.$ac_ext <<_ACEOF
28741 cat confdefs.h >>conftest.$ac_ext
28742 cat >>conftest.$ac_ext <<_ACEOF
28743 /* end confdefs.h. */
28746 if { (ac_try="$ac_cpp conftest.$ac_ext"
28747 case "(($ac_try" in
28748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749 *) ac_try_echo=$ac_try;;
28751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28752 $as_echo "$ac_try_echo") >&5
28753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28755 grep -v '^ *+' conftest.er1 >conftest.err
28757 cat conftest.err >&5
28758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); } >/dev/null && {
28760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28761 test ! -s conftest.err
28763 ac_header_preproc=yes
28765 $as_echo "$as_me: failed program was:" >&5
28766 sed 's/^/| /' conftest.$ac_ext >&5
28768 ac_header_preproc=no
28771 rm -f conftest.err conftest.$ac_ext
28772 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28773 $as_echo "$ac_header_preproc" >&6; }
28775 # So? What about this header?
28776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28778 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28779 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28780 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28781 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28782 ac_header_preproc=yes
28785 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28786 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28787 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28788 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28789 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28790 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28791 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28792 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28793 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28794 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28795 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28796 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28798 ## ---------------------------------------- ##
28799 ## Report this to pgsql-bugs@postgresql.org ##
28800 ## ---------------------------------------- ##
28802 ) | sed "s/^/$as_me: WARNING: /" >&2
28805 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28806 $as_echo_n "checking for tcl.h... " >&6; }
28807 if test "${ac_cv_header_tcl_h+set}" = set; then
28808 $as_echo_n "(cached) " >&6
28810 ac_cv_header_tcl_h=$ac_header_preproc
28812 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28813 $as_echo "$ac_cv_header_tcl_h" >&6; }
28816 if test "x$ac_cv_header_tcl_h" = x""yes; then
28819 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28820 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28821 { (exit 1); exit 1; }; }
28825 CPPFLAGS=$ac_save_CPPFLAGS
28828 # check for <Python.h>
28829 if test "$with_python" = yes; then
28830 ac_save_CPPFLAGS=$CPPFLAGS
28831 CPPFLAGS="$python_includespec $CPPFLAGS"
28832 if test "${ac_cv_header_Python_h+set}" = set; then
28833 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28834 $as_echo_n "checking for Python.h... " >&6; }
28835 if test "${ac_cv_header_Python_h+set}" = set; then
28836 $as_echo_n "(cached) " >&6
28838 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28839 $as_echo "$ac_cv_header_Python_h" >&6; }
28841 # Is the header compilable?
28842 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
28843 $as_echo_n "checking Python.h usability... " >&6; }
28844 cat >conftest.$ac_ext <<_ACEOF
28847 cat confdefs.h >>conftest.$ac_ext
28848 cat >>conftest.$ac_ext <<_ACEOF
28849 /* end confdefs.h. */
28850 $ac_includes_default
28851 #include <Python.h>
28853 rm -f conftest.$ac_objext
28854 if { (ac_try="$ac_compile"
28855 case "(($ac_try" in
28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857 *) ac_try_echo=$ac_try;;
28859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28860 $as_echo "$ac_try_echo") >&5
28861 (eval "$ac_compile") 2>conftest.er1
28863 grep -v '^ *+' conftest.er1 >conftest.err
28865 cat conftest.err >&5
28866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); } && {
28868 test -z "$ac_c_werror_flag" ||
28869 test ! -s conftest.err
28870 } && test -s conftest.$ac_objext; then
28871 ac_header_compiler=yes
28873 $as_echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28876 ac_header_compiler=no
28879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28880 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28881 $as_echo "$ac_header_compiler" >&6; }
28883 # Is the header present?
28884 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
28885 $as_echo_n "checking Python.h presence... " >&6; }
28886 cat >conftest.$ac_ext <<_ACEOF
28889 cat confdefs.h >>conftest.$ac_ext
28890 cat >>conftest.$ac_ext <<_ACEOF
28891 /* end confdefs.h. */
28892 #include <Python.h>
28894 if { (ac_try="$ac_cpp conftest.$ac_ext"
28895 case "(($ac_try" in
28896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897 *) ac_try_echo=$ac_try;;
28899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28900 $as_echo "$ac_try_echo") >&5
28901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28903 grep -v '^ *+' conftest.er1 >conftest.err
28905 cat conftest.err >&5
28906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); } >/dev/null && {
28908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28909 test ! -s conftest.err
28911 ac_header_preproc=yes
28913 $as_echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.$ac_ext >&5
28916 ac_header_preproc=no
28919 rm -f conftest.err conftest.$ac_ext
28920 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28921 $as_echo "$ac_header_preproc" >&6; }
28923 # So? What about this header?
28924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28926 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
28927 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28928 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
28929 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
28930 ac_header_preproc=yes
28933 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
28934 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
28935 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
28936 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
28937 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
28938 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
28939 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
28940 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
28941 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
28942 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
28943 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
28944 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
28946 ## ---------------------------------------- ##
28947 ## Report this to pgsql-bugs@postgresql.org ##
28948 ## ---------------------------------------- ##
28950 ) | sed "s/^/$as_me: WARNING: /" >&2
28953 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28954 $as_echo_n "checking for Python.h... " >&6; }
28955 if test "${ac_cv_header_Python_h+set}" = set; then
28956 $as_echo_n "(cached) " >&6
28958 ac_cv_header_Python_h=$ac_header_preproc
28960 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28961 $as_echo "$ac_cv_header_Python_h" >&6; }
28964 if test "x$ac_cv_header_Python_h" = x""yes; then
28967 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
28968 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
28969 { (exit 1); exit 1; }; }
28973 CPPFLAGS=$ac_save_CPPFLAGS
28977 # Check for DocBook and tools
28979 for ac_prog in onsgmls nsgmls
28981 # Extract the first word of "$ac_prog", so it can be a program name with args.
28982 set dummy $ac_prog; ac_word=$2
28983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28984 $as_echo_n "checking for $ac_word... " >&6; }
28985 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28986 $as_echo_n "(cached) " >&6
28988 if test -n "$NSGMLS"; then
28989 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28992 for as_dir in $PATH
28995 test -z "$as_dir" && as_dir=.
28996 for ac_exec_ext in '' $ac_executable_extensions; do
28997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28998 ac_cv_prog_NSGMLS="$ac_prog"
28999 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29008 NSGMLS=$ac_cv_prog_NSGMLS
29009 if test -n "$NSGMLS"; then
29010 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29011 $as_echo "$NSGMLS" >&6; }
29013 { $as_echo "$as_me:$LINENO: result: no" >&5
29014 $as_echo "no" >&6; }
29018 test -n "$NSGMLS" && break
29021 for ac_prog in openjade jade
29023 # Extract the first word of "$ac_prog", so it can be a program name with args.
29024 set dummy $ac_prog; ac_word=$2
29025 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29026 $as_echo_n "checking for $ac_word... " >&6; }
29027 if test "${ac_cv_prog_JADE+set}" = set; then
29028 $as_echo_n "(cached) " >&6
29030 if test -n "$JADE"; then
29031 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29034 for as_dir in $PATH
29037 test -z "$as_dir" && as_dir=.
29038 for ac_exec_ext in '' $ac_executable_extensions; do
29039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29040 ac_cv_prog_JADE="$ac_prog"
29041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29050 JADE=$ac_cv_prog_JADE
29051 if test -n "$JADE"; then
29052 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29053 $as_echo "$JADE" >&6; }
29055 { $as_echo "$as_me:$LINENO: result: no" >&5
29056 $as_echo "no" >&6; }
29060 test -n "$JADE" && break
29064 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29065 $as_echo_n "checking for DocBook V4.2... " >&6; }
29066 if test "${pgac_cv_check_docbook+set}" = set; then
29067 $as_echo_n "(cached) " >&6
29069 cat >conftest.sgml <<EOF
29070 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29072 <title>test</title>
29074 <title>random</title>
29076 <title>testsect</title>
29083 pgac_cv_check_docbook=no
29085 if test -n "$NSGMLS"; then
29086 $NSGMLS -s conftest.sgml 1>&5 2>&1
29087 if test $? -eq 0; then
29088 pgac_cv_check_docbook=yes
29091 rm -f conftest.sgml
29093 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29094 $as_echo "$pgac_cv_check_docbook" >&6; }
29096 have_docbook=$pgac_cv_check_docbook
29099 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29100 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29101 if test "${pgac_cv_path_stylesheets+set}" = set; then
29102 $as_echo_n "(cached) " >&6
29104 if test -n "$DOCBOOKSTYLE"; then
29105 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29107 for pgac_prefix in /usr /usr/local /opt /sw; do
29108 for pgac_infix in share lib; do
29109 for pgac_postfix in \
29110 sgml/stylesheets/nwalsh-modular \
29111 sgml/stylesheets/docbook \
29112 sgml/stylesheets/dsssl/docbook \
29113 sgml/docbook-dsssl \
29114 sgml/docbook/dsssl/modular \
29115 sgml/docbook/stylesheet/dsssl/modular \
29116 sgml/docbook/dsssl-stylesheets \
29117 sgml/dsssl/docbook-dsssl-nwalsh
29119 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29120 if test -r "$pgac_candidate/html/docbook.dsl" \
29121 && test -r "$pgac_candidate/print/docbook.dsl"
29123 pgac_cv_path_stylesheets=$pgac_candidate
29132 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29134 if test -n "$DOCBOOKSTYLE"; then
29135 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29136 $as_echo "$DOCBOOKSTYLE" >&6; }
29138 { $as_echo "$as_me:$LINENO: result: no" >&5
29139 $as_echo "no" >&6; }
29141 if test -n "$DOCBOOKSTYLE"; then
29142 for ac_prog in collateindex.pl
29144 # Extract the first word of "$ac_prog", so it can be a program name with args.
29145 set dummy $ac_prog; ac_word=$2
29146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29147 $as_echo_n "checking for $ac_word... " >&6; }
29148 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29149 $as_echo_n "(cached) " >&6
29151 case $COLLATEINDEX in
29153 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29157 for as_dir in $DOCBOOKSTYLE/bin $PATH
29160 test -z "$as_dir" && as_dir=.
29161 for ac_exec_ext in '' $ac_executable_extensions; do
29162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29163 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29174 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29175 if test -n "$COLLATEINDEX"; then
29176 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29177 $as_echo "$COLLATEINDEX" >&6; }
29179 { $as_echo "$as_me:$LINENO: result: no" >&5
29180 $as_echo "no" >&6; }
29184 test -n "$COLLATEINDEX" && break
29188 for ac_prog in collateindex.pl
29190 # Extract the first word of "$ac_prog", so it can be a program name with args.
29191 set dummy $ac_prog; ac_word=$2
29192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29193 $as_echo_n "checking for $ac_word... " >&6; }
29194 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29195 $as_echo_n "(cached) " >&6
29197 case $COLLATEINDEX in
29199 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29203 for as_dir in $PATH
29206 test -z "$as_dir" && as_dir=.
29207 for ac_exec_ext in '' $ac_executable_extensions; do
29208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29209 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29220 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29221 if test -n "$COLLATEINDEX"; then
29222 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29223 $as_echo "$COLLATEINDEX" >&6; }
29225 { $as_echo "$as_me:$LINENO: result: no" >&5
29226 $as_echo "no" >&6; }
29230 test -n "$COLLATEINDEX" && break
29234 for ac_prog in xsltproc
29236 # Extract the first word of "$ac_prog", so it can be a program name with args.
29237 set dummy $ac_prog; ac_word=$2
29238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29239 $as_echo_n "checking for $ac_word... " >&6; }
29240 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29241 $as_echo_n "(cached) " >&6
29243 if test -n "$XSLTPROC"; then
29244 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29247 for as_dir in $PATH
29250 test -z "$as_dir" && as_dir=.
29251 for ac_exec_ext in '' $ac_executable_extensions; do
29252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29253 ac_cv_prog_XSLTPROC="$ac_prog"
29254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29263 XSLTPROC=$ac_cv_prog_XSLTPROC
29264 if test -n "$XSLTPROC"; then
29265 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29266 $as_echo "$XSLTPROC" >&6; }
29268 { $as_echo "$as_me:$LINENO: result: no" >&5
29269 $as_echo "no" >&6; }
29273 test -n "$XSLTPROC" && break
29276 for ac_prog in osx sgml2xml sx
29278 # Extract the first word of "$ac_prog", so it can be a program name with args.
29279 set dummy $ac_prog; ac_word=$2
29280 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29281 $as_echo_n "checking for $ac_word... " >&6; }
29282 if test "${ac_cv_prog_OSX+set}" = set; then
29283 $as_echo_n "(cached) " >&6
29285 if test -n "$OSX"; then
29286 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29289 for as_dir in $PATH
29292 test -z "$as_dir" && as_dir=.
29293 for ac_exec_ext in '' $ac_executable_extensions; do
29294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29295 ac_cv_prog_OSX="$ac_prog"
29296 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29305 OSX=$ac_cv_prog_OSX
29306 if test -n "$OSX"; then
29307 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29308 $as_echo "$OSX" >&6; }
29310 { $as_echo "$as_me:$LINENO: result: no" >&5
29311 $as_echo "no" >&6; }
29315 test -n "$OSX" && break
29321 # We have to run the thread test near the end so we have all our symbols
29322 # defined. Cross compiling throws a warning.
29324 if test "$enable_thread_safety" = yes; then
29325 if test "$PORTNAME" != "win32"
29327 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29328 $as_echo_n "checking thread safety of required library functions... " >&6; }
29332 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29333 LIBS="$LIBS $PTHREAD_LIBS"
29334 if test "$cross_compiling" = yes; then
29335 { $as_echo "$as_me:$LINENO: result: maybe" >&5
29336 $as_echo "maybe" >&6; }
29337 { $as_echo "$as_me:$LINENO: WARNING:
29338 *** Skipping thread test program because of cross-compile build.
29339 *** Run the program in src/test/thread on the target machine.
29341 $as_echo "$as_me: WARNING:
29342 *** Skipping thread test program because of cross-compile build.
29343 *** Run the program in src/test/thread on the target machine.
29346 cat >conftest.$ac_ext <<_ACEOF
29349 cat confdefs.h >>conftest.$ac_ext
29350 cat >>conftest.$ac_ext <<_ACEOF
29351 /* end confdefs.h. */
29352 #include "$srcdir/src/test/thread/thread_test.c"
29354 rm -f conftest$ac_exeext
29355 if { (ac_try="$ac_link"
29356 case "(($ac_try" in
29357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29358 *) ac_try_echo=$ac_try;;
29360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29361 $as_echo "$ac_try_echo") >&5
29362 (eval "$ac_link") 2>&5
29364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29366 { (case "(($ac_try" in
29367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29368 *) ac_try_echo=$ac_try;;
29370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29371 $as_echo "$ac_try_echo") >&5
29372 (eval "$ac_try") 2>&5
29374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375 (exit $ac_status); }; }; then
29376 { $as_echo "$as_me:$LINENO: result: yes" >&5
29377 $as_echo "yes" >&6; }
29379 $as_echo "$as_me: program exited with status $ac_status" >&5
29380 $as_echo "$as_me: failed program was:" >&5
29381 sed 's/^/| /' conftest.$ac_ext >&5
29383 ( exit $ac_status )
29384 { $as_echo "$as_me:$LINENO: result: no" >&5
29385 $as_echo "no" >&6; }
29386 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29387 This platform is not thread-safe. Check the file 'config.log' or compile
29388 and run src/test/thread/thread_test for the exact reason.
29389 Use --disable-thread-safety to disable thread safety." >&5
29390 $as_echo "$as_me: error: thread test program failed
29391 This platform is not thread-safe. Check the file 'config.log' or compile
29392 and run src/test/thread/thread_test for the exact reason.
29393 Use --disable-thread-safety to disable thread safety." >&2;}
29394 { (exit 1); exit 1; }; }
29396 rm -rf conftest.dSYM
29397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29404 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29405 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29409 # If compiler will take -Wl,--as-needed (or various platform-specific
29410 # spellings thereof) then add that to LDFLAGS. This is much easier than
29411 # trying to filter LIBS to the minimum for each executable.
29412 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29413 # libreadline; therefore we postpone testing it until we know what library
29414 # dependencies readline has. The test code will try to link with $LIBS.
29415 if test "$with_readline" = yes; then
29416 link_test_func=readline
29418 link_test_func=exit
29421 if test "$PORTNAME" = "darwin"; then
29422 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29423 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29424 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29425 $as_echo_n "(cached) " >&6
29427 pgac_save_LDFLAGS=$LDFLAGS
29428 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29429 if test "$cross_compiling" = yes; then
29430 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29432 cat >conftest.$ac_ext <<_ACEOF
29435 cat confdefs.h >>conftest.$ac_ext
29436 cat >>conftest.$ac_ext <<_ACEOF
29437 /* end confdefs.h. */
29438 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29447 rm -f conftest$ac_exeext
29448 if { (ac_try="$ac_link"
29449 case "(($ac_try" in
29450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29451 *) ac_try_echo=$ac_try;;
29453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29454 $as_echo "$ac_try_echo") >&5
29455 (eval "$ac_link") 2>&5
29457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29459 { (case "(($ac_try" in
29460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29461 *) ac_try_echo=$ac_try;;
29463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29464 $as_echo "$ac_try_echo") >&5
29465 (eval "$ac_try") 2>&5
29467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; }; then
29469 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29471 $as_echo "$as_me: program exited with status $ac_status" >&5
29472 $as_echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29475 ( exit $ac_status )
29476 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29478 rm -rf conftest.dSYM
29479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29483 LDFLAGS="$pgac_save_LDFLAGS"
29485 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29486 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29487 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29488 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29491 elif test "$PORTNAME" = "openbsd"; then
29492 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29493 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29494 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29495 $as_echo_n "(cached) " >&6
29497 pgac_save_LDFLAGS=$LDFLAGS
29498 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29499 if test "$cross_compiling" = yes; then
29500 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29502 cat >conftest.$ac_ext <<_ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29508 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29517 rm -f conftest$ac_exeext
29518 if { (ac_try="$ac_link"
29519 case "(($ac_try" in
29520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29521 *) ac_try_echo=$ac_try;;
29523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29524 $as_echo "$ac_try_echo") >&5
29525 (eval "$ac_link") 2>&5
29527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29529 { (case "(($ac_try" in
29530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29531 *) ac_try_echo=$ac_try;;
29533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29534 $as_echo "$ac_try_echo") >&5
29535 (eval "$ac_try") 2>&5
29537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; }; then
29539 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29541 $as_echo "$as_me: program exited with status $ac_status" >&5
29542 $as_echo "$as_me: failed program was:" >&5
29543 sed 's/^/| /' conftest.$ac_ext >&5
29545 ( exit $ac_status )
29546 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29548 rm -rf conftest.dSYM
29549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29553 LDFLAGS="$pgac_save_LDFLAGS"
29555 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29556 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29557 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29558 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29562 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29563 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29564 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29565 $as_echo_n "(cached) " >&6
29567 pgac_save_LDFLAGS=$LDFLAGS
29568 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29569 if test "$cross_compiling" = yes; then
29570 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29572 cat >conftest.$ac_ext <<_ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h. */
29578 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29587 rm -f conftest$ac_exeext
29588 if { (ac_try="$ac_link"
29589 case "(($ac_try" in
29590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29591 *) ac_try_echo=$ac_try;;
29593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29594 $as_echo "$ac_try_echo") >&5
29595 (eval "$ac_link") 2>&5
29597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29599 { (case "(($ac_try" in
29600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29601 *) ac_try_echo=$ac_try;;
29603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29604 $as_echo "$ac_try_echo") >&5
29605 (eval "$ac_try") 2>&5
29607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); }; }; then
29609 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29611 $as_echo "$as_me: program exited with status $ac_status" >&5
29612 $as_echo "$as_me: failed program was:" >&5
29613 sed 's/^/| /' conftest.$ac_ext >&5
29615 ( exit $ac_status )
29616 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29618 rm -rf conftest.dSYM
29619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29623 LDFLAGS="$pgac_save_LDFLAGS"
29625 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29626 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29627 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29628 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29634 # Begin output steps
29636 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29637 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29638 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29639 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29640 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29641 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29643 # Create compiler version string
29644 if test x"$GCC" = x"yes" ; then
29645 cc_string=`${CC} --version | sed q`
29646 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29647 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29648 cc_string=`${CC} -V 2>&1 | sed q`
29654 cat >>confdefs.h <<_ACEOF
29655 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29659 # Supply a numeric version string for use by 3rd party add-ons
29660 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29661 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29663 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29665 cat >>confdefs.h <<_ACEOF
29666 #define PG_VERSION_NUM $PG_VERSION_NUM
29671 # prepare build tree if outside source tree
29672 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29673 # Note 2: /bin/pwd might be better than shell's built-in at getting
29674 # a symlink-free name.
29675 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29679 if test "$no_create" != yes; then
29680 $as_echo_n "preparing build tree... " >&6
29681 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29682 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29683 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29684 $as_echo "$as_me: error: failed" >&2;}
29685 { (exit 1); exit 1; }; }
29686 { $as_echo "$as_me:$LINENO: result: done" >&5
29687 $as_echo "done" >&6; }
29693 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29696 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/backend/port/pg_latch.c:${LATCH_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}"
29699 if test "$PORTNAME" = "win32"; then
29700 ac_config_commands="$ac_config_commands check_win32_symlinks"
29704 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29707 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29710 cat >confcache <<\_ACEOF
29711 # This file is a shell script that caches the results of configure
29712 # tests run on this system so they can be shared between configure
29713 # scripts and configure runs, see configure's option --config-cache.
29714 # It is not useful on other systems. If it contains results you don't
29715 # want to keep, you may remove or edit it.
29717 # config.status only pays attention to the cache file if you give it
29718 # the --recheck option to rerun configure.
29720 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29721 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29722 # following values.
29726 # The following way of writing the cache mishandles newlines in values,
29727 # but we know of no workaround that is simple, portable, and efficient.
29728 # So, we kill variables containing newlines.
29729 # Ultrix sh set writes to stderr and can't be redirected directly,
29730 # and sets the high bit in the cache file unless we assign to the vars.
29732 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29733 eval ac_val=\$$ac_var
29737 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29738 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29741 _ | IFS | as_nl) ;; #(
29742 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29743 *) $as_unset $ac_var ;;
29749 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29750 *${as_nl}ac_space=\ *)
29751 # `set' does not quote correctly, so add quotes (double-quote
29752 # substitution turns \\\\ into \\, and sed turns \\ into \).
29755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29758 # `set' quotes correctly as required by POSIX, so do not add quotes.
29759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29768 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29770 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29772 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29773 if test -w "$cache_file"; then
29774 test "x$cache_file" != "x/dev/null" &&
29775 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29776 $as_echo "$as_me: updating cache $cache_file" >&6;}
29777 cat confcache >$cache_file
29779 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29780 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29785 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29786 # Let make expand exec_prefix.
29787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29789 DEFS=-DHAVE_CONFIG_H
29793 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29794 # 1. Remove the extension, and $U if already installed.
29795 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29796 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29797 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29798 # will be set to the directory where LIBOBJS objects are built.
29799 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29800 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29802 LIBOBJS=$ac_libobjs
29804 LTLIBOBJS=$ac_ltlibobjs
29809 : ${CONFIG_STATUS=./config.status}
29811 ac_clean_files_save=$ac_clean_files
29812 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29813 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29814 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29815 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29817 # Generated by $as_me.
29818 # Run this file to recreate the current configuration.
29819 # Compiler output produced by configure, useful for debugging
29820 # configure, is in config.log if it exists.
29823 ac_cs_recheck=false
29825 SHELL=\${CONFIG_SHELL-$SHELL}
29828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29829 ## --------------------- ##
29830 ## M4sh Initialization. ##
29831 ## --------------------- ##
29833 # Be more Bourne compatible
29834 DUALCASE=1; export DUALCASE # for MKS sh
29835 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29838 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29839 # is contrary to our usage. Disable this feature.
29840 alias -g '${1+"$@"}'='"$@"'
29841 setopt NO_GLOB_SUBST
29843 case `(set -o) 2>/dev/null` in
29844 *posix*) set -o posix ;;
29853 # Avoid depending upon Character Ranges.
29854 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29855 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29856 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29857 as_cr_digits='0123456789'
29858 as_cr_alnum=$as_cr_Letters$as_cr_digits
29863 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29864 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29867 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29868 as_echo='printf %s\n'
29869 as_echo_n='printf %s'
29871 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29872 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29873 as_echo_n='/usr/ucb/echo -n'
29875 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29876 as_echo_n_body='eval
29880 expr "X$arg" : "X\\(.*\\)$as_nl";
29881 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29883 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29885 export as_echo_n_body
29886 as_echo_n='sh -c $as_echo_n_body as_echo'
29888 export as_echo_body
29889 as_echo='sh -c $as_echo_body as_echo'
29892 # The user is always right.
29893 if test "${PATH_SEPARATOR+set}" != set; then
29895 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29896 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29901 # Support unset when possible.
29902 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29910 # We need space, tab and new line, in precisely that order. Quoting is
29911 # there to prevent editors from complaining about space-tab.
29912 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29913 # splitting by setting IFS to empty value.)
29916 # Find who we are. Look in the path if we contain no directory separator.
29918 *[\\/]* ) as_myself=$0 ;;
29919 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29920 for as_dir in $PATH
29923 test -z "$as_dir" && as_dir=.
29924 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29930 # We did not find ourselves, most probably we were run as `sh COMMAND'
29931 # in which case we are not to be found in the path.
29932 if test "x$as_myself" = x; then
29935 if test ! -f "$as_myself"; then
29936 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29937 { (exit 1); exit 1; }
29940 # Work around bugs in pre-3.0 UWIN ksh.
29941 for as_var in ENV MAIL MAILPATH
29942 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29954 # Required to use basename.
29955 if expr a : '\(a\)' >/dev/null 2>&1 &&
29956 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29962 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29963 as_basename=basename
29969 # Name of the executable.
29970 as_me=`$as_basename -- "$0" ||
29971 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29972 X"$0" : 'X\(//\)$' \| \
29973 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29975 sed '/^.*\/\([^/][^/]*\)\/*$/{
29994 as_lineno_1=$LINENO
29995 as_lineno_2=$LINENO
29996 test "x$as_lineno_1" != "x$as_lineno_2" &&
29997 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29999 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30000 # uniformly replaced by the line number. The first 'sed' inserts a
30001 # line-number line after each line using $LINENO; the second 'sed'
30002 # does the real work. The second script uses 'N' to pair each
30003 # line-number line with the line containing $LINENO, and appends
30004 # trailing '-' during substitution so that $LINENO is not a special
30005 # case at line end.
30006 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30007 # scripts with optimization help from Paolo Bonzini. Blame Lee
30008 # E. McMahon (1931-1989) for sed's syntax. :-)
30020 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30023 ' >$as_me.lineno &&
30024 chmod +x "$as_me.lineno" ||
30025 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30026 { (exit 1); exit 1; }; }
30028 # Don't try to exec as it changes $[0], causing all sort of problems
30029 # (the dirname of $[0] is not the place where we might find the
30030 # original and so on. Autoconf is especially sensitive to this).
30031 . "./$as_me.lineno"
30032 # Exit status is that of the last command.
30037 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30043 ECHO_C= ECHO_N= ECHO_T=
30044 case `echo -n x` in
30046 case `echo 'x\c'` in
30047 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30053 if expr a : '\(a\)' >/dev/null 2>&1 &&
30054 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30060 rm -f conf$$ conf$$.exe conf$$.file
30061 if test -d conf$$.dir; then
30062 rm -f conf$$.dir/conf$$.file
30065 mkdir conf$$.dir 2>/dev/null
30067 if (echo >conf$$.file) 2>/dev/null; then
30068 if ln -s conf$$.file conf$$ 2>/dev/null; then
30070 # ... but there are two gotchas:
30071 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30072 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30073 # In both cases, we have to default to `cp -p'.
30074 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30076 elif ln conf$$.file conf$$ 2>/dev/null; then
30084 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30085 rmdir conf$$.dir 2>/dev/null
30087 if mkdir -p . 2>/dev/null; then
30090 test -d ./-p && rmdir ./-p
30094 if test -x / >/dev/null 2>&1; then
30095 as_test_x='test -x'
30097 if ls -dL / >/dev/null 2>&1; then
30104 if test -d "$1"; then
30110 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30111 ???[sx]*):;;*)false;;esac;fi
30115 as_executable_p=$as_test_x
30117 # Sed expression to map a string onto a valid CPP name.
30118 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30120 # Sed expression to map a string onto a valid variable name.
30121 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30126 # Save the log message, to keep $[0] and so on meaningful, and to
30127 # report actual input values of CONFIG_FILES etc. instead of their
30128 # values after options handling.
30130 This file was extended by PostgreSQL $as_me 9.2devel, which was
30131 generated by GNU Autoconf 2.63. Invocation command line was
30133 CONFIG_FILES = $CONFIG_FILES
30134 CONFIG_HEADERS = $CONFIG_HEADERS
30135 CONFIG_LINKS = $CONFIG_LINKS
30136 CONFIG_COMMANDS = $CONFIG_COMMANDS
30139 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30144 case $ac_config_files in *"
30145 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30148 case $ac_config_headers in *"
30149 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30154 # Files that config.status was made for.
30155 config_files="$ac_config_files"
30156 config_headers="$ac_config_headers"
30157 config_links="$ac_config_links"
30158 config_commands="$ac_config_commands"
30162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30164 \`$as_me' instantiates files from templates according to the
30165 current configuration.
30167 Usage: $0 [OPTION]... [FILE]...
30169 -h, --help print this help, then exit
30170 -V, --version print version number and configuration settings, then exit
30171 -q, --quiet, --silent
30172 do not print progress messages
30173 -d, --debug don't remove temporary files
30174 --recheck update $as_me by reconfiguring in the same conditions
30175 --file=FILE[:TEMPLATE]
30176 instantiate the configuration file FILE
30177 --header=FILE[:TEMPLATE]
30178 instantiate the configuration header FILE
30180 Configuration files:
30183 Configuration headers:
30186 Configuration links:
30189 Configuration commands:
30192 Report bugs to <bug-autoconf@gnu.org>."
30195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30197 PostgreSQL config.status 9.2devel
30198 configured by $0, generated by GNU Autoconf 2.63,
30199 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30201 Copyright (C) 2008 Free Software Foundation, Inc.
30202 This config.status script is free software; the Free Software Foundation
30203 gives unlimited permission to copy, distribute and modify it."
30209 test -n "\$AWK" || AWK=awk
30212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30213 # The default lists apply if the user does not specify any file.
30219 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30220 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30231 # Handling of the options.
30232 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30234 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30235 $as_echo "$ac_cs_version"; exit ;;
30236 --debug | --debu | --deb | --de | --d | -d )
30238 --file | --fil | --fi | --f )
30241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30243 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30244 ac_need_defaults=false;;
30245 --header | --heade | --head | --hea )
30248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30250 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30251 ac_need_defaults=false;;
30253 # Conflict between --help and --header
30254 { $as_echo "$as_me: error: ambiguous option: $1
30255 Try \`$0 --help' for more information." >&2
30256 { (exit 1); exit 1; }; };;
30257 --help | --hel | -h )
30258 $as_echo "$ac_cs_usage"; exit ;;
30259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30263 # This is an error.
30264 -*) { $as_echo "$as_me: error: unrecognized option: $1
30265 Try \`$0 --help' for more information." >&2
30266 { (exit 1); exit 1; }; } ;;
30268 *) ac_config_targets="$ac_config_targets $1"
30269 ac_need_defaults=false ;;
30275 ac_configure_extra_args=
30277 if $ac_cs_silent; then
30279 ac_configure_extra_args="$ac_configure_extra_args --silent"
30283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30284 if \$ac_cs_recheck; then
30285 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30287 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30288 CONFIG_SHELL='$SHELL'
30289 export CONFIG_SHELL
30294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30299 ## Running $as_me. ##
30305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30310 # Handling of arguments.
30311 for ac_config_target in $ac_config_targets
30313 case $ac_config_target in
30314 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30315 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30316 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30317 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30318 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30319 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30320 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30321 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30322 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30323 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30324 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30325 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30326 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30328 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30329 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30330 { (exit 1); exit 1; }; };;
30335 # If the user did not use the arguments to specify the items to instantiate,
30336 # then the envvar interface is used. Set only those that are not.
30337 # We use the long form for the default assignment because of an extremely
30338 # bizarre bug on SunOS 4.1.3.
30339 if $ac_need_defaults; then
30340 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30341 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30342 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30343 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30346 # Have a temporary directory for convenience. Make it in the build tree
30347 # simply because there is no reason against having it here, and in addition,
30348 # creating and moving files from /tmp can sometimes cause problems.
30349 # Hook for its removal unless debugging.
30350 # Note that there is a small window in which the directory will not be cleaned:
30351 # after its creation but before its name has been assigned to `$tmp'.
30355 trap 'exit_status=$?
30356 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30358 trap '{ (exit 1); exit 1; }' 1 2 13 15
30360 # Create a (secure) tmp directory for tmp files.
30363 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30364 test -n "$tmp" && test -d "$tmp"
30367 tmp=./conf$$-$RANDOM
30368 (umask 077 && mkdir "$tmp")
30371 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30372 { (exit 1); exit 1; }
30375 # Set up the scripts for CONFIG_FILES section.
30376 # No need to generate them if there are no CONFIG_FILES.
30377 # This happens for instance with `./config.status config.h'.
30378 if test -n "$CONFIG_FILES"; then
30382 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30383 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30386 ac_cs_awk_cr=$ac_cr
30389 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30394 echo "cat >conf$$subs.awk <<_ACEOF" &&
30395 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30397 } >conf$$subs.sh ||
30398 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30399 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30400 { (exit 1); exit 1; }; }
30401 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30403 for ac_last_try in false false false false false :; do
30404 . ./conf$$subs.sh ||
30405 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30406 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30407 { (exit 1); exit 1; }; }
30409 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30410 if test $ac_delim_n = $ac_delim_num; then
30412 elif $ac_last_try; then
30413 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30414 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30415 { (exit 1); exit 1; }; }
30417 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30420 rm -f conf$$subs.sh
30422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30423 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30427 s/^/S["/; s/!.*/"]=/
30437 s/\(.\{148\}\).*/\1/
30439 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30444 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30451 s/\(.\{148\}\).*/\1/
30453 s/["\\]/\\&/g; s/^/"/; s/$/"/
30457 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30462 ' <conf$$subs.awk | sed '
30467 ' >>$CONFIG_STATUS || ac_write_fail=1
30468 rm -f conf$$subs.awk
30469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30471 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30472 for (key in S) S_is_set[key] = 1
30478 nfields = split(line, field, "@")
30480 len = length(field[1])
30481 for (i = 2; i < nfields; i++) {
30483 keylen = length(key)
30484 if (S_is_set[key]) {
30486 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30487 len += length(value) + length(field[++i])
30498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30499 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30500 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30503 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30504 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30505 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30506 { (exit 1); exit 1; }; }
30509 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30510 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30511 # trailing colons and then remove the whole line if VPATH becomes empty
30512 # (actually we leave an empty line to preserve line numbers).
30513 if test "x$srcdir" = x.; then
30514 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30515 s/:*\$(srcdir):*/:/
30516 s/:*\${srcdir}:*/:/
30518 s/^\([^=]*=[ ]*\):*/\1/
30524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30525 fi # test -n "$CONFIG_FILES"
30527 # Set up the scripts for CONFIG_HEADERS section.
30528 # No need to generate them if there are no CONFIG_HEADERS.
30529 # This happens for instance with `./config.status Makefile'.
30530 if test -n "$CONFIG_HEADERS"; then
30531 cat >"$tmp/defines.awk" <<\_ACAWK ||
30535 # Transform confdefs.h into an awk script `defines.awk', embedded as
30536 # here-document in config.status, that substitutes the proper values into
30537 # config.h.in to produce config.h.
30539 # Create a delimiter string that does not exist in confdefs.h, to ease
30540 # handling of long lines.
30542 for ac_last_try in false false :; do
30543 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30544 if test -z "$ac_t"; then
30546 elif $ac_last_try; then
30547 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30548 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30549 { (exit 1); exit 1; }; }
30551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30555 # For the awk script, D is an array of macro values keyed by name,
30556 # likewise P contains macro parameters if any. Preserve backslash
30557 # newline sequences.
30559 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30561 s/.\{148\}/&'"$ac_delim"'/g
30564 s/^[ ]*#[ ]*define[ ][ ]*/ /
30571 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30578 D["\1"]=" \3\\\\\\n"\\/p
30580 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30585 s/.\{148\}/&'"$ac_delim"'/g
30590 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30593 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30595 ' <confdefs.h | sed '
30596 s/'"$ac_delim"'/"\\\
30597 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30600 for (key in D) D_is_set[key] = 1
30603 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30605 split(line, arg, " ")
30606 if (arg[1] == "#") {
30610 defundef = substr(arg[1], 2)
30613 split(mac1, mac2, "(") #)
30615 prefix = substr(line, 1, index(line, defundef) - 1)
30616 if (D_is_set[macro]) {
30617 # Preserve the white space surrounding the "#".
30618 print prefix "define", macro P[macro] D[macro]
30621 # Replace #undef with comments. This is necessary, for example,
30622 # in the case of _POSIX_SOURCE, which is predefined and required
30623 # on some systems where configure will not decide to define it.
30624 if (defundef == "undef") {
30625 print "/*", prefix defundef, macro, "*/"
30633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30634 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30635 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30636 { (exit 1); exit 1; }; }
30637 fi # test -n "$CONFIG_HEADERS"
30640 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30645 :[FHLC]) ac_mode=$ac_tag; continue;;
30647 case $ac_mode$ac_tag in
30649 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30650 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30651 { (exit 1); exit 1; }; };;
30652 :[FH]-) ac_tag=-:-;;
30653 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30670 -) ac_f="$tmp/stdin";;
30671 *) # Look for the file first in the build tree, then in the source tree
30672 # (if the path is not absolute). The absolute path cannot be DOS-style,
30673 # because $ac_f cannot contain `:'.
30677 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30679 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30680 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30681 { (exit 1); exit 1; }; };;
30683 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30684 ac_file_inputs="$ac_file_inputs '$ac_f'"
30687 # Let's still pretend it is `configure' which instantiates (i.e., don't
30688 # use $as_me), people would be surprised to read:
30689 # /* config.h. Generated by config.status. */
30690 configure_input='Generated from '`
30691 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30693 if test x"$ac_file" != x-; then
30694 configure_input="$ac_file. $configure_input"
30695 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30696 $as_echo "$as_me: creating $ac_file" >&6;}
30698 # Neutralize special characters interpreted by sed in replacement strings.
30699 case $configure_input in #(
30700 *\&* | *\|* | *\\* )
30701 ac_sed_conf_input=`$as_echo "$configure_input" |
30702 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30703 *) ac_sed_conf_input=$configure_input;;
30707 *:-:* | *:-) cat >"$tmp/stdin" \
30708 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30709 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30710 { (exit 1); exit 1; }; } ;;
30715 ac_dir=`$as_dirname -- "$ac_file" ||
30716 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30717 X"$ac_file" : 'X\(//\)[^/]' \| \
30718 X"$ac_file" : 'X\(//\)$' \| \
30719 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30720 $as_echo X"$ac_file" |
30721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30725 /^X\(\/\/\)[^/].*/{
30740 -*) as_dir=./$as_dir;;
30742 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30746 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30747 *) as_qdir=$as_dir;;
30749 as_dirs="'$as_qdir' $as_dirs"
30750 as_dir=`$as_dirname -- "$as_dir" ||
30751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30752 X"$as_dir" : 'X\(//\)[^/]' \| \
30753 X"$as_dir" : 'X\(//\)$' \| \
30754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30755 $as_echo X"$as_dir" |
30756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30760 /^X\(\/\/\)[^/].*/{
30773 test -d "$as_dir" && break
30775 test -z "$as_dirs" || eval "mkdir $as_dirs"
30776 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30777 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30778 { (exit 1); exit 1; }; }; }
30782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30784 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30785 # A ".." for each directory in $ac_dir_suffix.
30786 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30787 case $ac_top_builddir_sub in
30788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30792 ac_abs_top_builddir=$ac_pwd
30793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30794 # for backward compatibility:
30795 ac_top_builddir=$ac_top_build_prefix
30798 .) # We are building in place.
30800 ac_top_srcdir=$ac_top_builddir_sub
30801 ac_abs_top_srcdir=$ac_pwd ;;
30802 [\\/]* | ?:[\\/]* ) # Absolute name.
30803 ac_srcdir=$srcdir$ac_dir_suffix;
30804 ac_top_srcdir=$srcdir
30805 ac_abs_top_srcdir=$srcdir ;;
30806 *) # Relative name.
30807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30808 ac_top_srcdir=$ac_top_build_prefix$srcdir
30809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30820 ac_MKDIR_P=$MKDIR_P
30822 [\\/$]* | ?:[\\/]* ) ;;
30823 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30828 # If the template does not know about datarootdir, expand it.
30829 # FIXME: This hack should be removed a few years after 2.60.
30830 ac_datarootdir_hack=; ac_datarootdir_seen=
30843 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30844 *datarootdir*) ac_datarootdir_seen=yes;;
30845 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30846 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30847 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30850 ac_datarootdir_hack='
30851 s&@datadir@&$datadir&g
30852 s&@docdir@&$docdir&g
30853 s&@infodir@&$infodir&g
30854 s&@localedir@&$localedir&g
30855 s&@mandir@&$mandir&g
30856 s&\\\${datarootdir}&$datarootdir&g' ;;
30860 # Neutralize VPATH when `$srcdir' = `.'.
30861 # Shell code in configure.ac might set extrasub.
30862 # FIXME: do we really want to maintain this feature?
30863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30864 ac_sed_extra="$ac_vpsub
30867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30870 s|@configure_input@|$ac_sed_conf_input|;t t
30871 s&@top_builddir@&$ac_top_builddir_sub&;t t
30872 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30873 s&@srcdir@&$ac_srcdir&;t t
30874 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30875 s&@top_srcdir@&$ac_top_srcdir&;t t
30876 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30877 s&@builddir@&$ac_builddir&;t t
30878 s&@abs_builddir@&$ac_abs_builddir&;t t
30879 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30880 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30881 $ac_datarootdir_hack
30883 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30884 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30885 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30886 { (exit 1); exit 1; }; }
30888 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30889 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30890 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30891 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30892 which seems to be undefined. Please make sure it is defined." >&5
30893 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30894 which seems to be undefined. Please make sure it is defined." >&2;}
30898 -) cat "$tmp/out" && rm -f "$tmp/out";;
30899 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30901 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30902 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30903 { (exit 1); exit 1; }; }
30909 if test x"$ac_file" != x-; then
30911 $as_echo "/* $configure_input */" \
30912 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30913 } >"$tmp/config.h" \
30914 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30915 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30916 { (exit 1); exit 1; }; }
30917 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30918 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30919 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30922 mv "$tmp/config.h" "$ac_file" \
30923 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30924 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30925 { (exit 1); exit 1; }; }
30928 $as_echo "/* $configure_input */" \
30929 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30930 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30931 $as_echo "$as_me: error: could not create -" >&2;}
30932 { (exit 1); exit 1; }; }
30940 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30943 # Prefer the file from the source tree if names are identical.
30944 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30945 ac_source=$srcdir/$ac_source
30948 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30949 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30951 if test ! -r "$ac_source"; then
30952 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30953 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30954 { (exit 1); exit 1; }; }
30958 # Try a relative symlink, then a hard link, then a copy.
30960 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30961 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30963 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30964 ln "$ac_source" "$ac_file" 2>/dev/null ||
30965 cp -p "$ac_source" "$ac_file" ||
30966 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30967 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30968 { (exit 1); exit 1; }; }
30971 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30972 $as_echo "$as_me: executing $ac_file commands" >&6;}
30977 case $ac_file$ac_mode in
30978 "check_win32_symlinks":C)
30979 # Links sometimes fail undetected on Mingw -
30980 # so here we detect it and warn the user
30981 for FILE in $CONFIG_LINKS
30983 # test -e works for symlinks in the MinGW console
30984 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30985 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30988 "src/include/pg_config.h":H)
30989 # Update timestamp for pg_config.h (see Makefile.global)
30990 echo >src/include/stamp-h
30992 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30998 { (exit 0); exit 0; }
31000 chmod +x $CONFIG_STATUS
31001 ac_clean_files=$ac_clean_files_save
31003 test $ac_write_fail = 0 ||
31004 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31005 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31006 { (exit 1); exit 1; }; }
31009 # configure is writing to config.log, and then calls config.status.
31010 # config.status does its own redirection, appending to config.log.
31011 # Unfortunately, on DOS this fails, as config.log is still kept open
31012 # by configure, so config.status won't be able to write to it; its
31013 # output is simply discarded. So we exec the FD to /dev/null,
31014 # effectively closing config.log, so it can be properly (re)opened and
31015 # appended to by config.status. When coming back to configure, we
31016 # need to make the FD available again.
31017 if test "$no_create" != yes; then
31019 ac_config_status_args=
31020 test "$silent" = yes &&
31021 ac_config_status_args="$ac_config_status_args --quiet"
31023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31026 # would make configure fail if this is the last instruction.
31027 $ac_cs_success || { (exit 1); exit 1; }
31029 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31030 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31031 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}