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 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4127 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4128 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4129 $as_echo_n "(cached) " >&6
4131 pgac_save_CFLAGS=$CFLAGS
4132 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4133 ac_save_c_werror_flag=$ac_c_werror_flag
4134 ac_c_werror_flag=yes
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4157 $as_echo "$ac_try_echo") >&5
4158 (eval "$ac_compile") 2>conftest.er1
4160 grep -v '^ *+' conftest.er1 >conftest.err
4162 cat conftest.err >&5
4163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } && {
4165 test -z "$ac_c_werror_flag" ||
4166 test ! -s conftest.err
4167 } && test -s conftest.$ac_objext; then
4168 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4170 $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_c_werror_flag=$ac_save_c_werror_flag
4178 CFLAGS="$pgac_save_CFLAGS"
4180 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4181 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4182 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4183 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4186 # This was included in -Wall/-Wformat in older GCC versions
4187 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4188 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4189 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4190 $as_echo_n "(cached) " >&6
4192 pgac_save_CFLAGS=$CFLAGS
4193 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4194 ac_save_c_werror_flag=$ac_c_werror_flag
4195 ac_c_werror_flag=yes
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1 >conftest.err
4223 cat conftest.err >&5
4224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.$ac_objext; then
4229 pgac_cv_prog_cc_cflags__Wformat_security=yes
4231 $as_echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 pgac_cv_prog_cc_cflags__Wformat_security=no
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 ac_c_werror_flag=$ac_save_c_werror_flag
4239 CFLAGS="$pgac_save_CFLAGS"
4241 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4242 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4243 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4244 CFLAGS="$CFLAGS -Wformat-security"
4247 # Disable strict-aliasing rules; needed for gcc 3.3+
4248 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4249 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4250 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4251 $as_echo_n "(cached) " >&6
4253 pgac_save_CFLAGS=$CFLAGS
4254 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4255 ac_save_c_werror_flag=$ac_c_werror_flag
4256 ac_c_werror_flag=yes
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279 $as_echo "$ac_try_echo") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest.$ac_objext; then
4290 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4292 $as_echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4300 CFLAGS="$pgac_save_CFLAGS"
4302 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4303 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4304 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4305 CFLAGS="$CFLAGS -fno-strict-aliasing"
4308 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4309 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4310 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4311 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4312 $as_echo_n "(cached) " >&6
4314 pgac_save_CFLAGS=$CFLAGS
4315 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4316 ac_save_c_werror_flag=$ac_c_werror_flag
4317 ac_c_werror_flag=yes
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4333 rm -f conftest.$ac_objext
4334 if { (ac_try="$ac_compile"
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4340 $as_echo "$ac_try_echo") >&5
4341 (eval "$ac_compile") 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } && {
4348 test -z "$ac_c_werror_flag" ||
4349 test ! -s conftest.err
4350 } && test -s conftest.$ac_objext; then
4351 pgac_cv_prog_cc_cflags__fwrapv=yes
4353 $as_echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 pgac_cv_prog_cc_cflags__fwrapv=no
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 ac_c_werror_flag=$ac_save_c_werror_flag
4361 CFLAGS="$pgac_save_CFLAGS"
4363 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4364 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4365 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4366 CFLAGS="$CFLAGS -fwrapv"
4369 elif test "$ICC" = yes; then
4370 # Intel's compiler has a bug/misoptimization in checking for
4371 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4372 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4373 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4374 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4375 $as_echo_n "(cached) " >&6
4377 pgac_save_CFLAGS=$CFLAGS
4378 CFLAGS="$pgac_save_CFLAGS -mp1"
4379 ac_save_c_werror_flag=$ac_c_werror_flag
4380 ac_c_werror_flag=yes
4381 cat >conftest.$ac_ext <<_ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4396 rm -f conftest.$ac_objext
4397 if { (ac_try="$ac_compile"
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4403 $as_echo "$ac_try_echo") >&5
4404 (eval "$ac_compile") 2>conftest.er1
4406 grep -v '^ *+' conftest.er1 >conftest.err
4408 cat conftest.err >&5
4409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } && {
4411 test -z "$ac_c_werror_flag" ||
4412 test ! -s conftest.err
4413 } && test -s conftest.$ac_objext; then
4414 pgac_cv_prog_cc_cflags__mp1=yes
4416 $as_echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 pgac_cv_prog_cc_cflags__mp1=no
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 ac_c_werror_flag=$ac_save_c_werror_flag
4424 CFLAGS="$pgac_save_CFLAGS"
4426 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4427 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4428 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4429 CFLAGS="$CFLAGS -mp1"
4432 # Make sure strict aliasing is off (though this is said to be the default)
4433 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4434 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4435 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4436 $as_echo_n "(cached) " >&6
4438 pgac_save_CFLAGS=$CFLAGS
4439 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4440 ac_save_c_werror_flag=$ac_c_werror_flag
4441 ac_c_werror_flag=yes
4442 cat >conftest.$ac_ext <<_ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4457 rm -f conftest.$ac_objext
4458 if { (ac_try="$ac_compile"
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464 $as_echo "$ac_try_echo") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest.$ac_objext; then
4475 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4477 $as_echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_c_werror_flag=$ac_save_c_werror_flag
4485 CFLAGS="$pgac_save_CFLAGS"
4487 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4488 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4489 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4490 CFLAGS="$CFLAGS -fno-strict-aliasing"
4493 elif test "$PORTNAME" = "aix"; then
4494 # AIX's xlc has to have strict aliasing turned off too
4495 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4496 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4497 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4498 $as_echo_n "(cached) " >&6
4500 pgac_save_CFLAGS=$CFLAGS
4501 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4502 ac_save_c_werror_flag=$ac_c_werror_flag
4503 ac_c_werror_flag=yes
4504 cat >conftest.$ac_ext <<_ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4519 rm -f conftest.$ac_objext
4520 if { (ac_try="$ac_compile"
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4526 $as_echo "$ac_try_echo") >&5
4527 (eval "$ac_compile") 2>conftest.er1
4529 grep -v '^ *+' conftest.er1 >conftest.err
4531 cat conftest.err >&5
4532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } && {
4534 test -z "$ac_c_werror_flag" ||
4535 test ! -s conftest.err
4536 } && test -s conftest.$ac_objext; then
4537 pgac_cv_prog_cc_cflags__qnoansialias=yes
4539 $as_echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4542 pgac_cv_prog_cc_cflags__qnoansialias=no
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 ac_c_werror_flag=$ac_save_c_werror_flag
4547 CFLAGS="$pgac_save_CFLAGS"
4549 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4550 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4551 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4552 CFLAGS="$CFLAGS -qnoansialias"
4555 elif test "$PORTNAME" = "hpux"; then
4556 # On some versions of HP-UX, libm functions do not set errno by default.
4557 # Fix that by using +Olibmerrno if the compiler recognizes it.
4558 { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4559 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4560 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4561 $as_echo_n "(cached) " >&6
4563 pgac_save_CFLAGS=$CFLAGS
4564 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4565 ac_save_c_werror_flag=$ac_c_werror_flag
4566 ac_c_werror_flag=yes
4567 cat >conftest.$ac_ext <<_ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4582 rm -f conftest.$ac_objext
4583 if { (ac_try="$ac_compile"
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4589 $as_echo "$ac_try_echo") >&5
4590 (eval "$ac_compile") 2>conftest.er1
4592 grep -v '^ *+' conftest.er1 >conftest.err
4594 cat conftest.err >&5
4595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } && {
4597 test -z "$ac_c_werror_flag" ||
4598 test ! -s conftest.err
4599 } && test -s conftest.$ac_objext; then
4600 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4602 $as_echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 ac_c_werror_flag=$ac_save_c_werror_flag
4610 CFLAGS="$pgac_save_CFLAGS"
4612 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4613 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4614 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4615 CFLAGS="$CFLAGS +Olibmerrno"
4620 # supply -g if --enable-debug
4621 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4625 # enable code coverage if --enable-coverage
4626 if test "$enable_coverage" = yes; then
4627 if test "$GCC" = yes; then
4628 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4630 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4631 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4632 { (exit 1); exit 1; }; }
4636 # enable profiling if --enable-profiling
4637 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4638 if test "$GCC" = yes; then
4640 cat >>confdefs.h <<\_ACEOF
4641 #define PROFILE_PID_DIR 1
4644 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4646 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4647 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4648 { (exit 1); exit 1; }; }
4652 # We already have this in Makefile.win32, but configure needs it too
4653 if test "$PORTNAME" = "win32"; then
4654 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4657 # Check if the compiler still works with the template settings
4658 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4659 $as_echo_n "checking whether the C compiler still works... " >&6; }
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4675 rm -f conftest.$ac_objext conftest$ac_exeext
4676 if { (ac_try="$ac_link"
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683 (eval "$ac_link") 2>conftest.er1
4685 grep -v '^ *+' conftest.er1 >conftest.err
4687 cat conftest.err >&5
4688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } && {
4690 test -z "$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest$ac_exeext && {
4693 test "$cross_compiling" = yes ||
4694 $as_test_x conftest$ac_exeext
4696 { $as_echo "$as_me:$LINENO: result: yes" >&5
4697 $as_echo "yes" >&6; }
4699 $as_echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 { $as_echo "$as_me:$LINENO: result: no" >&5
4703 $as_echo "no" >&6; }
4704 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4705 $as_echo "$as_me: error: cannot proceed" >&2;}
4706 { (exit 1); exit 1; }; }
4709 rm -rf conftest.dSYM
4710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4711 conftest$ac_exeext conftest.$ac_ext
4713 # Defend against gcc -ffast-math
4714 if test "$GCC" = yes; then
4715 cat >conftest.$ac_ext <<_ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4725 #ifdef __FAST_MATH__
4732 rm -f conftest.$ac_objext
4733 if { (ac_try="$ac_compile"
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4739 $as_echo "$ac_try_echo") >&5
4740 (eval "$ac_compile") 2>conftest.er1
4742 grep -v '^ *+' conftest.er1 >conftest.err
4744 cat conftest.err >&5
4745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } && {
4747 test -z "$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4749 } && test -s conftest.$ac_objext; then
4752 $as_echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4756 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4757 { (exit 1); exit 1; }; }
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 ac_cpp='$CPP $CPPFLAGS'
4765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4769 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4770 # On Suns, sometimes $CPP names a directory.
4771 if test -n "$CPP" && test -d "$CPP"; then
4774 if test -z "$CPP"; then
4775 if test "${ac_cv_prog_CPP+set}" = set; then
4776 $as_echo_n "(cached) " >&6
4778 # Double quotes because CPP needs to be expanded
4779 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4782 for ac_c_preproc_warn_flag in '' yes
4784 # Use a header file that comes with gcc, so configuring glibc
4785 # with a fresh cross-compiler works.
4786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4787 # <limits.h> exists even on freestanding compilers.
4788 # On the NeXT, cc -E runs the code through the compiler's parser,
4789 # not just through cpp. "Syntax error" is here to catch this case.
4790 cat >conftest.$ac_ext <<_ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4797 # include <limits.h>
4799 # include <assert.h>
4803 if { (ac_try="$ac_cpp conftest.$ac_ext"
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4809 $as_echo "$ac_try_echo") >&5
4810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4812 grep -v '^ *+' conftest.er1 >conftest.err
4814 cat conftest.err >&5
4815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } >/dev/null && {
4817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4818 test ! -s conftest.err
4822 $as_echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 # Broken: fails on valid input.
4829 rm -f conftest.err conftest.$ac_ext
4831 # OK, works on sane cases. Now check whether nonexistent headers
4832 # can be detected and how.
4833 cat >conftest.$ac_ext <<_ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4839 #include <ac_nonexistent.h>
4841 if { (ac_try="$ac_cpp conftest.$ac_ext"
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4847 $as_echo "$ac_try_echo") >&5
4848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850 grep -v '^ *+' conftest.er1 >conftest.err
4852 cat conftest.err >&5
4853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null && {
4855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4858 # Broken: success on invalid input.
4861 $as_echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4864 # Passes both tests.
4869 rm -f conftest.err conftest.$ac_ext
4872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4873 rm -f conftest.err conftest.$ac_ext
4874 if $ac_preproc_ok; then
4886 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4887 $as_echo "$CPP" >&6; }
4889 for ac_c_preproc_warn_flag in '' yes
4891 # Use a header file that comes with gcc, so configuring glibc
4892 # with a fresh cross-compiler works.
4893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894 # <limits.h> exists even on freestanding compilers.
4895 # On the NeXT, cc -E runs the code through the compiler's parser,
4896 # not just through cpp. "Syntax error" is here to catch this case.
4897 cat >conftest.$ac_ext <<_ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4904 # include <limits.h>
4906 # include <assert.h>
4910 if { (ac_try="$ac_cpp conftest.$ac_ext"
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4916 $as_echo "$ac_try_echo") >&5
4917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null && {
4924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4925 test ! -s conftest.err
4929 $as_echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 # Broken: fails on valid input.
4936 rm -f conftest.err conftest.$ac_ext
4938 # OK, works on sane cases. Now check whether nonexistent headers
4939 # can be detected and how.
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #include <ac_nonexistent.h>
4948 if { (ac_try="$ac_cpp conftest.$ac_ext"
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4954 $as_echo "$ac_try_echo") >&5
4955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4957 grep -v '^ *+' conftest.er1 >conftest.err
4959 cat conftest.err >&5
4960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } >/dev/null && {
4962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4965 # Broken: success on invalid input.
4968 $as_echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 # Passes both tests.
4976 rm -f conftest.err conftest.$ac_ext
4979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4980 rm -f conftest.err conftest.$ac_ext
4981 if $ac_preproc_ok; then
4984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4986 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4987 See \`config.log' for more details." >&5
4988 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4989 See \`config.log' for more details." >&2;}
4990 { (exit 1); exit 1; }; }; }
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5003 # Set up TAS assembly code if needed; the template file has now had its
5004 # chance to request this.
5006 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5009 if test "$need_tas" = yes ; then
5018 # Automatic dependency tracking
5022 # Check whether --enable-depend was given.
5023 if test "${enable_depend+set}" = set; then
5024 enableval=$enable_depend;
5033 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5034 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5035 { (exit 1); exit 1; }; }
5049 # Enable assert checks
5053 # Check whether --enable-cassert was given.
5054 if test "${enable_cassert+set}" = set; then
5055 enableval=$enable_cassert;
5059 cat >>confdefs.h <<\_ACEOF
5060 #define USE_ASSERT_CHECKING 1
5068 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5069 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5070 { (exit 1); exit 1; }; }
5083 # Include directories
5086 IFS="${IFS}${PATH_SEPARATOR}"
5087 # SRCH_INC comes from the template file
5088 for dir in $with_includes $SRCH_INC; do
5089 if test -d "$dir"; then
5090 INCLUDES="$INCLUDES -I$dir"
5092 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5093 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5101 # Library directories
5104 IFS="${IFS}${PATH_SEPARATOR}"
5105 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5106 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5107 if test -d "$dir"; then
5108 LIBDIRS="$LIBDIRS -L$dir"
5110 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5111 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5117 # Enable thread-safe client libraries
5119 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5120 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5123 # Check whether --enable-thread-safety was given.
5124 if test "${enable_thread_safety+set}" = set; then
5125 enableval=$enable_thread_safety;
5134 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5135 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5136 { (exit 1); exit 1; }; }
5141 enable_thread_safety=yes
5146 if test "$enable_thread_safety" = yes; then
5148 cat >>confdefs.h <<\_ACEOF
5149 #define ENABLE_THREAD_SAFETY 1
5153 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5154 $as_echo "$enable_thread_safety" >&6; }
5158 # Optionally build Tcl modules (PL/Tcl)
5160 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5161 $as_echo_n "checking whether to build with Tcl... " >&6; }
5165 # Check whether --with-tcl was given.
5166 if test "${with_tcl+set}" = set; then
5176 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5177 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5178 { (exit 1); exit 1; }; }
5188 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5189 $as_echo "$with_tcl" >&6; }
5192 # We see if the path to the Tcl/Tk configuration scripts is specified.
5193 # This will override the use of tclsh to find the paths to search.
5198 # Check whether --with-tclconfig was given.
5199 if test "${with_tclconfig+set}" = set; then
5200 withval=$with_tclconfig;
5203 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5204 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5205 { (exit 1); exit 1; }; }
5208 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5209 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5210 { (exit 1); exit 1; }; }
5222 # Optionally build Perl modules (PL/Perl)
5224 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5225 $as_echo_n "checking whether to build Perl modules... " >&6; }
5229 # Check whether --with-perl was given.
5230 if test "${with_perl+set}" = set; then
5240 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5241 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5242 { (exit 1); exit 1; }; }
5252 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5253 $as_echo "$with_perl" >&6; }
5257 # Optionally build Python modules (PL/Python)
5259 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5260 $as_echo_n "checking whether to build Python modules... " >&6; }
5264 # Check whether --with-python was given.
5265 if test "${with_python+set}" = set; then
5266 withval=$with_python;
5275 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5276 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5277 { (exit 1); exit 1; }; }
5287 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5288 $as_echo "$with_python" >&6; }
5294 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5295 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5299 # Check whether --with-gssapi was given.
5300 if test "${with_gssapi+set}" = set; then
5301 withval=$with_gssapi;
5306 cat >>confdefs.h <<\_ACEOF
5307 #define ENABLE_GSS 1
5310 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5317 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5318 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5319 { (exit 1); exit 1; }; }
5329 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5330 $as_echo "$with_gssapi" >&6; }
5336 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5337 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5341 # Check whether --with-krb5 was given.
5342 if test "${with_krb5+set}" = set; then
5348 cat >>confdefs.h <<\_ACEOF
5352 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5359 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5360 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5361 { (exit 1); exit 1; }; }
5371 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5372 $as_echo "$with_krb5" >&6; }
5380 # Kerberos configuration parameters
5385 # Check whether --with-krb-srvnam was given.
5386 if test "${with_krb_srvnam+set}" = set; then
5387 withval=$with_krb_srvnam;
5390 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5391 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5392 { (exit 1); exit 1; }; }
5395 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5396 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5397 { (exit 1); exit 1; }; }
5405 with_krb_srvnam="postgres"
5410 cat >>confdefs.h <<_ACEOF
5411 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5419 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5420 $as_echo_n "checking whether to build with PAM support... " >&6; }
5424 # Check whether --with-pam was given.
5425 if test "${with_pam+set}" = set; then
5430 cat >>confdefs.h <<\_ACEOF
5439 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5440 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5441 { (exit 1); exit 1; }; }
5451 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5452 $as_echo "$with_pam" >&6; }
5459 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5460 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5464 # Check whether --with-ldap was given.
5465 if test "${with_ldap+set}" = set; then
5470 cat >>confdefs.h <<\_ACEOF
5479 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5480 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5481 { (exit 1); exit 1; }; }
5491 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5492 $as_echo "$with_ldap" >&6; }
5499 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5500 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5504 # Check whether --with-bonjour was given.
5505 if test "${with_bonjour+set}" = set; then
5506 withval=$with_bonjour;
5510 cat >>confdefs.h <<\_ACEOF
5511 #define USE_BONJOUR 1
5519 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5520 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5521 { (exit 1); exit 1; }; }
5531 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5532 $as_echo "$with_bonjour" >&6; }
5539 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5540 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5544 # Check whether --with-openssl was given.
5545 if test "${with_openssl+set}" = set; then
5546 withval=$with_openssl;
5550 cat >>confdefs.h <<\_ACEOF
5559 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5560 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5561 { (exit 1); exit 1; }; }
5571 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5572 $as_echo "$with_openssl" >&6; }
5578 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5579 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5583 # Check whether --with-selinux was given.
5584 if test "${with_selinux+set}" = set; then
5585 withval=$with_selinux;
5594 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5595 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5596 { (exit 1); exit 1; }; }
5607 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5608 $as_echo "$with_selinux" >&6; }
5616 # Check whether --with-readline was given.
5617 if test "${with_readline+set}" = set; then
5618 withval=$with_readline;
5627 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5628 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5629 { (exit 1); exit 1; }; }
5639 # readline on MinGW has problems with backslashes in psql and other bugs.
5640 # This is particularly a problem with non-US code pages.
5641 # Therefore disable its use until we understand the cause. 2004-07-20
5642 if test "$PORTNAME" = "win32"; then
5643 if test "$with_readline" = yes; then
5644 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5645 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5657 # Check whether --with-libedit-preferred was given.
5658 if test "${with_libedit_preferred+set}" = set; then
5659 withval=$with_libedit_preferred;
5668 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5669 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5670 { (exit 1); exit 1; }; }
5675 with_libedit_preferred=no
5688 # Check whether --with-ossp-uuid was given.
5689 if test "${with_ossp_uuid+set}" = set; then
5690 withval=$with_ossp_uuid;
5699 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5700 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5701 { (exit 1); exit 1; }; }
5720 # Check whether --with-libxml was given.
5721 if test "${with_libxml+set}" = set; then
5722 withval=$with_libxml;
5726 cat >>confdefs.h <<\_ACEOF
5727 #define USE_LIBXML 1
5735 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5736 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5737 { (exit 1); exit 1; }; }
5748 if test "$with_libxml" = yes ; then
5749 for ac_prog in xml2-config
5751 # Extract the first word of "$ac_prog", so it can be a program name with args.
5752 set dummy $ac_prog; ac_word=$2
5753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5756 $as_echo_n "(cached) " >&6
5758 if test -n "$XML2_CONFIG"; then
5759 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_prog_XML2_CONFIG="$ac_prog"
5769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5779 if test -n "$XML2_CONFIG"; then
5780 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5781 $as_echo "$XML2_CONFIG" >&6; }
5783 { $as_echo "$as_me:$LINENO: result: no" >&5
5784 $as_echo "no" >&6; }
5788 test -n "$XML2_CONFIG" && break
5791 if test -n "$XML2_CONFIG"; then
5792 for pgac_option in `$XML2_CONFIG --cflags`; do
5793 case $pgac_option in
5794 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5797 for pgac_option in `$XML2_CONFIG --libs`; do
5798 case $pgac_option in
5799 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5813 # Check whether --with-libxslt was given.
5814 if test "${with_libxslt+set}" = set; then
5815 withval=$with_libxslt;
5819 cat >>confdefs.h <<\_ACEOF
5820 #define USE_LIBXSLT 1
5828 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5829 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5830 { (exit 1); exit 1; }; }
5850 # Check whether --with-system-tzdata was given.
5851 if test "${with_system_tzdata+set}" = set; then
5852 withval=$with_system_tzdata;
5855 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5856 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5857 { (exit 1); exit 1; }; }
5860 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5861 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5862 { (exit 1); exit 1; }; }
5880 # Check whether --with-zlib was given.
5881 if test "${with_zlib+set}" = set; then
5891 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5892 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5893 { (exit 1); exit 1; }; }
5909 # Assume system is ELF if it predefines __ELF__ as 1,
5910 # otherwise believe host_os based default.
5912 freebsd1*|freebsd2*) elf=no;;
5913 freebsd3*|freebsd4*) elf=yes;;
5917 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5918 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5919 if test "${ac_cv_path_GREP+set}" = set; then
5920 $as_echo_n "(cached) " >&6
5922 if test -z "$GREP"; then
5923 ac_path_GREP_found=false
5924 # Loop through the user's path and test for each of PROGNAME-LIST
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5929 test -z "$as_dir" && as_dir=.
5930 for ac_prog in grep ggrep; do
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5933 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5934 # Check for GNU ac_path_GREP and select it if it is found.
5935 # Check for GNU $ac_path_GREP
5936 case `"$ac_path_GREP" --version 2>&1` in
5938 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5941 $as_echo_n 0123456789 >"conftest.in"
5944 cat "conftest.in" "conftest.in" >"conftest.tmp"
5945 mv "conftest.tmp" "conftest.in"
5946 cp "conftest.in" "conftest.nl"
5947 $as_echo 'GREP' >> "conftest.nl"
5948 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5949 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5950 ac_count=`expr $ac_count + 1`
5951 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5952 # Best one so far, save it but keep looking for a better one
5953 ac_cv_path_GREP="$ac_path_GREP"
5954 ac_path_GREP_max=$ac_count
5956 # 10*(2^10) chars as input seems more than enough
5957 test $ac_count -gt 10 && break
5959 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5962 $ac_path_GREP_found && break 3
5967 if test -z "$ac_cv_path_GREP"; then
5968 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5969 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5970 { (exit 1); exit 1; }; }
5973 ac_cv_path_GREP=$GREP
5977 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5978 $as_echo "$ac_cv_path_GREP" >&6; }
5979 GREP="$ac_cv_path_GREP"
5982 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5983 $as_echo_n "checking for egrep... " >&6; }
5984 if test "${ac_cv_path_EGREP+set}" = set; then
5985 $as_echo_n "(cached) " >&6
5987 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5988 then ac_cv_path_EGREP="$GREP -E"
5990 if test -z "$EGREP"; then
5991 ac_path_EGREP_found=false
5992 # Loop through the user's path and test for each of PROGNAME-LIST
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5997 test -z "$as_dir" && as_dir=.
5998 for ac_prog in egrep; do
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6001 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6002 # Check for GNU ac_path_EGREP and select it if it is found.
6003 # Check for GNU $ac_path_EGREP
6004 case `"$ac_path_EGREP" --version 2>&1` in
6006 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6009 $as_echo_n 0123456789 >"conftest.in"
6012 cat "conftest.in" "conftest.in" >"conftest.tmp"
6013 mv "conftest.tmp" "conftest.in"
6014 cp "conftest.in" "conftest.nl"
6015 $as_echo 'EGREP' >> "conftest.nl"
6016 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6018 ac_count=`expr $ac_count + 1`
6019 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6020 # Best one so far, save it but keep looking for a better one
6021 ac_cv_path_EGREP="$ac_path_EGREP"
6022 ac_path_EGREP_max=$ac_count
6024 # 10*(2^10) chars as input seems more than enough
6025 test $ac_count -gt 10 && break
6027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6030 $ac_path_EGREP_found && break 3
6035 if test -z "$ac_cv_path_EGREP"; then
6036 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6037 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6038 { (exit 1); exit 1; }; }
6041 ac_cv_path_EGREP=$EGREP
6046 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6047 $as_echo "$ac_cv_path_EGREP" >&6; }
6048 EGREP="$ac_cv_path_EGREP"
6051 cat >conftest.$ac_ext <<_ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063 $EGREP "yes" >/dev/null 2>&1; then
6066 if test "X$elf" = "Xyes" ; then
6080 CPPFLAGS="$CPPFLAGS $INCLUDES"
6081 LDFLAGS="$LDFLAGS $LIBDIRS"
6087 # Check whether --with-gnu-ld was given.
6088 if test "${with_gnu_ld+set}" = set; then
6089 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6095 if test "$GCC" = yes; then
6096 # Check if gcc -print-prog-name=ld gives a path.
6097 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6098 $as_echo_n "checking for ld used by GCC... " >&6; }
6101 # gcc leaves a trailing carriage return which upsets mingw
6102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6107 # Accept absolute paths.
6108 [\\/]* | [A-Za-z]:[\\/]*)
6109 re_direlt='/[^/][^/]*/\.\./'
6110 # Canonicalize the path of ld
6111 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6112 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6113 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6115 test -z "$LD" && LD="$ac_prog"
6118 # If it fails, then pretend we aren't using GCC.
6122 # If it is relative, then search for the first ld in PATH.
6126 elif test "$with_gnu_ld" = yes; then
6127 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6128 $as_echo_n "checking for GNU ld... " >&6; }
6130 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6131 $as_echo_n "checking for non-GNU ld... " >&6; }
6133 if test "${ac_cv_path_LD+set}" = set; then
6134 $as_echo_n "(cached) " >&6
6136 if test -z "$LD"; then
6137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6138 for ac_dir in $PATH; do
6139 test -z "$ac_dir" && ac_dir=.
6140 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6141 ac_cv_path_LD="$ac_dir/$ac_prog"
6142 # Check to see if the program is GNU ld. I'd rather use --version,
6143 # but apparently some GNU ld's only accept -v.
6144 # Break only if it was the GNU/non-GNU ld that we prefer.
6145 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6146 test "$with_gnu_ld" != no && break
6148 test "$with_gnu_ld" != yes && break
6154 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6159 if test -n "$LD"; then
6160 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6161 $as_echo "$LD" >&6; }
6163 { $as_echo "$as_me:$LINENO: result: no" >&5
6164 $as_echo "no" >&6; }
6166 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6167 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6168 { (exit 1); exit 1; }; }
6169 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6170 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6171 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6174 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6175 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6176 ac_cv_prog_gnu_ld=yes
6178 ac_cv_prog_gnu_ld=no
6181 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6182 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6183 with_gnu_ld=$ac_cv_prog_gnu_ld
6188 case $host_os in sysv5*)
6189 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6190 $as_echo_n "checking whether ld -R works... " >&6; }
6191 if test "${pgac_cv_prog_ld_R+set}" = set; then
6192 $as_echo_n "(cached) " >&6
6195 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6196 cat >conftest.$ac_ext <<_ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6211 rm -f conftest.$ac_objext conftest$ac_exeext
6212 if { (ac_try="$ac_link"
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6218 $as_echo "$ac_try_echo") >&5
6219 (eval "$ac_link") 2>conftest.er1
6221 grep -v '^ *+' conftest.er1 >conftest.err
6223 cat conftest.err >&5
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && {
6226 test -z "$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6228 } && test -s conftest$ac_exeext && {
6229 test "$cross_compiling" = yes ||
6230 $as_test_x conftest$ac_exeext
6232 pgac_cv_prog_ld_R=yes
6234 $as_echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 pgac_cv_prog_ld_R=no
6240 rm -rf conftest.dSYM
6241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6242 conftest$ac_exeext conftest.$ac_ext
6243 LDFLAGS=$pgac_save_LDFLAGS
6246 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6247 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6248 ld_R_works=$pgac_cv_prog_ld_R
6251 if test -n "$ac_tool_prefix"; then
6252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6254 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if test "${ac_cv_prog_RANLIB+set}" = set; then
6257 $as_echo_n "(cached) " >&6
6259 if test -n "$RANLIB"; then
6260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 RANLIB=$ac_cv_prog_RANLIB
6280 if test -n "$RANLIB"; then
6281 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6282 $as_echo "$RANLIB" >&6; }
6284 { $as_echo "$as_me:$LINENO: result: no" >&5
6285 $as_echo "no" >&6; }
6290 if test -z "$ac_cv_prog_RANLIB"; then
6291 ac_ct_RANLIB=$RANLIB
6292 # Extract the first word of "ranlib", so it can be a program name with args.
6293 set dummy ranlib; ac_word=$2
6294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6297 $as_echo_n "(cached) " >&6
6299 if test -n "$ac_ct_RANLIB"; then
6300 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309 ac_cv_prog_ac_ct_RANLIB="ranlib"
6310 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6320 if test -n "$ac_ct_RANLIB"; then
6321 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6322 $as_echo "$ac_ct_RANLIB" >&6; }
6324 { $as_echo "$as_me:$LINENO: result: no" >&5
6325 $as_echo "no" >&6; }
6328 if test "x$ac_ct_RANLIB" = x; then
6331 case $cross_compiling:$ac_tool_warned in
6333 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335 ac_tool_warned=yes ;;
6337 RANLIB=$ac_ct_RANLIB
6340 RANLIB="$ac_cv_prog_RANLIB"
6344 if test -n "$ac_tool_prefix"; then
6345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6346 set dummy ${ac_tool_prefix}strip; ac_word=$2
6347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_STRIP+set}" = set; then
6350 $as_echo_n "(cached) " >&6
6352 if test -n "$STRIP"; then
6353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 STRIP=$ac_cv_prog_STRIP
6373 if test -n "$STRIP"; then
6374 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6375 $as_echo "$STRIP" >&6; }
6377 { $as_echo "$as_me:$LINENO: result: no" >&5
6378 $as_echo "no" >&6; }
6383 if test -z "$ac_cv_prog_STRIP"; then
6385 # Extract the first word of "strip", so it can be a program name with args.
6386 set dummy strip; ac_word=$2
6387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6390 $as_echo_n "(cached) " >&6
6392 if test -n "$ac_ct_STRIP"; then
6393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6402 ac_cv_prog_ac_ct_STRIP="strip"
6403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6413 if test -n "$ac_ct_STRIP"; then
6414 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6415 $as_echo "$ac_ct_STRIP" >&6; }
6417 { $as_echo "$as_me:$LINENO: result: no" >&5
6418 $as_echo "no" >&6; }
6421 if test "x$ac_ct_STRIP" = x; then
6424 case $cross_compiling:$ac_tool_warned in
6426 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6428 ac_tool_warned=yes ;;
6433 STRIP="$ac_cv_prog_STRIP"
6437 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6438 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6439 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6440 STRIP_STATIC_LIB="$STRIP -x"
6441 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6442 { $as_echo "$as_me:$LINENO: result: yes" >&5
6443 $as_echo "yes" >&6; }
6447 { $as_echo "$as_me:$LINENO: result: no" >&5
6448 $as_echo "no" >&6; }
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}ar; ac_word=$2
6456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_AR+set}" = set; then
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$AR"; then
6462 ac_cv_prog_AR="$AR" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_AR="${ac_tool_prefix}ar"
6472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 if test -n "$AR"; then
6483 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6484 $as_echo "$AR" >&6; }
6486 { $as_echo "$as_me:$LINENO: result: no" >&5
6487 $as_echo "no" >&6; }
6492 if test -z "$ac_cv_prog_AR"; then
6494 # Extract the first word of "ar", so it can be a program name with args.
6495 set dummy ar; ac_word=$2
6496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6499 $as_echo_n "(cached) " >&6
6501 if test -n "$ac_ct_AR"; then
6502 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_ac_ct_AR="ar"
6512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6522 if test -n "$ac_ct_AR"; then
6523 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6524 $as_echo "$ac_ct_AR" >&6; }
6526 { $as_echo "$as_me:$LINENO: result: no" >&5
6527 $as_echo "no" >&6; }
6530 if test "x$ac_ct_AR" = x; then
6533 case $cross_compiling:$ac_tool_warned in
6535 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6545 if test "$PORTNAME" = "win32"; then
6546 if test -n "$ac_tool_prefix"; then
6547 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6548 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6552 $as_echo_n "(cached) " >&6
6554 if test -n "$DLLTOOL"; then
6555 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 DLLTOOL=$ac_cv_prog_DLLTOOL
6575 if test -n "$DLLTOOL"; then
6576 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6577 $as_echo "$DLLTOOL" >&6; }
6579 { $as_echo "$as_me:$LINENO: result: no" >&5
6580 $as_echo "no" >&6; }
6585 if test -z "$ac_cv_prog_DLLTOOL"; then
6586 ac_ct_DLLTOOL=$DLLTOOL
6587 # Extract the first word of "dlltool", so it can be a program name with args.
6588 set dummy dlltool; ac_word=$2
6589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6592 $as_echo_n "(cached) " >&6
6594 if test -n "$ac_ct_DLLTOOL"; then
6595 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6615 if test -n "$ac_ct_DLLTOOL"; then
6616 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6617 $as_echo "$ac_ct_DLLTOOL" >&6; }
6619 { $as_echo "$as_me:$LINENO: result: no" >&5
6620 $as_echo "no" >&6; }
6623 if test "x$ac_ct_DLLTOOL" = x; then
6626 case $cross_compiling:$ac_tool_warned in
6628 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6630 ac_tool_warned=yes ;;
6632 DLLTOOL=$ac_ct_DLLTOOL
6635 DLLTOOL="$ac_cv_prog_DLLTOOL"
6638 if test -n "$ac_tool_prefix"; then
6639 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6644 $as_echo_n "(cached) " >&6
6646 if test -n "$DLLWRAP"; then
6647 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 DLLWRAP=$ac_cv_prog_DLLWRAP
6667 if test -n "$DLLWRAP"; then
6668 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6669 $as_echo "$DLLWRAP" >&6; }
6671 { $as_echo "$as_me:$LINENO: result: no" >&5
6672 $as_echo "no" >&6; }
6677 if test -z "$ac_cv_prog_DLLWRAP"; then
6678 ac_ct_DLLWRAP=$DLLWRAP
6679 # Extract the first word of "dllwrap", so it can be a program name with args.
6680 set dummy dllwrap; ac_word=$2
6681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6684 $as_echo_n "(cached) " >&6
6686 if test -n "$ac_ct_DLLWRAP"; then
6687 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6707 if test -n "$ac_ct_DLLWRAP"; then
6708 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6709 $as_echo "$ac_ct_DLLWRAP" >&6; }
6711 { $as_echo "$as_me:$LINENO: result: no" >&5
6712 $as_echo "no" >&6; }
6715 if test "x$ac_ct_DLLWRAP" = x; then
6718 case $cross_compiling:$ac_tool_warned in
6720 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6722 ac_tool_warned=yes ;;
6724 DLLWRAP=$ac_ct_DLLWRAP
6727 DLLWRAP="$ac_cv_prog_DLLWRAP"
6730 if test -n "$ac_tool_prefix"; then
6731 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6732 set dummy ${ac_tool_prefix}windres; ac_word=$2
6733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if test "${ac_cv_prog_WINDRES+set}" = set; then
6736 $as_echo_n "(cached) " >&6
6738 if test -n "$WINDRES"; then
6739 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 WINDRES=$ac_cv_prog_WINDRES
6759 if test -n "$WINDRES"; then
6760 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6761 $as_echo "$WINDRES" >&6; }
6763 { $as_echo "$as_me:$LINENO: result: no" >&5
6764 $as_echo "no" >&6; }
6769 if test -z "$ac_cv_prog_WINDRES"; then
6770 ac_ct_WINDRES=$WINDRES
6771 # Extract the first word of "windres", so it can be a program name with args.
6772 set dummy windres; ac_word=$2
6773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6776 $as_echo_n "(cached) " >&6
6778 if test -n "$ac_ct_WINDRES"; then
6779 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_prog_ac_ct_WINDRES="windres"
6789 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6799 if test -n "$ac_ct_WINDRES"; then
6800 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6801 $as_echo "$ac_ct_WINDRES" >&6; }
6803 { $as_echo "$as_me:$LINENO: result: no" >&5
6804 $as_echo "no" >&6; }
6807 if test "x$ac_ct_WINDRES" = x; then
6810 case $cross_compiling:$ac_tool_warned in
6812 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814 ac_tool_warned=yes ;;
6816 WINDRES=$ac_ct_WINDRES
6819 WINDRES="$ac_cv_prog_WINDRES"
6824 # Extract the first word of "tar", so it can be a program name with args.
6825 set dummy tar; ac_word=$2
6826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_path_TAR+set}" = set; then
6829 $as_echo_n "(cached) " >&6
6833 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 if test -n "$TAR"; then
6856 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6857 $as_echo "$TAR" >&6; }
6859 { $as_echo "$as_me:$LINENO: result: no" >&5
6860 $as_echo "no" >&6; }
6864 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6865 $as_echo_n "checking whether ln -s works... " >&6; }
6867 if test "$LN_S" = "ln -s"; then
6868 { $as_echo "$as_me:$LINENO: result: yes" >&5
6869 $as_echo "yes" >&6; }
6871 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6872 $as_echo "no, using $LN_S" >&6; }
6875 for ac_prog in gawk mawk nawk awk
6877 # Extract the first word of "$ac_prog", so it can be a program name with args.
6878 set dummy $ac_prog; ac_word=$2
6879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if test "${ac_cv_prog_AWK+set}" = set; then
6882 $as_echo_n "(cached) " >&6
6884 if test -n "$AWK"; then
6885 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894 ac_cv_prog_AWK="$ac_prog"
6895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 if test -n "$AWK"; then
6906 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6907 $as_echo "$AWK" >&6; }
6909 { $as_echo "$as_me:$LINENO: result: no" >&5
6910 $as_echo "no" >&6; }
6914 test -n "$AWK" && break
6917 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6918 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6919 if test -z "$MKDIR_P"; then
6920 if test "${ac_cv_path_mkdir+set}" = set; then
6921 $as_echo_n "(cached) " >&6
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6927 test -z "$as_dir" && as_dir=.
6928 for ac_prog in mkdir gmkdir; do
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6931 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6932 'mkdir (GNU coreutils) '* | \
6933 'mkdir (coreutils) '* | \
6934 'mkdir (fileutils) '4.1*)
6935 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6945 if test "${ac_cv_path_mkdir+set}" = set; then
6946 MKDIR_P="$ac_cv_path_mkdir -p"
6948 # As a last resort, use the slow shell script. Don't cache a
6949 # value for MKDIR_P within a source directory, because that will
6950 # break other packages using the cache if that directory is
6951 # removed, or if the value is a relative name.
6952 test -d ./--version && rmdir ./--version
6953 MKDIR_P="$ac_install_sh -d"
6956 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6957 $as_echo "$MKDIR_P" >&6; }
6959 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6960 # a relative path to it in each makefile where it subsitutes it. This clashes
6961 # with our Makefile.global concept. This workaround helps.
6963 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6966 # Let the user override the search
6967 if test -z "$BISON"; then
6968 for ac_prog in bison
6970 # Extract the first word of "$ac_prog", so it can be a program name with args.
6971 set dummy $ac_prog; ac_word=$2
6972 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 $as_echo_n "checking for $ac_word... " >&6; }
6974 if test "${ac_cv_path_BISON+set}" = set; then
6975 $as_echo_n "(cached) " >&6
6979 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 BISON=$ac_cv_path_BISON
7001 if test -n "$BISON"; then
7002 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7003 $as_echo "$BISON" >&6; }
7005 { $as_echo "$as_me:$LINENO: result: no" >&5
7006 $as_echo "no" >&6; }
7010 test -n "$BISON" && break
7015 if test "$BISON"; then
7016 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7017 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7018 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7019 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7021 { $as_echo "$as_me:$LINENO: WARNING:
7022 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7023 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7024 $as_echo "$as_me: WARNING:
7025 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7026 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7031 if test -z "$BISON"; then
7032 { $as_echo "$as_me:$LINENO: WARNING:
7033 *** Without Bison you will not be able to build PostgreSQL from Git nor
7034 *** change any of the parser definition files. You can obtain Bison from
7035 *** a GNU mirror site. (If you are using the official distribution of
7036 *** PostgreSQL then you do not need to worry about this, because the Bison
7037 *** output is pre-generated.)" >&5
7038 $as_echo "$as_me: WARNING:
7039 *** Without Bison you will not be able to build PostgreSQL from Git nor
7040 *** change any of the parser definition files. You can obtain Bison from
7041 *** a GNU mirror site. (If you are using the official distribution of
7042 *** PostgreSQL then you do not need to worry about this, because the Bison
7043 *** output is pre-generated.)" >&2;}
7045 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7048 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7049 $as_echo_n "checking for flex... " >&6; }
7050 if test "${pgac_cv_path_flex+set}" = set; then
7051 $as_echo_n "(cached) " >&6
7053 # Let the user override the test
7054 if test -n "$FLEX"; then
7055 pgac_cv_path_flex=$FLEX
7059 for pgac_dir in $PATH; do
7061 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7064 for pgac_prog in flex lex; do
7065 pgac_candidate="$pgac_dir/$pgac_prog"
7066 if test -f "$pgac_candidate" \
7067 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7069 echo '%%' > conftest.l
7070 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7071 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7072 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7074 pgac_cv_path_flex=$pgac_candidate
7077 { $as_echo "$as_me:$LINENO: WARNING:
7078 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7079 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7080 $as_echo "$as_me: WARNING:
7081 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7082 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7088 rm -f conftest.l lex.yy.c
7089 : ${pgac_cv_path_flex=no}
7093 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7094 $as_echo "$pgac_cv_path_flex" >&6; }
7095 if test x"$pgac_cv_path_flex" = x"no"; then
7096 { $as_echo "$as_me:$LINENO: WARNING:
7097 *** Without Flex you will not be able to build PostgreSQL from Git nor
7098 *** change any of the scanner definition files. You can obtain Flex from
7099 *** a GNU mirror site. (If you are using the official distribution of
7100 *** PostgreSQL then you do not need to worry about this because the Flex
7101 *** output is pre-generated.)" >&5
7102 $as_echo "$as_me: WARNING:
7103 *** Without Flex you will not be able to build PostgreSQL from Git nor
7104 *** change any of the scanner definition files. You can obtain Flex from
7105 *** a GNU mirror site. (If you are using the official distribution of
7106 *** PostgreSQL then you do not need to worry about this because the Flex
7107 *** output is pre-generated.)" >&2;}
7111 FLEX=$pgac_cv_path_flex
7112 pgac_flex_version=`$FLEX --version 2>/dev/null`
7113 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7114 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7121 # Let the user override the search
7122 if test -z "$PERL"; then
7123 # Extract the first word of "perl", so it can be a program name with args.
7124 set dummy perl; ac_word=$2
7125 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if test "${ac_cv_path_PERL+set}" = set; then
7128 $as_echo_n "(cached) " >&6
7132 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7143 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 PERL=$ac_cv_path_PERL
7154 if test -n "$PERL"; then
7155 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7156 $as_echo "$PERL" >&6; }
7158 { $as_echo "$as_me:$LINENO: result: no" >&5
7159 $as_echo "no" >&6; }
7165 if test "$PERL"; then
7166 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'`
7167 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7168 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7169 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7170 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7172 { $as_echo "$as_me:$LINENO: WARNING:
7173 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7174 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7175 $as_echo "$as_me: WARNING:
7176 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7177 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7182 if test -z "$PERL"; then
7183 { $as_echo "$as_me:$LINENO: WARNING:
7184 *** Without Perl you will not be able to build PostgreSQL from Git.
7185 *** You can obtain Perl from any CPAN mirror site.
7186 *** (If you are using the official distribution of PostgreSQL then you do not
7187 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7188 $as_echo "$as_me: WARNING:
7189 *** Without Perl you will not be able to build PostgreSQL from Git.
7190 *** You can obtain Perl from any CPAN mirror site.
7191 *** (If you are using the official distribution of PostgreSQL then you do not
7192 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7195 if test "$with_perl" = yes; then
7196 if test -z "$PERL"; then
7197 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7198 $as_echo "$as_me: error: Perl not found" >&2;}
7199 { (exit 1); exit 1; }; }
7202 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7203 $as_echo_n "checking for Perl archlibexp... " >&6; }
7204 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7205 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7206 $as_echo "$perl_archlibexp" >&6; }
7207 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7208 $as_echo_n "checking for Perl privlibexp... " >&6; }
7209 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7210 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7211 $as_echo "$perl_privlibexp" >&6; }
7212 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7213 $as_echo_n "checking for Perl useshrplib... " >&6; }
7214 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7215 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7216 $as_echo "$perl_useshrplib" >&6; }
7218 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7219 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7220 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7221 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7222 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7223 if test -z "$perl_embed_ldflags" ; then
7224 { $as_echo "$as_me:$LINENO: result: no" >&5
7225 $as_echo "no" >&6; }
7226 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7227 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7229 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7230 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7232 { (exit 1); exit 1; }; }
7234 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7235 $as_echo "$perl_embed_ldflags" >&6; }
7240 if test "$with_python" = yes; then
7241 # Extract the first word of "python", so it can be a program name with args.
7242 set dummy python; ac_word=$2
7243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if test "${ac_cv_path_PYTHON+set}" = set; then
7246 $as_echo_n "(cached) " >&6
7250 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 PYTHON=$ac_cv_path_PYTHON
7272 if test -n "$PYTHON"; then
7273 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7274 $as_echo "$PYTHON" >&6; }
7276 { $as_echo "$as_me:$LINENO: result: no" >&5
7277 $as_echo "no" >&6; }
7281 if test x"$PYTHON" = x""; then
7282 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7283 $as_echo "$as_me: error: Python not found" >&2;}
7284 { (exit 1); exit 1; }; }
7288 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7289 $as_echo_n "checking for Python distutils module... " >&6; }
7290 if "${PYTHON}" -c 'import distutils' 2>&5
7292 { $as_echo "$as_me:$LINENO: result: yes" >&5
7293 $as_echo "yes" >&6; }
7295 { $as_echo "$as_me:$LINENO: result: no" >&5
7296 $as_echo "no" >&6; }
7297 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7298 $as_echo "$as_me: error: distutils module not found" >&2;}
7299 { (exit 1); exit 1; }; }
7301 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7302 $as_echo_n "checking Python configuration directory... " >&6; }
7303 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7304 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7305 python_configdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7306 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7308 # This should be enough of a message.
7309 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7310 $as_echo "$python_configdir" >&6; }
7313 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7314 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7316 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7317 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7318 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7319 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7321 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7323 # New way: use the official shared library
7324 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7325 python_libspec="-L${python_libdir} -l${ldlibrary}"
7327 # Old way: use libpython from python_configdir
7328 python_libdir="${python_configdir}"
7329 # LDVERSION was introduced in Python 3.2.
7330 python_ldversion=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7331 if test x"${python_ldversion}" = x""; then
7332 python_ldversion=$python_version
7334 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7337 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7339 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7340 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7343 # threaded python is not supported on bsd's
7344 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7345 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7346 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7347 if test "$pythreads" = "1"; then
7348 { $as_echo "$as_me:$LINENO: result: yes" >&5
7349 $as_echo "yes" >&6; }
7352 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7353 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7354 { (exit 1); exit 1; }; }
7358 { $as_echo "$as_me:$LINENO: result: no" >&5
7359 $as_echo "no" >&6; }
7365 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7366 # Extract the first word of "zic", so it can be a program name with args.
7367 set dummy zic; ac_word=$2
7368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if test "${ac_cv_path_ZIC+set}" = set; then
7371 $as_echo_n "(cached) " >&6
7375 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 if test -n "$ZIC"; then
7398 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7399 $as_echo "$ZIC" >&6; }
7401 { $as_echo "$as_me:$LINENO: result: no" >&5
7402 $as_echo "no" >&6; }
7406 if test -z "$ZIC"; then
7407 { { $as_echo "$as_me:$LINENO: error:
7408 When cross-compiling, either use the option --with-system-tzdata to use
7409 existing time-zone data, or set the environment variable ZIC to a zic
7410 program to use during the build." >&5
7411 $as_echo "$as_me: error:
7412 When cross-compiling, either use the option --with-system-tzdata to use
7413 existing time-zone data, or set the environment variable ZIC to a zic
7414 program to use during the build." >&2;}
7415 { (exit 1); exit 1; }; }
7423 ## Most libraries are included only if they demonstrably provide a function
7424 ## we need, but libm is an exception: always include it, because there are
7425 ## too many compilers that play cute optimization games that will break
7426 ## probes for standard functions such as pow().
7430 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7431 $as_echo_n "checking for main in -lm... " >&6; }
7432 if test "${ac_cv_lib_m_main+set}" = set; then
7433 $as_echo_n "(cached) " >&6
7435 ac_check_lib_save_LIBS=$LIBS
7437 cat >conftest.$ac_ext <<_ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7453 rm -f conftest.$ac_objext conftest$ac_exeext
7454 if { (ac_try="$ac_link"
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7460 $as_echo "$ac_try_echo") >&5
7461 (eval "$ac_link") 2>conftest.er1
7463 grep -v '^ *+' conftest.er1 >conftest.err
7465 cat conftest.err >&5
7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest$ac_exeext && {
7471 test "$cross_compiling" = yes ||
7472 $as_test_x conftest$ac_exeext
7474 ac_cv_lib_m_main=yes
7476 $as_echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7482 rm -rf conftest.dSYM
7483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7484 conftest$ac_exeext conftest.$ac_ext
7485 LIBS=$ac_check_lib_save_LIBS
7487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7488 $as_echo "$ac_cv_lib_m_main" >&6; }
7489 if test "x$ac_cv_lib_m_main" = x""yes; then
7490 cat >>confdefs.h <<_ACEOF
7498 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7499 $as_echo_n "checking for library containing setproctitle... " >&6; }
7500 if test "${ac_cv_search_setproctitle+set}" = set; then
7501 $as_echo_n "(cached) " >&6
7503 ac_func_search_save_LIBS=$LIBS
7504 cat >conftest.$ac_ext <<_ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7511 /* Override any GCC internal prototype to avoid an error.
7512 Use char because int might match the return type of a GCC
7513 builtin and then its argument prototype would still apply. */
7517 char setproctitle ();
7521 return setproctitle ();
7526 for ac_lib in '' util; do
7527 if test -z "$ac_lib"; then
7528 ac_res="none required"
7531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7533 rm -f conftest.$ac_objext conftest$ac_exeext
7534 if { (ac_try="$ac_link"
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7540 $as_echo "$ac_try_echo") >&5
7541 (eval "$ac_link") 2>conftest.er1
7543 grep -v '^ *+' conftest.er1 >conftest.err
7545 cat conftest.err >&5
7546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest$ac_exeext && {
7551 test "$cross_compiling" = yes ||
7552 $as_test_x conftest$ac_exeext
7554 ac_cv_search_setproctitle=$ac_res
7556 $as_echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7562 rm -rf conftest.dSYM
7563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7565 if test "${ac_cv_search_setproctitle+set}" = set; then
7569 if test "${ac_cv_search_setproctitle+set}" = set; then
7572 ac_cv_search_setproctitle=no
7575 LIBS=$ac_func_search_save_LIBS
7577 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7578 $as_echo "$ac_cv_search_setproctitle" >&6; }
7579 ac_res=$ac_cv_search_setproctitle
7580 if test "$ac_res" != no; then
7581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7585 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7586 $as_echo_n "checking for library containing dlopen... " >&6; }
7587 if test "${ac_cv_search_dlopen+set}" = set; then
7588 $as_echo_n "(cached) " >&6
7590 ac_func_search_save_LIBS=$LIBS
7591 cat >conftest.$ac_ext <<_ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7598 /* Override any GCC internal prototype to avoid an error.
7599 Use char because int might match the return type of a GCC
7600 builtin and then its argument prototype would still apply. */
7613 for ac_lib in '' dl; do
7614 if test -z "$ac_lib"; then
7615 ac_res="none required"
7618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7627 $as_echo "$ac_try_echo") >&5
7628 (eval "$ac_link") 2>conftest.er1
7630 grep -v '^ *+' conftest.er1 >conftest.err
7632 cat conftest.err >&5
7633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && {
7635 test -z "$ac_c_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest$ac_exeext && {
7638 test "$cross_compiling" = yes ||
7639 $as_test_x conftest$ac_exeext
7641 ac_cv_search_dlopen=$ac_res
7643 $as_echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7649 rm -rf conftest.dSYM
7650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7652 if test "${ac_cv_search_dlopen+set}" = set; then
7656 if test "${ac_cv_search_dlopen+set}" = set; then
7659 ac_cv_search_dlopen=no
7662 LIBS=$ac_func_search_save_LIBS
7664 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7665 $as_echo "$ac_cv_search_dlopen" >&6; }
7666 ac_res=$ac_cv_search_dlopen
7667 if test "$ac_res" != no; then
7668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7672 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7673 $as_echo_n "checking for library containing socket... " >&6; }
7674 if test "${ac_cv_search_socket+set}" = set; then
7675 $as_echo_n "(cached) " >&6
7677 ac_func_search_save_LIBS=$LIBS
7678 cat >conftest.$ac_ext <<_ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7685 /* Override any GCC internal prototype to avoid an error.
7686 Use char because int might match the return type of a GCC
7687 builtin and then its argument prototype would still apply. */
7700 for ac_lib in '' socket wsock32; do
7701 if test -z "$ac_lib"; then
7702 ac_res="none required"
7705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (ac_try="$ac_link"
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7714 $as_echo "$ac_try_echo") >&5
7715 (eval "$ac_link") 2>conftest.er1
7717 grep -v '^ *+' conftest.er1 >conftest.err
7719 cat conftest.err >&5
7720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_c_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest$ac_exeext && {
7725 test "$cross_compiling" = yes ||
7726 $as_test_x conftest$ac_exeext
7728 ac_cv_search_socket=$ac_res
7730 $as_echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7736 rm -rf conftest.dSYM
7737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7739 if test "${ac_cv_search_socket+set}" = set; then
7743 if test "${ac_cv_search_socket+set}" = set; then
7746 ac_cv_search_socket=no
7749 LIBS=$ac_func_search_save_LIBS
7751 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7752 $as_echo "$ac_cv_search_socket" >&6; }
7753 ac_res=$ac_cv_search_socket
7754 if test "$ac_res" != no; then
7755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7759 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7760 $as_echo_n "checking for library containing shl_load... " >&6; }
7761 if test "${ac_cv_search_shl_load+set}" = set; then
7762 $as_echo_n "(cached) " >&6
7764 ac_func_search_save_LIBS=$LIBS
7765 cat >conftest.$ac_ext <<_ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7772 /* Override any GCC internal prototype to avoid an error.
7773 Use char because int might match the return type of a GCC
7774 builtin and then its argument prototype would still apply. */
7787 for ac_lib in '' dld; do
7788 if test -z "$ac_lib"; then
7789 ac_res="none required"
7792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7794 rm -f conftest.$ac_objext conftest$ac_exeext
7795 if { (ac_try="$ac_link"
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7801 $as_echo "$ac_try_echo") >&5
7802 (eval "$ac_link") 2>conftest.er1
7804 grep -v '^ *+' conftest.er1 >conftest.err
7806 cat conftest.err >&5
7807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); } && {
7809 test -z "$ac_c_werror_flag" ||
7810 test ! -s conftest.err
7811 } && test -s conftest$ac_exeext && {
7812 test "$cross_compiling" = yes ||
7813 $as_test_x conftest$ac_exeext
7815 ac_cv_search_shl_load=$ac_res
7817 $as_echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7823 rm -rf conftest.dSYM
7824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7826 if test "${ac_cv_search_shl_load+set}" = set; then
7830 if test "${ac_cv_search_shl_load+set}" = set; then
7833 ac_cv_search_shl_load=no
7836 LIBS=$ac_func_search_save_LIBS
7838 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7839 $as_echo "$ac_cv_search_shl_load" >&6; }
7840 ac_res=$ac_cv_search_shl_load
7841 if test "$ac_res" != no; then
7842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7846 # We only use libld in port/dynloader/aix.c
7849 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7850 $as_echo_n "checking for library containing ldopen... " >&6; }
7851 if test "${ac_cv_search_ldopen+set}" = set; then
7852 $as_echo_n "(cached) " >&6
7854 ac_func_search_save_LIBS=$LIBS
7855 cat >conftest.$ac_ext <<_ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7862 /* Override any GCC internal prototype to avoid an error.
7863 Use char because int might match the return type of a GCC
7864 builtin and then its argument prototype would still apply. */
7877 for ac_lib in '' ld; do
7878 if test -z "$ac_lib"; then
7879 ac_res="none required"
7882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (ac_try="$ac_link"
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7891 $as_echo "$ac_try_echo") >&5
7892 (eval "$ac_link") 2>conftest.er1
7894 grep -v '^ *+' conftest.er1 >conftest.err
7896 cat conftest.err >&5
7897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } && {
7899 test -z "$ac_c_werror_flag" ||
7900 test ! -s conftest.err
7901 } && test -s conftest$ac_exeext && {
7902 test "$cross_compiling" = yes ||
7903 $as_test_x conftest$ac_exeext
7905 ac_cv_search_ldopen=$ac_res
7907 $as_echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7913 rm -rf conftest.dSYM
7914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7916 if test "${ac_cv_search_ldopen+set}" = set; then
7920 if test "${ac_cv_search_ldopen+set}" = set; then
7923 ac_cv_search_ldopen=no
7926 LIBS=$ac_func_search_save_LIBS
7928 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7929 $as_echo "$ac_cv_search_ldopen" >&6; }
7930 ac_res=$ac_cv_search_ldopen
7931 if test "$ac_res" != no; then
7932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7938 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7939 $as_echo_n "checking for library containing getopt_long... " >&6; }
7940 if test "${ac_cv_search_getopt_long+set}" = set; then
7941 $as_echo_n "(cached) " >&6
7943 ac_func_search_save_LIBS=$LIBS
7944 cat >conftest.$ac_ext <<_ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7951 /* Override any GCC internal prototype to avoid an error.
7952 Use char because int might match the return type of a GCC
7953 builtin and then its argument prototype would still apply. */
7957 char getopt_long ();
7961 return getopt_long ();
7966 for ac_lib in '' getopt gnugetopt; do
7967 if test -z "$ac_lib"; then
7968 ac_res="none required"
7971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_link") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest$ac_exeext && {
7991 test "$cross_compiling" = yes ||
7992 $as_test_x conftest$ac_exeext
7994 ac_cv_search_getopt_long=$ac_res
7996 $as_echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
8002 rm -rf conftest.dSYM
8003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8005 if test "${ac_cv_search_getopt_long+set}" = set; then
8009 if test "${ac_cv_search_getopt_long+set}" = set; then
8012 ac_cv_search_getopt_long=no
8015 LIBS=$ac_func_search_save_LIBS
8017 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8018 $as_echo "$ac_cv_search_getopt_long" >&6; }
8019 ac_res=$ac_cv_search_getopt_long
8020 if test "$ac_res" != no; then
8021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8025 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8026 $as_echo_n "checking for library containing crypt... " >&6; }
8027 if test "${ac_cv_search_crypt+set}" = set; then
8028 $as_echo_n "(cached) " >&6
8030 ac_func_search_save_LIBS=$LIBS
8031 cat >conftest.$ac_ext <<_ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8038 /* Override any GCC internal prototype to avoid an error.
8039 Use char because int might match the return type of a GCC
8040 builtin and then its argument prototype would still apply. */
8053 for ac_lib in '' crypt; do
8054 if test -z "$ac_lib"; then
8055 ac_res="none required"
8058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8060 rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (ac_try="$ac_link"
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8067 $as_echo "$ac_try_echo") >&5
8068 (eval "$ac_link") 2>conftest.er1
8070 grep -v '^ *+' conftest.er1 >conftest.err
8072 cat conftest.err >&5
8073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest$ac_exeext && {
8078 test "$cross_compiling" = yes ||
8079 $as_test_x conftest$ac_exeext
8081 ac_cv_search_crypt=$ac_res
8083 $as_echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8089 rm -rf conftest.dSYM
8090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8092 if test "${ac_cv_search_crypt+set}" = set; then
8096 if test "${ac_cv_search_crypt+set}" = set; then
8099 ac_cv_search_crypt=no
8102 LIBS=$ac_func_search_save_LIBS
8104 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8105 $as_echo "$ac_cv_search_crypt" >&6; }
8106 ac_res=$ac_cv_search_crypt
8107 if test "$ac_res" != no; then
8108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8113 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8114 $as_echo_n "checking for library containing fdatasync... " >&6; }
8115 if test "${ac_cv_search_fdatasync+set}" = set; then
8116 $as_echo_n "(cached) " >&6
8118 ac_func_search_save_LIBS=$LIBS
8119 cat >conftest.$ac_ext <<_ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8126 /* Override any GCC internal prototype to avoid an error.
8127 Use char because int might match the return type of a GCC
8128 builtin and then its argument prototype would still apply. */
8136 return fdatasync ();
8141 for ac_lib in '' rt posix4; do
8142 if test -z "$ac_lib"; then
8143 ac_res="none required"
8146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8148 rm -f conftest.$ac_objext conftest$ac_exeext
8149 if { (ac_try="$ac_link"
8151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152 *) ac_try_echo=$ac_try;;
8154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8155 $as_echo "$ac_try_echo") >&5
8156 (eval "$ac_link") 2>conftest.er1
8158 grep -v '^ *+' conftest.er1 >conftest.err
8160 cat conftest.err >&5
8161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest$ac_exeext && {
8166 test "$cross_compiling" = yes ||
8167 $as_test_x conftest$ac_exeext
8169 ac_cv_search_fdatasync=$ac_res
8171 $as_echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8177 rm -rf conftest.dSYM
8178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8180 if test "${ac_cv_search_fdatasync+set}" = set; then
8184 if test "${ac_cv_search_fdatasync+set}" = set; then
8187 ac_cv_search_fdatasync=no
8190 LIBS=$ac_func_search_save_LIBS
8192 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8193 $as_echo "$ac_cv_search_fdatasync" >&6; }
8194 ac_res=$ac_cv_search_fdatasync
8195 if test "$ac_res" != no; then
8196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8200 # Required for thread_test.c on Solaris 2.5:
8201 # Other ports use it too (HP-UX) so test unconditionally
8202 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8203 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8204 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8205 $as_echo_n "(cached) " >&6
8207 ac_func_search_save_LIBS=$LIBS
8208 cat >conftest.$ac_ext <<_ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8215 /* Override any GCC internal prototype to avoid an error.
8216 Use char because int might match the return type of a GCC
8217 builtin and then its argument prototype would still apply. */
8221 char gethostbyname_r ();
8225 return gethostbyname_r ();
8230 for ac_lib in '' nsl; do
8231 if test -z "$ac_lib"; then
8232 ac_res="none required"
8235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8237 rm -f conftest.$ac_objext conftest$ac_exeext
8238 if { (ac_try="$ac_link"
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8244 $as_echo "$ac_try_echo") >&5
8245 (eval "$ac_link") 2>conftest.er1
8247 grep -v '^ *+' conftest.er1 >conftest.err
8249 cat conftest.err >&5
8250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } && {
8252 test -z "$ac_c_werror_flag" ||
8253 test ! -s conftest.err
8254 } && test -s conftest$ac_exeext && {
8255 test "$cross_compiling" = yes ||
8256 $as_test_x conftest$ac_exeext
8258 ac_cv_search_gethostbyname_r=$ac_res
8260 $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8266 rm -rf conftest.dSYM
8267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8269 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8273 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8276 ac_cv_search_gethostbyname_r=no
8279 LIBS=$ac_func_search_save_LIBS
8281 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8282 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8283 ac_res=$ac_cv_search_gethostbyname_r
8284 if test "$ac_res" != no; then
8285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8290 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8291 $as_echo_n "checking for library containing shmget... " >&6; }
8292 if test "${ac_cv_search_shmget+set}" = set; then
8293 $as_echo_n "(cached) " >&6
8295 ac_func_search_save_LIBS=$LIBS
8296 cat >conftest.$ac_ext <<_ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8303 /* Override any GCC internal prototype to avoid an error.
8304 Use char because int might match the return type of a GCC
8305 builtin and then its argument prototype would still apply. */
8318 for ac_lib in '' cygipc; do
8319 if test -z "$ac_lib"; then
8320 ac_res="none required"
8323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (ac_try="$ac_link"
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8332 $as_echo "$ac_try_echo") >&5
8333 (eval "$ac_link") 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest$ac_exeext && {
8343 test "$cross_compiling" = yes ||
8344 $as_test_x conftest$ac_exeext
8346 ac_cv_search_shmget=$ac_res
8348 $as_echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8354 rm -rf conftest.dSYM
8355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8357 if test "${ac_cv_search_shmget+set}" = set; then
8361 if test "${ac_cv_search_shmget+set}" = set; then
8364 ac_cv_search_shmget=no
8367 LIBS=$ac_func_search_save_LIBS
8369 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8370 $as_echo "$ac_cv_search_shmget" >&6; }
8371 ac_res=$ac_cv_search_shmget
8372 if test "$ac_res" != no; then
8373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8378 if test "$with_readline" = yes; then
8381 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8382 $as_echo_n "checking for library containing readline... " >&6; }
8383 if test "${pgac_cv_check_readline+set}" = set; then
8384 $as_echo_n "(cached) " >&6
8386 pgac_cv_check_readline=no
8387 pgac_save_LIBS=$LIBS
8388 if test x"$with_libedit_preferred" != x"yes"
8389 then READLINE_ORDER="-lreadline -ledit"
8390 else READLINE_ORDER="-ledit -lreadline"
8392 for pgac_rllib in $READLINE_ORDER ; do
8393 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8394 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8395 cat >conftest.$ac_ext <<_ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8402 /* Override any GCC internal prototype to avoid an error.
8403 Use char because int might match the return type of a GCC
8404 builtin and then its argument prototype would still apply. */
8417 rm -f conftest.$ac_objext conftest$ac_exeext
8418 if { (ac_try="$ac_link"
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8424 $as_echo "$ac_try_echo") >&5
8425 (eval "$ac_link") 2>conftest.er1
8427 grep -v '^ *+' conftest.er1 >conftest.err
8429 cat conftest.err >&5
8430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } && {
8432 test -z "$ac_c_werror_flag" ||
8433 test ! -s conftest.err
8434 } && test -s conftest$ac_exeext && {
8435 test "$cross_compiling" = yes ||
8436 $as_test_x conftest$ac_exeext
8439 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8440 # recognize dependent libraries; assume curses is needed if we didn't
8441 # find any dependency.
8443 netbsd* | openbsd* | irix*)
8444 if test x"$pgac_lib" = x"" ; then
8445 pgac_lib=" -lcurses"
8449 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8453 $as_echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8459 rm -rf conftest.dSYM
8460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8461 conftest$ac_exeext conftest.$ac_ext
8463 if test "$pgac_cv_check_readline" != no ; then
8467 LIBS=$pgac_save_LIBS
8470 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8471 $as_echo "$pgac_cv_check_readline" >&6; }
8472 if test "$pgac_cv_check_readline" != no ; then
8473 LIBS="$pgac_cv_check_readline $LIBS"
8475 cat >>confdefs.h <<\_ACEOF
8476 #define HAVE_LIBREADLINE 1
8482 if test x"$pgac_cv_check_readline" = x"no"; then
8483 { { $as_echo "$as_me:$LINENO: error: readline library not found
8484 If you have readline already installed, see config.log for details on the
8485 failure. It is possible the compiler isn't looking in the proper directory.
8486 Use --without-readline to disable readline support." >&5
8487 $as_echo "$as_me: error: readline library not found
8488 If you have readline already installed, see config.log for details on the
8489 failure. It is possible the compiler isn't looking in the proper directory.
8490 Use --without-readline to disable readline support." >&2;}
8491 { (exit 1); exit 1; }; }
8495 if test "$with_zlib" = yes; then
8497 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8498 $as_echo_n "checking for inflate in -lz... " >&6; }
8499 if test "${ac_cv_lib_z_inflate+set}" = set; then
8500 $as_echo_n "(cached) " >&6
8502 ac_check_lib_save_LIBS=$LIBS
8504 cat >conftest.$ac_ext <<_ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8511 /* Override any GCC internal prototype to avoid an error.
8512 Use char because int might match the return type of a GCC
8513 builtin and then its argument prototype would still apply. */
8526 rm -f conftest.$ac_objext conftest$ac_exeext
8527 if { (ac_try="$ac_link"
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8533 $as_echo "$ac_try_echo") >&5
8534 (eval "$ac_link") 2>conftest.er1
8536 grep -v '^ *+' conftest.er1 >conftest.err
8538 cat conftest.err >&5
8539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } && {
8541 test -z "$ac_c_werror_flag" ||
8542 test ! -s conftest.err
8543 } && test -s conftest$ac_exeext && {
8544 test "$cross_compiling" = yes ||
8545 $as_test_x conftest$ac_exeext
8547 ac_cv_lib_z_inflate=yes
8549 $as_echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8552 ac_cv_lib_z_inflate=no
8555 rm -rf conftest.dSYM
8556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8557 conftest$ac_exeext conftest.$ac_ext
8558 LIBS=$ac_check_lib_save_LIBS
8560 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8561 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8562 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8563 cat >>confdefs.h <<_ACEOF
8570 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8571 If you have zlib already installed, see config.log for details on the
8572 failure. It is possible the compiler isn't looking in the proper directory.
8573 Use --without-zlib to disable zlib support." >&5
8574 $as_echo "$as_me: error: zlib library not found
8575 If you have zlib already installed, see config.log for details on the
8576 failure. It is possible the compiler isn't looking in the proper directory.
8577 Use --without-zlib to disable zlib support." >&2;}
8578 { (exit 1); exit 1; }; }
8583 if test "$enable_spinlocks" = yes; then
8585 cat >>confdefs.h <<\_ACEOF
8586 #define HAVE_SPINLOCKS 1
8590 { $as_echo "$as_me:$LINENO: WARNING:
8591 *** Not using spinlocks will cause poor performance." >&5
8592 $as_echo "$as_me: WARNING:
8593 *** Not using spinlocks will cause poor performance." >&2;}
8596 if test "$with_gssapi" = yes ; then
8597 if test "$PORTNAME" != "win32"; then
8598 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8599 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8600 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8601 $as_echo_n "(cached) " >&6
8603 ac_func_search_save_LIBS=$LIBS
8604 cat >conftest.$ac_ext <<_ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8611 /* Override any GCC internal prototype to avoid an error.
8612 Use char because int might match the return type of a GCC
8613 builtin and then its argument prototype would still apply. */
8617 char gss_init_sec_context ();
8621 return gss_init_sec_context ();
8626 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8627 if test -z "$ac_lib"; then
8628 ac_res="none required"
8631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640 $as_echo "$ac_try_echo") >&5
8641 (eval "$ac_link") 2>conftest.er1
8643 grep -v '^ *+' conftest.er1 >conftest.err
8645 cat conftest.err >&5
8646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest$ac_exeext && {
8651 test "$cross_compiling" = yes ||
8652 $as_test_x conftest$ac_exeext
8654 ac_cv_search_gss_init_sec_context=$ac_res
8656 $as_echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8662 rm -rf conftest.dSYM
8663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8665 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8669 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8672 ac_cv_search_gss_init_sec_context=no
8675 LIBS=$ac_func_search_save_LIBS
8677 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8678 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8679 ac_res=$ac_cv_search_gss_init_sec_context
8680 if test "$ac_res" != no; then
8681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8684 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8685 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8686 { (exit 1); exit 1; }; }
8690 LIBS="$LIBS -lgssapi32"
8694 if test "$with_krb5" = yes ; then
8695 if test "$PORTNAME" != "win32"; then
8696 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8697 $as_echo_n "checking for library containing com_err... " >&6; }
8698 if test "${ac_cv_search_com_err+set}" = set; then
8699 $as_echo_n "(cached) " >&6
8701 ac_func_search_save_LIBS=$LIBS
8702 cat >conftest.$ac_ext <<_ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8709 /* Override any GCC internal prototype to avoid an error.
8710 Use char because int might match the return type of a GCC
8711 builtin and then its argument prototype would still apply. */
8724 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8725 if test -z "$ac_lib"; then
8726 ac_res="none required"
8729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8731 rm -f conftest.$ac_objext conftest$ac_exeext
8732 if { (ac_try="$ac_link"
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8738 $as_echo "$ac_try_echo") >&5
8739 (eval "$ac_link") 2>conftest.er1
8741 grep -v '^ *+' conftest.er1 >conftest.err
8743 cat conftest.err >&5
8744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } && {
8746 test -z "$ac_c_werror_flag" ||
8747 test ! -s conftest.err
8748 } && test -s conftest$ac_exeext && {
8749 test "$cross_compiling" = yes ||
8750 $as_test_x conftest$ac_exeext
8752 ac_cv_search_com_err=$ac_res
8754 $as_echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8760 rm -rf conftest.dSYM
8761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8763 if test "${ac_cv_search_com_err+set}" = set; then
8767 if test "${ac_cv_search_com_err+set}" = set; then
8770 ac_cv_search_com_err=no
8773 LIBS=$ac_func_search_save_LIBS
8775 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8776 $as_echo "$ac_cv_search_com_err" >&6; }
8777 ac_res=$ac_cv_search_com_err
8778 if test "$ac_res" != no; then
8779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8782 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8783 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8784 { (exit 1); exit 1; }; }
8787 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8788 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8789 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8790 $as_echo_n "(cached) " >&6
8792 ac_func_search_save_LIBS=$LIBS
8793 cat >conftest.$ac_ext <<_ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8800 /* Override any GCC internal prototype to avoid an error.
8801 Use char because int might match the return type of a GCC
8802 builtin and then its argument prototype would still apply. */
8806 char krb5_sendauth ();
8810 return krb5_sendauth ();
8815 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8816 if test -z "$ac_lib"; then
8817 ac_res="none required"
8820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (ac_try="$ac_link"
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8829 $as_echo "$ac_try_echo") >&5
8830 (eval "$ac_link") 2>conftest.er1
8832 grep -v '^ *+' conftest.er1 >conftest.err
8834 cat conftest.err >&5
8835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } && {
8837 test -z "$ac_c_werror_flag" ||
8838 test ! -s conftest.err
8839 } && test -s conftest$ac_exeext && {
8840 test "$cross_compiling" = yes ||
8841 $as_test_x conftest$ac_exeext
8843 ac_cv_search_krb5_sendauth=$ac_res
8845 $as_echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8851 rm -rf conftest.dSYM
8852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8854 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8858 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8861 ac_cv_search_krb5_sendauth=no
8864 LIBS=$ac_func_search_save_LIBS
8866 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8867 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8868 ac_res=$ac_cv_search_krb5_sendauth
8869 if test "$ac_res" != no; then
8870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8873 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8874 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8875 { (exit 1); exit 1; }; }
8879 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8880 $as_echo_n "checking for library containing com_err... " >&6; }
8881 if test "${ac_cv_search_com_err+set}" = set; then
8882 $as_echo_n "(cached) " >&6
8884 ac_func_search_save_LIBS=$LIBS
8885 cat >conftest.$ac_ext <<_ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8892 /* Override any GCC internal prototype to avoid an error.
8893 Use char because int might match the return type of a GCC
8894 builtin and then its argument prototype would still apply. */
8907 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8908 if test -z "$ac_lib"; then
8909 ac_res="none required"
8912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (ac_try="$ac_link"
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8921 $as_echo "$ac_try_echo") >&5
8922 (eval "$ac_link") 2>conftest.er1
8924 grep -v '^ *+' conftest.er1 >conftest.err
8926 cat conftest.err >&5
8927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest$ac_exeext && {
8932 test "$cross_compiling" = yes ||
8933 $as_test_x conftest$ac_exeext
8935 ac_cv_search_com_err=$ac_res
8937 $as_echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8943 rm -rf conftest.dSYM
8944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8946 if test "${ac_cv_search_com_err+set}" = set; then
8950 if test "${ac_cv_search_com_err+set}" = set; then
8953 ac_cv_search_com_err=no
8956 LIBS=$ac_func_search_save_LIBS
8958 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8959 $as_echo "$ac_cv_search_com_err" >&6; }
8960 ac_res=$ac_cv_search_com_err
8961 if test "$ac_res" != no; then
8962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8965 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8966 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8967 { (exit 1); exit 1; }; }
8973 if test "$with_openssl" = yes ; then
8974 if test "$PORTNAME" != "win32"; then
8976 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8977 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8978 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8979 $as_echo_n "(cached) " >&6
8981 ac_check_lib_save_LIBS=$LIBS
8982 LIBS="-lcrypto $LIBS"
8983 cat >conftest.$ac_ext <<_ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8990 /* Override any GCC internal prototype to avoid an error.
8991 Use char because int might match the return type of a GCC
8992 builtin and then its argument prototype would still apply. */
8996 char CRYPTO_new_ex_data ();
9000 return CRYPTO_new_ex_data ();
9005 rm -f conftest.$ac_objext conftest$ac_exeext
9006 if { (ac_try="$ac_link"
9008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009 *) ac_try_echo=$ac_try;;
9011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9012 $as_echo "$ac_try_echo") >&5
9013 (eval "$ac_link") 2>conftest.er1
9015 grep -v '^ *+' conftest.er1 >conftest.err
9017 cat conftest.err >&5
9018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } && {
9020 test -z "$ac_c_werror_flag" ||
9021 test ! -s conftest.err
9022 } && test -s conftest$ac_exeext && {
9023 test "$cross_compiling" = yes ||
9024 $as_test_x conftest$ac_exeext
9026 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9028 $as_echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9034 rm -rf conftest.dSYM
9035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9036 conftest$ac_exeext conftest.$ac_ext
9037 LIBS=$ac_check_lib_save_LIBS
9039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9040 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9041 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9042 cat >>confdefs.h <<_ACEOF
9043 #define HAVE_LIBCRYPTO 1
9046 LIBS="-lcrypto $LIBS"
9049 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9050 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9051 { (exit 1); exit 1; }; }
9055 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9056 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9057 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9058 $as_echo_n "(cached) " >&6
9060 ac_check_lib_save_LIBS=$LIBS
9062 cat >conftest.$ac_ext <<_ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9069 /* Override any GCC internal prototype to avoid an error.
9070 Use char because int might match the return type of a GCC
9071 builtin and then its argument prototype would still apply. */
9075 char SSL_library_init ();
9079 return SSL_library_init ();
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (ac_try="$ac_link"
9087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9091 $as_echo "$ac_try_echo") >&5
9092 (eval "$ac_link") 2>conftest.er1
9094 grep -v '^ *+' conftest.er1 >conftest.err
9096 cat conftest.err >&5
9097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } && {
9099 test -z "$ac_c_werror_flag" ||
9100 test ! -s conftest.err
9101 } && test -s conftest$ac_exeext && {
9102 test "$cross_compiling" = yes ||
9103 $as_test_x conftest$ac_exeext
9105 ac_cv_lib_ssl_SSL_library_init=yes
9107 $as_echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9110 ac_cv_lib_ssl_SSL_library_init=no
9113 rm -rf conftest.dSYM
9114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9115 conftest$ac_exeext conftest.$ac_ext
9116 LIBS=$ac_check_lib_save_LIBS
9118 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9119 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9120 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9121 cat >>confdefs.h <<_ACEOF
9122 #define HAVE_LIBSSL 1
9128 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9129 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9130 { (exit 1); exit 1; }; }
9135 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9136 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
9137 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9138 $as_echo_n "(cached) " >&6
9140 ac_check_lib_save_LIBS=$LIBS
9141 LIBS="-leay32 $LIBS"
9142 cat >conftest.$ac_ext <<_ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h. */
9149 /* Override any GCC internal prototype to avoid an error.
9150 Use char because int might match the return type of a GCC
9151 builtin and then its argument prototype would still apply. */
9155 char CRYPTO_new_ex_data ();
9159 return CRYPTO_new_ex_data ();
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (ac_try="$ac_link"
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9171 $as_echo "$ac_try_echo") >&5
9172 (eval "$ac_link") 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_c_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest$ac_exeext && {
9182 test "$cross_compiling" = yes ||
9183 $as_test_x conftest$ac_exeext
9185 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9187 $as_echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9193 rm -rf conftest.dSYM
9194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9195 conftest$ac_exeext conftest.$ac_ext
9196 LIBS=$ac_check_lib_save_LIBS
9198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9199 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9200 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9201 cat >>confdefs.h <<_ACEOF
9202 #define HAVE_LIBEAY32 1
9205 LIBS="-leay32 $LIBS"
9208 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9209 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9210 { (exit 1); exit 1; }; }
9214 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9215 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9216 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9217 $as_echo_n "(cached) " >&6
9219 ac_check_lib_save_LIBS=$LIBS
9220 LIBS="-lssleay32 $LIBS"
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9228 /* Override any GCC internal prototype to avoid an error.
9229 Use char because int might match the return type of a GCC
9230 builtin and then its argument prototype would still apply. */
9234 char SSL_library_init ();
9238 return SSL_library_init ();
9243 rm -f conftest.$ac_objext conftest$ac_exeext
9244 if { (ac_try="$ac_link"
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9250 $as_echo "$ac_try_echo") >&5
9251 (eval "$ac_link") 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } && {
9258 test -z "$ac_c_werror_flag" ||
9259 test ! -s conftest.err
9260 } && test -s conftest$ac_exeext && {
9261 test "$cross_compiling" = yes ||
9262 $as_test_x conftest$ac_exeext
9264 ac_cv_lib_ssleay32_SSL_library_init=yes
9266 $as_echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9269 ac_cv_lib_ssleay32_SSL_library_init=no
9272 rm -rf conftest.dSYM
9273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9274 conftest$ac_exeext conftest.$ac_ext
9275 LIBS=$ac_check_lib_save_LIBS
9277 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9278 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9279 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9280 cat >>confdefs.h <<_ACEOF
9281 #define HAVE_LIBSSLEAY32 1
9284 LIBS="-lssleay32 $LIBS"
9287 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9288 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9289 { (exit 1); exit 1; }; }
9295 if test "$with_pam" = yes ; then
9297 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9298 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9299 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9300 $as_echo_n "(cached) " >&6
9302 ac_check_lib_save_LIBS=$LIBS
9304 cat >conftest.$ac_ext <<_ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9311 /* Override any GCC internal prototype to avoid an error.
9312 Use char because int might match the return type of a GCC
9313 builtin and then its argument prototype would still apply. */
9321 return pam_start ();
9326 rm -f conftest.$ac_objext conftest$ac_exeext
9327 if { (ac_try="$ac_link"
9329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330 *) ac_try_echo=$ac_try;;
9332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9333 $as_echo "$ac_try_echo") >&5
9334 (eval "$ac_link") 2>conftest.er1
9336 grep -v '^ *+' conftest.er1 >conftest.err
9338 cat conftest.err >&5
9339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } && {
9341 test -z "$ac_c_werror_flag" ||
9342 test ! -s conftest.err
9343 } && test -s conftest$ac_exeext && {
9344 test "$cross_compiling" = yes ||
9345 $as_test_x conftest$ac_exeext
9347 ac_cv_lib_pam_pam_start=yes
9349 $as_echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9352 ac_cv_lib_pam_pam_start=no
9355 rm -rf conftest.dSYM
9356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9357 conftest$ac_exeext conftest.$ac_ext
9358 LIBS=$ac_check_lib_save_LIBS
9360 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9361 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9362 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9363 cat >>confdefs.h <<_ACEOF
9364 #define HAVE_LIBPAM 1
9370 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9371 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9372 { (exit 1); exit 1; }; }
9377 if test "$with_libxml" = yes ; then
9379 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9380 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9381 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9382 $as_echo_n "(cached) " >&6
9384 ac_check_lib_save_LIBS=$LIBS
9386 cat >conftest.$ac_ext <<_ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9393 /* Override any GCC internal prototype to avoid an error.
9394 Use char because int might match the return type of a GCC
9395 builtin and then its argument prototype would still apply. */
9399 char xmlSaveToBuffer ();
9403 return xmlSaveToBuffer ();
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (ac_try="$ac_link"
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9415 $as_echo "$ac_try_echo") >&5
9416 (eval "$ac_link") 2>conftest.er1
9418 grep -v '^ *+' conftest.er1 >conftest.err
9420 cat conftest.err >&5
9421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } && {
9423 test -z "$ac_c_werror_flag" ||
9424 test ! -s conftest.err
9425 } && test -s conftest$ac_exeext && {
9426 test "$cross_compiling" = yes ||
9427 $as_test_x conftest$ac_exeext
9429 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9431 $as_echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9434 ac_cv_lib_xml2_xmlSaveToBuffer=no
9437 rm -rf conftest.dSYM
9438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9439 conftest$ac_exeext conftest.$ac_ext
9440 LIBS=$ac_check_lib_save_LIBS
9442 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9443 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9444 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9445 cat >>confdefs.h <<_ACEOF
9446 #define HAVE_LIBXML2 1
9452 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9453 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9454 { (exit 1); exit 1; }; }
9459 if test "$with_libxslt" = yes ; then
9461 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9462 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9463 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9464 $as_echo_n "(cached) " >&6
9466 ac_check_lib_save_LIBS=$LIBS
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9481 char xsltCleanupGlobals ();
9485 return xsltCleanupGlobals ();
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9497 $as_echo "$ac_try_echo") >&5
9498 (eval "$ac_link") 2>conftest.er1
9500 grep -v '^ *+' conftest.er1 >conftest.err
9502 cat conftest.err >&5
9503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } && {
9505 test -z "$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9507 } && test -s conftest$ac_exeext && {
9508 test "$cross_compiling" = yes ||
9509 $as_test_x conftest$ac_exeext
9511 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9513 $as_echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 ac_cv_lib_xslt_xsltCleanupGlobals=no
9519 rm -rf conftest.dSYM
9520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521 conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9525 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9526 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9527 cat >>confdefs.h <<_ACEOF
9528 #define HAVE_LIBXSLT 1
9534 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9535 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9536 { (exit 1); exit 1; }; }
9541 # for contrib/sepgsql
9542 if test "$with_selinux" = yes; then
9544 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9545 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9546 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9547 $as_echo_n "(cached) " >&6
9549 ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-lselinux $LIBS"
9551 cat >conftest.$ac_ext <<_ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9558 /* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
9564 char selinux_status_open ();
9568 return selinux_status_open ();
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (ac_try="$ac_link"
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9580 $as_echo "$ac_try_echo") >&5
9581 (eval "$ac_link") 2>conftest.er1
9583 grep -v '^ *+' conftest.er1 >conftest.err
9585 cat conftest.err >&5
9586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } && {
9588 test -z "$ac_c_werror_flag" ||
9589 test ! -s conftest.err
9590 } && test -s conftest$ac_exeext && {
9591 test "$cross_compiling" = yes ||
9592 $as_test_x conftest$ac_exeext
9594 ac_cv_lib_selinux_selinux_status_open=yes
9596 $as_echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 ac_cv_lib_selinux_selinux_status_open=no
9602 rm -rf conftest.dSYM
9603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9604 conftest$ac_exeext conftest.$ac_ext
9605 LIBS=$ac_check_lib_save_LIBS
9607 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9608 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9609 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9610 cat >>confdefs.h <<_ACEOF
9611 #define HAVE_LIBSELINUX 1
9614 LIBS="-lselinux $LIBS"
9617 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9618 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9619 { (exit 1); exit 1; }; }
9624 # for contrib/uuid-ossp
9625 if test "$with_ossp_uuid" = yes ; then
9626 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9627 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9628 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9629 $as_echo_n "(cached) " >&6
9631 ac_check_lib_save_LIBS=$LIBS
9632 LIBS="-lossp-uuid $LIBS"
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9646 char uuid_export ();
9650 return uuid_export ();
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (ac_try="$ac_link"
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9662 $as_echo "$ac_try_echo") >&5
9663 (eval "$ac_link") 2>conftest.er1
9665 grep -v '^ *+' conftest.er1 >conftest.err
9667 cat conftest.err >&5
9668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } && {
9670 test -z "$ac_c_werror_flag" ||
9671 test ! -s conftest.err
9672 } && test -s conftest$ac_exeext && {
9673 test "$cross_compiling" = yes ||
9674 $as_test_x conftest$ac_exeext
9676 ac_cv_lib_ossp_uuid_uuid_export=yes
9678 $as_echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_cv_lib_ossp_uuid_uuid_export=no
9684 rm -rf conftest.dSYM
9685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9686 conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9690 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9691 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9692 OSSP_UUID_LIBS="-lossp-uuid"
9694 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9695 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9696 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9697 $as_echo_n "(cached) " >&6
9699 ac_check_lib_save_LIBS=$LIBS
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9708 /* Override any GCC internal prototype to avoid an error.
9709 Use char because int might match the return type of a GCC
9710 builtin and then its argument prototype would still apply. */
9714 char uuid_export ();
9718 return uuid_export ();
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (ac_try="$ac_link"
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9730 $as_echo "$ac_try_echo") >&5
9731 (eval "$ac_link") 2>conftest.er1
9733 grep -v '^ *+' conftest.er1 >conftest.err
9735 cat conftest.err >&5
9736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } && {
9738 test -z "$ac_c_werror_flag" ||
9739 test ! -s conftest.err
9740 } && test -s conftest$ac_exeext && {
9741 test "$cross_compiling" = yes ||
9742 $as_test_x conftest$ac_exeext
9744 ac_cv_lib_uuid_uuid_export=yes
9746 $as_echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9749 ac_cv_lib_uuid_uuid_export=no
9752 rm -rf conftest.dSYM
9753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9754 conftest$ac_exeext conftest.$ac_ext
9755 LIBS=$ac_check_lib_save_LIBS
9757 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9758 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9759 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9760 OSSP_UUID_LIBS="-luuid"
9762 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9763 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9764 { (exit 1); exit 1; }; }
9777 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9778 $as_echo_n "checking for ANSI C header files... " >&6; }
9779 if test "${ac_cv_header_stdc+set}" = set; then
9780 $as_echo_n "(cached) " >&6
9782 cat >conftest.$ac_ext <<_ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9801 rm -f conftest.$ac_objext
9802 if { (ac_try="$ac_compile"
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9808 $as_echo "$ac_try_echo") >&5
9809 (eval "$ac_compile") 2>conftest.er1
9811 grep -v '^ *+' conftest.er1 >conftest.err
9813 cat conftest.err >&5
9814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } && {
9816 test -z "$ac_c_werror_flag" ||
9817 test ! -s conftest.err
9818 } && test -s conftest.$ac_objext; then
9819 ac_cv_header_stdc=yes
9821 $as_echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 ac_cv_header_stdc=no
9827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9829 if test $ac_cv_header_stdc = yes; then
9830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9841 $EGREP "memchr" >/dev/null 2>&1; then
9844 ac_cv_header_stdc=no
9850 if test $ac_cv_header_stdc = yes; then
9851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9852 cat >conftest.$ac_ext <<_ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9862 $EGREP "free" >/dev/null 2>&1; then
9865 ac_cv_header_stdc=no
9871 if test $ac_cv_header_stdc = yes; then
9872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9873 if test "$cross_compiling" = yes; then
9876 cat >conftest.$ac_ext <<_ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9884 #if ((' ' & 0x0FF) == 0x020)
9885 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9886 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9888 # define ISLOWER(c) \
9889 (('a' <= (c) && (c) <= 'i') \
9890 || ('j' <= (c) && (c) <= 'r') \
9891 || ('s' <= (c) && (c) <= 'z'))
9892 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9900 for (i = 0; i < 256; i++)
9901 if (XOR (islower (i), ISLOWER (i))
9902 || toupper (i) != TOUPPER (i))
9907 rm -f conftest$ac_exeext
9908 if { (ac_try="$ac_link"
9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911 *) ac_try_echo=$ac_try;;
9913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9914 $as_echo "$ac_try_echo") >&5
9915 (eval "$ac_link") 2>&5
9917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9919 { (case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9924 $as_echo "$ac_try_echo") >&5
9925 (eval "$ac_try") 2>&5
9927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9931 $as_echo "$as_me: program exited with status $ac_status" >&5
9932 $as_echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9936 ac_cv_header_stdc=no
9938 rm -rf conftest.dSYM
9939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9946 $as_echo "$ac_cv_header_stdc" >&6; }
9947 if test $ac_cv_header_stdc = yes; then
9949 cat >>confdefs.h <<\_ACEOF
9950 #define STDC_HEADERS 1
9955 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9965 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9966 inttypes.h stdint.h unistd.h
9968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9969 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9970 $as_echo_n "checking for $ac_header... " >&6; }
9971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9972 $as_echo_n "(cached) " >&6
9974 cat >conftest.$ac_ext <<_ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980 $ac_includes_default
9982 #include <$ac_header>
9984 rm -f conftest.$ac_objext
9985 if { (ac_try="$ac_compile"
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9991 $as_echo "$ac_try_echo") >&5
9992 (eval "$ac_compile") 2>conftest.er1
9994 grep -v '^ *+' conftest.er1 >conftest.err
9996 cat conftest.err >&5
9997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && {
9999 test -z "$ac_c_werror_flag" ||
10000 test ! -s conftest.err
10001 } && test -s conftest.$ac_objext; then
10002 eval "$as_ac_Header=yes"
10004 $as_echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 eval "$as_ac_Header=no"
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012 ac_res=`eval 'as_val=${'$as_ac_Header'}
10013 $as_echo "$as_val"'`
10014 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10015 $as_echo "$ac_res" >&6; }
10016 as_val=`eval 'as_val=${'$as_ac_Header'}
10017 $as_echo "$as_val"'`
10018 if test "x$as_val" = x""yes; then
10019 cat >>confdefs.h <<_ACEOF
10020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10059 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
10061 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10063 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10064 $as_echo_n "checking for $ac_header... " >&6; }
10065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10066 $as_echo_n "(cached) " >&6
10068 ac_res=`eval 'as_val=${'$as_ac_Header'}
10069 $as_echo "$as_val"'`
10070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10071 $as_echo "$ac_res" >&6; }
10073 # Is the header compilable?
10074 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10075 $as_echo_n "checking $ac_header usability... " >&6; }
10076 cat >conftest.$ac_ext <<_ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 $ac_includes_default
10083 #include <$ac_header>
10085 rm -f conftest.$ac_objext
10086 if { (ac_try="$ac_compile"
10087 case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10092 $as_echo "$ac_try_echo") >&5
10093 (eval "$ac_compile") 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && {
10100 test -z "$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest.$ac_objext; then
10103 ac_header_compiler=yes
10105 $as_echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_header_compiler=no
10111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10112 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10113 $as_echo "$ac_header_compiler" >&6; }
10115 # Is the header present?
10116 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10117 $as_echo_n "checking $ac_header presence... " >&6; }
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 #include <$ac_header>
10126 if { (ac_try="$ac_cpp conftest.$ac_ext"
10127 case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10132 $as_echo "$ac_try_echo") >&5
10133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10135 grep -v '^ *+' conftest.er1 >conftest.err
10137 cat conftest.err >&5
10138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } >/dev/null && {
10140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10143 ac_header_preproc=yes
10145 $as_echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ac_header_preproc=no
10151 rm -f conftest.err conftest.$ac_ext
10152 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10153 $as_echo "$ac_header_preproc" >&6; }
10155 # So? What about this header?
10156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10159 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10161 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10162 ac_header_preproc=yes
10165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10166 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10168 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10170 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10172 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10174 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10176 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10178 ## ---------------------------------------- ##
10179 ## Report this to pgsql-bugs@postgresql.org ##
10180 ## ---------------------------------------- ##
10182 ) | sed "s/^/$as_me: WARNING: /" >&2
10185 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10186 $as_echo_n "checking for $ac_header... " >&6; }
10187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10188 $as_echo_n "(cached) " >&6
10190 eval "$as_ac_Header=\$ac_header_preproc"
10192 ac_res=`eval 'as_val=${'$as_ac_Header'}
10193 $as_echo "$as_val"'`
10194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10195 $as_echo "$ac_res" >&6; }
10198 as_val=`eval 'as_val=${'$as_ac_Header'}
10199 $as_echo "$as_val"'`
10200 if test "x$as_val" = x""yes; then
10201 cat >>confdefs.h <<_ACEOF
10202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10210 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10211 # is included first.
10213 for ac_header in net/if.h
10215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10217 $as_echo_n "checking for $ac_header... " >&6; }
10218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10219 $as_echo_n "(cached) " >&6
10221 cat >conftest.$ac_ext <<_ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 $ac_includes_default
10228 #ifdef HAVE_SYS_SOCKET_H
10229 #include <sys/socket.h>
10233 #include <$ac_header>
10235 rm -f conftest.$ac_objext
10236 if { (ac_try="$ac_compile"
10237 case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10242 $as_echo "$ac_try_echo") >&5
10243 (eval "$ac_compile") 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && {
10250 test -z "$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10252 } && test -s conftest.$ac_objext; then
10253 eval "$as_ac_Header=yes"
10255 $as_echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 eval "$as_ac_Header=no"
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10263 ac_res=`eval 'as_val=${'$as_ac_Header'}
10264 $as_echo "$as_val"'`
10265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10266 $as_echo "$ac_res" >&6; }
10267 as_val=`eval 'as_val=${'$as_ac_Header'}
10268 $as_echo "$as_val"'`
10269 if test "x$as_val" = x""yes; then
10270 cat >>confdefs.h <<_ACEOF
10271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10279 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10280 # netinet/in.h is included first.
10282 for ac_header in netinet/in.h
10284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10286 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10287 $as_echo_n "checking for $ac_header... " >&6; }
10288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10289 $as_echo_n "(cached) " >&6
10291 ac_res=`eval 'as_val=${'$as_ac_Header'}
10292 $as_echo "$as_val"'`
10293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10294 $as_echo "$ac_res" >&6; }
10296 # Is the header compilable?
10297 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10298 $as_echo_n "checking $ac_header usability... " >&6; }
10299 cat >conftest.$ac_ext <<_ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 $ac_includes_default
10306 #include <$ac_header>
10308 rm -f conftest.$ac_objext
10309 if { (ac_try="$ac_compile"
10310 case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10315 $as_echo "$ac_try_echo") >&5
10316 (eval "$ac_compile") 2>conftest.er1
10318 grep -v '^ *+' conftest.er1 >conftest.err
10320 cat conftest.err >&5
10321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } && {
10323 test -z "$ac_c_werror_flag" ||
10324 test ! -s conftest.err
10325 } && test -s conftest.$ac_objext; then
10326 ac_header_compiler=yes
10328 $as_echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10331 ac_header_compiler=no
10334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10336 $as_echo "$ac_header_compiler" >&6; }
10338 # Is the header present?
10339 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10340 $as_echo_n "checking $ac_header presence... " >&6; }
10341 cat >conftest.$ac_ext <<_ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 #include <$ac_header>
10349 if { (ac_try="$ac_cpp conftest.$ac_ext"
10350 case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10355 $as_echo "$ac_try_echo") >&5
10356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10358 grep -v '^ *+' conftest.er1 >conftest.err
10360 cat conftest.err >&5
10361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } >/dev/null && {
10363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10364 test ! -s conftest.err
10366 ac_header_preproc=yes
10368 $as_echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10371 ac_header_preproc=no
10374 rm -f conftest.err conftest.$ac_ext
10375 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10376 $as_echo "$ac_header_preproc" >&6; }
10378 # So? What about this header?
10379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10382 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10385 ac_header_preproc=yes
10388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10389 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10391 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10393 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10395 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10399 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10401 ## ---------------------------------------- ##
10402 ## Report this to pgsql-bugs@postgresql.org ##
10403 ## ---------------------------------------- ##
10405 ) | sed "s/^/$as_me: WARNING: /" >&2
10408 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10409 $as_echo_n "checking for $ac_header... " >&6; }
10410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10411 $as_echo_n "(cached) " >&6
10413 eval "$as_ac_Header=\$ac_header_preproc"
10415 ac_res=`eval 'as_val=${'$as_ac_Header'}
10416 $as_echo "$as_val"'`
10417 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10418 $as_echo "$ac_res" >&6; }
10421 as_val=`eval 'as_val=${'$as_ac_Header'}
10422 $as_echo "$as_val"'`
10423 if test "x$as_val" = x""yes; then
10424 cat >>confdefs.h <<_ACEOF
10425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10433 for ac_header in netinet/tcp.h
10435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10437 $as_echo_n "checking for $ac_header... " >&6; }
10438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10439 $as_echo_n "(cached) " >&6
10441 cat >conftest.$ac_ext <<_ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 $ac_includes_default
10448 #ifdef HAVE_NETINET_IN_H
10449 #include <netinet/in.h>
10453 #include <$ac_header>
10455 rm -f conftest.$ac_objext
10456 if { (ac_try="$ac_compile"
10457 case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10462 $as_echo "$ac_try_echo") >&5
10463 (eval "$ac_compile") 2>conftest.er1
10465 grep -v '^ *+' conftest.er1 >conftest.err
10467 cat conftest.err >&5
10468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && {
10470 test -z "$ac_c_werror_flag" ||
10471 test ! -s conftest.err
10472 } && test -s conftest.$ac_objext; then
10473 eval "$as_ac_Header=yes"
10475 $as_echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10478 eval "$as_ac_Header=no"
10481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10483 ac_res=`eval 'as_val=${'$as_ac_Header'}
10484 $as_echo "$as_val"'`
10485 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10486 $as_echo "$ac_res" >&6; }
10487 as_val=`eval 'as_val=${'$as_ac_Header'}
10488 $as_echo "$as_val"'`
10489 if test "x$as_val" = x""yes; then
10490 cat >>confdefs.h <<_ACEOF
10491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10499 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10501 for ac_header in readline/readline.h
10503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10505 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10506 $as_echo_n "checking for $ac_header... " >&6; }
10507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10508 $as_echo_n "(cached) " >&6
10510 ac_res=`eval 'as_val=${'$as_ac_Header'}
10511 $as_echo "$as_val"'`
10512 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10513 $as_echo "$ac_res" >&6; }
10515 # Is the header compilable?
10516 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10517 $as_echo_n "checking $ac_header usability... " >&6; }
10518 cat >conftest.$ac_ext <<_ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 $ac_includes_default
10525 #include <$ac_header>
10527 rm -f conftest.$ac_objext
10528 if { (ac_try="$ac_compile"
10529 case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10534 $as_echo "$ac_try_echo") >&5
10535 (eval "$ac_compile") 2>conftest.er1
10537 grep -v '^ *+' conftest.er1 >conftest.err
10539 cat conftest.err >&5
10540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && {
10542 test -z "$ac_c_werror_flag" ||
10543 test ! -s conftest.err
10544 } && test -s conftest.$ac_objext; then
10545 ac_header_compiler=yes
10547 $as_echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10550 ac_header_compiler=no
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10555 $as_echo "$ac_header_compiler" >&6; }
10557 # Is the header present?
10558 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10559 $as_echo_n "checking $ac_header presence... " >&6; }
10560 cat >conftest.$ac_ext <<_ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 #include <$ac_header>
10568 if { (ac_try="$ac_cpp conftest.$ac_ext"
10569 case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10574 $as_echo "$ac_try_echo") >&5
10575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10577 grep -v '^ *+' conftest.er1 >conftest.err
10579 cat conftest.err >&5
10580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } >/dev/null && {
10582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10583 test ! -s conftest.err
10585 ac_header_preproc=yes
10587 $as_echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10590 ac_header_preproc=no
10593 rm -f conftest.err conftest.$ac_ext
10594 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10595 $as_echo "$ac_header_preproc" >&6; }
10597 # So? What about this header?
10598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10601 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10603 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10604 ac_header_preproc=yes
10607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10608 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10610 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10612 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10614 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10616 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10618 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10620 ## ---------------------------------------- ##
10621 ## Report this to pgsql-bugs@postgresql.org ##
10622 ## ---------------------------------------- ##
10624 ) | sed "s/^/$as_me: WARNING: /" >&2
10627 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10628 $as_echo_n "checking for $ac_header... " >&6; }
10629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10630 $as_echo_n "(cached) " >&6
10632 eval "$as_ac_Header=\$ac_header_preproc"
10634 ac_res=`eval 'as_val=${'$as_ac_Header'}
10635 $as_echo "$as_val"'`
10636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10637 $as_echo "$ac_res" >&6; }
10640 as_val=`eval 'as_val=${'$as_ac_Header'}
10641 $as_echo "$as_val"'`
10642 if test "x$as_val" = x""yes; then
10643 cat >>confdefs.h <<_ACEOF
10644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10649 for ac_header in readline.h
10651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 $as_echo_n "checking for $ac_header... " >&6; }
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 $as_echo_n "(cached) " >&6
10658 ac_res=`eval 'as_val=${'$as_ac_Header'}
10659 $as_echo "$as_val"'`
10660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10661 $as_echo "$ac_res" >&6; }
10663 # Is the header compilable?
10664 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10665 $as_echo_n "checking $ac_header usability... " >&6; }
10666 cat >conftest.$ac_ext <<_ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10672 $ac_includes_default
10673 #include <$ac_header>
10675 rm -f conftest.$ac_objext
10676 if { (ac_try="$ac_compile"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10682 $as_echo "$ac_try_echo") >&5
10683 (eval "$ac_compile") 2>conftest.er1
10685 grep -v '^ *+' conftest.er1 >conftest.err
10687 cat conftest.err >&5
10688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } && {
10690 test -z "$ac_c_werror_flag" ||
10691 test ! -s conftest.err
10692 } && test -s conftest.$ac_objext; then
10693 ac_header_compiler=yes
10695 $as_echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10698 ac_header_compiler=no
10701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10703 $as_echo "$ac_header_compiler" >&6; }
10705 # Is the header present?
10706 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10707 $as_echo_n "checking $ac_header presence... " >&6; }
10708 cat >conftest.$ac_ext <<_ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714 #include <$ac_header>
10716 if { (ac_try="$ac_cpp conftest.$ac_ext"
10717 case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10722 $as_echo "$ac_try_echo") >&5
10723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } >/dev/null && {
10730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10733 ac_header_preproc=yes
10735 $as_echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_header_preproc=no
10741 rm -f conftest.err conftest.$ac_ext
10742 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10743 $as_echo "$ac_header_preproc" >&6; }
10745 # So? What about this header?
10746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10749 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10751 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10752 ac_header_preproc=yes
10755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10756 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10758 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10760 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10762 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10764 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10766 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10768 ## ---------------------------------------- ##
10769 ## Report this to pgsql-bugs@postgresql.org ##
10770 ## ---------------------------------------- ##
10772 ) | sed "s/^/$as_me: WARNING: /" >&2
10775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10776 $as_echo_n "checking for $ac_header... " >&6; }
10777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10778 $as_echo_n "(cached) " >&6
10780 eval "$as_ac_Header=\$ac_header_preproc"
10782 ac_res=`eval 'as_val=${'$as_ac_Header'}
10783 $as_echo "$as_val"'`
10784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10785 $as_echo "$ac_res" >&6; }
10788 as_val=`eval 'as_val=${'$as_ac_Header'}
10789 $as_echo "$as_val"'`
10790 if test "x$as_val" = x""yes; then
10791 cat >>confdefs.h <<_ACEOF
10792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10796 { { $as_echo "$as_me:$LINENO: error: readline header not found
10797 If you have readline already installed, see config.log for details on the
10798 failure. It is possible the compiler isn't looking in the proper directory.
10799 Use --without-readline to disable readline support." >&5
10800 $as_echo "$as_me: error: readline header not found
10801 If you have readline already installed, see config.log for details on the
10802 failure. It is possible the compiler isn't looking in the proper directory.
10803 Use --without-readline to disable readline support." >&2;}
10804 { (exit 1); exit 1; }; }
10814 for ac_header in readline/history.h
10816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10818 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10819 $as_echo_n "checking for $ac_header... " >&6; }
10820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10821 $as_echo_n "(cached) " >&6
10823 ac_res=`eval 'as_val=${'$as_ac_Header'}
10824 $as_echo "$as_val"'`
10825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10826 $as_echo "$ac_res" >&6; }
10828 # Is the header compilable?
10829 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10830 $as_echo_n "checking $ac_header usability... " >&6; }
10831 cat >conftest.$ac_ext <<_ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 $ac_includes_default
10838 #include <$ac_header>
10840 rm -f conftest.$ac_objext
10841 if { (ac_try="$ac_compile"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10847 $as_echo "$ac_try_echo") >&5
10848 (eval "$ac_compile") 2>conftest.er1
10850 grep -v '^ *+' conftest.er1 >conftest.err
10852 cat conftest.err >&5
10853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } && {
10855 test -z "$ac_c_werror_flag" ||
10856 test ! -s conftest.err
10857 } && test -s conftest.$ac_objext; then
10858 ac_header_compiler=yes
10860 $as_echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10863 ac_header_compiler=no
10866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10868 $as_echo "$ac_header_compiler" >&6; }
10870 # Is the header present?
10871 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10872 $as_echo_n "checking $ac_header presence... " >&6; }
10873 cat >conftest.$ac_ext <<_ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 #include <$ac_header>
10881 if { (ac_try="$ac_cpp conftest.$ac_ext"
10882 case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10887 $as_echo "$ac_try_echo") >&5
10888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10890 grep -v '^ *+' conftest.er1 >conftest.err
10892 cat conftest.err >&5
10893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } >/dev/null && {
10895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10896 test ! -s conftest.err
10898 ac_header_preproc=yes
10900 $as_echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10903 ac_header_preproc=no
10906 rm -f conftest.err conftest.$ac_ext
10907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10908 $as_echo "$ac_header_preproc" >&6; }
10910 # So? What about this header?
10911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10914 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10916 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10917 ac_header_preproc=yes
10920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10921 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10923 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10925 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10927 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10931 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10933 ## ---------------------------------------- ##
10934 ## Report this to pgsql-bugs@postgresql.org ##
10935 ## ---------------------------------------- ##
10937 ) | sed "s/^/$as_me: WARNING: /" >&2
10940 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10941 $as_echo_n "checking for $ac_header... " >&6; }
10942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10943 $as_echo_n "(cached) " >&6
10945 eval "$as_ac_Header=\$ac_header_preproc"
10947 ac_res=`eval 'as_val=${'$as_ac_Header'}
10948 $as_echo "$as_val"'`
10949 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10950 $as_echo "$ac_res" >&6; }
10953 as_val=`eval 'as_val=${'$as_ac_Header'}
10954 $as_echo "$as_val"'`
10955 if test "x$as_val" = x""yes; then
10956 cat >>confdefs.h <<_ACEOF
10957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10962 for ac_header in history.h
10964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10966 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10967 $as_echo_n "checking for $ac_header... " >&6; }
10968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10969 $as_echo_n "(cached) " >&6
10971 ac_res=`eval 'as_val=${'$as_ac_Header'}
10972 $as_echo "$as_val"'`
10973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10974 $as_echo "$ac_res" >&6; }
10976 # Is the header compilable?
10977 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10978 $as_echo_n "checking $ac_header usability... " >&6; }
10979 cat >conftest.$ac_ext <<_ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10985 $ac_includes_default
10986 #include <$ac_header>
10988 rm -f conftest.$ac_objext
10989 if { (ac_try="$ac_compile"
10990 case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10995 $as_echo "$ac_try_echo") >&5
10996 (eval "$ac_compile") 2>conftest.er1
10998 grep -v '^ *+' conftest.er1 >conftest.err
11000 cat conftest.err >&5
11001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } && {
11003 test -z "$ac_c_werror_flag" ||
11004 test ! -s conftest.err
11005 } && test -s conftest.$ac_objext; then
11006 ac_header_compiler=yes
11008 $as_echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 ac_header_compiler=no
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11016 $as_echo "$ac_header_compiler" >&6; }
11018 # Is the header present?
11019 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11020 $as_echo_n "checking $ac_header presence... " >&6; }
11021 cat >conftest.$ac_ext <<_ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 #include <$ac_header>
11029 if { (ac_try="$ac_cpp conftest.$ac_ext"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11035 $as_echo "$ac_try_echo") >&5
11036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } >/dev/null && {
11043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11044 test ! -s conftest.err
11046 ac_header_preproc=yes
11048 $as_echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_header_preproc=no
11054 rm -f conftest.err conftest.$ac_ext
11055 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11056 $as_echo "$ac_header_preproc" >&6; }
11058 # So? What about this header?
11059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11062 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11064 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11065 ac_header_preproc=yes
11068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11069 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11071 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11073 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11075 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11077 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11079 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11081 ## ---------------------------------------- ##
11082 ## Report this to pgsql-bugs@postgresql.org ##
11083 ## ---------------------------------------- ##
11085 ) | sed "s/^/$as_me: WARNING: /" >&2
11088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11089 $as_echo_n "checking for $ac_header... " >&6; }
11090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11091 $as_echo_n "(cached) " >&6
11093 eval "$as_ac_Header=\$ac_header_preproc"
11095 ac_res=`eval 'as_val=${'$as_ac_Header'}
11096 $as_echo "$as_val"'`
11097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11098 $as_echo "$ac_res" >&6; }
11101 as_val=`eval 'as_val=${'$as_ac_Header'}
11102 $as_echo "$as_val"'`
11103 if test "x$as_val" = x""yes; then
11104 cat >>confdefs.h <<_ACEOF
11105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11109 { { $as_echo "$as_me:$LINENO: error: history header not found
11110 If you have readline already installed, see config.log for details on the
11111 failure. It is possible the compiler isn't looking in the proper directory.
11112 Use --without-readline to disable readline support." >&5
11113 $as_echo "$as_me: error: history header not found
11114 If you have readline already installed, see config.log for details on the
11115 failure. It is possible the compiler isn't looking in the proper directory.
11116 Use --without-readline to disable readline support." >&2;}
11117 { (exit 1); exit 1; }; }
11128 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11129 # Some installations of libedit usurp /usr/include/readline/, which seems
11130 # bad practice, since in combined installations readline will have its headers
11131 # there. We might have to resort to AC_EGREP checks to make sure we found
11132 # the proper header...
11134 for ac_header in editline/readline.h
11136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11138 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11139 $as_echo_n "checking for $ac_header... " >&6; }
11140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11141 $as_echo_n "(cached) " >&6
11143 ac_res=`eval 'as_val=${'$as_ac_Header'}
11144 $as_echo "$as_val"'`
11145 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11146 $as_echo "$ac_res" >&6; }
11148 # Is the header compilable?
11149 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11150 $as_echo_n "checking $ac_header usability... " >&6; }
11151 cat >conftest.$ac_ext <<_ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11157 $ac_includes_default
11158 #include <$ac_header>
11160 rm -f conftest.$ac_objext
11161 if { (ac_try="$ac_compile"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11167 $as_echo "$ac_try_echo") >&5
11168 (eval "$ac_compile") 2>conftest.er1
11170 grep -v '^ *+' conftest.er1 >conftest.err
11172 cat conftest.err >&5
11173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } && {
11175 test -z "$ac_c_werror_flag" ||
11176 test ! -s conftest.err
11177 } && test -s conftest.$ac_objext; then
11178 ac_header_compiler=yes
11180 $as_echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 ac_header_compiler=no
11186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11187 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11188 $as_echo "$ac_header_compiler" >&6; }
11190 # Is the header present?
11191 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11192 $as_echo_n "checking $ac_header presence... " >&6; }
11193 cat >conftest.$ac_ext <<_ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <$ac_header>
11201 if { (ac_try="$ac_cpp conftest.$ac_ext"
11202 case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11207 $as_echo "$ac_try_echo") >&5
11208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11210 grep -v '^ *+' conftest.er1 >conftest.err
11212 cat conftest.err >&5
11213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev/null && {
11215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11216 test ! -s conftest.err
11218 ac_header_preproc=yes
11220 $as_echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.$ac_ext >&5
11223 ac_header_preproc=no
11226 rm -f conftest.err conftest.$ac_ext
11227 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11228 $as_echo "$ac_header_preproc" >&6; }
11230 # So? What about this header?
11231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11234 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11236 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11237 ac_header_preproc=yes
11240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11241 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11243 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11245 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11247 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11251 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11253 ## ---------------------------------------- ##
11254 ## Report this to pgsql-bugs@postgresql.org ##
11255 ## ---------------------------------------- ##
11257 ) | sed "s/^/$as_me: WARNING: /" >&2
11260 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11261 $as_echo_n "checking for $ac_header... " >&6; }
11262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11263 $as_echo_n "(cached) " >&6
11265 eval "$as_ac_Header=\$ac_header_preproc"
11267 ac_res=`eval 'as_val=${'$as_ac_Header'}
11268 $as_echo "$as_val"'`
11269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11270 $as_echo "$ac_res" >&6; }
11273 as_val=`eval 'as_val=${'$as_ac_Header'}
11274 $as_echo "$as_val"'`
11275 if test "x$as_val" = x""yes; then
11276 cat >>confdefs.h <<_ACEOF
11277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11282 for ac_header in readline.h
11284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11286 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11287 $as_echo_n "checking for $ac_header... " >&6; }
11288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11289 $as_echo_n "(cached) " >&6
11291 ac_res=`eval 'as_val=${'$as_ac_Header'}
11292 $as_echo "$as_val"'`
11293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11294 $as_echo "$ac_res" >&6; }
11296 # Is the header compilable?
11297 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11298 $as_echo_n "checking $ac_header usability... " >&6; }
11299 cat >conftest.$ac_ext <<_ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 $ac_includes_default
11306 #include <$ac_header>
11308 rm -f conftest.$ac_objext
11309 if { (ac_try="$ac_compile"
11310 case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11315 $as_echo "$ac_try_echo") >&5
11316 (eval "$ac_compile") 2>conftest.er1
11318 grep -v '^ *+' conftest.er1 >conftest.err
11320 cat conftest.err >&5
11321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } && {
11323 test -z "$ac_c_werror_flag" ||
11324 test ! -s conftest.err
11325 } && test -s conftest.$ac_objext; then
11326 ac_header_compiler=yes
11328 $as_echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11331 ac_header_compiler=no
11334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11335 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11336 $as_echo "$ac_header_compiler" >&6; }
11338 # Is the header present?
11339 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11340 $as_echo_n "checking $ac_header presence... " >&6; }
11341 cat >conftest.$ac_ext <<_ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 #include <$ac_header>
11349 if { (ac_try="$ac_cpp conftest.$ac_ext"
11350 case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11355 $as_echo "$ac_try_echo") >&5
11356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11358 grep -v '^ *+' conftest.er1 >conftest.err
11360 cat conftest.err >&5
11361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } >/dev/null && {
11363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11364 test ! -s conftest.err
11366 ac_header_preproc=yes
11368 $as_echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11371 ac_header_preproc=no
11374 rm -f conftest.err conftest.$ac_ext
11375 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11376 $as_echo "$ac_header_preproc" >&6; }
11378 # So? What about this header?
11379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11382 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11385 ac_header_preproc=yes
11388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11389 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11391 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11393 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11395 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11399 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11401 ## ---------------------------------------- ##
11402 ## Report this to pgsql-bugs@postgresql.org ##
11403 ## ---------------------------------------- ##
11405 ) | sed "s/^/$as_me: WARNING: /" >&2
11408 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11409 $as_echo_n "checking for $ac_header... " >&6; }
11410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11411 $as_echo_n "(cached) " >&6
11413 eval "$as_ac_Header=\$ac_header_preproc"
11415 ac_res=`eval 'as_val=${'$as_ac_Header'}
11416 $as_echo "$as_val"'`
11417 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11418 $as_echo "$ac_res" >&6; }
11421 as_val=`eval 'as_val=${'$as_ac_Header'}
11422 $as_echo "$as_val"'`
11423 if test "x$as_val" = x""yes; then
11424 cat >>confdefs.h <<_ACEOF
11425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11430 for ac_header in readline/readline.h
11432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11435 $as_echo_n "checking for $ac_header... " >&6; }
11436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437 $as_echo_n "(cached) " >&6
11439 ac_res=`eval 'as_val=${'$as_ac_Header'}
11440 $as_echo "$as_val"'`
11441 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11442 $as_echo "$ac_res" >&6; }
11444 # Is the header compilable?
11445 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11446 $as_echo_n "checking $ac_header usability... " >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 $ac_includes_default
11454 #include <$ac_header>
11456 rm -f conftest.$ac_objext
11457 if { (ac_try="$ac_compile"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11463 $as_echo "$ac_try_echo") >&5
11464 (eval "$ac_compile") 2>conftest.er1
11466 grep -v '^ *+' conftest.er1 >conftest.err
11468 cat conftest.err >&5
11469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } && {
11471 test -z "$ac_c_werror_flag" ||
11472 test ! -s conftest.err
11473 } && test -s conftest.$ac_objext; then
11474 ac_header_compiler=yes
11476 $as_echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11479 ac_header_compiler=no
11482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11484 $as_echo "$ac_header_compiler" >&6; }
11486 # Is the header present?
11487 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11488 $as_echo_n "checking $ac_header presence... " >&6; }
11489 cat >conftest.$ac_ext <<_ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 #include <$ac_header>
11497 if { (ac_try="$ac_cpp conftest.$ac_ext"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11503 $as_echo "$ac_try_echo") >&5
11504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11506 grep -v '^ *+' conftest.er1 >conftest.err
11508 cat conftest.err >&5
11509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } >/dev/null && {
11511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11512 test ! -s conftest.err
11514 ac_header_preproc=yes
11516 $as_echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_header_preproc=no
11522 rm -f conftest.err conftest.$ac_ext
11523 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11524 $as_echo "$ac_header_preproc" >&6; }
11526 # So? What about this header?
11527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11530 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11533 ac_header_preproc=yes
11536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11537 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11539 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11541 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11543 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11547 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11549 ## ---------------------------------------- ##
11550 ## Report this to pgsql-bugs@postgresql.org ##
11551 ## ---------------------------------------- ##
11553 ) | sed "s/^/$as_me: WARNING: /" >&2
11556 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11557 $as_echo_n "checking for $ac_header... " >&6; }
11558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11559 $as_echo_n "(cached) " >&6
11561 eval "$as_ac_Header=\$ac_header_preproc"
11563 ac_res=`eval 'as_val=${'$as_ac_Header'}
11564 $as_echo "$as_val"'`
11565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11566 $as_echo "$ac_res" >&6; }
11569 as_val=`eval 'as_val=${'$as_ac_Header'}
11570 $as_echo "$as_val"'`
11571 if test "x$as_val" = x""yes; then
11572 cat >>confdefs.h <<_ACEOF
11573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11577 { { $as_echo "$as_me:$LINENO: error: readline header not found
11578 If you have libedit already installed, see config.log for details on the
11579 failure. It is possible the compiler isn't looking in the proper directory.
11580 Use --without-readline to disable libedit support." >&5
11581 $as_echo "$as_me: error: readline header not found
11582 If you have libedit already installed, see config.log for details on the
11583 failure. It is possible the compiler isn't looking in the proper directory.
11584 Use --without-readline to disable libedit support." >&2;}
11585 { (exit 1); exit 1; }; }
11598 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11599 # not be there at all. Hence, don't complain if not found. We must check
11600 # though, since in yet other versions it is an independent header.
11602 for ac_header in editline/history.h
11604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11607 $as_echo_n "checking for $ac_header... " >&6; }
11608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11609 $as_echo_n "(cached) " >&6
11611 ac_res=`eval 'as_val=${'$as_ac_Header'}
11612 $as_echo "$as_val"'`
11613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11614 $as_echo "$ac_res" >&6; }
11616 # Is the header compilable?
11617 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11618 $as_echo_n "checking $ac_header usability... " >&6; }
11619 cat >conftest.$ac_ext <<_ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 $ac_includes_default
11626 #include <$ac_header>
11628 rm -f conftest.$ac_objext
11629 if { (ac_try="$ac_compile"
11630 case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11635 $as_echo "$ac_try_echo") >&5
11636 (eval "$ac_compile") 2>conftest.er1
11638 grep -v '^ *+' conftest.er1 >conftest.err
11640 cat conftest.err >&5
11641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } && {
11643 test -z "$ac_c_werror_flag" ||
11644 test ! -s conftest.err
11645 } && test -s conftest.$ac_objext; then
11646 ac_header_compiler=yes
11648 $as_echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11651 ac_header_compiler=no
11654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11656 $as_echo "$ac_header_compiler" >&6; }
11658 # Is the header present?
11659 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11660 $as_echo_n "checking $ac_header presence... " >&6; }
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 #include <$ac_header>
11669 if { (ac_try="$ac_cpp conftest.$ac_ext"
11670 case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11675 $as_echo "$ac_try_echo") >&5
11676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11678 grep -v '^ *+' conftest.er1 >conftest.err
11680 cat conftest.err >&5
11681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } >/dev/null && {
11683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11684 test ! -s conftest.err
11686 ac_header_preproc=yes
11688 $as_echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 ac_header_preproc=no
11694 rm -f conftest.err conftest.$ac_ext
11695 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11696 $as_echo "$ac_header_preproc" >&6; }
11698 # So? What about this header?
11699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11702 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11705 ac_header_preproc=yes
11708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11709 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11711 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11713 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11715 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11717 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11719 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11721 ## ---------------------------------------- ##
11722 ## Report this to pgsql-bugs@postgresql.org ##
11723 ## ---------------------------------------- ##
11725 ) | sed "s/^/$as_me: WARNING: /" >&2
11728 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11729 $as_echo_n "checking for $ac_header... " >&6; }
11730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731 $as_echo_n "(cached) " >&6
11733 eval "$as_ac_Header=\$ac_header_preproc"
11735 ac_res=`eval 'as_val=${'$as_ac_Header'}
11736 $as_echo "$as_val"'`
11737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11738 $as_echo "$ac_res" >&6; }
11741 as_val=`eval 'as_val=${'$as_ac_Header'}
11742 $as_echo "$as_val"'`
11743 if test "x$as_val" = x""yes; then
11744 cat >>confdefs.h <<_ACEOF
11745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11750 for ac_header in history.h
11752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11754 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11755 $as_echo_n "checking for $ac_header... " >&6; }
11756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11757 $as_echo_n "(cached) " >&6
11759 ac_res=`eval 'as_val=${'$as_ac_Header'}
11760 $as_echo "$as_val"'`
11761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11762 $as_echo "$ac_res" >&6; }
11764 # Is the header compilable?
11765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11766 $as_echo_n "checking $ac_header usability... " >&6; }
11767 cat >conftest.$ac_ext <<_ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 $ac_includes_default
11774 #include <$ac_header>
11776 rm -f conftest.$ac_objext
11777 if { (ac_try="$ac_compile"
11778 case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11783 $as_echo "$ac_try_echo") >&5
11784 (eval "$ac_compile") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1 >conftest.err
11788 cat conftest.err >&5
11789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest.$ac_objext; then
11794 ac_header_compiler=yes
11796 $as_echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11799 ac_header_compiler=no
11802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11804 $as_echo "$ac_header_compiler" >&6; }
11806 # Is the header present?
11807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11808 $as_echo_n "checking $ac_header presence... " >&6; }
11809 cat >conftest.$ac_ext <<_ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 #include <$ac_header>
11817 if { (ac_try="$ac_cpp conftest.$ac_ext"
11818 case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11823 $as_echo "$ac_try_echo") >&5
11824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11826 grep -v '^ *+' conftest.er1 >conftest.err
11828 cat conftest.err >&5
11829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } >/dev/null && {
11831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11834 ac_header_preproc=yes
11836 $as_echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 ac_header_preproc=no
11842 rm -f conftest.err conftest.$ac_ext
11843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11844 $as_echo "$ac_header_preproc" >&6; }
11846 # So? What about this header?
11847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11853 ac_header_preproc=yes
11856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11859 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11863 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11869 ## ---------------------------------------- ##
11870 ## Report this to pgsql-bugs@postgresql.org ##
11871 ## ---------------------------------------- ##
11873 ) | sed "s/^/$as_me: WARNING: /" >&2
11876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11877 $as_echo_n "checking for $ac_header... " >&6; }
11878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11879 $as_echo_n "(cached) " >&6
11881 eval "$as_ac_Header=\$ac_header_preproc"
11883 ac_res=`eval 'as_val=${'$as_ac_Header'}
11884 $as_echo "$as_val"'`
11885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11886 $as_echo "$ac_res" >&6; }
11889 as_val=`eval 'as_val=${'$as_ac_Header'}
11890 $as_echo "$as_val"'`
11891 if test "x$as_val" = x""yes; then
11892 cat >>confdefs.h <<_ACEOF
11893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11898 for ac_header in readline/history.h
11900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11903 $as_echo_n "checking for $ac_header... " >&6; }
11904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905 $as_echo_n "(cached) " >&6
11907 ac_res=`eval 'as_val=${'$as_ac_Header'}
11908 $as_echo "$as_val"'`
11909 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11910 $as_echo "$ac_res" >&6; }
11912 # Is the header compilable?
11913 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11914 $as_echo_n "checking $ac_header usability... " >&6; }
11915 cat >conftest.$ac_ext <<_ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921 $ac_includes_default
11922 #include <$ac_header>
11924 rm -f conftest.$ac_objext
11925 if { (ac_try="$ac_compile"
11926 case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11931 $as_echo "$ac_try_echo") >&5
11932 (eval "$ac_compile") 2>conftest.er1
11934 grep -v '^ *+' conftest.er1 >conftest.err
11936 cat conftest.err >&5
11937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } && {
11939 test -z "$ac_c_werror_flag" ||
11940 test ! -s conftest.err
11941 } && test -s conftest.$ac_objext; then
11942 ac_header_compiler=yes
11944 $as_echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 ac_header_compiler=no
11950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11952 $as_echo "$ac_header_compiler" >&6; }
11954 # Is the header present?
11955 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11956 $as_echo_n "checking $ac_header presence... " >&6; }
11957 cat >conftest.$ac_ext <<_ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11963 #include <$ac_header>
11965 if { (ac_try="$ac_cpp conftest.$ac_ext"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11971 $as_echo "$ac_try_echo") >&5
11972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } >/dev/null && {
11979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11982 ac_header_preproc=yes
11984 $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_header_preproc=no
11990 rm -f conftest.err conftest.$ac_ext
11991 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11992 $as_echo "$ac_header_preproc" >&6; }
11994 # So? What about this header?
11995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11998 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12000 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12001 ac_header_preproc=yes
12004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12005 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12007 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12009 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12011 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12013 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12015 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12017 ## ---------------------------------------- ##
12018 ## Report this to pgsql-bugs@postgresql.org ##
12019 ## ---------------------------------------- ##
12021 ) | sed "s/^/$as_me: WARNING: /" >&2
12024 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12025 $as_echo_n "checking for $ac_header... " >&6; }
12026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12027 $as_echo_n "(cached) " >&6
12029 eval "$as_ac_Header=\$ac_header_preproc"
12031 ac_res=`eval 'as_val=${'$as_ac_Header'}
12032 $as_echo "$as_val"'`
12033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12034 $as_echo "$ac_res" >&6; }
12037 as_val=`eval 'as_val=${'$as_ac_Header'}
12038 $as_echo "$as_val"'`
12039 if test "x$as_val" = x""yes; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12058 if test "$with_zlib" = yes; then
12059 if test "${ac_cv_header_zlib_h+set}" = set; then
12060 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12061 $as_echo_n "checking for zlib.h... " >&6; }
12062 if test "${ac_cv_header_zlib_h+set}" = set; then
12063 $as_echo_n "(cached) " >&6
12065 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12066 $as_echo "$ac_cv_header_zlib_h" >&6; }
12068 # Is the header compilable?
12069 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12070 $as_echo_n "checking zlib.h usability... " >&6; }
12071 cat >conftest.$ac_ext <<_ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12077 $ac_includes_default
12080 rm -f conftest.$ac_objext
12081 if { (ac_try="$ac_compile"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12087 $as_echo "$ac_try_echo") >&5
12088 (eval "$ac_compile") 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } && {
12095 test -z "$ac_c_werror_flag" ||
12096 test ! -s conftest.err
12097 } && test -s conftest.$ac_objext; then
12098 ac_header_compiler=yes
12100 $as_echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12103 ac_header_compiler=no
12106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12107 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12108 $as_echo "$ac_header_compiler" >&6; }
12110 # Is the header present?
12111 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12112 $as_echo_n "checking zlib.h presence... " >&6; }
12113 cat >conftest.$ac_ext <<_ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12121 if { (ac_try="$ac_cpp conftest.$ac_ext"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12127 $as_echo "$ac_try_echo") >&5
12128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } >/dev/null && {
12135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12136 test ! -s conftest.err
12138 ac_header_preproc=yes
12140 $as_echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12143 ac_header_preproc=no
12146 rm -f conftest.err conftest.$ac_ext
12147 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12148 $as_echo "$ac_header_preproc" >&6; }
12150 # So? What about this header?
12151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12153 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12154 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12155 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12156 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12157 ac_header_preproc=yes
12160 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12161 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12162 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12163 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12164 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12165 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12166 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12167 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12168 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12169 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12170 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12171 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12173 ## ---------------------------------------- ##
12174 ## Report this to pgsql-bugs@postgresql.org ##
12175 ## ---------------------------------------- ##
12177 ) | sed "s/^/$as_me: WARNING: /" >&2
12180 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12181 $as_echo_n "checking for zlib.h... " >&6; }
12182 if test "${ac_cv_header_zlib_h+set}" = set; then
12183 $as_echo_n "(cached) " >&6
12185 ac_cv_header_zlib_h=$ac_header_preproc
12187 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12188 $as_echo "$ac_cv_header_zlib_h" >&6; }
12191 if test "x$ac_cv_header_zlib_h" = x""yes; then
12194 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12195 If you have zlib already installed, see config.log for details on the
12196 failure. It is possible the compiler isn't looking in the proper directory.
12197 Use --without-zlib to disable zlib support." >&5
12198 $as_echo "$as_me: error: zlib header not found
12199 If you have zlib already installed, see config.log for details on the
12200 failure. It is possible the compiler isn't looking in the proper directory.
12201 Use --without-zlib to disable zlib support." >&2;}
12202 { (exit 1); exit 1; }; }
12208 if test "$with_gssapi" = yes ; then
12210 for ac_header in gssapi/gssapi.h
12212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12214 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12215 $as_echo_n "checking for $ac_header... " >&6; }
12216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12217 $as_echo_n "(cached) " >&6
12219 ac_res=`eval 'as_val=${'$as_ac_Header'}
12220 $as_echo "$as_val"'`
12221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12222 $as_echo "$ac_res" >&6; }
12224 # Is the header compilable?
12225 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12226 $as_echo_n "checking $ac_header usability... " >&6; }
12227 cat >conftest.$ac_ext <<_ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12233 $ac_includes_default
12234 #include <$ac_header>
12236 rm -f conftest.$ac_objext
12237 if { (ac_try="$ac_compile"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12243 $as_echo "$ac_try_echo") >&5
12244 (eval "$ac_compile") 2>conftest.er1
12246 grep -v '^ *+' conftest.er1 >conftest.err
12248 cat conftest.err >&5
12249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } && {
12251 test -z "$ac_c_werror_flag" ||
12252 test ! -s conftest.err
12253 } && test -s conftest.$ac_objext; then
12254 ac_header_compiler=yes
12256 $as_echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12259 ac_header_compiler=no
12262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12264 $as_echo "$ac_header_compiler" >&6; }
12266 # Is the header present?
12267 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12268 $as_echo_n "checking $ac_header presence... " >&6; }
12269 cat >conftest.$ac_ext <<_ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12275 #include <$ac_header>
12277 if { (ac_try="$ac_cpp conftest.$ac_ext"
12278 case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12283 $as_echo "$ac_try_echo") >&5
12284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12286 grep -v '^ *+' conftest.er1 >conftest.err
12288 cat conftest.err >&5
12289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } >/dev/null && {
12291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12292 test ! -s conftest.err
12294 ac_header_preproc=yes
12296 $as_echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_header_preproc=no
12302 rm -f conftest.err conftest.$ac_ext
12303 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12304 $as_echo "$ac_header_preproc" >&6; }
12306 # So? What about this header?
12307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12310 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12312 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12313 ac_header_preproc=yes
12316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12317 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12319 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12321 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12323 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12325 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12327 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12329 ## ---------------------------------------- ##
12330 ## Report this to pgsql-bugs@postgresql.org ##
12331 ## ---------------------------------------- ##
12333 ) | sed "s/^/$as_me: WARNING: /" >&2
12336 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12337 $as_echo_n "checking for $ac_header... " >&6; }
12338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12339 $as_echo_n "(cached) " >&6
12341 eval "$as_ac_Header=\$ac_header_preproc"
12343 ac_res=`eval 'as_val=${'$as_ac_Header'}
12344 $as_echo "$as_val"'`
12345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12346 $as_echo "$ac_res" >&6; }
12349 as_val=`eval 'as_val=${'$as_ac_Header'}
12350 $as_echo "$as_val"'`
12351 if test "x$as_val" = x""yes; then
12352 cat >>confdefs.h <<_ACEOF
12353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12358 for ac_header in gssapi.h
12360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12363 $as_echo_n "checking for $ac_header... " >&6; }
12364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12365 $as_echo_n "(cached) " >&6
12367 ac_res=`eval 'as_val=${'$as_ac_Header'}
12368 $as_echo "$as_val"'`
12369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12370 $as_echo "$ac_res" >&6; }
12372 # Is the header compilable?
12373 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12374 $as_echo_n "checking $ac_header usability... " >&6; }
12375 cat >conftest.$ac_ext <<_ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 $ac_includes_default
12382 #include <$ac_header>
12384 rm -f conftest.$ac_objext
12385 if { (ac_try="$ac_compile"
12386 case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12391 $as_echo "$ac_try_echo") >&5
12392 (eval "$ac_compile") 2>conftest.er1
12394 grep -v '^ *+' conftest.er1 >conftest.err
12396 cat conftest.err >&5
12397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && {
12399 test -z "$ac_c_werror_flag" ||
12400 test ! -s conftest.err
12401 } && test -s conftest.$ac_objext; then
12402 ac_header_compiler=yes
12404 $as_echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12407 ac_header_compiler=no
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12412 $as_echo "$ac_header_compiler" >&6; }
12414 # Is the header present?
12415 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12416 $as_echo_n "checking $ac_header presence... " >&6; }
12417 cat >conftest.$ac_ext <<_ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 #include <$ac_header>
12425 if { (ac_try="$ac_cpp conftest.$ac_ext"
12426 case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12431 $as_echo "$ac_try_echo") >&5
12432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12434 grep -v '^ *+' conftest.er1 >conftest.err
12436 cat conftest.err >&5
12437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } >/dev/null && {
12439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12442 ac_header_preproc=yes
12444 $as_echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_header_preproc=no
12450 rm -f conftest.err conftest.$ac_ext
12451 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12452 $as_echo "$ac_header_preproc" >&6; }
12454 # So? What about this header?
12455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12458 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12461 ac_header_preproc=yes
12464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12465 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12467 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12469 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12471 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12475 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12477 ## ---------------------------------------- ##
12478 ## Report this to pgsql-bugs@postgresql.org ##
12479 ## ---------------------------------------- ##
12481 ) | sed "s/^/$as_me: WARNING: /" >&2
12484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12485 $as_echo_n "checking for $ac_header... " >&6; }
12486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12487 $as_echo_n "(cached) " >&6
12489 eval "$as_ac_Header=\$ac_header_preproc"
12491 ac_res=`eval 'as_val=${'$as_ac_Header'}
12492 $as_echo "$as_val"'`
12493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12494 $as_echo "$ac_res" >&6; }
12497 as_val=`eval 'as_val=${'$as_ac_Header'}
12498 $as_echo "$as_val"'`
12499 if test "x$as_val" = x""yes; then
12500 cat >>confdefs.h <<_ACEOF
12501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12505 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12506 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12507 { (exit 1); exit 1; }; }
12518 if test "$with_krb5" = yes ; then
12519 if test "${ac_cv_header_krb5_h+set}" = set; then
12520 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12521 $as_echo_n "checking for krb5.h... " >&6; }
12522 if test "${ac_cv_header_krb5_h+set}" = set; then
12523 $as_echo_n "(cached) " >&6
12525 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12526 $as_echo "$ac_cv_header_krb5_h" >&6; }
12528 # Is the header compilable?
12529 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12530 $as_echo_n "checking krb5.h usability... " >&6; }
12531 cat >conftest.$ac_ext <<_ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12537 $ac_includes_default
12540 rm -f conftest.$ac_objext
12541 if { (ac_try="$ac_compile"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12547 $as_echo "$ac_try_echo") >&5
12548 (eval "$ac_compile") 2>conftest.er1
12550 grep -v '^ *+' conftest.er1 >conftest.err
12552 cat conftest.err >&5
12553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && {
12555 test -z "$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12557 } && test -s conftest.$ac_objext; then
12558 ac_header_compiler=yes
12560 $as_echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ac_header_compiler=no
12566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12568 $as_echo "$ac_header_compiler" >&6; }
12570 # Is the header present?
12571 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12572 $as_echo_n "checking krb5.h presence... " >&6; }
12573 cat >conftest.$ac_ext <<_ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12581 if { (ac_try="$ac_cpp conftest.$ac_ext"
12582 case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12587 $as_echo "$ac_try_echo") >&5
12588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12590 grep -v '^ *+' conftest.er1 >conftest.err
12592 cat conftest.err >&5
12593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } >/dev/null && {
12595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12596 test ! -s conftest.err
12598 ac_header_preproc=yes
12600 $as_echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12603 ac_header_preproc=no
12606 rm -f conftest.err conftest.$ac_ext
12607 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12608 $as_echo "$ac_header_preproc" >&6; }
12610 # So? What about this header?
12611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12613 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12614 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12615 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12616 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12617 ac_header_preproc=yes
12620 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12621 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12622 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12623 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12624 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12625 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12626 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12627 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12628 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12629 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12630 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12631 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12633 ## ---------------------------------------- ##
12634 ## Report this to pgsql-bugs@postgresql.org ##
12635 ## ---------------------------------------- ##
12637 ) | sed "s/^/$as_me: WARNING: /" >&2
12640 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12641 $as_echo_n "checking for krb5.h... " >&6; }
12642 if test "${ac_cv_header_krb5_h+set}" = set; then
12643 $as_echo_n "(cached) " >&6
12645 ac_cv_header_krb5_h=$ac_header_preproc
12647 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12648 $as_echo "$ac_cv_header_krb5_h" >&6; }
12651 if test "x$ac_cv_header_krb5_h" = x""yes; then
12654 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12655 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12656 { (exit 1); exit 1; }; }
12662 if test "$with_openssl" = yes ; then
12663 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12664 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12665 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12666 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12667 $as_echo_n "(cached) " >&6
12669 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12670 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12672 # Is the header compilable?
12673 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12674 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12675 cat >conftest.$ac_ext <<_ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12681 $ac_includes_default
12682 #include <openssl/ssl.h>
12684 rm -f conftest.$ac_objext
12685 if { (ac_try="$ac_compile"
12686 case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12691 $as_echo "$ac_try_echo") >&5
12692 (eval "$ac_compile") 2>conftest.er1
12694 grep -v '^ *+' conftest.er1 >conftest.err
12696 cat conftest.err >&5
12697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } && {
12699 test -z "$ac_c_werror_flag" ||
12700 test ! -s conftest.err
12701 } && test -s conftest.$ac_objext; then
12702 ac_header_compiler=yes
12704 $as_echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12707 ac_header_compiler=no
12710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12711 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12712 $as_echo "$ac_header_compiler" >&6; }
12714 # Is the header present?
12715 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12716 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12717 cat >conftest.$ac_ext <<_ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 #include <openssl/ssl.h>
12725 if { (ac_try="$ac_cpp conftest.$ac_ext"
12726 case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12731 $as_echo "$ac_try_echo") >&5
12732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12734 grep -v '^ *+' conftest.er1 >conftest.err
12736 cat conftest.err >&5
12737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } >/dev/null && {
12739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12740 test ! -s conftest.err
12742 ac_header_preproc=yes
12744 $as_echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 ac_header_preproc=no
12750 rm -f conftest.err conftest.$ac_ext
12751 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12752 $as_echo "$ac_header_preproc" >&6; }
12754 # So? What about this header?
12755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12757 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12758 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12759 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12760 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12761 ac_header_preproc=yes
12764 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12765 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12766 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12767 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12768 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12769 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12770 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12771 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12772 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12773 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12774 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12775 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12777 ## ---------------------------------------- ##
12778 ## Report this to pgsql-bugs@postgresql.org ##
12779 ## ---------------------------------------- ##
12781 ) | sed "s/^/$as_me: WARNING: /" >&2
12784 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12785 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12786 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12787 $as_echo_n "(cached) " >&6
12789 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12791 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12792 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12795 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12798 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12799 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12800 { (exit 1); exit 1; }; }
12804 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12805 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12806 $as_echo_n "checking for openssl/err.h... " >&6; }
12807 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12808 $as_echo_n "(cached) " >&6
12810 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12811 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12813 # Is the header compilable?
12814 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12815 $as_echo_n "checking openssl/err.h usability... " >&6; }
12816 cat >conftest.$ac_ext <<_ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822 $ac_includes_default
12823 #include <openssl/err.h>
12825 rm -f conftest.$ac_objext
12826 if { (ac_try="$ac_compile"
12827 case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12832 $as_echo "$ac_try_echo") >&5
12833 (eval "$ac_compile") 2>conftest.er1
12835 grep -v '^ *+' conftest.er1 >conftest.err
12837 cat conftest.err >&5
12838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } && {
12840 test -z "$ac_c_werror_flag" ||
12841 test ! -s conftest.err
12842 } && test -s conftest.$ac_objext; then
12843 ac_header_compiler=yes
12845 $as_echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 ac_header_compiler=no
12851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12853 $as_echo "$ac_header_compiler" >&6; }
12855 # Is the header present?
12856 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12857 $as_echo_n "checking openssl/err.h presence... " >&6; }
12858 cat >conftest.$ac_ext <<_ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h. */
12864 #include <openssl/err.h>
12866 if { (ac_try="$ac_cpp conftest.$ac_ext"
12867 case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12872 $as_echo "$ac_try_echo") >&5
12873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12875 grep -v '^ *+' conftest.er1 >conftest.err
12877 cat conftest.err >&5
12878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } >/dev/null && {
12880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12881 test ! -s conftest.err
12883 ac_header_preproc=yes
12885 $as_echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 ac_header_preproc=no
12891 rm -f conftest.err conftest.$ac_ext
12892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12893 $as_echo "$ac_header_preproc" >&6; }
12895 # So? What about this header?
12896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12898 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12899 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12900 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12901 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12902 ac_header_preproc=yes
12905 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12906 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12907 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12908 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12909 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12910 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12911 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12912 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12913 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12914 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12915 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12916 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12918 ## ---------------------------------------- ##
12919 ## Report this to pgsql-bugs@postgresql.org ##
12920 ## ---------------------------------------- ##
12922 ) | sed "s/^/$as_me: WARNING: /" >&2
12925 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12926 $as_echo_n "checking for openssl/err.h... " >&6; }
12927 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12928 $as_echo_n "(cached) " >&6
12930 ac_cv_header_openssl_err_h=$ac_header_preproc
12932 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12933 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12936 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12939 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12940 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12941 { (exit 1); exit 1; }; }
12946 for ac_func in ERR_set_mark
12948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12949 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12950 $as_echo_n "checking for $ac_func... " >&6; }
12951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12952 $as_echo_n "(cached) " >&6
12954 cat >conftest.$ac_ext <<_ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12962 #define $ac_func innocuous_$ac_func
12964 /* System header to define __stub macros and hopefully few prototypes,
12965 which can conflict with char $ac_func (); below.
12966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12967 <limits.h> exists even on freestanding compilers. */
12970 # include <limits.h>
12972 # include <assert.h>
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12984 /* The GNU C library defines this for functions which it implements
12985 to always fail with ENOSYS. Some functions are actually named
12986 something starting with __ and the normal name is an alias. */
12987 #if defined __stub_$ac_func || defined __stub___$ac_func
12994 return $ac_func ();
12999 rm -f conftest.$ac_objext conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13006 $as_echo "$ac_try_echo") >&5
13007 (eval "$ac_link") 2>conftest.er1
13009 grep -v '^ *+' conftest.er1 >conftest.err
13011 cat conftest.err >&5
13012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } && {
13014 test -z "$ac_c_werror_flag" ||
13015 test ! -s conftest.err
13016 } && test -s conftest$ac_exeext && {
13017 test "$cross_compiling" = yes ||
13018 $as_test_x conftest$ac_exeext
13020 eval "$as_ac_var=yes"
13022 $as_echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13025 eval "$as_ac_var=no"
13028 rm -rf conftest.dSYM
13029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13030 conftest$ac_exeext conftest.$ac_ext
13032 ac_res=`eval 'as_val=${'$as_ac_var'}
13033 $as_echo "$as_val"'`
13034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13035 $as_echo "$ac_res" >&6; }
13036 as_val=`eval 'as_val=${'$as_ac_var'}
13037 $as_echo "$as_val"'`
13038 if test "x$as_val" = x""yes; then
13039 cat >>confdefs.h <<_ACEOF
13040 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13048 if test "$with_pam" = yes ; then
13050 for ac_header in security/pam_appl.h
13052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13054 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13055 $as_echo_n "checking for $ac_header... " >&6; }
13056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13057 $as_echo_n "(cached) " >&6
13059 ac_res=`eval 'as_val=${'$as_ac_Header'}
13060 $as_echo "$as_val"'`
13061 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13062 $as_echo "$ac_res" >&6; }
13064 # Is the header compilable?
13065 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13066 $as_echo_n "checking $ac_header usability... " >&6; }
13067 cat >conftest.$ac_ext <<_ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13073 $ac_includes_default
13074 #include <$ac_header>
13076 rm -f conftest.$ac_objext
13077 if { (ac_try="$ac_compile"
13078 case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13083 $as_echo "$ac_try_echo") >&5
13084 (eval "$ac_compile") 2>conftest.er1
13086 grep -v '^ *+' conftest.er1 >conftest.err
13088 cat conftest.err >&5
13089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } && {
13091 test -z "$ac_c_werror_flag" ||
13092 test ! -s conftest.err
13093 } && test -s conftest.$ac_objext; then
13094 ac_header_compiler=yes
13096 $as_echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13099 ac_header_compiler=no
13102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13104 $as_echo "$ac_header_compiler" >&6; }
13106 # Is the header present?
13107 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13108 $as_echo_n "checking $ac_header presence... " >&6; }
13109 cat >conftest.$ac_ext <<_ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115 #include <$ac_header>
13117 if { (ac_try="$ac_cpp conftest.$ac_ext"
13118 case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13123 $as_echo "$ac_try_echo") >&5
13124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13126 grep -v '^ *+' conftest.er1 >conftest.err
13128 cat conftest.err >&5
13129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } >/dev/null && {
13131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13132 test ! -s conftest.err
13134 ac_header_preproc=yes
13136 $as_echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13139 ac_header_preproc=no
13142 rm -f conftest.err conftest.$ac_ext
13143 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13144 $as_echo "$ac_header_preproc" >&6; }
13146 # So? What about this header?
13147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13150 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13152 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13153 ac_header_preproc=yes
13156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13157 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13159 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13161 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13163 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13165 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13167 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13169 ## ---------------------------------------- ##
13170 ## Report this to pgsql-bugs@postgresql.org ##
13171 ## ---------------------------------------- ##
13173 ) | sed "s/^/$as_me: WARNING: /" >&2
13176 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13177 $as_echo_n "checking for $ac_header... " >&6; }
13178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13179 $as_echo_n "(cached) " >&6
13181 eval "$as_ac_Header=\$ac_header_preproc"
13183 ac_res=`eval 'as_val=${'$as_ac_Header'}
13184 $as_echo "$as_val"'`
13185 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13186 $as_echo "$ac_res" >&6; }
13189 as_val=`eval 'as_val=${'$as_ac_Header'}
13190 $as_echo "$as_val"'`
13191 if test "x$as_val" = x""yes; then
13192 cat >>confdefs.h <<_ACEOF
13193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13198 for ac_header in pam/pam_appl.h
13200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13202 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13203 $as_echo_n "checking for $ac_header... " >&6; }
13204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13205 $as_echo_n "(cached) " >&6
13207 ac_res=`eval 'as_val=${'$as_ac_Header'}
13208 $as_echo "$as_val"'`
13209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13210 $as_echo "$ac_res" >&6; }
13212 # Is the header compilable?
13213 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13214 $as_echo_n "checking $ac_header usability... " >&6; }
13215 cat >conftest.$ac_ext <<_ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13221 $ac_includes_default
13222 #include <$ac_header>
13224 rm -f conftest.$ac_objext
13225 if { (ac_try="$ac_compile"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13231 $as_echo "$ac_try_echo") >&5
13232 (eval "$ac_compile") 2>conftest.er1
13234 grep -v '^ *+' conftest.er1 >conftest.err
13236 cat conftest.err >&5
13237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } && {
13239 test -z "$ac_c_werror_flag" ||
13240 test ! -s conftest.err
13241 } && test -s conftest.$ac_objext; then
13242 ac_header_compiler=yes
13244 $as_echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13247 ac_header_compiler=no
13250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13251 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13252 $as_echo "$ac_header_compiler" >&6; }
13254 # Is the header present?
13255 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13256 $as_echo_n "checking $ac_header presence... " >&6; }
13257 cat >conftest.$ac_ext <<_ACEOF
13260 cat confdefs.h >>conftest.$ac_ext
13261 cat >>conftest.$ac_ext <<_ACEOF
13262 /* end confdefs.h. */
13263 #include <$ac_header>
13265 if { (ac_try="$ac_cpp conftest.$ac_ext"
13266 case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13271 $as_echo "$ac_try_echo") >&5
13272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13274 grep -v '^ *+' conftest.er1 >conftest.err
13276 cat conftest.err >&5
13277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } >/dev/null && {
13279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13280 test ! -s conftest.err
13282 ac_header_preproc=yes
13284 $as_echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13287 ac_header_preproc=no
13290 rm -f conftest.err conftest.$ac_ext
13291 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13292 $as_echo "$ac_header_preproc" >&6; }
13294 # So? What about this header?
13295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13298 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13301 ac_header_preproc=yes
13304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13305 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13307 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13309 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13311 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13313 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13315 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13317 ## ---------------------------------------- ##
13318 ## Report this to pgsql-bugs@postgresql.org ##
13319 ## ---------------------------------------- ##
13321 ) | sed "s/^/$as_me: WARNING: /" >&2
13324 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13325 $as_echo_n "checking for $ac_header... " >&6; }
13326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13327 $as_echo_n "(cached) " >&6
13329 eval "$as_ac_Header=\$ac_header_preproc"
13331 ac_res=`eval 'as_val=${'$as_ac_Header'}
13332 $as_echo "$as_val"'`
13333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13334 $as_echo "$ac_res" >&6; }
13337 as_val=`eval 'as_val=${'$as_ac_Header'}
13338 $as_echo "$as_val"'`
13339 if test "x$as_val" = x""yes; then
13340 cat >>confdefs.h <<_ACEOF
13341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13345 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13346 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13347 { (exit 1); exit 1; }; }
13358 if test "$with_libxml" = yes ; then
13359 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13360 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13361 $as_echo_n "checking for libxml/parser.h... " >&6; }
13362 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13363 $as_echo_n "(cached) " >&6
13365 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13366 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13368 # Is the header compilable?
13369 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13370 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13371 cat >conftest.$ac_ext <<_ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 $ac_includes_default
13378 #include <libxml/parser.h>
13380 rm -f conftest.$ac_objext
13381 if { (ac_try="$ac_compile"
13382 case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13387 $as_echo "$ac_try_echo") >&5
13388 (eval "$ac_compile") 2>conftest.er1
13390 grep -v '^ *+' conftest.er1 >conftest.err
13392 cat conftest.err >&5
13393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } && {
13395 test -z "$ac_c_werror_flag" ||
13396 test ! -s conftest.err
13397 } && test -s conftest.$ac_objext; then
13398 ac_header_compiler=yes
13400 $as_echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13403 ac_header_compiler=no
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13408 $as_echo "$ac_header_compiler" >&6; }
13410 # Is the header present?
13411 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13412 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13413 cat >conftest.$ac_ext <<_ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 #include <libxml/parser.h>
13421 if { (ac_try="$ac_cpp conftest.$ac_ext"
13422 case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13427 $as_echo "$ac_try_echo") >&5
13428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13430 grep -v '^ *+' conftest.er1 >conftest.err
13432 cat conftest.err >&5
13433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } >/dev/null && {
13435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13436 test ! -s conftest.err
13438 ac_header_preproc=yes
13440 $as_echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13443 ac_header_preproc=no
13446 rm -f conftest.err conftest.$ac_ext
13447 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13448 $as_echo "$ac_header_preproc" >&6; }
13450 # So? What about this header?
13451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13453 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13454 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13455 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13456 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13457 ac_header_preproc=yes
13460 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13461 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13462 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13463 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13464 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13465 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13466 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13467 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13468 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13469 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13470 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13471 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13473 ## ---------------------------------------- ##
13474 ## Report this to pgsql-bugs@postgresql.org ##
13475 ## ---------------------------------------- ##
13477 ) | sed "s/^/$as_me: WARNING: /" >&2
13480 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13481 $as_echo_n "checking for libxml/parser.h... " >&6; }
13482 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13483 $as_echo_n "(cached) " >&6
13485 ac_cv_header_libxml_parser_h=$ac_header_preproc
13487 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13488 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13491 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13494 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13495 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13496 { (exit 1); exit 1; }; }
13502 if test "$with_libxslt" = yes ; then
13503 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13504 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13505 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13506 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13507 $as_echo_n "(cached) " >&6
13509 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13510 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13512 # Is the header compilable?
13513 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13514 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13515 cat >conftest.$ac_ext <<_ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 $ac_includes_default
13522 #include <libxslt/xslt.h>
13524 rm -f conftest.$ac_objext
13525 if { (ac_try="$ac_compile"
13526 case "(($ac_try" in
13527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13531 $as_echo "$ac_try_echo") >&5
13532 (eval "$ac_compile") 2>conftest.er1
13534 grep -v '^ *+' conftest.er1 >conftest.err
13536 cat conftest.err >&5
13537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } && {
13539 test -z "$ac_c_werror_flag" ||
13540 test ! -s conftest.err
13541 } && test -s conftest.$ac_objext; then
13542 ac_header_compiler=yes
13544 $as_echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13547 ac_header_compiler=no
13550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13552 $as_echo "$ac_header_compiler" >&6; }
13554 # Is the header present?
13555 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13556 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13557 cat >conftest.$ac_ext <<_ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 #include <libxslt/xslt.h>
13565 if { (ac_try="$ac_cpp conftest.$ac_ext"
13566 case "(($ac_try" in
13567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13571 $as_echo "$ac_try_echo") >&5
13572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13574 grep -v '^ *+' conftest.er1 >conftest.err
13576 cat conftest.err >&5
13577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } >/dev/null && {
13579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13580 test ! -s conftest.err
13582 ac_header_preproc=yes
13584 $as_echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 ac_header_preproc=no
13590 rm -f conftest.err conftest.$ac_ext
13591 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13592 $as_echo "$ac_header_preproc" >&6; }
13594 # So? What about this header?
13595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13597 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13598 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13599 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13600 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13601 ac_header_preproc=yes
13604 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13605 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13606 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13607 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13608 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13609 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13610 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13611 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13612 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13613 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13614 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13615 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13617 ## ---------------------------------------- ##
13618 ## Report this to pgsql-bugs@postgresql.org ##
13619 ## ---------------------------------------- ##
13621 ) | sed "s/^/$as_me: WARNING: /" >&2
13624 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13625 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13626 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13627 $as_echo_n "(cached) " >&6
13629 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13631 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13632 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13635 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13638 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13639 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13640 { (exit 1); exit 1; }; }
13646 if test "$with_ldap" = yes ; then
13647 if test "$PORTNAME" != "win32"; then
13649 for ac_header in ldap.h
13651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13654 $as_echo_n "checking for $ac_header... " >&6; }
13655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13656 $as_echo_n "(cached) " >&6
13658 ac_res=`eval 'as_val=${'$as_ac_Header'}
13659 $as_echo "$as_val"'`
13660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13661 $as_echo "$ac_res" >&6; }
13663 # Is the header compilable?
13664 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13665 $as_echo_n "checking $ac_header usability... " >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 $ac_includes_default
13673 #include <$ac_header>
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13682 $as_echo "$ac_try_echo") >&5
13683 (eval "$ac_compile") 2>conftest.er1
13685 grep -v '^ *+' conftest.er1 >conftest.err
13687 cat conftest.err >&5
13688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } && {
13690 test -z "$ac_c_werror_flag" ||
13691 test ! -s conftest.err
13692 } && test -s conftest.$ac_objext; then
13693 ac_header_compiler=yes
13695 $as_echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13698 ac_header_compiler=no
13701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13702 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13703 $as_echo "$ac_header_compiler" >&6; }
13705 # Is the header present?
13706 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13707 $as_echo_n "checking $ac_header presence... " >&6; }
13708 cat >conftest.$ac_ext <<_ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 #include <$ac_header>
13716 if { (ac_try="$ac_cpp conftest.$ac_ext"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13722 $as_echo "$ac_try_echo") >&5
13723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13725 grep -v '^ *+' conftest.er1 >conftest.err
13727 cat conftest.err >&5
13728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } >/dev/null && {
13730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13731 test ! -s conftest.err
13733 ac_header_preproc=yes
13735 $as_echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 ac_header_preproc=no
13741 rm -f conftest.err conftest.$ac_ext
13742 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13743 $as_echo "$ac_header_preproc" >&6; }
13745 # So? What about this header?
13746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13749 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13751 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13752 ac_header_preproc=yes
13755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13756 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13758 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13760 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13762 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13764 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13766 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13768 ## ---------------------------------------- ##
13769 ## Report this to pgsql-bugs@postgresql.org ##
13770 ## ---------------------------------------- ##
13772 ) | sed "s/^/$as_me: WARNING: /" >&2
13775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13776 $as_echo_n "checking for $ac_header... " >&6; }
13777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13778 $as_echo_n "(cached) " >&6
13780 eval "$as_ac_Header=\$ac_header_preproc"
13782 ac_res=`eval 'as_val=${'$as_ac_Header'}
13783 $as_echo "$as_val"'`
13784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13785 $as_echo "$ac_res" >&6; }
13788 as_val=`eval 'as_val=${'$as_ac_Header'}
13789 $as_echo "$as_val"'`
13790 if test "x$as_val" = x""yes; then
13791 cat >>confdefs.h <<_ACEOF
13792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13796 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13797 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13798 { (exit 1); exit 1; }; }
13805 for ac_header in winldap.h
13807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13809 $as_echo_n "checking for $ac_header... " >&6; }
13810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13811 $as_echo_n "(cached) " >&6
13813 cat >conftest.$ac_ext <<_ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 $ac_includes_default
13820 #include <windows.h>
13823 #include <$ac_header>
13825 rm -f conftest.$ac_objext
13826 if { (ac_try="$ac_compile"
13827 case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13832 $as_echo "$ac_try_echo") >&5
13833 (eval "$ac_compile") 2>conftest.er1
13835 grep -v '^ *+' conftest.er1 >conftest.err
13837 cat conftest.err >&5
13838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } && {
13840 test -z "$ac_c_werror_flag" ||
13841 test ! -s conftest.err
13842 } && test -s conftest.$ac_objext; then
13843 eval "$as_ac_Header=yes"
13845 $as_echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13848 eval "$as_ac_Header=no"
13851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13853 ac_res=`eval 'as_val=${'$as_ac_Header'}
13854 $as_echo "$as_val"'`
13855 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13856 $as_echo "$ac_res" >&6; }
13857 as_val=`eval 'as_val=${'$as_ac_Header'}
13858 $as_echo "$as_val"'`
13859 if test "x$as_val" = x""yes; then
13860 cat >>confdefs.h <<_ACEOF
13861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13865 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13866 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13867 { (exit 1); exit 1; }; }
13875 if test "$with_bonjour" = yes ; then
13876 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13877 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13878 $as_echo_n "checking for dns_sd.h... " >&6; }
13879 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13880 $as_echo_n "(cached) " >&6
13882 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13883 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13885 # Is the header compilable?
13886 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13887 $as_echo_n "checking dns_sd.h usability... " >&6; }
13888 cat >conftest.$ac_ext <<_ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 $ac_includes_default
13895 #include <dns_sd.h>
13897 rm -f conftest.$ac_objext
13898 if { (ac_try="$ac_compile"
13899 case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13904 $as_echo "$ac_try_echo") >&5
13905 (eval "$ac_compile") 2>conftest.er1
13907 grep -v '^ *+' conftest.er1 >conftest.err
13909 cat conftest.err >&5
13910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest.$ac_objext; then
13915 ac_header_compiler=yes
13917 $as_echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_header_compiler=no
13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13924 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13925 $as_echo "$ac_header_compiler" >&6; }
13927 # Is the header present?
13928 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13929 $as_echo_n "checking dns_sd.h presence... " >&6; }
13930 cat >conftest.$ac_ext <<_ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13936 #include <dns_sd.h>
13938 if { (ac_try="$ac_cpp conftest.$ac_ext"
13939 case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13944 $as_echo "$ac_try_echo") >&5
13945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13947 grep -v '^ *+' conftest.er1 >conftest.err
13949 cat conftest.err >&5
13950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } >/dev/null && {
13952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13953 test ! -s conftest.err
13955 ac_header_preproc=yes
13957 $as_echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13960 ac_header_preproc=no
13963 rm -f conftest.err conftest.$ac_ext
13964 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13965 $as_echo "$ac_header_preproc" >&6; }
13967 # So? What about this header?
13968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13970 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13971 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13972 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13973 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13974 ac_header_preproc=yes
13977 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13978 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13979 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
13980 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
13981 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13982 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13983 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
13984 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
13985 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13986 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13987 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13988 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13990 ## ---------------------------------------- ##
13991 ## Report this to pgsql-bugs@postgresql.org ##
13992 ## ---------------------------------------- ##
13994 ) | sed "s/^/$as_me: WARNING: /" >&2
13997 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13998 $as_echo_n "checking for dns_sd.h... " >&6; }
13999 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14000 $as_echo_n "(cached) " >&6
14002 ac_cv_header_dns_sd_h=$ac_header_preproc
14004 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14005 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14008 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14011 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14012 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14013 { (exit 1); exit 1; }; }
14019 # for contrib/uuid-ossp
14020 if test "$with_ossp_uuid" = yes ; then
14022 for ac_header in ossp/uuid.h
14024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14027 $as_echo_n "checking for $ac_header... " >&6; }
14028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14029 $as_echo_n "(cached) " >&6
14031 ac_res=`eval 'as_val=${'$as_ac_Header'}
14032 $as_echo "$as_val"'`
14033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14034 $as_echo "$ac_res" >&6; }
14036 # Is the header compilable?
14037 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14038 $as_echo_n "checking $ac_header usability... " >&6; }
14039 cat >conftest.$ac_ext <<_ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 $ac_includes_default
14046 #include <$ac_header>
14048 rm -f conftest.$ac_objext
14049 if { (ac_try="$ac_compile"
14050 case "(($ac_try" in
14051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052 *) ac_try_echo=$ac_try;;
14054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14055 $as_echo "$ac_try_echo") >&5
14056 (eval "$ac_compile") 2>conftest.er1
14058 grep -v '^ *+' conftest.er1 >conftest.err
14060 cat conftest.err >&5
14061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } && {
14063 test -z "$ac_c_werror_flag" ||
14064 test ! -s conftest.err
14065 } && test -s conftest.$ac_objext; then
14066 ac_header_compiler=yes
14068 $as_echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_header_compiler=no
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14076 $as_echo "$ac_header_compiler" >&6; }
14078 # Is the header present?
14079 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14080 $as_echo_n "checking $ac_header presence... " >&6; }
14081 cat >conftest.$ac_ext <<_ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14087 #include <$ac_header>
14089 if { (ac_try="$ac_cpp conftest.$ac_ext"
14090 case "(($ac_try" in
14091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092 *) ac_try_echo=$ac_try;;
14094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14095 $as_echo "$ac_try_echo") >&5
14096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14098 grep -v '^ *+' conftest.er1 >conftest.err
14100 cat conftest.err >&5
14101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } >/dev/null && {
14103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14104 test ! -s conftest.err
14106 ac_header_preproc=yes
14108 $as_echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14111 ac_header_preproc=no
14114 rm -f conftest.err conftest.$ac_ext
14115 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14116 $as_echo "$ac_header_preproc" >&6; }
14118 # So? What about this header?
14119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14122 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14125 ac_header_preproc=yes
14128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14129 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14131 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14133 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14135 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14137 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14139 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14141 ## ---------------------------------------- ##
14142 ## Report this to pgsql-bugs@postgresql.org ##
14143 ## ---------------------------------------- ##
14145 ) | sed "s/^/$as_me: WARNING: /" >&2
14148 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14149 $as_echo_n "checking for $ac_header... " >&6; }
14150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14151 $as_echo_n "(cached) " >&6
14153 eval "$as_ac_Header=\$ac_header_preproc"
14155 ac_res=`eval 'as_val=${'$as_ac_Header'}
14156 $as_echo "$as_val"'`
14157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14158 $as_echo "$ac_res" >&6; }
14161 as_val=`eval 'as_val=${'$as_ac_Header'}
14162 $as_echo "$as_val"'`
14163 if test "x$as_val" = x""yes; then
14164 cat >>confdefs.h <<_ACEOF
14165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14171 for ac_header in uuid.h
14173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14176 $as_echo_n "checking for $ac_header... " >&6; }
14177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14178 $as_echo_n "(cached) " >&6
14180 ac_res=`eval 'as_val=${'$as_ac_Header'}
14181 $as_echo "$as_val"'`
14182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14183 $as_echo "$ac_res" >&6; }
14185 # Is the header compilable?
14186 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14187 $as_echo_n "checking $ac_header usability... " >&6; }
14188 cat >conftest.$ac_ext <<_ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14194 $ac_includes_default
14195 #include <$ac_header>
14197 rm -f conftest.$ac_objext
14198 if { (ac_try="$ac_compile"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14204 $as_echo "$ac_try_echo") >&5
14205 (eval "$ac_compile") 2>conftest.er1
14207 grep -v '^ *+' conftest.er1 >conftest.err
14209 cat conftest.err >&5
14210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } && {
14212 test -z "$ac_c_werror_flag" ||
14213 test ! -s conftest.err
14214 } && test -s conftest.$ac_objext; then
14215 ac_header_compiler=yes
14217 $as_echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 ac_header_compiler=no
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14225 $as_echo "$ac_header_compiler" >&6; }
14227 # Is the header present?
14228 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14229 $as_echo_n "checking $ac_header presence... " >&6; }
14230 cat >conftest.$ac_ext <<_ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 #include <$ac_header>
14238 if { (ac_try="$ac_cpp conftest.$ac_ext"
14239 case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14244 $as_echo "$ac_try_echo") >&5
14245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14247 grep -v '^ *+' conftest.er1 >conftest.err
14249 cat conftest.err >&5
14250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } >/dev/null && {
14252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14255 ac_header_preproc=yes
14257 $as_echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_header_preproc=no
14263 rm -f conftest.err conftest.$ac_ext
14264 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14265 $as_echo "$ac_header_preproc" >&6; }
14267 # So? What about this header?
14268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14271 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14273 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14274 ac_header_preproc=yes
14277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14278 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14280 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14282 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14284 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14288 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14290 ## ---------------------------------------- ##
14291 ## Report this to pgsql-bugs@postgresql.org ##
14292 ## ---------------------------------------- ##
14294 ) | sed "s/^/$as_me: WARNING: /" >&2
14297 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14298 $as_echo_n "checking for $ac_header... " >&6; }
14299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14300 $as_echo_n "(cached) " >&6
14302 eval "$as_ac_Header=\$ac_header_preproc"
14304 ac_res=`eval 'as_val=${'$as_ac_Header'}
14305 $as_echo "$as_val"'`
14306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14307 $as_echo "$ac_res" >&6; }
14310 as_val=`eval 'as_val=${'$as_ac_Header'}
14311 $as_echo "$as_val"'`
14312 if test "x$as_val" = x""yes; then
14313 cat >>confdefs.h <<_ACEOF
14314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14318 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14319 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14320 { (exit 1); exit 1; }; }
14333 ## Types, structures, compiler characteristics
14337 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14338 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14339 if test "${ac_cv_c_bigendian+set}" = set; then
14340 $as_echo_n "(cached) " >&6
14342 ac_cv_c_bigendian=unknown
14343 # See if we're dealing with a universal compiler.
14344 cat >conftest.$ac_ext <<_ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14350 #ifndef __APPLE_CC__
14351 not a universal capable compiler
14356 rm -f conftest.$ac_objext
14357 if { (ac_try="$ac_compile"
14358 case "(($ac_try" in
14359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360 *) ac_try_echo=$ac_try;;
14362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14363 $as_echo "$ac_try_echo") >&5
14364 (eval "$ac_compile") 2>conftest.er1
14366 grep -v '^ *+' conftest.er1 >conftest.err
14368 cat conftest.err >&5
14369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } && {
14371 test -z "$ac_c_werror_flag" ||
14372 test ! -s conftest.err
14373 } && test -s conftest.$ac_objext; then
14375 # Check for potential -arch flags. It is not universal unless
14376 # there are some -arch flags. Note that *ppc* also matches
14377 # ppc64. This check is also rather less than ideal.
14378 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14379 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14382 $as_echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389 if test $ac_cv_c_bigendian = unknown; then
14390 # See if sys/param.h defines the BYTE_ORDER macro.
14391 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 #include <sys/types.h>
14398 #include <sys/param.h>
14403 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14404 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14406 bogus endian macros
14413 rm -f conftest.$ac_objext
14414 if { (ac_try="$ac_compile"
14415 case "(($ac_try" in
14416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417 *) ac_try_echo=$ac_try;;
14419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14420 $as_echo "$ac_try_echo") >&5
14421 (eval "$ac_compile") 2>conftest.er1
14423 grep -v '^ *+' conftest.er1 >conftest.err
14425 cat conftest.err >&5
14426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } && {
14428 test -z "$ac_c_werror_flag" ||
14429 test ! -s conftest.err
14430 } && test -s conftest.$ac_objext; then
14431 # It does; now see whether it defined to BIG_ENDIAN or not.
14432 cat >conftest.$ac_ext <<_ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14438 #include <sys/types.h>
14439 #include <sys/param.h>
14444 #if BYTE_ORDER != BIG_ENDIAN
14452 rm -f conftest.$ac_objext
14453 if { (ac_try="$ac_compile"
14454 case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14459 $as_echo "$ac_try_echo") >&5
14460 (eval "$ac_compile") 2>conftest.er1
14462 grep -v '^ *+' conftest.er1 >conftest.err
14464 cat conftest.err >&5
14465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest.$ac_objext; then
14470 ac_cv_c_bigendian=yes
14472 $as_echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 ac_cv_c_bigendian=no
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480 $as_echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14488 if test $ac_cv_c_bigendian = unknown; then
14489 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14490 cat >conftest.$ac_ext <<_ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 #include <limits.h>
14501 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14502 bogus endian macros
14509 rm -f conftest.$ac_objext
14510 if { (ac_try="$ac_compile"
14511 case "(($ac_try" in
14512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513 *) ac_try_echo=$ac_try;;
14515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14516 $as_echo "$ac_try_echo") >&5
14517 (eval "$ac_compile") 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest.$ac_objext; then
14527 # It does; now see whether it defined to _BIG_ENDIAN or not.
14528 cat >conftest.$ac_ext <<_ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14534 #include <limits.h>
14539 #ifndef _BIG_ENDIAN
14547 rm -f conftest.$ac_objext
14548 if { (ac_try="$ac_compile"
14549 case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14554 $as_echo "$ac_try_echo") >&5
14555 (eval "$ac_compile") 2>conftest.er1
14557 grep -v '^ *+' conftest.er1 >conftest.err
14559 cat conftest.err >&5
14560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
14564 } && test -s conftest.$ac_objext; then
14565 ac_cv_c_bigendian=yes
14567 $as_echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14570 ac_cv_c_bigendian=no
14573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14575 $as_echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14583 if test $ac_cv_c_bigendian = unknown; then
14584 # Compile a test program.
14585 if test "$cross_compiling" = yes; then
14586 # Try to guess by grepping values from an object file.
14587 cat >conftest.$ac_ext <<_ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 short int ascii_mm[] =
14594 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14595 short int ascii_ii[] =
14596 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14597 int use_ascii (int i) {
14598 return ascii_mm[i] + ascii_ii[i];
14600 short int ebcdic_ii[] =
14601 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14602 short int ebcdic_mm[] =
14603 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14604 int use_ebcdic (int i) {
14605 return ebcdic_mm[i] + ebcdic_ii[i];
14612 return use_ascii (foo) == use_ebcdic (foo);
14617 rm -f conftest.$ac_objext
14618 if { (ac_try="$ac_compile"
14619 case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14624 $as_echo "$ac_try_echo") >&5
14625 (eval "$ac_compile") 2>conftest.er1
14627 grep -v '^ *+' conftest.er1 >conftest.err
14629 cat conftest.err >&5
14630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } && {
14632 test -z "$ac_c_werror_flag" ||
14633 test ! -s conftest.err
14634 } && test -s conftest.$ac_objext; then
14635 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14636 ac_cv_c_bigendian=yes
14638 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14639 if test "$ac_cv_c_bigendian" = unknown; then
14640 ac_cv_c_bigendian=no
14642 # finding both strings is unlikely to happen, but who knows?
14643 ac_cv_c_bigendian=unknown
14647 $as_echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655 cat >conftest.$ac_ext <<_ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14661 $ac_includes_default
14666 /* Are we little or big endian? From Harbison&Steele. */
14670 char c[sizeof (long int)];
14673 return u.c[sizeof (long int) - 1] == 1;
14679 rm -f conftest$ac_exeext
14680 if { (ac_try="$ac_link"
14681 case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14686 $as_echo "$ac_try_echo") >&5
14687 (eval "$ac_link") 2>&5
14689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14691 { (case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14696 $as_echo "$ac_try_echo") >&5
14697 (eval "$ac_try") 2>&5
14699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 ac_cv_c_bigendian=no
14703 $as_echo "$as_me: program exited with status $ac_status" >&5
14704 $as_echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14707 ( exit $ac_status )
14708 ac_cv_c_bigendian=yes
14710 rm -rf conftest.dSYM
14711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14717 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14718 $as_echo "$ac_cv_c_bigendian" >&6; }
14719 case $ac_cv_c_bigendian in #(
14721 cat >>confdefs.h <<\_ACEOF
14722 #define WORDS_BIGENDIAN 1
14729 cat >>confdefs.h <<\_ACEOF
14730 #define AC_APPLE_UNIVERSAL_BUILD 1
14735 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14736 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14737 $as_echo "$as_me: error: unknown endianness
14738 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14739 { (exit 1); exit 1; }; } ;;
14742 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14743 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14744 if test "${ac_cv_c_const+set}" = set; then
14745 $as_echo_n "(cached) " >&6
14747 cat >conftest.$ac_ext <<_ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14757 /* FIXME: Include the comments suggested by Paul. */
14758 #ifndef __cplusplus
14759 /* Ultrix mips cc rejects this. */
14760 typedef int charset[2];
14762 /* SunOS 4.1.1 cc rejects this. */
14763 char const *const *pcpcc;
14765 /* NEC SVR4.0.2 mips cc rejects this. */
14766 struct point {int x, y;};
14767 static struct point const zero = {0,0};
14768 /* AIX XL C 1.02.0.0 rejects this.
14769 It does not let you subtract one const X* pointer from another in
14770 an arm of an if-expression whose if-part is not a constant
14772 const char *g = "string";
14773 pcpcc = &g + (g ? g-g : 0);
14774 /* HPUX 7.0 cc rejects these. */
14776 ppc = (char**) pcpcc;
14777 pcpcc = (char const *const *) ppc;
14778 { /* SCO 3.2v4 cc rejects this. */
14780 char const *s = 0 ? (char *) 0 : (char const *) 0;
14785 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14786 int x[] = {25, 17};
14787 const int *foo = &x[0];
14790 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14791 typedef const int *iptr;
14795 { /* AIX XL C 1.02.0.0 rejects this saying
14796 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14797 struct s { int j; const int *ap[3]; };
14798 struct s *b; b->j = 5;
14800 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14801 const int foo = 10;
14802 if (!foo) return 0;
14804 return !cs[0] && !zero.x;
14811 rm -f conftest.$ac_objext
14812 if { (ac_try="$ac_compile"
14813 case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14818 $as_echo "$ac_try_echo") >&5
14819 (eval "$ac_compile") 2>conftest.er1
14821 grep -v '^ *+' conftest.er1 >conftest.err
14823 cat conftest.err >&5
14824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } && {
14826 test -z "$ac_c_werror_flag" ||
14827 test ! -s conftest.err
14828 } && test -s conftest.$ac_objext; then
14831 $as_echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14840 $as_echo "$ac_cv_c_const" >&6; }
14841 if test $ac_cv_c_const = no; then
14843 cat >>confdefs.h <<\_ACEOF
14849 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14850 $as_echo_n "checking for inline... " >&6; }
14851 if test "${ac_cv_c_inline+set}" = set; then
14852 $as_echo_n "(cached) " >&6
14855 for ac_kw in inline __inline__ __inline; do
14856 cat >conftest.$ac_ext <<_ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14862 #ifndef __cplusplus
14864 static $ac_kw foo_t static_foo () {return 0; }
14865 $ac_kw foo_t foo () {return 0; }
14869 rm -f conftest.$ac_objext
14870 if { (ac_try="$ac_compile"
14871 case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14876 $as_echo "$ac_try_echo") >&5
14877 (eval "$ac_compile") 2>conftest.er1
14879 grep -v '^ *+' conftest.er1 >conftest.err
14881 cat conftest.err >&5
14882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } && {
14884 test -z "$ac_c_werror_flag" ||
14885 test ! -s conftest.err
14886 } && test -s conftest.$ac_objext; then
14887 ac_cv_c_inline=$ac_kw
14889 $as_echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14896 test "$ac_cv_c_inline" != no && break
14900 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14901 $as_echo "$ac_cv_c_inline" >&6; }
14904 case $ac_cv_c_inline in
14907 case $ac_cv_c_inline in
14909 *) ac_val=$ac_cv_c_inline;;
14911 cat >>confdefs.h <<_ACEOF
14912 #ifndef __cplusplus
14913 #define inline $ac_val
14919 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14920 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14921 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14922 $as_echo_n "(cached) " >&6
14924 pgac_cv_c_inline_quietly=no
14925 if test "$ac_cv_c_inline" != no; then
14926 pgac_c_inline_save_werror=$ac_c_werror_flag
14927 ac_c_werror_flag=yes
14928 cat >conftest.$ac_ext <<_ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14934 static inline int fun () {return 0;}
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (ac_try="$ac_link"
14945 case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14950 $as_echo "$ac_try_echo") >&5
14951 (eval "$ac_link") 2>conftest.er1
14953 grep -v '^ *+' conftest.er1 >conftest.err
14955 cat conftest.err >&5
14956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } && {
14958 test -z "$ac_c_werror_flag" ||
14959 test ! -s conftest.err
14960 } && test -s conftest$ac_exeext && {
14961 test "$cross_compiling" = yes ||
14962 $as_test_x conftest$ac_exeext
14964 pgac_cv_c_inline_quietly=yes
14966 $as_echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14972 rm -rf conftest.dSYM
14973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14974 conftest$ac_exeext conftest.$ac_ext
14975 ac_c_werror_flag=$pgac_c_inline_save_werror
14978 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14979 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14980 if test "$pgac_cv_c_inline_quietly" != no; then
14982 cat >>confdefs.h <<_ACEOF
14983 #define USE_INLINE 1
14988 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14989 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14990 if test "${ac_cv_c_stringize+set}" = set; then
14991 $as_echo_n "(cached) " >&6
14993 cat >conftest.$ac_ext <<_ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15001 char *s = x(teststring);
15003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15004 $EGREP "#teststring" >/dev/null 2>&1; then
15005 ac_cv_c_stringize=no
15007 ac_cv_c_stringize=yes
15012 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15013 $as_echo "$ac_cv_c_stringize" >&6; }
15014 if test $ac_cv_c_stringize = yes; then
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_STRINGIZE 1
15023 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15024 $as_echo_n "checking for flexible array members... " >&6; }
15025 if test "${ac_cv_c_flexmember+set}" = set; then
15026 $as_echo_n "(cached) " >&6
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15034 #include <stdlib.h>
15036 #include <stddef.h>
15037 struct s { int n; double d[]; };
15041 int m = getchar ();
15042 struct s *p = malloc (offsetof (struct s, d)
15043 + m * sizeof (double));
15045 return p->d != (double *) NULL;
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15057 $as_echo "$ac_try_echo") >&5
15058 (eval "$ac_compile") 2>conftest.er1
15060 grep -v '^ *+' conftest.er1 >conftest.err
15062 cat conftest.err >&5
15063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest.$ac_objext; then
15068 ac_cv_c_flexmember=yes
15070 $as_echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 ac_cv_c_flexmember=no
15076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15079 $as_echo "$ac_cv_c_flexmember" >&6; }
15080 if test $ac_cv_c_flexmember = yes; then
15082 cat >>confdefs.h <<\_ACEOF
15083 #define FLEXIBLE_ARRAY_MEMBER /**/
15087 cat >>confdefs.h <<\_ACEOF
15088 #define FLEXIBLE_ARRAY_MEMBER 1
15093 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15094 $as_echo_n "checking for signed types... " >&6; }
15095 if test "${pgac_cv_c_signed+set}" = set; then
15096 $as_echo_n "(cached) " >&6
15098 cat >conftest.$ac_ext <<_ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15108 signed char c; signed short s; signed int i;
15113 rm -f conftest.$ac_objext
15114 if { (ac_try="$ac_compile"
15115 case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15120 $as_echo "$ac_try_echo") >&5
15121 (eval "$ac_compile") 2>conftest.er1
15123 grep -v '^ *+' conftest.er1 >conftest.err
15125 cat conftest.err >&5
15126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } && {
15128 test -z "$ac_c_werror_flag" ||
15129 test ! -s conftest.err
15130 } && test -s conftest.$ac_objext; then
15131 pgac_cv_c_signed=yes
15133 $as_echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15136 pgac_cv_c_signed=no
15139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15141 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15142 $as_echo "$pgac_cv_c_signed" >&6; }
15143 if test x"$pgac_cv_c_signed" = xno ; then
15145 cat >>confdefs.h <<\_ACEOF
15146 #define signed /**/
15150 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15151 $as_echo_n "checking for working volatile... " >&6; }
15152 if test "${ac_cv_c_volatile+set}" = set; then
15153 $as_echo_n "(cached) " >&6
15155 cat >conftest.$ac_ext <<_ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15167 int * volatile y = (int *) 0;
15173 rm -f conftest.$ac_objext
15174 if { (ac_try="$ac_compile"
15175 case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15180 $as_echo "$ac_try_echo") >&5
15181 (eval "$ac_compile") 2>conftest.er1
15183 grep -v '^ *+' conftest.er1 >conftest.err
15185 cat conftest.err >&5
15186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } && {
15188 test -z "$ac_c_werror_flag" ||
15189 test ! -s conftest.err
15190 } && test -s conftest.$ac_objext; then
15191 ac_cv_c_volatile=yes
15193 $as_echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15196 ac_cv_c_volatile=no
15199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15201 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15202 $as_echo "$ac_cv_c_volatile" >&6; }
15203 if test $ac_cv_c_volatile = no; then
15205 cat >>confdefs.h <<\_ACEOF
15206 #define volatile /**/
15211 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15212 $as_echo_n "checking for __func__... " >&6; }
15213 if test "${pgac_cv_funcname_func_support+set}" = set; then
15214 $as_echo_n "(cached) " >&6
15216 cat >conftest.$ac_ext <<_ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15226 printf("%s\n", __func__);
15231 rm -f conftest.$ac_objext
15232 if { (ac_try="$ac_compile"
15233 case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15238 $as_echo "$ac_try_echo") >&5
15239 (eval "$ac_compile") 2>conftest.er1
15241 grep -v '^ *+' conftest.er1 >conftest.err
15243 cat conftest.err >&5
15244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } && {
15246 test -z "$ac_c_werror_flag" ||
15247 test ! -s conftest.err
15248 } && test -s conftest.$ac_objext; then
15249 pgac_cv_funcname_func_support=yes
15251 $as_echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 pgac_cv_funcname_func_support=no
15257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15260 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15261 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15263 cat >>confdefs.h <<\_ACEOF
15264 #define HAVE_FUNCNAME__FUNC 1
15268 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15269 $as_echo_n "checking for __FUNCTION__... " >&6; }
15270 if test "${pgac_cv_funcname_function_support+set}" = set; then
15271 $as_echo_n "(cached) " >&6
15273 cat >conftest.$ac_ext <<_ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15283 printf("%s\n", __FUNCTION__);
15288 rm -f conftest.$ac_objext
15289 if { (ac_try="$ac_compile"
15290 case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15295 $as_echo "$ac_try_echo") >&5
15296 (eval "$ac_compile") 2>conftest.er1
15298 grep -v '^ *+' conftest.er1 >conftest.err
15300 cat conftest.err >&5
15301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } && {
15303 test -z "$ac_c_werror_flag" ||
15304 test ! -s conftest.err
15305 } && test -s conftest.$ac_objext; then
15306 pgac_cv_funcname_function_support=yes
15308 $as_echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 pgac_cv_funcname_function_support=no
15314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15317 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15318 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15320 cat >>confdefs.h <<\_ACEOF
15321 #define HAVE_FUNCNAME__FUNCTION 1
15326 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15327 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15328 if test "${ac_cv_struct_tm+set}" = set; then
15329 $as_echo_n "(cached) " >&6
15331 cat >conftest.$ac_ext <<_ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 #include <sys/types.h>
15344 int *p = &tm.tm_sec;
15350 rm -f conftest.$ac_objext
15351 if { (ac_try="$ac_compile"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15357 $as_echo "$ac_try_echo") >&5
15358 (eval "$ac_compile") 2>conftest.er1
15360 grep -v '^ *+' conftest.er1 >conftest.err
15362 cat conftest.err >&5
15363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } && {
15365 test -z "$ac_c_werror_flag" ||
15366 test ! -s conftest.err
15367 } && test -s conftest.$ac_objext; then
15368 ac_cv_struct_tm=time.h
15370 $as_echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15373 ac_cv_struct_tm=sys/time.h
15376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15379 $as_echo "$ac_cv_struct_tm" >&6; }
15380 if test $ac_cv_struct_tm = sys/time.h; then
15382 cat >>confdefs.h <<\_ACEOF
15383 #define TM_IN_SYS_TIME 1
15388 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15389 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15390 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15391 $as_echo_n "(cached) " >&6
15393 cat >conftest.$ac_ext <<_ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15399 #include <sys/types.h>
15400 #include <$ac_cv_struct_tm>
15406 static struct tm ac_aggr;
15407 if (ac_aggr.tm_zone)
15413 rm -f conftest.$ac_objext
15414 if { (ac_try="$ac_compile"
15415 case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15420 $as_echo "$ac_try_echo") >&5
15421 (eval "$ac_compile") 2>conftest.er1
15423 grep -v '^ *+' conftest.er1 >conftest.err
15425 cat conftest.err >&5
15426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } && {
15428 test -z "$ac_c_werror_flag" ||
15429 test ! -s conftest.err
15430 } && test -s conftest.$ac_objext; then
15431 ac_cv_member_struct_tm_tm_zone=yes
15433 $as_echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15436 cat >conftest.$ac_ext <<_ACEOF
15439 cat confdefs.h >>conftest.$ac_ext
15440 cat >>conftest.$ac_ext <<_ACEOF
15441 /* end confdefs.h. */
15442 #include <sys/types.h>
15443 #include <$ac_cv_struct_tm>
15449 static struct tm ac_aggr;
15450 if (sizeof ac_aggr.tm_zone)
15456 rm -f conftest.$ac_objext
15457 if { (ac_try="$ac_compile"
15458 case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15463 $as_echo "$ac_try_echo") >&5
15464 (eval "$ac_compile") 2>conftest.er1
15466 grep -v '^ *+' conftest.er1 >conftest.err
15468 cat conftest.err >&5
15469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest.$ac_objext; then
15474 ac_cv_member_struct_tm_tm_zone=yes
15476 $as_echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 ac_cv_member_struct_tm_tm_zone=no
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15488 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15489 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15491 cat >>confdefs.h <<_ACEOF
15492 #define HAVE_STRUCT_TM_TM_ZONE 1
15498 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15500 cat >>confdefs.h <<\_ACEOF
15501 #define HAVE_TM_ZONE 1
15505 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15506 $as_echo_n "checking for tzname... " >&6; }
15507 if test "${ac_cv_var_tzname+set}" = set; then
15508 $as_echo_n "(cached) " >&6
15510 cat >conftest.$ac_ext <<_ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15517 #ifndef tzname /* For SGI. */
15518 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15529 rm -f conftest.$ac_objext conftest$ac_exeext
15530 if { (ac_try="$ac_link"
15531 case "(($ac_try" in
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15536 $as_echo "$ac_try_echo") >&5
15537 (eval "$ac_link") 2>conftest.er1
15539 grep -v '^ *+' conftest.er1 >conftest.err
15541 cat conftest.err >&5
15542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } && {
15544 test -z "$ac_c_werror_flag" ||
15545 test ! -s conftest.err
15546 } && test -s conftest$ac_exeext && {
15547 test "$cross_compiling" = yes ||
15548 $as_test_x conftest$ac_exeext
15550 ac_cv_var_tzname=yes
15552 $as_echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15555 ac_cv_var_tzname=no
15558 rm -rf conftest.dSYM
15559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15560 conftest$ac_exeext conftest.$ac_ext
15562 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15563 $as_echo "$ac_cv_var_tzname" >&6; }
15564 if test $ac_cv_var_tzname = yes; then
15566 cat >>confdefs.h <<\_ACEOF
15567 #define HAVE_TZNAME 1
15572 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15573 $as_echo_n "checking for union semun... " >&6; }
15574 if test "${ac_cv_type_union_semun+set}" = set; then
15575 $as_echo_n "(cached) " >&6
15577 ac_cv_type_union_semun=no
15578 cat >conftest.$ac_ext <<_ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15584 #include <sys/types.h>
15585 #include <sys/ipc.h>
15586 #include <sys/sem.h>
15591 if (sizeof (union semun))
15597 rm -f conftest.$ac_objext
15598 if { (ac_try="$ac_compile"
15599 case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15604 $as_echo "$ac_try_echo") >&5
15605 (eval "$ac_compile") 2>conftest.er1
15607 grep -v '^ *+' conftest.er1 >conftest.err
15609 cat conftest.err >&5
15610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } && {
15612 test -z "$ac_c_werror_flag" ||
15613 test ! -s conftest.err
15614 } && test -s conftest.$ac_objext; then
15615 cat >conftest.$ac_ext <<_ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 #include <sys/types.h>
15622 #include <sys/ipc.h>
15623 #include <sys/sem.h>
15628 if (sizeof ((union semun)))
15634 rm -f conftest.$ac_objext
15635 if { (ac_try="$ac_compile"
15636 case "(($ac_try" in
15637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15641 $as_echo "$ac_try_echo") >&5
15642 (eval "$ac_compile") 2>conftest.er1
15644 grep -v '^ *+' conftest.er1 >conftest.err
15646 cat conftest.err >&5
15647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } && {
15649 test -z "$ac_c_werror_flag" ||
15650 test ! -s conftest.err
15651 } && test -s conftest.$ac_objext; then
15654 $as_echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15657 ac_cv_type_union_semun=yes
15660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15662 $as_echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15671 $as_echo "$ac_cv_type_union_semun" >&6; }
15672 if test "x$ac_cv_type_union_semun" = x""yes; then
15674 cat >>confdefs.h <<_ACEOF
15675 #define HAVE_UNION_SEMUN 1
15681 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15682 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15683 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15684 $as_echo_n "(cached) " >&6
15686 ac_cv_type_struct_sockaddr_un=no
15687 cat >conftest.$ac_ext <<_ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15693 #include <sys/types.h>
15694 #ifdef HAVE_SYS_UN_H
15695 #include <sys/un.h>
15702 if (sizeof (struct sockaddr_un))
15708 rm -f conftest.$ac_objext
15709 if { (ac_try="$ac_compile"
15710 case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15715 $as_echo "$ac_try_echo") >&5
15716 (eval "$ac_compile") 2>conftest.er1
15718 grep -v '^ *+' conftest.er1 >conftest.err
15720 cat conftest.err >&5
15721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } && {
15723 test -z "$ac_c_werror_flag" ||
15724 test ! -s conftest.err
15725 } && test -s conftest.$ac_objext; then
15726 cat >conftest.$ac_ext <<_ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15732 #include <sys/types.h>
15733 #ifdef HAVE_SYS_UN_H
15734 #include <sys/un.h>
15741 if (sizeof ((struct sockaddr_un)))
15747 rm -f conftest.$ac_objext
15748 if { (ac_try="$ac_compile"
15749 case "(($ac_try" in
15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751 *) ac_try_echo=$ac_try;;
15753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15754 $as_echo "$ac_try_echo") >&5
15755 (eval "$ac_compile") 2>conftest.er1
15757 grep -v '^ *+' conftest.er1 >conftest.err
15759 cat conftest.err >&5
15760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } && {
15762 test -z "$ac_c_werror_flag" ||
15763 test ! -s conftest.err
15764 } && test -s conftest.$ac_objext; then
15767 $as_echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15770 ac_cv_type_struct_sockaddr_un=yes
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 $as_echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15784 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15785 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15787 cat >>confdefs.h <<_ACEOF
15788 #define HAVE_STRUCT_SOCKADDR_UN 1
15792 cat >>confdefs.h <<\_ACEOF
15793 #define HAVE_UNIX_SOCKETS 1
15798 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15799 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15800 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15801 $as_echo_n "(cached) " >&6
15803 ac_cv_type_struct_sockaddr_storage=no
15804 cat >conftest.$ac_ext <<_ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 #include <sys/types.h>
15811 #ifdef HAVE_SYS_SOCKET_H
15812 #include <sys/socket.h>
15819 if (sizeof (struct sockaddr_storage))
15825 rm -f conftest.$ac_objext
15826 if { (ac_try="$ac_compile"
15827 case "(($ac_try" in
15828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829 *) ac_try_echo=$ac_try;;
15831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15832 $as_echo "$ac_try_echo") >&5
15833 (eval "$ac_compile") 2>conftest.er1
15835 grep -v '^ *+' conftest.er1 >conftest.err
15837 cat conftest.err >&5
15838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } && {
15840 test -z "$ac_c_werror_flag" ||
15841 test ! -s conftest.err
15842 } && test -s conftest.$ac_objext; then
15843 cat >conftest.$ac_ext <<_ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 #include <sys/types.h>
15850 #ifdef HAVE_SYS_SOCKET_H
15851 #include <sys/socket.h>
15858 if (sizeof ((struct sockaddr_storage)))
15864 rm -f conftest.$ac_objext
15865 if { (ac_try="$ac_compile"
15866 case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15871 $as_echo "$ac_try_echo") >&5
15872 (eval "$ac_compile") 2>conftest.er1
15874 grep -v '^ *+' conftest.er1 >conftest.err
15876 cat conftest.err >&5
15877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } && {
15879 test -z "$ac_c_werror_flag" ||
15880 test ! -s conftest.err
15881 } && test -s conftest.$ac_objext; then
15884 $as_echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15887 ac_cv_type_struct_sockaddr_storage=yes
15890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 $as_echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15900 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15901 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15902 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15904 cat >>confdefs.h <<_ACEOF
15905 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15911 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15912 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15913 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15914 $as_echo_n "(cached) " >&6
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #include <sys/types.h>
15923 #ifdef HAVE_SYS_SOCKET_H
15924 #include <sys/socket.h>
15931 static struct sockaddr_storage ac_aggr;
15932 if (ac_aggr.ss_family)
15938 rm -f conftest.$ac_objext
15939 if { (ac_try="$ac_compile"
15940 case "(($ac_try" in
15941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15945 $as_echo "$ac_try_echo") >&5
15946 (eval "$ac_compile") 2>conftest.er1
15948 grep -v '^ *+' conftest.er1 >conftest.err
15950 cat conftest.err >&5
15951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } && {
15953 test -z "$ac_c_werror_flag" ||
15954 test ! -s conftest.err
15955 } && test -s conftest.$ac_objext; then
15956 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15958 $as_echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 cat >conftest.$ac_ext <<_ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h. */
15967 #include <sys/types.h>
15968 #ifdef HAVE_SYS_SOCKET_H
15969 #include <sys/socket.h>
15976 static struct sockaddr_storage ac_aggr;
15977 if (sizeof ac_aggr.ss_family)
15983 rm -f conftest.$ac_objext
15984 if { (ac_try="$ac_compile"
15985 case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15990 $as_echo "$ac_try_echo") >&5
15991 (eval "$ac_compile") 2>conftest.er1
15993 grep -v '^ *+' conftest.er1 >conftest.err
15995 cat conftest.err >&5
15996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } && {
15998 test -z "$ac_c_werror_flag" ||
15999 test ! -s conftest.err
16000 } && test -s conftest.$ac_objext; then
16001 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16003 $as_echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16006 ac_cv_member_struct_sockaddr_storage_ss_family=no
16009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16015 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16016 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16018 cat >>confdefs.h <<_ACEOF
16019 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16024 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16025 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16026 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16027 $as_echo_n "(cached) " >&6
16029 cat >conftest.$ac_ext <<_ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 #include <sys/types.h>
16036 #ifdef HAVE_SYS_SOCKET_H
16037 #include <sys/socket.h>
16044 static struct sockaddr_storage ac_aggr;
16045 if (ac_aggr.__ss_family)
16051 rm -f conftest.$ac_objext
16052 if { (ac_try="$ac_compile"
16053 case "(($ac_try" in
16054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055 *) ac_try_echo=$ac_try;;
16057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16058 $as_echo "$ac_try_echo") >&5
16059 (eval "$ac_compile") 2>conftest.er1
16061 grep -v '^ *+' conftest.er1 >conftest.err
16063 cat conftest.err >&5
16064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } && {
16066 test -z "$ac_c_werror_flag" ||
16067 test ! -s conftest.err
16068 } && test -s conftest.$ac_objext; then
16069 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16071 $as_echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16074 cat >conftest.$ac_ext <<_ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h. */
16080 #include <sys/types.h>
16081 #ifdef HAVE_SYS_SOCKET_H
16082 #include <sys/socket.h>
16089 static struct sockaddr_storage ac_aggr;
16090 if (sizeof ac_aggr.__ss_family)
16096 rm -f conftest.$ac_objext
16097 if { (ac_try="$ac_compile"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16103 $as_echo "$ac_try_echo") >&5
16104 (eval "$ac_compile") 2>conftest.er1
16106 grep -v '^ *+' conftest.er1 >conftest.err
16108 cat conftest.err >&5
16109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } && {
16111 test -z "$ac_c_werror_flag" ||
16112 test ! -s conftest.err
16113 } && test -s conftest.$ac_objext; then
16114 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16116 $as_echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16119 ac_cv_member_struct_sockaddr_storage___ss_family=no
16122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16127 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16128 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16129 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16131 cat >>confdefs.h <<_ACEOF
16132 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16137 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16138 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16139 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16140 $as_echo_n "(cached) " >&6
16142 cat >conftest.$ac_ext <<_ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148 #include <sys/types.h>
16149 #ifdef HAVE_SYS_SOCKET_H
16150 #include <sys/socket.h>
16157 static struct sockaddr_storage ac_aggr;
16158 if (ac_aggr.ss_len)
16164 rm -f conftest.$ac_objext
16165 if { (ac_try="$ac_compile"
16166 case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16171 $as_echo "$ac_try_echo") >&5
16172 (eval "$ac_compile") 2>conftest.er1
16174 grep -v '^ *+' conftest.er1 >conftest.err
16176 cat conftest.err >&5
16177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } && {
16179 test -z "$ac_c_werror_flag" ||
16180 test ! -s conftest.err
16181 } && test -s conftest.$ac_objext; then
16182 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16184 $as_echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16187 cat >conftest.$ac_ext <<_ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h. */
16193 #include <sys/types.h>
16194 #ifdef HAVE_SYS_SOCKET_H
16195 #include <sys/socket.h>
16202 static struct sockaddr_storage ac_aggr;
16203 if (sizeof ac_aggr.ss_len)
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16216 $as_echo "$ac_try_echo") >&5
16217 (eval "$ac_compile") 2>conftest.er1
16219 grep -v '^ *+' conftest.er1 >conftest.err
16221 cat conftest.err >&5
16222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } && {
16224 test -z "$ac_c_werror_flag" ||
16225 test ! -s conftest.err
16226 } && test -s conftest.$ac_objext; then
16227 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16229 $as_echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16232 ac_cv_member_struct_sockaddr_storage_ss_len=no
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16241 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16242 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16244 cat >>confdefs.h <<_ACEOF
16245 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16250 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16251 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16252 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16253 $as_echo_n "(cached) " >&6
16255 cat >conftest.$ac_ext <<_ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16261 #include <sys/types.h>
16262 #ifdef HAVE_SYS_SOCKET_H
16263 #include <sys/socket.h>
16270 static struct sockaddr_storage ac_aggr;
16271 if (ac_aggr.__ss_len)
16277 rm -f conftest.$ac_objext
16278 if { (ac_try="$ac_compile"
16279 case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16284 $as_echo "$ac_try_echo") >&5
16285 (eval "$ac_compile") 2>conftest.er1
16287 grep -v '^ *+' conftest.er1 >conftest.err
16289 cat conftest.err >&5
16290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } && {
16292 test -z "$ac_c_werror_flag" ||
16293 test ! -s conftest.err
16294 } && test -s conftest.$ac_objext; then
16295 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16297 $as_echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16300 cat >conftest.$ac_ext <<_ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16306 #include <sys/types.h>
16307 #ifdef HAVE_SYS_SOCKET_H
16308 #include <sys/socket.h>
16315 static struct sockaddr_storage ac_aggr;
16316 if (sizeof ac_aggr.__ss_len)
16322 rm -f conftest.$ac_objext
16323 if { (ac_try="$ac_compile"
16324 case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16329 $as_echo "$ac_try_echo") >&5
16330 (eval "$ac_compile") 2>conftest.er1
16332 grep -v '^ *+' conftest.er1 >conftest.err
16334 cat conftest.err >&5
16335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } && {
16337 test -z "$ac_c_werror_flag" ||
16338 test ! -s conftest.err
16339 } && test -s conftest.$ac_objext; then
16340 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16342 $as_echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16345 ac_cv_member_struct_sockaddr_storage___ss_len=no
16348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16354 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16355 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16363 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16364 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16365 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16366 $as_echo_n "(cached) " >&6
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 #include <sys/types.h>
16375 #ifdef HAVE_SYS_SOCKET_H
16376 #include <sys/socket.h>
16383 static struct sockaddr ac_aggr;
16384 if (ac_aggr.sa_len)
16390 rm -f conftest.$ac_objext
16391 if { (ac_try="$ac_compile"
16392 case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16397 $as_echo "$ac_try_echo") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } && {
16405 test -z "$ac_c_werror_flag" ||
16406 test ! -s conftest.err
16407 } && test -s conftest.$ac_objext; then
16408 ac_cv_member_struct_sockaddr_sa_len=yes
16410 $as_echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16413 cat >conftest.$ac_ext <<_ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16419 #include <sys/types.h>
16420 #ifdef HAVE_SYS_SOCKET_H
16421 #include <sys/socket.h>
16428 static struct sockaddr ac_aggr;
16429 if (sizeof ac_aggr.sa_len)
16435 rm -f conftest.$ac_objext
16436 if { (ac_try="$ac_compile"
16437 case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16442 $as_echo "$ac_try_echo") >&5
16443 (eval "$ac_compile") 2>conftest.er1
16445 grep -v '^ *+' conftest.er1 >conftest.err
16447 cat conftest.err >&5
16448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } && {
16450 test -z "$ac_c_werror_flag" ||
16451 test ! -s conftest.err
16452 } && test -s conftest.$ac_objext; then
16453 ac_cv_member_struct_sockaddr_sa_len=yes
16455 $as_echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 ac_cv_member_struct_sockaddr_sa_len=no
16461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16467 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16468 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16470 cat >>confdefs.h <<_ACEOF
16471 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16477 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16478 $as_echo_n "checking for struct addrinfo... " >&6; }
16479 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16480 $as_echo_n "(cached) " >&6
16482 ac_cv_type_struct_addrinfo=no
16483 cat >conftest.$ac_ext <<_ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 #include <sys/types.h>
16490 #include <sys/socket.h>
16497 if (sizeof (struct addrinfo))
16503 rm -f conftest.$ac_objext
16504 if { (ac_try="$ac_compile"
16505 case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16510 $as_echo "$ac_try_echo") >&5
16511 (eval "$ac_compile") 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } && {
16518 test -z "$ac_c_werror_flag" ||
16519 test ! -s conftest.err
16520 } && test -s conftest.$ac_objext; then
16521 cat >conftest.$ac_ext <<_ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <sys/types.h>
16528 #include <sys/socket.h>
16535 if (sizeof ((struct addrinfo)))
16541 rm -f conftest.$ac_objext
16542 if { (ac_try="$ac_compile"
16543 case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16548 $as_echo "$ac_try_echo") >&5
16549 (eval "$ac_compile") 2>conftest.er1
16551 grep -v '^ *+' conftest.er1 >conftest.err
16553 cat conftest.err >&5
16554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } && {
16556 test -z "$ac_c_werror_flag" ||
16557 test ! -s conftest.err
16558 } && test -s conftest.$ac_objext; then
16561 $as_echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16564 ac_cv_type_struct_addrinfo=yes
16567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16569 $as_echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16577 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16578 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16579 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16581 cat >>confdefs.h <<_ACEOF
16582 #define HAVE_STRUCT_ADDRINFO 1
16589 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16590 $as_echo_n "checking for intptr_t... " >&6; }
16591 if test "${ac_cv_type_intptr_t+set}" = set; then
16592 $as_echo_n "(cached) " >&6
16594 ac_cv_type_intptr_t=no
16595 cat >conftest.$ac_ext <<_ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 $ac_includes_default
16605 if (sizeof (intptr_t))
16611 rm -f conftest.$ac_objext
16612 if { (ac_try="$ac_compile"
16613 case "(($ac_try" in
16614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615 *) ac_try_echo=$ac_try;;
16617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16618 $as_echo "$ac_try_echo") >&5
16619 (eval "$ac_compile") 2>conftest.er1
16621 grep -v '^ *+' conftest.er1 >conftest.err
16623 cat conftest.err >&5
16624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } && {
16626 test -z "$ac_c_werror_flag" ||
16627 test ! -s conftest.err
16628 } && test -s conftest.$ac_objext; then
16629 cat >conftest.$ac_ext <<_ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 $ac_includes_default
16639 if (sizeof ((intptr_t)))
16645 rm -f conftest.$ac_objext
16646 if { (ac_try="$ac_compile"
16647 case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16652 $as_echo "$ac_try_echo") >&5
16653 (eval "$ac_compile") 2>conftest.er1
16655 grep -v '^ *+' conftest.er1 >conftest.err
16657 cat conftest.err >&5
16658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } && {
16660 test -z "$ac_c_werror_flag" ||
16661 test ! -s conftest.err
16662 } && test -s conftest.$ac_objext; then
16665 $as_echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 ac_cv_type_intptr_t=yes
16671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16673 $as_echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16682 $as_echo "$ac_cv_type_intptr_t" >&6; }
16683 if test "x$ac_cv_type_intptr_t" = x""yes; then
16685 cat >>confdefs.h <<\_ACEOF
16686 #define HAVE_INTPTR_T 1
16690 for ac_type in 'int' 'long int' 'long long int'; do
16691 cat >conftest.$ac_ext <<_ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 $ac_includes_default
16701 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16708 rm -f conftest.$ac_objext
16709 if { (ac_try="$ac_compile"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16715 $as_echo "$ac_try_echo") >&5
16716 (eval "$ac_compile") 2>conftest.er1
16718 grep -v '^ *+' conftest.er1 >conftest.err
16720 cat conftest.err >&5
16721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } && {
16723 test -z "$ac_c_werror_flag" ||
16724 test ! -s conftest.err
16725 } && test -s conftest.$ac_objext; then
16727 cat >>confdefs.h <<_ACEOF
16728 #define intptr_t $ac_type
16733 $as_echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740 test -z "$ac_type" && break
16746 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16747 $as_echo_n "checking for uintptr_t... " >&6; }
16748 if test "${ac_cv_type_uintptr_t+set}" = set; then
16749 $as_echo_n "(cached) " >&6
16751 ac_cv_type_uintptr_t=no
16752 cat >conftest.$ac_ext <<_ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 $ac_includes_default
16762 if (sizeof (uintptr_t))
16768 rm -f conftest.$ac_objext
16769 if { (ac_try="$ac_compile"
16770 case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16775 $as_echo "$ac_try_echo") >&5
16776 (eval "$ac_compile") 2>conftest.er1
16778 grep -v '^ *+' conftest.er1 >conftest.err
16780 cat conftest.err >&5
16781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } && {
16783 test -z "$ac_c_werror_flag" ||
16784 test ! -s conftest.err
16785 } && test -s conftest.$ac_objext; then
16786 cat >conftest.$ac_ext <<_ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16792 $ac_includes_default
16796 if (sizeof ((uintptr_t)))
16802 rm -f conftest.$ac_objext
16803 if { (ac_try="$ac_compile"
16804 case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16809 $as_echo "$ac_try_echo") >&5
16810 (eval "$ac_compile") 2>conftest.er1
16812 grep -v '^ *+' conftest.er1 >conftest.err
16814 cat conftest.err >&5
16815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } && {
16817 test -z "$ac_c_werror_flag" ||
16818 test ! -s conftest.err
16819 } && test -s conftest.$ac_objext; then
16822 $as_echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 ac_cv_type_uintptr_t=yes
16828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16830 $as_echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16839 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16840 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16842 cat >>confdefs.h <<\_ACEOF
16843 #define HAVE_UINTPTR_T 1
16847 for ac_type in 'unsigned int' 'unsigned long int' \
16848 'unsigned long long int'; do
16849 cat >conftest.$ac_ext <<_ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 $ac_includes_default
16859 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16866 rm -f conftest.$ac_objext
16867 if { (ac_try="$ac_compile"
16868 case "(($ac_try" in
16869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16873 $as_echo "$ac_try_echo") >&5
16874 (eval "$ac_compile") 2>conftest.er1
16876 grep -v '^ *+' conftest.er1 >conftest.err
16878 cat conftest.err >&5
16879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } && {
16881 test -z "$ac_c_werror_flag" ||
16882 test ! -s conftest.err
16883 } && test -s conftest.$ac_objext; then
16885 cat >>confdefs.h <<_ACEOF
16886 #define uintptr_t $ac_type
16891 $as_echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16898 test -z "$ac_type" && break
16904 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16905 $as_echo_n "checking for long long int... " >&6; }
16906 if test "${ac_cv_type_long_long_int+set}" = set; then
16907 $as_echo_n "(cached) " >&6
16909 cat >conftest.$ac_ext <<_ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 /* For now, do not test the preprocessor; as of 2007 there are too many
16917 implementations with broken preprocessors. Perhaps this can
16918 be revisited in 2012. In the meantime, code should not expect
16919 #if to work with literals wider than 32 bits. */
16920 /* Test literals. */
16921 long long int ll = 9223372036854775807ll;
16922 long long int nll = -9223372036854775807LL;
16923 unsigned long long int ull = 18446744073709551615ULL;
16924 /* Test constant expressions. */
16925 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16927 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16933 /* Test availability of runtime routines for shift and division. */
16934 long long int llmax = 9223372036854775807ll;
16935 unsigned long long int ullmax = 18446744073709551615ull;
16936 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16937 | (llmax / ll) | (llmax % ll)
16938 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16939 | (ullmax / ull) | (ullmax % ull));
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (ac_try="$ac_link"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16952 $as_echo "$ac_try_echo") >&5
16953 (eval "$ac_link") 2>conftest.er1
16955 grep -v '^ *+' conftest.er1 >conftest.err
16957 cat conftest.err >&5
16958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } && {
16960 test -z "$ac_c_werror_flag" ||
16961 test ! -s conftest.err
16962 } && test -s conftest$ac_exeext && {
16963 test "$cross_compiling" = yes ||
16964 $as_test_x conftest$ac_exeext
16966 if test "$cross_compiling" = yes; then
16967 ac_cv_type_long_long_int=yes
16969 cat >conftest.$ac_ext <<_ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16975 #include <limits.h>
16978 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16979 # define LLONG_MAX (HALF - 1 + HALF)
16984 long long int n = 1;
16988 long long int m = n << i;
16991 if (LLONG_MAX / 2 < m)
16999 rm -f conftest$ac_exeext
17000 if { (ac_try="$ac_link"
17001 case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17006 $as_echo "$ac_try_echo") >&5
17007 (eval "$ac_link") 2>&5
17009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17011 { (case "(($ac_try" in
17012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013 *) ac_try_echo=$ac_try;;
17015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17016 $as_echo "$ac_try_echo") >&5
17017 (eval "$ac_try") 2>&5
17019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 ac_cv_type_long_long_int=yes
17023 $as_echo "$as_me: program exited with status $ac_status" >&5
17024 $as_echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17027 ( exit $ac_status )
17028 ac_cv_type_long_long_int=no
17030 rm -rf conftest.dSYM
17031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17036 $as_echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_cv_type_long_long_int=no
17042 rm -rf conftest.dSYM
17043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17044 conftest$ac_exeext conftest.$ac_ext
17046 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17047 $as_echo "$ac_cv_type_long_long_int" >&6; }
17048 if test $ac_cv_type_long_long_int = yes; then
17050 cat >>confdefs.h <<\_ACEOF
17051 #define HAVE_LONG_LONG_INT 1
17057 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17058 $as_echo_n "checking for locale_t... " >&6; }
17059 if test "${pgac_cv_type_locale_t+set}" = set; then
17060 $as_echo_n "(cached) " >&6
17062 cat >conftest.$ac_ext <<_ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 #include <locale.h>
17078 rm -f conftest.$ac_objext
17079 if { (ac_try="$ac_compile"
17080 case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17085 $as_echo "$ac_try_echo") >&5
17086 (eval "$ac_compile") 2>conftest.er1
17088 grep -v '^ *+' conftest.er1 >conftest.err
17090 cat conftest.err >&5
17091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } && {
17093 test -z "$ac_c_werror_flag" ||
17094 test ! -s conftest.err
17095 } && test -s conftest.$ac_objext; then
17096 pgac_cv_type_locale_t=yes
17098 $as_echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17101 cat >conftest.$ac_ext <<_ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107 #include <xlocale.h>
17117 rm -f conftest.$ac_objext
17118 if { (ac_try="$ac_compile"
17119 case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17124 $as_echo "$ac_try_echo") >&5
17125 (eval "$ac_compile") 2>conftest.er1
17127 grep -v '^ *+' conftest.er1 >conftest.err
17129 cat conftest.err >&5
17130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } && {
17132 test -z "$ac_c_werror_flag" ||
17133 test ! -s conftest.err
17134 } && test -s conftest.$ac_objext; then
17135 pgac_cv_type_locale_t='yes (in xlocale.h)'
17137 $as_echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17140 pgac_cv_type_locale_t=no
17143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17149 $as_echo "$pgac_cv_type_locale_t" >&6; }
17150 if test "$pgac_cv_type_locale_t" != no; then
17152 cat >>confdefs.h <<\_ACEOF
17153 #define HAVE_LOCALE_T 1
17157 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17159 cat >>confdefs.h <<\_ACEOF
17160 #define LOCALE_T_IN_XLOCALE 1
17165 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17166 $as_echo_n "checking for struct cmsgcred... " >&6; }
17167 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17168 $as_echo_n "(cached) " >&6
17170 ac_cv_type_struct_cmsgcred=no
17171 cat >conftest.$ac_ext <<_ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177 #include <sys/socket.h>
17178 #ifdef HAVE_SYS_UCRED_H
17179 #include <sys/ucred.h>
17185 if (sizeof (struct cmsgcred))
17191 rm -f conftest.$ac_objext
17192 if { (ac_try="$ac_compile"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17198 $as_echo "$ac_try_echo") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17201 grep -v '^ *+' conftest.er1 >conftest.err
17203 cat conftest.err >&5
17204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest.$ac_objext; then
17209 cat >conftest.$ac_ext <<_ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17215 #include <sys/socket.h>
17216 #ifdef HAVE_SYS_UCRED_H
17217 #include <sys/ucred.h>
17223 if (sizeof ((struct cmsgcred)))
17229 rm -f conftest.$ac_objext
17230 if { (ac_try="$ac_compile"
17231 case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17236 $as_echo "$ac_try_echo") >&5
17237 (eval "$ac_compile") 2>conftest.er1
17239 grep -v '^ *+' conftest.er1 >conftest.err
17241 cat conftest.err >&5
17242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest.$ac_objext; then
17249 $as_echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17252 ac_cv_type_struct_cmsgcred=yes
17255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17257 $as_echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17265 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17266 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17267 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17269 cat >>confdefs.h <<_ACEOF
17270 #define HAVE_STRUCT_CMSGCRED 1
17277 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17278 $as_echo_n "checking for struct option... " >&6; }
17279 if test "${ac_cv_type_struct_option+set}" = set; then
17280 $as_echo_n "(cached) " >&6
17282 ac_cv_type_struct_option=no
17283 cat >conftest.$ac_ext <<_ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 #ifdef HAVE_GETOPT_H
17290 #include <getopt.h>
17296 if (sizeof (struct option))
17302 rm -f conftest.$ac_objext
17303 if { (ac_try="$ac_compile"
17304 case "(($ac_try" in
17305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306 *) ac_try_echo=$ac_try;;
17308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17309 $as_echo "$ac_try_echo") >&5
17310 (eval "$ac_compile") 2>conftest.er1
17312 grep -v '^ *+' conftest.er1 >conftest.err
17314 cat conftest.err >&5
17315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } && {
17317 test -z "$ac_c_werror_flag" ||
17318 test ! -s conftest.err
17319 } && test -s conftest.$ac_objext; then
17320 cat >conftest.$ac_ext <<_ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17326 #ifdef HAVE_GETOPT_H
17327 #include <getopt.h>
17333 if (sizeof ((struct option)))
17339 rm -f conftest.$ac_objext
17340 if { (ac_try="$ac_compile"
17341 case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17346 $as_echo "$ac_try_echo") >&5
17347 (eval "$ac_compile") 2>conftest.er1
17349 grep -v '^ *+' conftest.er1 >conftest.err
17351 cat conftest.err >&5
17352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } && {
17354 test -z "$ac_c_werror_flag" ||
17355 test ! -s conftest.err
17356 } && test -s conftest.$ac_objext; then
17359 $as_echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17362 ac_cv_type_struct_option=yes
17365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17367 $as_echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17375 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17376 $as_echo "$ac_cv_type_struct_option" >&6; }
17377 if test "x$ac_cv_type_struct_option" = x""yes; then
17379 cat >>confdefs.h <<_ACEOF
17380 #define HAVE_STRUCT_OPTION 1
17387 if test "$with_zlib" = yes; then
17388 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17389 # did not). While we could work around the lack of z_streamp, it
17390 # seems unwise to encourage people to use such old zlib versions...
17391 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17392 $as_echo_n "checking for z_streamp... " >&6; }
17393 if test "${ac_cv_type_z_streamp+set}" = set; then
17394 $as_echo_n "(cached) " >&6
17396 ac_cv_type_z_streamp=no
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17408 if (sizeof (z_streamp))
17414 rm -f conftest.$ac_objext
17415 if { (ac_try="$ac_compile"
17416 case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17421 $as_echo "$ac_try_echo") >&5
17422 (eval "$ac_compile") 2>conftest.er1
17424 grep -v '^ *+' conftest.er1 >conftest.err
17426 cat conftest.err >&5
17427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } && {
17429 test -z "$ac_c_werror_flag" ||
17430 test ! -s conftest.err
17431 } && test -s conftest.$ac_objext; then
17432 cat >conftest.$ac_ext <<_ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h. */
17443 if (sizeof ((z_streamp)))
17449 rm -f conftest.$ac_objext
17450 if { (ac_try="$ac_compile"
17451 case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17456 $as_echo "$ac_try_echo") >&5
17457 (eval "$ac_compile") 2>conftest.er1
17459 grep -v '^ *+' conftest.er1 >conftest.err
17461 cat conftest.err >&5
17462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } && {
17464 test -z "$ac_c_werror_flag" ||
17465 test ! -s conftest.err
17466 } && test -s conftest.$ac_objext; then
17469 $as_echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17472 ac_cv_type_z_streamp=yes
17475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17477 $as_echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17485 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17486 $as_echo "$ac_cv_type_z_streamp" >&6; }
17487 if test "x$ac_cv_type_z_streamp" = x""yes; then
17490 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17491 Use --without-zlib to disable zlib support." >&5
17492 $as_echo "$as_me: error: zlib version is too old
17493 Use --without-zlib to disable zlib support." >&2;}
17494 { (exit 1); exit 1; }; }
17499 if test "$with_krb5" = yes; then
17500 # Check for differences between MIT and Heimdal (KTH) releases
17501 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17502 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17503 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17504 $as_echo_n "(cached) " >&6
17506 cat >conftest.$ac_ext <<_ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17517 static krb5_ticket ac_aggr;
17518 if (ac_aggr.enc_part2)
17524 rm -f conftest.$ac_objext
17525 if { (ac_try="$ac_compile"
17526 case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17531 $as_echo "$ac_try_echo") >&5
17532 (eval "$ac_compile") 2>conftest.er1
17534 grep -v '^ *+' conftest.er1 >conftest.err
17536 cat conftest.err >&5
17537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } && {
17539 test -z "$ac_c_werror_flag" ||
17540 test ! -s conftest.err
17541 } && test -s conftest.$ac_objext; then
17542 ac_cv_member_krb5_ticket_enc_part2=yes
17544 $as_echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17547 cat >conftest.$ac_ext <<_ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17558 static krb5_ticket ac_aggr;
17559 if (sizeof ac_aggr.enc_part2)
17565 rm -f conftest.$ac_objext
17566 if { (ac_try="$ac_compile"
17567 case "(($ac_try" in
17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17572 $as_echo "$ac_try_echo") >&5
17573 (eval "$ac_compile") 2>conftest.er1
17575 grep -v '^ *+' conftest.er1 >conftest.err
17577 cat conftest.err >&5
17578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } && {
17580 test -z "$ac_c_werror_flag" ||
17581 test ! -s conftest.err
17582 } && test -s conftest.$ac_objext; then
17583 ac_cv_member_krb5_ticket_enc_part2=yes
17585 $as_echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17588 ac_cv_member_krb5_ticket_enc_part2=no
17591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17596 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17597 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17598 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17600 cat >>confdefs.h <<_ACEOF
17601 #define HAVE_KRB5_TICKET_ENC_PART2 1
17606 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17607 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17608 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17609 $as_echo_n "(cached) " >&6
17611 cat >conftest.$ac_ext <<_ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h. */
17622 static krb5_ticket ac_aggr;
17623 if (ac_aggr.client)
17629 rm -f conftest.$ac_objext
17630 if { (ac_try="$ac_compile"
17631 case "(($ac_try" in
17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17636 $as_echo "$ac_try_echo") >&5
17637 (eval "$ac_compile") 2>conftest.er1
17639 grep -v '^ *+' conftest.er1 >conftest.err
17641 cat conftest.err >&5
17642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } && {
17644 test -z "$ac_c_werror_flag" ||
17645 test ! -s conftest.err
17646 } && test -s conftest.$ac_objext; then
17647 ac_cv_member_krb5_ticket_client=yes
17649 $as_echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17663 static krb5_ticket ac_aggr;
17664 if (sizeof ac_aggr.client)
17670 rm -f conftest.$ac_objext
17671 if { (ac_try="$ac_compile"
17672 case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17677 $as_echo "$ac_try_echo") >&5
17678 (eval "$ac_compile") 2>conftest.er1
17680 grep -v '^ *+' conftest.er1 >conftest.err
17682 cat conftest.err >&5
17683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } && {
17685 test -z "$ac_c_werror_flag" ||
17686 test ! -s conftest.err
17687 } && test -s conftest.$ac_objext; then
17688 ac_cv_member_krb5_ticket_client=yes
17690 $as_echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17693 ac_cv_member_krb5_ticket_client=no
17696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17702 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17703 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17705 cat >>confdefs.h <<_ACEOF
17706 #define HAVE_KRB5_TICKET_CLIENT 1
17711 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17712 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17713 { (exit 1); exit 1; }; }
17718 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17719 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17720 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17721 $as_echo_n "(cached) " >&6
17723 cat >conftest.$ac_ext <<_ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17734 static krb5_error ac_aggr;
17735 if (ac_aggr.text.data)
17741 rm -f conftest.$ac_objext
17742 if { (ac_try="$ac_compile"
17743 case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17748 $as_echo "$ac_try_echo") >&5
17749 (eval "$ac_compile") 2>conftest.er1
17751 grep -v '^ *+' conftest.er1 >conftest.err
17753 cat conftest.err >&5
17754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } && {
17756 test -z "$ac_c_werror_flag" ||
17757 test ! -s conftest.err
17758 } && test -s conftest.$ac_objext; then
17759 ac_cv_member_krb5_error_text_data=yes
17761 $as_echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 cat >conftest.$ac_ext <<_ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17775 static krb5_error ac_aggr;
17776 if (sizeof ac_aggr.text.data)
17782 rm -f conftest.$ac_objext
17783 if { (ac_try="$ac_compile"
17784 case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17789 $as_echo "$ac_try_echo") >&5
17790 (eval "$ac_compile") 2>conftest.er1
17792 grep -v '^ *+' conftest.er1 >conftest.err
17794 cat conftest.err >&5
17795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); } && {
17797 test -z "$ac_c_werror_flag" ||
17798 test ! -s conftest.err
17799 } && test -s conftest.$ac_objext; then
17800 ac_cv_member_krb5_error_text_data=yes
17802 $as_echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 ac_cv_member_krb5_error_text_data=no
17808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17813 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17814 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17815 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17817 cat >>confdefs.h <<_ACEOF
17818 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17823 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17824 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17825 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17826 $as_echo_n "(cached) " >&6
17828 cat >conftest.$ac_ext <<_ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17839 static krb5_error ac_aggr;
17840 if (ac_aggr.e_data)
17846 rm -f conftest.$ac_objext
17847 if { (ac_try="$ac_compile"
17848 case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17853 $as_echo "$ac_try_echo") >&5
17854 (eval "$ac_compile") 2>conftest.er1
17856 grep -v '^ *+' conftest.er1 >conftest.err
17858 cat conftest.err >&5
17859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } && {
17861 test -z "$ac_c_werror_flag" ||
17862 test ! -s conftest.err
17863 } && test -s conftest.$ac_objext; then
17864 ac_cv_member_krb5_error_e_data=yes
17866 $as_echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17869 cat >conftest.$ac_ext <<_ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17880 static krb5_error ac_aggr;
17881 if (sizeof ac_aggr.e_data)
17887 rm -f conftest.$ac_objext
17888 if { (ac_try="$ac_compile"
17889 case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17894 $as_echo "$ac_try_echo") >&5
17895 (eval "$ac_compile") 2>conftest.er1
17897 grep -v '^ *+' conftest.er1 >conftest.err
17899 cat conftest.err >&5
17900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } && {
17902 test -z "$ac_c_werror_flag" ||
17903 test ! -s conftest.err
17904 } && test -s conftest.$ac_objext; then
17905 ac_cv_member_krb5_error_e_data=yes
17907 $as_echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17910 ac_cv_member_krb5_error_e_data=no
17913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17919 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17920 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17922 cat >>confdefs.h <<_ACEOF
17923 #define HAVE_KRB5_ERROR_E_DATA 1
17928 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17929 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17930 { (exit 1); exit 1; }; }
17936 # Win32 requires headers to be loaded for __stdcall, so can't use
17937 # AC_CHECK_FUNCS here.
17938 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17939 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17940 cat >conftest.$ac_ext <<_ACEOF
17943 cat confdefs.h >>conftest.$ac_ext
17944 cat >>conftest.$ac_ext <<_ACEOF
17945 /* end confdefs.h. */
17950 krb5_free_unparsed_name(NULL,NULL);
17955 rm -f conftest.$ac_objext conftest$ac_exeext
17956 if { (ac_try="$ac_link"
17957 case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17962 $as_echo "$ac_try_echo") >&5
17963 (eval "$ac_link") 2>conftest.er1
17965 grep -v '^ *+' conftest.er1 >conftest.err
17967 cat conftest.err >&5
17968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } && {
17970 test -z "$ac_c_werror_flag" ||
17971 test ! -s conftest.err
17972 } && test -s conftest$ac_exeext && {
17973 test "$cross_compiling" = yes ||
17974 $as_test_x conftest$ac_exeext
17977 cat >>confdefs.h <<\_ACEOF
17978 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17981 { $as_echo "$as_me:$LINENO: result: yes" >&5
17982 $as_echo "yes" >&6; }
17984 $as_echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17987 { $as_echo "$as_me:$LINENO: result: no" >&5
17988 $as_echo "no" >&6; }
17991 rm -rf conftest.dSYM
17992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17993 conftest$ac_exeext conftest.$ac_ext
17996 # Check largefile support. You might think this is a system service not a
17997 # compiler characteristic, but you'd be wrong. We must check this before
17998 # probing existence of related functions such as fseeko, since the largefile
17999 # defines can affect what is generated for that.
18000 # Check whether --enable-largefile was given.
18001 if test "${enable_largefile+set}" = set; then
18002 enableval=$enable_largefile;
18005 if test "$enable_largefile" != no; then
18007 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18008 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18009 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18010 $as_echo_n "(cached) " >&6
18012 ac_cv_sys_largefile_CC=no
18013 if test "$GCC" != yes; then
18016 # IRIX 6.2 and later do not support large files by default,
18017 # so use the C compiler's -n32 option if that helps.
18018 cat >conftest.$ac_ext <<_ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h. */
18024 #include <sys/types.h>
18025 /* Check that off_t can represent 2**63 - 1 correctly.
18026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18027 since some C++ compilers masquerading as C compilers
18028 incorrectly reject 9223372036854775807. */
18029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18031 && LARGE_OFF_T % 2147483647 == 1)
18041 rm -f conftest.$ac_objext
18042 if { (ac_try="$ac_compile"
18043 case "(($ac_try" in
18044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045 *) ac_try_echo=$ac_try;;
18047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18048 $as_echo "$ac_try_echo") >&5
18049 (eval "$ac_compile") 2>conftest.er1
18051 grep -v '^ *+' conftest.er1 >conftest.err
18053 cat conftest.err >&5
18054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } && {
18056 test -z "$ac_c_werror_flag" ||
18057 test ! -s conftest.err
18058 } && test -s conftest.$ac_objext; then
18061 $as_echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18067 rm -f core conftest.err conftest.$ac_objext
18069 rm -f conftest.$ac_objext
18070 if { (ac_try="$ac_compile"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18076 $as_echo "$ac_try_echo") >&5
18077 (eval "$ac_compile") 2>conftest.er1
18079 grep -v '^ *+' conftest.er1 >conftest.err
18081 cat conftest.err >&5
18082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } && {
18084 test -z "$ac_c_werror_flag" ||
18085 test ! -s conftest.err
18086 } && test -s conftest.$ac_objext; then
18087 ac_cv_sys_largefile_CC=' -n32'; break
18089 $as_echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.$ac_ext >&5
18095 rm -f core conftest.err conftest.$ac_objext
18099 rm -f conftest.$ac_ext
18102 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18103 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18104 if test "$ac_cv_sys_largefile_CC" != no; then
18105 CC=$CC$ac_cv_sys_largefile_CC
18108 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18109 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18110 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18111 $as_echo_n "(cached) " >&6
18114 cat >conftest.$ac_ext <<_ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h. */
18120 #include <sys/types.h>
18121 /* Check that off_t can represent 2**63 - 1 correctly.
18122 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18123 since some C++ compilers masquerading as C compilers
18124 incorrectly reject 9223372036854775807. */
18125 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18127 && LARGE_OFF_T % 2147483647 == 1)
18137 rm -f conftest.$ac_objext
18138 if { (ac_try="$ac_compile"
18139 case "(($ac_try" in
18140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18141 *) ac_try_echo=$ac_try;;
18143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18144 $as_echo "$ac_try_echo") >&5
18145 (eval "$ac_compile") 2>conftest.er1
18147 grep -v '^ *+' conftest.er1 >conftest.err
18149 cat conftest.err >&5
18150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest.$ac_objext; then
18155 ac_cv_sys_file_offset_bits=no; break
18157 $as_echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18164 cat >conftest.$ac_ext <<_ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 #define _FILE_OFFSET_BITS 64
18171 #include <sys/types.h>
18172 /* Check that off_t can represent 2**63 - 1 correctly.
18173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18174 since some C++ compilers masquerading as C compilers
18175 incorrectly reject 9223372036854775807. */
18176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18178 && LARGE_OFF_T % 2147483647 == 1)
18188 rm -f conftest.$ac_objext
18189 if { (ac_try="$ac_compile"
18190 case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18195 $as_echo "$ac_try_echo") >&5
18196 (eval "$ac_compile") 2>conftest.er1
18198 grep -v '^ *+' conftest.er1 >conftest.err
18200 cat conftest.err >&5
18201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } && {
18203 test -z "$ac_c_werror_flag" ||
18204 test ! -s conftest.err
18205 } && test -s conftest.$ac_objext; then
18206 ac_cv_sys_file_offset_bits=64; break
18208 $as_echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18215 ac_cv_sys_file_offset_bits=unknown
18219 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18220 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18221 case $ac_cv_sys_file_offset_bits in #(
18224 cat >>confdefs.h <<_ACEOF
18225 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18230 if test $ac_cv_sys_file_offset_bits = unknown; then
18231 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18232 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18233 if test "${ac_cv_sys_large_files+set}" = set; then
18234 $as_echo_n "(cached) " >&6
18237 cat >conftest.$ac_ext <<_ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18243 #include <sys/types.h>
18244 /* Check that off_t can represent 2**63 - 1 correctly.
18245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18246 since some C++ compilers masquerading as C compilers
18247 incorrectly reject 9223372036854775807. */
18248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18250 && LARGE_OFF_T % 2147483647 == 1)
18260 rm -f conftest.$ac_objext
18261 if { (ac_try="$ac_compile"
18262 case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18267 $as_echo "$ac_try_echo") >&5
18268 (eval "$ac_compile") 2>conftest.er1
18270 grep -v '^ *+' conftest.er1 >conftest.err
18272 cat conftest.err >&5
18273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } && {
18275 test -z "$ac_c_werror_flag" ||
18276 test ! -s conftest.err
18277 } && test -s conftest.$ac_objext; then
18278 ac_cv_sys_large_files=no; break
18280 $as_echo "$as_me: failed program was:" >&5
18281 sed 's/^/| /' conftest.$ac_ext >&5
18286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18287 cat >conftest.$ac_ext <<_ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18293 #define _LARGE_FILES 1
18294 #include <sys/types.h>
18295 /* Check that off_t can represent 2**63 - 1 correctly.
18296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18297 since some C++ compilers masquerading as C compilers
18298 incorrectly reject 9223372036854775807. */
18299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18301 && LARGE_OFF_T % 2147483647 == 1)
18311 rm -f conftest.$ac_objext
18312 if { (ac_try="$ac_compile"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18318 $as_echo "$ac_try_echo") >&5
18319 (eval "$ac_compile") 2>conftest.er1
18321 grep -v '^ *+' conftest.er1 >conftest.err
18323 cat conftest.err >&5
18324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } && {
18326 test -z "$ac_c_werror_flag" ||
18327 test ! -s conftest.err
18328 } && test -s conftest.$ac_objext; then
18329 ac_cv_sys_large_files=1; break
18331 $as_echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18338 ac_cv_sys_large_files=unknown
18342 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18343 $as_echo "$ac_cv_sys_large_files" >&6; }
18344 case $ac_cv_sys_large_files in #(
18347 cat >>confdefs.h <<_ACEOF
18348 #define _LARGE_FILES $ac_cv_sys_large_files
18357 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18358 # The cast to long int works around a bug in the HP C Compiler
18359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18361 # This bug is HP SR number 8606223364.
18362 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18363 $as_echo_n "checking size of off_t... " >&6; }
18364 if test "${ac_cv_sizeof_off_t+set}" = set; then
18365 $as_echo_n "(cached) " >&6
18367 if test "$cross_compiling" = yes; then
18368 # Depending upon the size, compute the lo and hi bounds.
18369 cat >conftest.$ac_ext <<_ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18375 $ac_includes_default
18379 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18386 rm -f conftest.$ac_objext
18387 if { (ac_try="$ac_compile"
18388 case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18393 $as_echo "$ac_try_echo") >&5
18394 (eval "$ac_compile") 2>conftest.er1
18396 grep -v '^ *+' conftest.er1 >conftest.err
18398 cat conftest.err >&5
18399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } && {
18401 test -z "$ac_c_werror_flag" ||
18402 test ! -s conftest.err
18403 } && test -s conftest.$ac_objext; then
18406 cat >conftest.$ac_ext <<_ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18412 $ac_includes_default
18416 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18423 rm -f conftest.$ac_objext
18424 if { (ac_try="$ac_compile"
18425 case "(($ac_try" in
18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18430 $as_echo "$ac_try_echo") >&5
18431 (eval "$ac_compile") 2>conftest.er1
18433 grep -v '^ *+' conftest.er1 >conftest.err
18435 cat conftest.err >&5
18436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } && {
18438 test -z "$ac_c_werror_flag" ||
18439 test ! -s conftest.err
18440 } && test -s conftest.$ac_objext; then
18441 ac_hi=$ac_mid; break
18443 $as_echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18446 ac_lo=`expr $ac_mid + 1`
18447 if test $ac_lo -le $ac_mid; then
18451 ac_mid=`expr 2 '*' $ac_mid + 1`
18454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18457 $as_echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18460 cat >conftest.$ac_ext <<_ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18466 $ac_includes_default
18470 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18484 $as_echo "$ac_try_echo") >&5
18485 (eval "$ac_compile") 2>conftest.er1
18487 grep -v '^ *+' conftest.er1 >conftest.err
18489 cat conftest.err >&5
18490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } && {
18492 test -z "$ac_c_werror_flag" ||
18493 test ! -s conftest.err
18494 } && test -s conftest.$ac_objext; then
18497 cat >conftest.$ac_ext <<_ACEOF
18500 cat confdefs.h >>conftest.$ac_ext
18501 cat >>conftest.$ac_ext <<_ACEOF
18502 /* end confdefs.h. */
18503 $ac_includes_default
18507 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18514 rm -f conftest.$ac_objext
18515 if { (ac_try="$ac_compile"
18516 case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18521 $as_echo "$ac_try_echo") >&5
18522 (eval "$ac_compile") 2>conftest.er1
18524 grep -v '^ *+' conftest.er1 >conftest.err
18526 cat conftest.err >&5
18527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } && {
18529 test -z "$ac_c_werror_flag" ||
18530 test ! -s conftest.err
18531 } && test -s conftest.$ac_objext; then
18532 ac_lo=$ac_mid; break
18534 $as_echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18537 ac_hi=`expr '(' $ac_mid ')' - 1`
18538 if test $ac_mid -le $ac_hi; then
18542 ac_mid=`expr 2 '*' $ac_mid`
18545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18548 $as_echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18558 # Binary search between lo and hi bounds.
18559 while test "x$ac_lo" != "x$ac_hi"; do
18560 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18561 cat >conftest.$ac_ext <<_ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 $ac_includes_default
18571 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18578 rm -f conftest.$ac_objext
18579 if { (ac_try="$ac_compile"
18580 case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18585 $as_echo "$ac_try_echo") >&5
18586 (eval "$ac_compile") 2>conftest.er1
18588 grep -v '^ *+' conftest.er1 >conftest.err
18590 cat conftest.err >&5
18591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } && {
18593 test -z "$ac_c_werror_flag" ||
18594 test ! -s conftest.err
18595 } && test -s conftest.$ac_objext; then
18598 $as_echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.$ac_ext >&5
18601 ac_lo=`expr '(' $ac_mid ')' + 1`
18604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18607 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18608 '') if test "$ac_cv_type_off_t" = yes; then
18609 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18611 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18612 See \`config.log' for more details." >&5
18613 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18614 See \`config.log' for more details." >&2;}
18615 { (exit 77); exit 77; }; }; }
18617 ac_cv_sizeof_off_t=0
18621 cat >conftest.$ac_ext <<_ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 $ac_includes_default
18628 static long int longval () { return (long int) (sizeof (off_t)); }
18629 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18631 #include <stdlib.h>
18636 FILE *f = fopen ("conftest.val", "w");
18639 if (((long int) (sizeof (off_t))) < 0)
18641 long int i = longval ();
18642 if (i != ((long int) (sizeof (off_t))))
18644 fprintf (f, "%ld", i);
18648 unsigned long int i = ulongval ();
18649 if (i != ((long int) (sizeof (off_t))))
18651 fprintf (f, "%lu", i);
18653 /* Do not output a trailing newline, as this causes \r\n confusion
18654 on some platforms. */
18655 return ferror (f) || fclose (f) != 0;
18661 rm -f conftest$ac_exeext
18662 if { (ac_try="$ac_link"
18663 case "(($ac_try" in
18664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18665 *) ac_try_echo=$ac_try;;
18667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18668 $as_echo "$ac_try_echo") >&5
18669 (eval "$ac_link") 2>&5
18671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18673 { (case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18678 $as_echo "$ac_try_echo") >&5
18679 (eval "$ac_try") 2>&5
18681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; }; then
18683 ac_cv_sizeof_off_t=`cat conftest.val`
18685 $as_echo "$as_me: program exited with status $ac_status" >&5
18686 $as_echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18689 ( exit $ac_status )
18690 if test "$ac_cv_type_off_t" = yes; then
18691 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18693 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18694 See \`config.log' for more details." >&5
18695 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18696 See \`config.log' for more details." >&2;}
18697 { (exit 77); exit 77; }; }; }
18699 ac_cv_sizeof_off_t=0
18702 rm -rf conftest.dSYM
18703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18707 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18708 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18712 cat >>confdefs.h <<_ACEOF
18713 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18718 # If we don't have largefile support, can't handle segsize >= 2GB.
18719 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18720 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18721 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18722 { (exit 1); exit 1; }; }
18727 ## Functions, global variables
18730 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18731 $as_echo_n "checking for int timezone... " >&6; }
18732 if test "${pgac_cv_var_int_timezone+set}" = set; then
18733 $as_echo_n "(cached) " >&6
18735 cat >conftest.$ac_ext <<_ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18747 res = timezone / 60;
18749 res = _timezone / 60;
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (ac_try="$ac_link"
18757 case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18762 $as_echo "$ac_try_echo") >&5
18763 (eval "$ac_link") 2>conftest.er1
18765 grep -v '^ *+' conftest.er1 >conftest.err
18767 cat conftest.err >&5
18768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } && {
18770 test -z "$ac_c_werror_flag" ||
18771 test ! -s conftest.err
18772 } && test -s conftest$ac_exeext && {
18773 test "$cross_compiling" = yes ||
18774 $as_test_x conftest$ac_exeext
18776 pgac_cv_var_int_timezone=yes
18778 $as_echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18781 pgac_cv_var_int_timezone=no
18784 rm -rf conftest.dSYM
18785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18786 conftest$ac_exeext conftest.$ac_ext
18788 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18789 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18790 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18792 cat >>confdefs.h <<\_ACEOF
18793 #define HAVE_INT_TIMEZONE /**/
18797 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18798 $as_echo_n "checking types of arguments for accept()... " >&6; }
18799 if test "${ac_cv_func_accept_return+set}" = set; then
18800 $as_echo_n "(cached) " >&6
18802 if test "${ac_cv_func_accept_arg1+set}" = set; then
18803 $as_echo_n "(cached) " >&6
18805 if test "${ac_cv_func_accept_arg2+set}" = set; then
18806 $as_echo_n "(cached) " >&6
18808 if test "${ac_cv_func_accept_arg3+set}" = set; then
18809 $as_echo_n "(cached) " >&6
18811 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
18812 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
18813 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18814 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18815 cat >conftest.$ac_ext <<_ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18821 #ifdef HAVE_SYS_TYPES_H
18822 #include <sys/types.h>
18824 #ifdef HAVE_SYS_SOCKET_H
18825 #include <sys/socket.h>
18827 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18836 rm -f conftest.$ac_objext
18837 if { (ac_try="$ac_compile"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18843 $as_echo "$ac_try_echo") >&5
18844 (eval "$ac_compile") 2>conftest.er1
18846 grep -v '^ *+' conftest.er1 >conftest.err
18848 cat conftest.err >&5
18849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } && {
18851 test -z "$ac_c_werror_flag" ||
18852 test ! -s conftest.err
18853 } && test -s conftest.$ac_objext; then
18854 ac_not_found=no; break 4
18856 $as_echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18867 if test "$ac_not_found" = yes; then
18868 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18869 $as_echo "$as_me: error: could not determine argument types" >&2;}
18870 { (exit 1); exit 1; }; }
18872 if test "$ac_cv_func_accept_arg3" = "void"; then
18873 ac_cv_func_accept_arg3=int
18883 { $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
18884 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18886 cat >>confdefs.h <<_ACEOF
18887 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18891 cat >>confdefs.h <<_ACEOF
18892 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18896 cat >>confdefs.h <<_ACEOF
18897 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18901 cat >>confdefs.h <<_ACEOF
18902 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18906 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18907 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18908 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18909 $as_echo_n "(cached) " >&6
18911 cat >conftest.$ac_ext <<_ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18917 #include <sys/time.h>
18921 struct timeval *tp;
18922 struct timezone *tzp;
18923 gettimeofday(tp,tzp);
18928 rm -f conftest.$ac_objext
18929 if { (ac_try="$ac_compile"
18930 case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18935 $as_echo "$ac_try_echo") >&5
18936 (eval "$ac_compile") 2>conftest.er1
18938 grep -v '^ *+' conftest.er1 >conftest.err
18940 cat conftest.err >&5
18941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } && {
18943 test -z "$ac_c_werror_flag" ||
18944 test ! -s conftest.err
18945 } && test -s conftest.$ac_objext; then
18946 pgac_cv_func_gettimeofday_1arg=no
18948 $as_echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 pgac_cv_func_gettimeofday_1arg=yes
18954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18956 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18957 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18958 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18960 cat >>confdefs.h <<\_ACEOF
18961 #define GETTIMEOFDAY_1ARG /**/
18991 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
18993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18994 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18995 $as_echo_n "checking for $ac_func... " >&6; }
18996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18997 $as_echo_n "(cached) " >&6
18999 cat >conftest.$ac_ext <<_ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19007 #define $ac_func innocuous_$ac_func
19009 /* System header to define __stub macros and hopefully few prototypes,
19010 which can conflict with char $ac_func (); below.
19011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19012 <limits.h> exists even on freestanding compilers. */
19015 # include <limits.h>
19017 # include <assert.h>
19022 /* Override any GCC internal prototype to avoid an error.
19023 Use char because int might match the return type of a GCC
19024 builtin and then its argument prototype would still apply. */
19029 /* The GNU C library defines this for functions which it implements
19030 to always fail with ENOSYS. Some functions are actually named
19031 something starting with __ and the normal name is an alias. */
19032 #if defined __stub_$ac_func || defined __stub___$ac_func
19039 return $ac_func ();
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (ac_try="$ac_link"
19046 case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19051 $as_echo "$ac_try_echo") >&5
19052 (eval "$ac_link") 2>conftest.er1
19054 grep -v '^ *+' conftest.er1 >conftest.err
19056 cat conftest.err >&5
19057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } && {
19059 test -z "$ac_c_werror_flag" ||
19060 test ! -s conftest.err
19061 } && test -s conftest$ac_exeext && {
19062 test "$cross_compiling" = yes ||
19063 $as_test_x conftest$ac_exeext
19065 eval "$as_ac_var=yes"
19067 $as_echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19070 eval "$as_ac_var=no"
19073 rm -rf conftest.dSYM
19074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19075 conftest$ac_exeext conftest.$ac_ext
19077 ac_res=`eval 'as_val=${'$as_ac_var'}
19078 $as_echo "$as_val"'`
19079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19080 $as_echo "$ac_res" >&6; }
19081 as_val=`eval 'as_val=${'$as_ac_var'}
19082 $as_echo "$as_val"'`
19083 if test "x$as_val" = x""yes; then
19084 cat >>confdefs.h <<_ACEOF
19085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19093 for ac_func in fseeko
19095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19096 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19097 $as_echo_n "checking for $ac_func... " >&6; }
19098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19099 $as_echo_n "(cached) " >&6
19101 cat >conftest.$ac_ext <<_ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19109 #define $ac_func innocuous_$ac_func
19111 /* System header to define __stub macros and hopefully few prototypes,
19112 which can conflict with char $ac_func (); below.
19113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19114 <limits.h> exists even on freestanding compilers. */
19117 # include <limits.h>
19119 # include <assert.h>
19124 /* Override any GCC internal prototype to avoid an error.
19125 Use char because int might match the return type of a GCC
19126 builtin and then its argument prototype would still apply. */
19131 /* The GNU C library defines this for functions which it implements
19132 to always fail with ENOSYS. Some functions are actually named
19133 something starting with __ and the normal name is an alias. */
19134 #if defined __stub_$ac_func || defined __stub___$ac_func
19141 return $ac_func ();
19146 rm -f conftest.$ac_objext conftest$ac_exeext
19147 if { (ac_try="$ac_link"
19148 case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19153 $as_echo "$ac_try_echo") >&5
19154 (eval "$ac_link") 2>conftest.er1
19156 grep -v '^ *+' conftest.er1 >conftest.err
19158 cat conftest.err >&5
19159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } && {
19161 test -z "$ac_c_werror_flag" ||
19162 test ! -s conftest.err
19163 } && test -s conftest$ac_exeext && {
19164 test "$cross_compiling" = yes ||
19165 $as_test_x conftest$ac_exeext
19167 eval "$as_ac_var=yes"
19169 $as_echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 eval "$as_ac_var=no"
19175 rm -rf conftest.dSYM
19176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19177 conftest$ac_exeext conftest.$ac_ext
19179 ac_res=`eval 'as_val=${'$as_ac_var'}
19180 $as_echo "$as_val"'`
19181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19182 $as_echo "$ac_res" >&6; }
19183 as_val=`eval 'as_val=${'$as_ac_var'}
19184 $as_echo "$as_val"'`
19185 if test "x$as_val" = x""yes; then
19186 cat >>confdefs.h <<_ACEOF
19187 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19191 case " $LIBOBJS " in
19192 *" $ac_func.$ac_objext "* ) ;;
19193 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19202 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19203 # Mingw uses macros to access Win32 API calls
19204 bsdi*|netbsd*|mingw*)
19206 cat >>confdefs.h <<\_ACEOF
19207 #define HAVE_FSEEKO 1
19210 ac_cv_func_fseeko=yes;;
19212 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19213 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19214 if test "${ac_cv_sys_largefile_source+set}" = set; then
19215 $as_echo_n "(cached) " >&6
19218 cat >conftest.$ac_ext <<_ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224 #include <sys/types.h> /* for off_t */
19229 int (*fp) (FILE *, off_t, int) = fseeko;
19230 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19235 rm -f conftest.$ac_objext conftest$ac_exeext
19236 if { (ac_try="$ac_link"
19237 case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19242 $as_echo "$ac_try_echo") >&5
19243 (eval "$ac_link") 2>conftest.er1
19245 grep -v '^ *+' conftest.er1 >conftest.err
19247 cat conftest.err >&5
19248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } && {
19250 test -z "$ac_c_werror_flag" ||
19251 test ! -s conftest.err
19252 } && test -s conftest$ac_exeext && {
19253 test "$cross_compiling" = yes ||
19254 $as_test_x conftest$ac_exeext
19256 ac_cv_sys_largefile_source=no; break
19258 $as_echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19264 rm -rf conftest.dSYM
19265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19266 conftest$ac_exeext conftest.$ac_ext
19267 cat >conftest.$ac_ext <<_ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273 #define _LARGEFILE_SOURCE 1
19274 #include <sys/types.h> /* for off_t */
19279 int (*fp) (FILE *, off_t, int) = fseeko;
19280 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19292 $as_echo "$ac_try_echo") >&5
19293 (eval "$ac_link") 2>conftest.er1
19295 grep -v '^ *+' conftest.er1 >conftest.err
19297 cat conftest.err >&5
19298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } && {
19300 test -z "$ac_c_werror_flag" ||
19301 test ! -s conftest.err
19302 } && test -s conftest$ac_exeext && {
19303 test "$cross_compiling" = yes ||
19304 $as_test_x conftest$ac_exeext
19306 ac_cv_sys_largefile_source=1; break
19308 $as_echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19314 rm -rf conftest.dSYM
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19317 ac_cv_sys_largefile_source=unknown
19321 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19322 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19323 case $ac_cv_sys_largefile_source in #(
19326 cat >>confdefs.h <<_ACEOF
19327 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19333 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19334 # in glibc 2.1.3, but that breaks too many other things.
19335 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19336 if test $ac_cv_sys_largefile_source != unknown; then
19338 cat >>confdefs.h <<\_ACEOF
19339 #define HAVE_FSEEKO 1
19346 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19347 # by calling it, 2009-04-02
19348 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19349 if test "$PORTNAME" != "solaris"; then
19351 for ac_func in posix_fadvise
19353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19354 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19355 $as_echo_n "checking for $ac_func... " >&6; }
19356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19357 $as_echo_n "(cached) " >&6
19359 cat >conftest.$ac_ext <<_ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19367 #define $ac_func innocuous_$ac_func
19369 /* System header to define __stub macros and hopefully few prototypes,
19370 which can conflict with char $ac_func (); below.
19371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19372 <limits.h> exists even on freestanding compilers. */
19375 # include <limits.h>
19377 # include <assert.h>
19382 /* Override any GCC internal prototype to avoid an error.
19383 Use char because int might match the return type of a GCC
19384 builtin and then its argument prototype would still apply. */
19389 /* The GNU C library defines this for functions which it implements
19390 to always fail with ENOSYS. Some functions are actually named
19391 something starting with __ and the normal name is an alias. */
19392 #if defined __stub_$ac_func || defined __stub___$ac_func
19399 return $ac_func ();
19404 rm -f conftest.$ac_objext conftest$ac_exeext
19405 if { (ac_try="$ac_link"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19411 $as_echo "$ac_try_echo") >&5
19412 (eval "$ac_link") 2>conftest.er1
19414 grep -v '^ *+' conftest.er1 >conftest.err
19416 cat conftest.err >&5
19417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } && {
19419 test -z "$ac_c_werror_flag" ||
19420 test ! -s conftest.err
19421 } && test -s conftest$ac_exeext && {
19422 test "$cross_compiling" = yes ||
19423 $as_test_x conftest$ac_exeext
19425 eval "$as_ac_var=yes"
19427 $as_echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19430 eval "$as_ac_var=no"
19433 rm -rf conftest.dSYM
19434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19435 conftest$ac_exeext conftest.$ac_ext
19437 ac_res=`eval 'as_val=${'$as_ac_var'}
19438 $as_echo "$as_val"'`
19439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19440 $as_echo "$ac_res" >&6; }
19441 as_val=`eval 'as_val=${'$as_ac_var'}
19442 $as_echo "$as_val"'`
19443 if test "x$as_val" = x""yes; then
19444 cat >>confdefs.h <<_ACEOF
19445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19451 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19452 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19453 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19454 $as_echo_n "(cached) " >&6
19456 cat >conftest.$ac_ext <<_ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h. */
19467 #ifndef posix_fadvise
19468 (void) posix_fadvise;
19475 rm -f conftest.$ac_objext
19476 if { (ac_try="$ac_compile"
19477 case "(($ac_try" in
19478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479 *) ac_try_echo=$ac_try;;
19481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19482 $as_echo "$ac_try_echo") >&5
19483 (eval "$ac_compile") 2>conftest.er1
19485 grep -v '^ *+' conftest.er1 >conftest.err
19487 cat conftest.err >&5
19488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } && {
19490 test -z "$ac_c_werror_flag" ||
19491 test ! -s conftest.err
19492 } && test -s conftest.$ac_objext; then
19493 ac_cv_have_decl_posix_fadvise=yes
19495 $as_echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19498 ac_cv_have_decl_posix_fadvise=no
19501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19503 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19504 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19505 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19507 cat >>confdefs.h <<_ACEOF
19508 #define HAVE_DECL_POSIX_FADVISE 1
19513 cat >>confdefs.h <<_ACEOF
19514 #define HAVE_DECL_POSIX_FADVISE 0
19523 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19524 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19525 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19526 $as_echo_n "(cached) " >&6
19528 cat >conftest.$ac_ext <<_ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h. */
19534 #include <unistd.h>
19547 rm -f conftest.$ac_objext
19548 if { (ac_try="$ac_compile"
19549 case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19554 $as_echo "$ac_try_echo") >&5
19555 (eval "$ac_compile") 2>conftest.er1
19557 grep -v '^ *+' conftest.er1 >conftest.err
19559 cat conftest.err >&5
19560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } && {
19562 test -z "$ac_c_werror_flag" ||
19563 test ! -s conftest.err
19564 } && test -s conftest.$ac_objext; then
19565 ac_cv_have_decl_fdatasync=yes
19567 $as_echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 ac_cv_have_decl_fdatasync=no
19573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19575 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19576 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19577 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19579 cat >>confdefs.h <<_ACEOF
19580 #define HAVE_DECL_FDATASYNC 1
19585 cat >>confdefs.h <<_ACEOF
19586 #define HAVE_DECL_FDATASYNC 0
19593 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19594 $as_echo_n "checking whether strlcat is declared... " >&6; }
19595 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19596 $as_echo_n "(cached) " >&6
19598 cat >conftest.$ac_ext <<_ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604 $ac_includes_default
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19623 $as_echo "$ac_try_echo") >&5
19624 (eval "$ac_compile") 2>conftest.er1
19626 grep -v '^ *+' conftest.er1 >conftest.err
19628 cat conftest.err >&5
19629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } && {
19631 test -z "$ac_c_werror_flag" ||
19632 test ! -s conftest.err
19633 } && test -s conftest.$ac_objext; then
19634 ac_cv_have_decl_strlcat=yes
19636 $as_echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 ac_cv_have_decl_strlcat=no
19642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19644 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19645 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19646 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19648 cat >>confdefs.h <<_ACEOF
19649 #define HAVE_DECL_STRLCAT 1
19654 cat >>confdefs.h <<_ACEOF
19655 #define HAVE_DECL_STRLCAT 0
19660 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19661 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19662 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19663 $as_echo_n "(cached) " >&6
19665 cat >conftest.$ac_ext <<_ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671 $ac_includes_default
19683 rm -f conftest.$ac_objext
19684 if { (ac_try="$ac_compile"
19685 case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19690 $as_echo "$ac_try_echo") >&5
19691 (eval "$ac_compile") 2>conftest.er1
19693 grep -v '^ *+' conftest.er1 >conftest.err
19695 cat conftest.err >&5
19696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } && {
19698 test -z "$ac_c_werror_flag" ||
19699 test ! -s conftest.err
19700 } && test -s conftest.$ac_objext; then
19701 ac_cv_have_decl_strlcpy=yes
19703 $as_echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19706 ac_cv_have_decl_strlcpy=no
19709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19711 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19712 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19713 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19715 cat >>confdefs.h <<_ACEOF
19716 #define HAVE_DECL_STRLCPY 1
19721 cat >>confdefs.h <<_ACEOF
19722 #define HAVE_DECL_STRLCPY 0
19729 # This is probably only present on Darwin, but may as well check always
19730 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19731 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19732 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19733 $as_echo_n "(cached) " >&6
19735 cat >conftest.$ac_ext <<_ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h. */
19746 #ifndef F_FULLFSYNC
19747 (void) F_FULLFSYNC;
19754 rm -f conftest.$ac_objext
19755 if { (ac_try="$ac_compile"
19756 case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19761 $as_echo "$ac_try_echo") >&5
19762 (eval "$ac_compile") 2>conftest.er1
19764 grep -v '^ *+' conftest.er1 >conftest.err
19766 cat conftest.err >&5
19767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } && {
19769 test -z "$ac_c_werror_flag" ||
19770 test ! -s conftest.err
19771 } && test -s conftest.$ac_objext; then
19772 ac_cv_have_decl_F_FULLFSYNC=yes
19774 $as_echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19777 ac_cv_have_decl_F_FULLFSYNC=no
19780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19783 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19784 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19786 cat >>confdefs.h <<_ACEOF
19787 #define HAVE_DECL_F_FULLFSYNC 1
19792 cat >>confdefs.h <<_ACEOF
19793 #define HAVE_DECL_F_FULLFSYNC 0
19802 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19803 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19804 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19805 $as_echo_n "(cached) " >&6
19807 ac_cv_type_struct_sockaddr_in6=no
19808 cat >conftest.$ac_ext <<_ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h. */
19814 $ac_includes_default
19815 #include <netinet/in.h>
19820 if (sizeof (struct sockaddr_in6))
19826 rm -f conftest.$ac_objext
19827 if { (ac_try="$ac_compile"
19828 case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19833 $as_echo "$ac_try_echo") >&5
19834 (eval "$ac_compile") 2>conftest.er1
19836 grep -v '^ *+' conftest.er1 >conftest.err
19838 cat conftest.err >&5
19839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest.$ac_objext; then
19844 cat >conftest.$ac_ext <<_ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19850 $ac_includes_default
19851 #include <netinet/in.h>
19856 if (sizeof ((struct sockaddr_in6)))
19862 rm -f conftest.$ac_objext
19863 if { (ac_try="$ac_compile"
19864 case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19869 $as_echo "$ac_try_echo") >&5
19870 (eval "$ac_compile") 2>conftest.er1
19872 grep -v '^ *+' conftest.er1 >conftest.err
19874 cat conftest.err >&5
19875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); } && {
19877 test -z "$ac_c_werror_flag" ||
19878 test ! -s conftest.err
19879 } && test -s conftest.$ac_objext; then
19882 $as_echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 ac_cv_type_struct_sockaddr_in6=yes
19888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19890 $as_echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19899 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19900 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19902 cat >>confdefs.h <<\_ACEOF
19903 #define HAVE_IPV6 1
19911 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19912 $as_echo_n "checking for PS_STRINGS... " >&6; }
19913 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19914 $as_echo_n "(cached) " >&6
19916 cat >conftest.$ac_ext <<_ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19922 #include <machine/vmparam.h>
19923 #include <sys/exec.h>
19928 PS_STRINGS->ps_nargvstr = 1;
19929 PS_STRINGS->ps_argvstr = "foo";
19934 rm -f conftest.$ac_objext conftest$ac_exeext
19935 if { (ac_try="$ac_link"
19936 case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19941 $as_echo "$ac_try_echo") >&5
19942 (eval "$ac_link") 2>conftest.er1
19944 grep -v '^ *+' conftest.er1 >conftest.err
19946 cat conftest.err >&5
19947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } && {
19949 test -z "$ac_c_werror_flag" ||
19950 test ! -s conftest.err
19951 } && test -s conftest$ac_exeext && {
19952 test "$cross_compiling" = yes ||
19953 $as_test_x conftest$ac_exeext
19955 pgac_cv_var_PS_STRINGS=yes
19957 $as_echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 pgac_cv_var_PS_STRINGS=no
19963 rm -rf conftest.dSYM
19964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19965 conftest$ac_exeext conftest.$ac_ext
19967 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19968 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19969 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19971 cat >>confdefs.h <<\_ACEOF
19972 #define HAVE_PS_STRINGS /**/
19978 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19979 # is missing. Yes, there are machines that have only one. We may
19980 # also decide to use snprintf.c if snprintf() is present but does not
19981 # have all the features we need --- see below.
19983 if test "$PORTNAME" = "win32"; then
19984 # Win32 gets snprintf.c built unconditionally.
19986 # To properly translate all NLS languages strings, we must support the
19987 # *printf() %$ format, which allows *printf() arguments to be selected
19988 # by position in the translated string.
19990 # libintl versions < 0.13 use the native *printf() functions, and Win32
19991 # *printf() doesn't understand %$, so we must use our /port versions,
19992 # which do understand %$. libintl versions >= 0.13 include their own
19993 # *printf versions on Win32. The libintl 0.13 release note text is:
19995 # C format strings with positions, as they arise when a translator
19996 # needs to reorder a sentence, are now supported on all platforms.
19997 # On those few platforms (NetBSD and Woe32) for which the native
19998 # printf()/fprintf()/... functions don't support such format
19999 # strings, replacements are provided through <libintl.h>.
20001 # We could use libintl >= 0.13's *printf() if we were sure that we had
20002 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20003 # to guarantee that, it is best to just use our own, so we are sure to
20004 # get %$ support. In include/port.h we disable the *printf() macros
20005 # that might have been defined by libintl.
20007 # We do this unconditionally whether NLS is used or not so we are sure
20008 # that all Win32 libraries and binaries behave the same.
20009 pgac_need_repl_snprintf=yes
20011 pgac_need_repl_snprintf=no
20013 for ac_func in snprintf
20015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20016 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20017 $as_echo_n "checking for $ac_func... " >&6; }
20018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20019 $as_echo_n "(cached) " >&6
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20029 #define $ac_func innocuous_$ac_func
20031 /* System header to define __stub macros and hopefully few prototypes,
20032 which can conflict with char $ac_func (); below.
20033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20034 <limits.h> exists even on freestanding compilers. */
20037 # include <limits.h>
20039 # include <assert.h>
20044 /* Override any GCC internal prototype to avoid an error.
20045 Use char because int might match the return type of a GCC
20046 builtin and then its argument prototype would still apply. */
20051 /* The GNU C library defines this for functions which it implements
20052 to always fail with ENOSYS. Some functions are actually named
20053 something starting with __ and the normal name is an alias. */
20054 #if defined __stub_$ac_func || defined __stub___$ac_func
20061 return $ac_func ();
20066 rm -f conftest.$ac_objext conftest$ac_exeext
20067 if { (ac_try="$ac_link"
20068 case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20073 $as_echo "$ac_try_echo") >&5
20074 (eval "$ac_link") 2>conftest.er1
20076 grep -v '^ *+' conftest.er1 >conftest.err
20078 cat conftest.err >&5
20079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } && {
20081 test -z "$ac_c_werror_flag" ||
20082 test ! -s conftest.err
20083 } && test -s conftest$ac_exeext && {
20084 test "$cross_compiling" = yes ||
20085 $as_test_x conftest$ac_exeext
20087 eval "$as_ac_var=yes"
20089 $as_echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20092 eval "$as_ac_var=no"
20095 rm -rf conftest.dSYM
20096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20097 conftest$ac_exeext conftest.$ac_ext
20099 ac_res=`eval 'as_val=${'$as_ac_var'}
20100 $as_echo "$as_val"'`
20101 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20102 $as_echo "$ac_res" >&6; }
20103 as_val=`eval 'as_val=${'$as_ac_var'}
20104 $as_echo "$as_val"'`
20105 if test "x$as_val" = x""yes; then
20106 cat >>confdefs.h <<_ACEOF
20107 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20111 pgac_need_repl_snprintf=yes
20116 for ac_func in vsnprintf
20118 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20119 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20120 $as_echo_n "checking for $ac_func... " >&6; }
20121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20122 $as_echo_n "(cached) " >&6
20124 cat >conftest.$ac_ext <<_ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h. */
20130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20132 #define $ac_func innocuous_$ac_func
20134 /* System header to define __stub macros and hopefully few prototypes,
20135 which can conflict with char $ac_func (); below.
20136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20137 <limits.h> exists even on freestanding compilers. */
20140 # include <limits.h>
20142 # include <assert.h>
20147 /* Override any GCC internal prototype to avoid an error.
20148 Use char because int might match the return type of a GCC
20149 builtin and then its argument prototype would still apply. */
20154 /* The GNU C library defines this for functions which it implements
20155 to always fail with ENOSYS. Some functions are actually named
20156 something starting with __ and the normal name is an alias. */
20157 #if defined __stub_$ac_func || defined __stub___$ac_func
20164 return $ac_func ();
20169 rm -f conftest.$ac_objext conftest$ac_exeext
20170 if { (ac_try="$ac_link"
20171 case "(($ac_try" in
20172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20173 *) ac_try_echo=$ac_try;;
20175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20176 $as_echo "$ac_try_echo") >&5
20177 (eval "$ac_link") 2>conftest.er1
20179 grep -v '^ *+' conftest.er1 >conftest.err
20181 cat conftest.err >&5
20182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } && {
20184 test -z "$ac_c_werror_flag" ||
20185 test ! -s conftest.err
20186 } && test -s conftest$ac_exeext && {
20187 test "$cross_compiling" = yes ||
20188 $as_test_x conftest$ac_exeext
20190 eval "$as_ac_var=yes"
20192 $as_echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 eval "$as_ac_var=no"
20198 rm -rf conftest.dSYM
20199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20200 conftest$ac_exeext conftest.$ac_ext
20202 ac_res=`eval 'as_val=${'$as_ac_var'}
20203 $as_echo "$as_val"'`
20204 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20205 $as_echo "$ac_res" >&6; }
20206 as_val=`eval 'as_val=${'$as_ac_var'}
20207 $as_echo "$as_val"'`
20208 if test "x$as_val" = x""yes; then
20209 cat >>confdefs.h <<_ACEOF
20210 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20214 pgac_need_repl_snprintf=yes
20221 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20222 # include/c.h will provide declarations. Note this is a separate test
20223 # from whether the functions exist in the C library --- there are
20224 # systems that have the functions but don't bother to declare them :-(
20226 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20227 $as_echo_n "checking whether snprintf is declared... " >&6; }
20228 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20229 $as_echo_n "(cached) " >&6
20231 cat >conftest.$ac_ext <<_ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20237 $ac_includes_default
20249 rm -f conftest.$ac_objext
20250 if { (ac_try="$ac_compile"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20256 $as_echo "$ac_try_echo") >&5
20257 (eval "$ac_compile") 2>conftest.er1
20259 grep -v '^ *+' conftest.er1 >conftest.err
20261 cat conftest.err >&5
20262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest.$ac_objext; then
20267 ac_cv_have_decl_snprintf=yes
20269 $as_echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 ac_cv_have_decl_snprintf=no
20275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20278 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20279 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20281 cat >>confdefs.h <<_ACEOF
20282 #define HAVE_DECL_SNPRINTF 1
20287 cat >>confdefs.h <<_ACEOF
20288 #define HAVE_DECL_SNPRINTF 0
20293 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20294 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20295 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20296 $as_echo_n "(cached) " >&6
20298 cat >conftest.$ac_ext <<_ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h. */
20304 $ac_includes_default
20316 rm -f conftest.$ac_objext
20317 if { (ac_try="$ac_compile"
20318 case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20323 $as_echo "$ac_try_echo") >&5
20324 (eval "$ac_compile") 2>conftest.er1
20326 grep -v '^ *+' conftest.er1 >conftest.err
20328 cat conftest.err >&5
20329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } && {
20331 test -z "$ac_c_werror_flag" ||
20332 test ! -s conftest.err
20333 } && test -s conftest.$ac_objext; then
20334 ac_cv_have_decl_vsnprintf=yes
20336 $as_echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20339 ac_cv_have_decl_vsnprintf=no
20342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20345 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20346 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20348 cat >>confdefs.h <<_ACEOF
20349 #define HAVE_DECL_VSNPRINTF 1
20354 cat >>confdefs.h <<_ACEOF
20355 #define HAVE_DECL_VSNPRINTF 0
20364 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20365 $as_echo_n "checking for isinf... " >&6; }
20366 if test "${ac_cv_func_isinf+set}" = set; then
20367 $as_echo_n "(cached) " >&6
20369 cat >conftest.$ac_ext <<_ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20377 double glob_double;
20382 return isinf(glob_double) ? 0 : 1;
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20394 $as_echo "$ac_try_echo") >&5
20395 (eval "$ac_link") 2>conftest.er1
20397 grep -v '^ *+' conftest.er1 >conftest.err
20399 cat conftest.err >&5
20400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest$ac_exeext && {
20405 test "$cross_compiling" = yes ||
20406 $as_test_x conftest$ac_exeext
20408 ac_cv_func_isinf=yes
20410 $as_echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20413 ac_cv_func_isinf=no
20416 rm -rf conftest.dSYM
20417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20418 conftest$ac_exeext conftest.$ac_ext
20420 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20421 $as_echo "$ac_cv_func_isinf" >&6; }
20423 if test $ac_cv_func_isinf = yes ; then
20425 cat >>confdefs.h <<\_ACEOF
20426 #define HAVE_ISINF 1
20430 case " $LIBOBJS " in
20431 *" isinf.$ac_objext "* ) ;;
20432 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20436 # Look for a way to implement a substitute for isinf()
20441 for ac_func in fpclass fp_class fp_class_d class
20443 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20444 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20445 $as_echo_n "checking for $ac_func... " >&6; }
20446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20447 $as_echo_n "(cached) " >&6
20449 cat >conftest.$ac_ext <<_ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20457 #define $ac_func innocuous_$ac_func
20459 /* System header to define __stub macros and hopefully few prototypes,
20460 which can conflict with char $ac_func (); below.
20461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20462 <limits.h> exists even on freestanding compilers. */
20465 # include <limits.h>
20467 # include <assert.h>
20472 /* Override any GCC internal prototype to avoid an error.
20473 Use char because int might match the return type of a GCC
20474 builtin and then its argument prototype would still apply. */
20479 /* The GNU C library defines this for functions which it implements
20480 to always fail with ENOSYS. Some functions are actually named
20481 something starting with __ and the normal name is an alias. */
20482 #if defined __stub_$ac_func || defined __stub___$ac_func
20489 return $ac_func ();
20494 rm -f conftest.$ac_objext conftest$ac_exeext
20495 if { (ac_try="$ac_link"
20496 case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20501 $as_echo "$ac_try_echo") >&5
20502 (eval "$ac_link") 2>conftest.er1
20504 grep -v '^ *+' conftest.er1 >conftest.err
20506 cat conftest.err >&5
20507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } && {
20509 test -z "$ac_c_werror_flag" ||
20510 test ! -s conftest.err
20511 } && test -s conftest$ac_exeext && {
20512 test "$cross_compiling" = yes ||
20513 $as_test_x conftest$ac_exeext
20515 eval "$as_ac_var=yes"
20517 $as_echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 eval "$as_ac_var=no"
20523 rm -rf conftest.dSYM
20524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20525 conftest$ac_exeext conftest.$ac_ext
20527 ac_res=`eval 'as_val=${'$as_ac_var'}
20528 $as_echo "$as_val"'`
20529 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20530 $as_echo "$ac_res" >&6; }
20531 as_val=`eval 'as_val=${'$as_ac_var'}
20532 $as_echo "$as_val"'`
20533 if test "x$as_val" = x""yes; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20543 # Some versions of libedit contain strlcpy(); so disregard that library while
20544 # checking for these standard libc functions.
20545 pgac_save_LIBS="$LIBS"
20546 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20561 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20564 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20565 $as_echo_n "checking for $ac_func... " >&6; }
20566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20567 $as_echo_n "(cached) " >&6
20569 cat >conftest.$ac_ext <<_ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20577 #define $ac_func innocuous_$ac_func
20579 /* System header to define __stub macros and hopefully few prototypes,
20580 which can conflict with char $ac_func (); below.
20581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20582 <limits.h> exists even on freestanding compilers. */
20585 # include <limits.h>
20587 # include <assert.h>
20592 /* Override any GCC internal prototype to avoid an error.
20593 Use char because int might match the return type of a GCC
20594 builtin and then its argument prototype would still apply. */
20599 /* The GNU C library defines this for functions which it implements
20600 to always fail with ENOSYS. Some functions are actually named
20601 something starting with __ and the normal name is an alias. */
20602 #if defined __stub_$ac_func || defined __stub___$ac_func
20609 return $ac_func ();
20614 rm -f conftest.$ac_objext conftest$ac_exeext
20615 if { (ac_try="$ac_link"
20616 case "(($ac_try" in
20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618 *) ac_try_echo=$ac_try;;
20620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20621 $as_echo "$ac_try_echo") >&5
20622 (eval "$ac_link") 2>conftest.er1
20624 grep -v '^ *+' conftest.er1 >conftest.err
20626 cat conftest.err >&5
20627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } && {
20629 test -z "$ac_c_werror_flag" ||
20630 test ! -s conftest.err
20631 } && test -s conftest$ac_exeext && {
20632 test "$cross_compiling" = yes ||
20633 $as_test_x conftest$ac_exeext
20635 eval "$as_ac_var=yes"
20637 $as_echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20640 eval "$as_ac_var=no"
20643 rm -rf conftest.dSYM
20644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20645 conftest$ac_exeext conftest.$ac_ext
20647 ac_res=`eval 'as_val=${'$as_ac_var'}
20648 $as_echo "$as_val"'`
20649 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20650 $as_echo "$ac_res" >&6; }
20651 as_val=`eval 'as_val=${'$as_ac_var'}
20652 $as_echo "$as_val"'`
20653 if test "x$as_val" = x""yes; then
20654 cat >>confdefs.h <<_ACEOF
20655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20659 case " $LIBOBJS " in
20660 *" $ac_func.$ac_objext "* ) ;;
20661 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20672 # Windows uses a specialised env handler
20673 # and doesn't need a replacement getpeereid because it doesn't use
20677 cat >>confdefs.h <<\_ACEOF
20678 #define HAVE_UNSETENV 1
20682 cat >>confdefs.h <<\_ACEOF
20683 #define HAVE_GETPEEREID 1
20686 ac_cv_func_unsetenv=yes
20687 ac_cv_func_getpeereid=yes;;
20691 for ac_func in unsetenv getpeereid
20693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20694 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20695 $as_echo_n "checking for $ac_func... " >&6; }
20696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20697 $as_echo_n "(cached) " >&6
20699 cat >conftest.$ac_ext <<_ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20707 #define $ac_func innocuous_$ac_func
20709 /* System header to define __stub macros and hopefully few prototypes,
20710 which can conflict with char $ac_func (); below.
20711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20712 <limits.h> exists even on freestanding compilers. */
20715 # include <limits.h>
20717 # include <assert.h>
20722 /* Override any GCC internal prototype to avoid an error.
20723 Use char because int might match the return type of a GCC
20724 builtin and then its argument prototype would still apply. */
20729 /* The GNU C library defines this for functions which it implements
20730 to always fail with ENOSYS. Some functions are actually named
20731 something starting with __ and the normal name is an alias. */
20732 #if defined __stub_$ac_func || defined __stub___$ac_func
20739 return $ac_func ();
20744 rm -f conftest.$ac_objext conftest$ac_exeext
20745 if { (ac_try="$ac_link"
20746 case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20751 $as_echo "$ac_try_echo") >&5
20752 (eval "$ac_link") 2>conftest.er1
20754 grep -v '^ *+' conftest.er1 >conftest.err
20756 cat conftest.err >&5
20757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); } && {
20759 test -z "$ac_c_werror_flag" ||
20760 test ! -s conftest.err
20761 } && test -s conftest$ac_exeext && {
20762 test "$cross_compiling" = yes ||
20763 $as_test_x conftest$ac_exeext
20765 eval "$as_ac_var=yes"
20767 $as_echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20770 eval "$as_ac_var=no"
20773 rm -rf conftest.dSYM
20774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20775 conftest$ac_exeext conftest.$ac_ext
20777 ac_res=`eval 'as_val=${'$as_ac_var'}
20778 $as_echo "$as_val"'`
20779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20780 $as_echo "$ac_res" >&6; }
20781 as_val=`eval 'as_val=${'$as_ac_var'}
20782 $as_echo "$as_val"'`
20783 if test "x$as_val" = x""yes; then
20784 cat >>confdefs.h <<_ACEOF
20785 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20789 case " $LIBOBJS " in
20790 *" $ac_func.$ac_objext "* ) ;;
20791 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20803 LIBS="$pgac_save_LIBS"
20805 # System's version of getaddrinfo(), if any, may be used only if we found
20806 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20807 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20808 # versions of getaddrinfo don't follow normal C call protocol. This is OK
20809 # because we want to use our own getaddrinfo.c on Windows anyway.)
20810 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20812 for ac_func in getaddrinfo
20814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20815 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20816 $as_echo_n "checking for $ac_func... " >&6; }
20817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20818 $as_echo_n "(cached) " >&6
20820 cat >conftest.$ac_ext <<_ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20828 #define $ac_func innocuous_$ac_func
20830 /* System header to define __stub macros and hopefully few prototypes,
20831 which can conflict with char $ac_func (); below.
20832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20833 <limits.h> exists even on freestanding compilers. */
20836 # include <limits.h>
20838 # include <assert.h>
20843 /* Override any GCC internal prototype to avoid an error.
20844 Use char because int might match the return type of a GCC
20845 builtin and then its argument prototype would still apply. */
20850 /* The GNU C library defines this for functions which it implements
20851 to always fail with ENOSYS. Some functions are actually named
20852 something starting with __ and the normal name is an alias. */
20853 #if defined __stub_$ac_func || defined __stub___$ac_func
20860 return $ac_func ();
20865 rm -f conftest.$ac_objext conftest$ac_exeext
20866 if { (ac_try="$ac_link"
20867 case "(($ac_try" in
20868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869 *) ac_try_echo=$ac_try;;
20871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20872 $as_echo "$ac_try_echo") >&5
20873 (eval "$ac_link") 2>conftest.er1
20875 grep -v '^ *+' conftest.er1 >conftest.err
20877 cat conftest.err >&5
20878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } && {
20880 test -z "$ac_c_werror_flag" ||
20881 test ! -s conftest.err
20882 } && test -s conftest$ac_exeext && {
20883 test "$cross_compiling" = yes ||
20884 $as_test_x conftest$ac_exeext
20886 eval "$as_ac_var=yes"
20888 $as_echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 eval "$as_ac_var=no"
20894 rm -rf conftest.dSYM
20895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20896 conftest$ac_exeext conftest.$ac_ext
20898 ac_res=`eval 'as_val=${'$as_ac_var'}
20899 $as_echo "$as_val"'`
20900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20901 $as_echo "$ac_res" >&6; }
20902 as_val=`eval 'as_val=${'$as_ac_var'}
20903 $as_echo "$as_val"'`
20904 if test "x$as_val" = x""yes; then
20905 cat >>confdefs.h <<_ACEOF
20906 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20910 case " $LIBOBJS " in
20911 *" $ac_func.$ac_objext "* ) ;;
20912 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20921 case " $LIBOBJS " in
20922 *" getaddrinfo.$ac_objext "* ) ;;
20923 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20929 # Similarly, use system's getopt_long() only if system provides struct option.
20930 if test x"$ac_cv_type_struct_option" = xyes ; then
20932 for ac_func in getopt_long
20934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20935 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20936 $as_echo_n "checking for $ac_func... " >&6; }
20937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20938 $as_echo_n "(cached) " >&6
20940 cat >conftest.$ac_ext <<_ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20948 #define $ac_func innocuous_$ac_func
20950 /* System header to define __stub macros and hopefully few prototypes,
20951 which can conflict with char $ac_func (); below.
20952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20953 <limits.h> exists even on freestanding compilers. */
20956 # include <limits.h>
20958 # include <assert.h>
20963 /* Override any GCC internal prototype to avoid an error.
20964 Use char because int might match the return type of a GCC
20965 builtin and then its argument prototype would still apply. */
20970 /* The GNU C library defines this for functions which it implements
20971 to always fail with ENOSYS. Some functions are actually named
20972 something starting with __ and the normal name is an alias. */
20973 #if defined __stub_$ac_func || defined __stub___$ac_func
20980 return $ac_func ();
20985 rm -f conftest.$ac_objext conftest$ac_exeext
20986 if { (ac_try="$ac_link"
20987 case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20992 $as_echo "$ac_try_echo") >&5
20993 (eval "$ac_link") 2>conftest.er1
20995 grep -v '^ *+' conftest.er1 >conftest.err
20997 cat conftest.err >&5
20998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest$ac_exeext && {
21003 test "$cross_compiling" = yes ||
21004 $as_test_x conftest$ac_exeext
21006 eval "$as_ac_var=yes"
21008 $as_echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 eval "$as_ac_var=no"
21014 rm -rf conftest.dSYM
21015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21016 conftest$ac_exeext conftest.$ac_ext
21018 ac_res=`eval 'as_val=${'$as_ac_var'}
21019 $as_echo "$as_val"'`
21020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21021 $as_echo "$ac_res" >&6; }
21022 as_val=`eval 'as_val=${'$as_ac_var'}
21023 $as_echo "$as_val"'`
21024 if test "x$as_val" = x""yes; then
21025 cat >>confdefs.h <<_ACEOF
21026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21030 case " $LIBOBJS " in
21031 *" $ac_func.$ac_objext "* ) ;;
21032 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21041 case " $LIBOBJS " in
21042 *" getopt_long.$ac_objext "* ) ;;
21043 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21049 # Solaris' getopt() doesn't do what we want for long options, so always use
21050 # our version on that platform.
21051 if test "$PORTNAME" = "solaris"; then
21052 case " $LIBOBJS " in
21053 *" getopt.$ac_objext "* ) ;;
21054 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21060 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21061 # so always use our version on Windows.
21062 if test "$PORTNAME" = "win32"; then
21063 case " $LIBOBJS " in
21064 *" getopt.$ac_objext "* ) ;;
21065 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21069 case " $LIBOBJS " in
21070 *" getopt_long.$ac_objext "* ) ;;
21071 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21078 if test "$PORTNAME" = "win32"; then
21080 for ac_func in gettimeofday
21082 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21083 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21084 $as_echo_n "checking for $ac_func... " >&6; }
21085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21086 $as_echo_n "(cached) " >&6
21088 cat >conftest.$ac_ext <<_ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21096 #define $ac_func innocuous_$ac_func
21098 /* System header to define __stub macros and hopefully few prototypes,
21099 which can conflict with char $ac_func (); below.
21100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21101 <limits.h> exists even on freestanding compilers. */
21104 # include <limits.h>
21106 # include <assert.h>
21111 /* Override any GCC internal prototype to avoid an error.
21112 Use char because int might match the return type of a GCC
21113 builtin and then its argument prototype would still apply. */
21118 /* The GNU C library defines this for functions which it implements
21119 to always fail with ENOSYS. Some functions are actually named
21120 something starting with __ and the normal name is an alias. */
21121 #if defined __stub_$ac_func || defined __stub___$ac_func
21128 return $ac_func ();
21133 rm -f conftest.$ac_objext conftest$ac_exeext
21134 if { (ac_try="$ac_link"
21135 case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21140 $as_echo "$ac_try_echo") >&5
21141 (eval "$ac_link") 2>conftest.er1
21143 grep -v '^ *+' conftest.er1 >conftest.err
21145 cat conftest.err >&5
21146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && {
21148 test -z "$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21150 } && test -s conftest$ac_exeext && {
21151 test "$cross_compiling" = yes ||
21152 $as_test_x conftest$ac_exeext
21154 eval "$as_ac_var=yes"
21156 $as_echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 eval "$as_ac_var=no"
21162 rm -rf conftest.dSYM
21163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21164 conftest$ac_exeext conftest.$ac_ext
21166 ac_res=`eval 'as_val=${'$as_ac_var'}
21167 $as_echo "$as_val"'`
21168 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21169 $as_echo "$ac_res" >&6; }
21170 as_val=`eval 'as_val=${'$as_ac_var'}
21171 $as_echo "$as_val"'`
21172 if test "x$as_val" = x""yes; then
21173 cat >>confdefs.h <<_ACEOF
21174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21178 case " $LIBOBJS " in
21179 *" $ac_func.$ac_objext "* ) ;;
21180 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21188 case " $LIBOBJS " in
21189 *" kill.$ac_objext "* ) ;;
21190 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21194 case " $LIBOBJS " in
21195 *" open.$ac_objext "* ) ;;
21196 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21200 case " $LIBOBJS " in
21201 *" win32env.$ac_objext "* ) ;;
21202 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21206 case " $LIBOBJS " in
21207 *" win32error.$ac_objext "* ) ;;
21208 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21212 case " $LIBOBJS " in
21213 *" win32setlocale.$ac_objext "* ) ;;
21214 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21219 cat >>confdefs.h <<\_ACEOF
21220 #define HAVE_SYMLINK 1
21223 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21224 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21225 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21226 $as_echo_n "(cached) " >&6
21228 ac_cv_type_MINIDUMP_TYPE=no
21229 cat >conftest.$ac_ext <<_ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21236 #define WIN32_LEAN_AND_MEAN
21237 #include <windows.h>
21238 #include <string.h>
21239 #include <dbghelp.h>
21244 if (sizeof (MINIDUMP_TYPE))
21250 rm -f conftest.$ac_objext
21251 if { (ac_try="$ac_compile"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21257 $as_echo "$ac_try_echo") >&5
21258 (eval "$ac_compile") 2>conftest.er1
21260 grep -v '^ *+' conftest.er1 >conftest.err
21262 cat conftest.err >&5
21263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } && {
21265 test -z "$ac_c_werror_flag" ||
21266 test ! -s conftest.err
21267 } && test -s conftest.$ac_objext; then
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21275 #define WIN32_LEAN_AND_MEAN
21276 #include <windows.h>
21277 #include <string.h>
21278 #include <dbghelp.h>
21283 if (sizeof ((MINIDUMP_TYPE)))
21289 rm -f conftest.$ac_objext
21290 if { (ac_try="$ac_compile"
21291 case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21296 $as_echo "$ac_try_echo") >&5
21297 (eval "$ac_compile") 2>conftest.er1
21299 grep -v '^ *+' conftest.er1 >conftest.err
21301 cat conftest.err >&5
21302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } && {
21304 test -z "$ac_c_werror_flag" ||
21305 test ! -s conftest.err
21306 } && test -s conftest.$ac_objext; then
21309 $as_echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21312 ac_cv_type_MINIDUMP_TYPE=yes
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 $as_echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21326 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21327 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21329 cat >>confdefs.h <<_ACEOF
21330 #define HAVE_MINIDUMP_TYPE 1
21333 pgac_minidump_type=yes
21335 pgac_minidump_type=no
21339 if test x"$pgac_minidump_type" = x"yes" ; then
21340 have_win32_dbghelp=yes
21343 have_win32_dbghelp=no
21347 if test "$with_readline" = yes; then
21348 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21349 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21350 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21351 $as_echo_n "(cached) " >&6
21353 cat >conftest.$ac_ext <<_ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21360 #ifdef HAVE_READLINE_READLINE_H
21361 # include <readline/readline.h>
21362 #elif defined(HAVE_READLINE_H)
21363 # include <readline.h>
21369 rl_completion_append_character = 'x';
21374 rm -f conftest.$ac_objext conftest$ac_exeext
21375 if { (ac_try="$ac_link"
21376 case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21381 $as_echo "$ac_try_echo") >&5
21382 (eval "$ac_link") 2>conftest.er1
21384 grep -v '^ *+' conftest.er1 >conftest.err
21386 cat conftest.err >&5
21387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } && {
21389 test -z "$ac_c_werror_flag" ||
21390 test ! -s conftest.err
21391 } && test -s conftest$ac_exeext && {
21392 test "$cross_compiling" = yes ||
21393 $as_test_x conftest$ac_exeext
21395 pgac_cv_var_rl_completion_append_character=yes
21397 $as_echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21400 pgac_cv_var_rl_completion_append_character=no
21403 rm -rf conftest.dSYM
21404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21405 conftest$ac_exeext conftest.$ac_ext
21407 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21408 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21409 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21411 cat >>confdefs.h <<\_ACEOF
21412 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21418 for ac_func in rl_completion_matches rl_filename_completion_function
21420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21421 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21422 $as_echo_n "checking for $ac_func... " >&6; }
21423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21424 $as_echo_n "(cached) " >&6
21426 cat >conftest.$ac_ext <<_ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21434 #define $ac_func innocuous_$ac_func
21436 /* System header to define __stub macros and hopefully few prototypes,
21437 which can conflict with char $ac_func (); below.
21438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21439 <limits.h> exists even on freestanding compilers. */
21442 # include <limits.h>
21444 # include <assert.h>
21449 /* Override any GCC internal prototype to avoid an error.
21450 Use char because int might match the return type of a GCC
21451 builtin and then its argument prototype would still apply. */
21456 /* The GNU C library defines this for functions which it implements
21457 to always fail with ENOSYS. Some functions are actually named
21458 something starting with __ and the normal name is an alias. */
21459 #if defined __stub_$ac_func || defined __stub___$ac_func
21466 return $ac_func ();
21471 rm -f conftest.$ac_objext conftest$ac_exeext
21472 if { (ac_try="$ac_link"
21473 case "(($ac_try" in
21474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21478 $as_echo "$ac_try_echo") >&5
21479 (eval "$ac_link") 2>conftest.er1
21481 grep -v '^ *+' conftest.er1 >conftest.err
21483 cat conftest.err >&5
21484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } && {
21486 test -z "$ac_c_werror_flag" ||
21487 test ! -s conftest.err
21488 } && test -s conftest$ac_exeext && {
21489 test "$cross_compiling" = yes ||
21490 $as_test_x conftest$ac_exeext
21492 eval "$as_ac_var=yes"
21494 $as_echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21497 eval "$as_ac_var=no"
21500 rm -rf conftest.dSYM
21501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21502 conftest$ac_exeext conftest.$ac_ext
21504 ac_res=`eval 'as_val=${'$as_ac_var'}
21505 $as_echo "$as_val"'`
21506 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21507 $as_echo "$ac_res" >&6; }
21508 as_val=`eval 'as_val=${'$as_ac_var'}
21509 $as_echo "$as_val"'`
21510 if test "x$as_val" = x""yes; then
21511 cat >>confdefs.h <<_ACEOF
21512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21520 for ac_func in append_history history_truncate_file
21522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21523 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21524 $as_echo_n "checking for $ac_func... " >&6; }
21525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21526 $as_echo_n "(cached) " >&6
21528 cat >conftest.$ac_ext <<_ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h. */
21534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21536 #define $ac_func innocuous_$ac_func
21538 /* System header to define __stub macros and hopefully few prototypes,
21539 which can conflict with char $ac_func (); below.
21540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21541 <limits.h> exists even on freestanding compilers. */
21544 # include <limits.h>
21546 # include <assert.h>
21551 /* Override any GCC internal prototype to avoid an error.
21552 Use char because int might match the return type of a GCC
21553 builtin and then its argument prototype would still apply. */
21558 /* The GNU C library defines this for functions which it implements
21559 to always fail with ENOSYS. Some functions are actually named
21560 something starting with __ and the normal name is an alias. */
21561 #if defined __stub_$ac_func || defined __stub___$ac_func
21568 return $ac_func ();
21573 rm -f conftest.$ac_objext conftest$ac_exeext
21574 if { (ac_try="$ac_link"
21575 case "(($ac_try" in
21576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577 *) ac_try_echo=$ac_try;;
21579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21580 $as_echo "$ac_try_echo") >&5
21581 (eval "$ac_link") 2>conftest.er1
21583 grep -v '^ *+' conftest.er1 >conftest.err
21585 cat conftest.err >&5
21586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); } && {
21588 test -z "$ac_c_werror_flag" ||
21589 test ! -s conftest.err
21590 } && test -s conftest$ac_exeext && {
21591 test "$cross_compiling" = yes ||
21592 $as_test_x conftest$ac_exeext
21594 eval "$as_ac_var=yes"
21596 $as_echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21599 eval "$as_ac_var=no"
21602 rm -rf conftest.dSYM
21603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21604 conftest$ac_exeext conftest.$ac_ext
21606 ac_res=`eval 'as_val=${'$as_ac_var'}
21607 $as_echo "$as_val"'`
21608 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21609 $as_echo "$ac_res" >&6; }
21610 as_val=`eval 'as_val=${'$as_ac_var'}
21611 $as_echo "$as_val"'`
21612 if test "x$as_val" = x""yes; then
21613 cat >>confdefs.h <<_ACEOF
21614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21623 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21624 $as_echo_n "checking for sigsetjmp... " >&6; }
21625 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21626 $as_echo_n "(cached) " >&6
21628 cat >conftest.$ac_ext <<_ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h. */
21634 #include <setjmp.h>
21638 sigjmp_buf x; sigsetjmp(x, 1);
21643 rm -f conftest.$ac_objext conftest$ac_exeext
21644 if { (ac_try="$ac_link"
21645 case "(($ac_try" in
21646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647 *) ac_try_echo=$ac_try;;
21649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21650 $as_echo "$ac_try_echo") >&5
21651 (eval "$ac_link") 2>conftest.er1
21653 grep -v '^ *+' conftest.er1 >conftest.err
21655 cat conftest.err >&5
21656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } && {
21658 test -z "$ac_c_werror_flag" ||
21659 test ! -s conftest.err
21660 } && test -s conftest$ac_exeext && {
21661 test "$cross_compiling" = yes ||
21662 $as_test_x conftest$ac_exeext
21664 pgac_cv_func_sigsetjmp=yes
21666 $as_echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21669 pgac_cv_func_sigsetjmp=no
21672 rm -rf conftest.dSYM
21673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21674 conftest$ac_exeext conftest.$ac_ext
21676 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21677 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21678 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21680 cat >>confdefs.h <<\_ACEOF
21681 #define HAVE_SIGSETJMP 1
21686 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21687 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21688 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21689 $as_echo_n "(cached) " >&6
21691 cat >conftest.$ac_ext <<_ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21697 #include <signal.h>
21698 /* NetBSD declares sys_siglist in unistd.h. */
21699 #ifdef HAVE_UNISTD_H
21700 # include <unistd.h>
21707 #ifndef sys_siglist
21708 (void) sys_siglist;
21715 rm -f conftest.$ac_objext
21716 if { (ac_try="$ac_compile"
21717 case "(($ac_try" in
21718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719 *) ac_try_echo=$ac_try;;
21721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21722 $as_echo "$ac_try_echo") >&5
21723 (eval "$ac_compile") 2>conftest.er1
21725 grep -v '^ *+' conftest.er1 >conftest.err
21727 cat conftest.err >&5
21728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); } && {
21730 test -z "$ac_c_werror_flag" ||
21731 test ! -s conftest.err
21732 } && test -s conftest.$ac_objext; then
21733 ac_cv_have_decl_sys_siglist=yes
21735 $as_echo "$as_me: failed program was:" >&5
21736 sed 's/^/| /' conftest.$ac_ext >&5
21738 ac_cv_have_decl_sys_siglist=no
21741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21743 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21744 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21745 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21747 cat >>confdefs.h <<_ACEOF
21748 #define HAVE_DECL_SYS_SIGLIST 1
21753 cat >>confdefs.h <<_ACEOF
21754 #define HAVE_DECL_SYS_SIGLIST 0
21763 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21764 $as_echo_n "checking for syslog... " >&6; }
21765 if test "${ac_cv_func_syslog+set}" = set; then
21766 $as_echo_n "(cached) " >&6
21768 cat >conftest.$ac_ext <<_ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h. */
21774 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21776 #define syslog innocuous_syslog
21778 /* System header to define __stub macros and hopefully few prototypes,
21779 which can conflict with char syslog (); below.
21780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21781 <limits.h> exists even on freestanding compilers. */
21784 # include <limits.h>
21786 # include <assert.h>
21791 /* Override any GCC internal prototype to avoid an error.
21792 Use char because int might match the return type of a GCC
21793 builtin and then its argument prototype would still apply. */
21798 /* The GNU C library defines this for functions which it implements
21799 to always fail with ENOSYS. Some functions are actually named
21800 something starting with __ and the normal name is an alias. */
21801 #if defined __stub_syslog || defined __stub___syslog
21813 rm -f conftest.$ac_objext conftest$ac_exeext
21814 if { (ac_try="$ac_link"
21815 case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21820 $as_echo "$ac_try_echo") >&5
21821 (eval "$ac_link") 2>conftest.er1
21823 grep -v '^ *+' conftest.er1 >conftest.err
21825 cat conftest.err >&5
21826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } && {
21828 test -z "$ac_c_werror_flag" ||
21829 test ! -s conftest.err
21830 } && test -s conftest$ac_exeext && {
21831 test "$cross_compiling" = yes ||
21832 $as_test_x conftest$ac_exeext
21834 ac_cv_func_syslog=yes
21836 $as_echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21839 ac_cv_func_syslog=no
21842 rm -rf conftest.dSYM
21843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21844 conftest$ac_exeext conftest.$ac_ext
21846 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21847 $as_echo "$ac_cv_func_syslog" >&6; }
21848 if test "x$ac_cv_func_syslog" = x""yes; then
21849 if test "${ac_cv_header_syslog_h+set}" = set; then
21850 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21851 $as_echo_n "checking for syslog.h... " >&6; }
21852 if test "${ac_cv_header_syslog_h+set}" = set; then
21853 $as_echo_n "(cached) " >&6
21855 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21856 $as_echo "$ac_cv_header_syslog_h" >&6; }
21858 # Is the header compilable?
21859 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21860 $as_echo_n "checking syslog.h usability... " >&6; }
21861 cat >conftest.$ac_ext <<_ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 $ac_includes_default
21868 #include <syslog.h>
21870 rm -f conftest.$ac_objext
21871 if { (ac_try="$ac_compile"
21872 case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21877 $as_echo "$ac_try_echo") >&5
21878 (eval "$ac_compile") 2>conftest.er1
21880 grep -v '^ *+' conftest.er1 >conftest.err
21882 cat conftest.err >&5
21883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } && {
21885 test -z "$ac_c_werror_flag" ||
21886 test ! -s conftest.err
21887 } && test -s conftest.$ac_objext; then
21888 ac_header_compiler=yes
21890 $as_echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21893 ac_header_compiler=no
21896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21897 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21898 $as_echo "$ac_header_compiler" >&6; }
21900 # Is the header present?
21901 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21902 $as_echo_n "checking syslog.h presence... " >&6; }
21903 cat >conftest.$ac_ext <<_ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21909 #include <syslog.h>
21911 if { (ac_try="$ac_cpp conftest.$ac_ext"
21912 case "(($ac_try" in
21913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914 *) ac_try_echo=$ac_try;;
21916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21917 $as_echo "$ac_try_echo") >&5
21918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21920 grep -v '^ *+' conftest.er1 >conftest.err
21922 cat conftest.err >&5
21923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } >/dev/null && {
21925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21926 test ! -s conftest.err
21928 ac_header_preproc=yes
21930 $as_echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 ac_header_preproc=no
21936 rm -f conftest.err conftest.$ac_ext
21937 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21938 $as_echo "$ac_header_preproc" >&6; }
21940 # So? What about this header?
21941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21943 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21944 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21945 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21946 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21947 ac_header_preproc=yes
21950 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21951 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21952 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
21953 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
21954 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21955 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21956 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
21957 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
21958 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21959 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21960 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21961 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21963 ## ---------------------------------------- ##
21964 ## Report this to pgsql-bugs@postgresql.org ##
21965 ## ---------------------------------------- ##
21967 ) | sed "s/^/$as_me: WARNING: /" >&2
21970 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21971 $as_echo_n "checking for syslog.h... " >&6; }
21972 if test "${ac_cv_header_syslog_h+set}" = set; then
21973 $as_echo_n "(cached) " >&6
21975 ac_cv_header_syslog_h=$ac_header_preproc
21977 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21978 $as_echo "$ac_cv_header_syslog_h" >&6; }
21981 if test "x$ac_cv_header_syslog_h" = x""yes; then
21983 cat >>confdefs.h <<\_ACEOF
21984 #define HAVE_SYSLOG 1
21993 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21994 $as_echo_n "checking for opterr... " >&6; }
21995 if test "${pgac_cv_var_int_opterr+set}" = set; then
21996 $as_echo_n "(cached) " >&6
21998 cat >conftest.$ac_ext <<_ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h. */
22004 #include <unistd.h>
22008 extern int opterr; opterr = 1;
22013 rm -f conftest.$ac_objext conftest$ac_exeext
22014 if { (ac_try="$ac_link"
22015 case "(($ac_try" in
22016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017 *) ac_try_echo=$ac_try;;
22019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22020 $as_echo "$ac_try_echo") >&5
22021 (eval "$ac_link") 2>conftest.er1
22023 grep -v '^ *+' conftest.er1 >conftest.err
22025 cat conftest.err >&5
22026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } && {
22028 test -z "$ac_c_werror_flag" ||
22029 test ! -s conftest.err
22030 } && test -s conftest$ac_exeext && {
22031 test "$cross_compiling" = yes ||
22032 $as_test_x conftest$ac_exeext
22034 pgac_cv_var_int_opterr=yes
22036 $as_echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22039 pgac_cv_var_int_opterr=no
22042 rm -rf conftest.dSYM
22043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22044 conftest$ac_exeext conftest.$ac_ext
22046 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22047 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22048 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22050 cat >>confdefs.h <<\_ACEOF
22051 #define HAVE_INT_OPTERR 1
22056 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22057 $as_echo_n "checking for optreset... " >&6; }
22058 if test "${pgac_cv_var_int_optreset+set}" = set; then
22059 $as_echo_n "(cached) " >&6
22061 cat >conftest.$ac_ext <<_ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 #include <unistd.h>
22071 extern int optreset; optreset = 1;
22076 rm -f conftest.$ac_objext conftest$ac_exeext
22077 if { (ac_try="$ac_link"
22078 case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22083 $as_echo "$ac_try_echo") >&5
22084 (eval "$ac_link") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest$ac_exeext && {
22094 test "$cross_compiling" = yes ||
22095 $as_test_x conftest$ac_exeext
22097 pgac_cv_var_int_optreset=yes
22099 $as_echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22102 pgac_cv_var_int_optreset=no
22105 rm -rf conftest.dSYM
22106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22107 conftest$ac_exeext conftest.$ac_ext
22109 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22110 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22111 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22113 cat >>confdefs.h <<\_ACEOF
22114 #define HAVE_INT_OPTRESET 1
22121 for ac_func in strtoll strtoq
22123 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22124 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22125 $as_echo_n "checking for $ac_func... " >&6; }
22126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22127 $as_echo_n "(cached) " >&6
22129 cat >conftest.$ac_ext <<_ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h. */
22135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22137 #define $ac_func innocuous_$ac_func
22139 /* System header to define __stub macros and hopefully few prototypes,
22140 which can conflict with char $ac_func (); below.
22141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22142 <limits.h> exists even on freestanding compilers. */
22145 # include <limits.h>
22147 # include <assert.h>
22152 /* Override any GCC internal prototype to avoid an error.
22153 Use char because int might match the return type of a GCC
22154 builtin and then its argument prototype would still apply. */
22159 /* The GNU C library defines this for functions which it implements
22160 to always fail with ENOSYS. Some functions are actually named
22161 something starting with __ and the normal name is an alias. */
22162 #if defined __stub_$ac_func || defined __stub___$ac_func
22169 return $ac_func ();
22174 rm -f conftest.$ac_objext conftest$ac_exeext
22175 if { (ac_try="$ac_link"
22176 case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22181 $as_echo "$ac_try_echo") >&5
22182 (eval "$ac_link") 2>conftest.er1
22184 grep -v '^ *+' conftest.er1 >conftest.err
22186 cat conftest.err >&5
22187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); } && {
22189 test -z "$ac_c_werror_flag" ||
22190 test ! -s conftest.err
22191 } && test -s conftest$ac_exeext && {
22192 test "$cross_compiling" = yes ||
22193 $as_test_x conftest$ac_exeext
22195 eval "$as_ac_var=yes"
22197 $as_echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22200 eval "$as_ac_var=no"
22203 rm -rf conftest.dSYM
22204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22205 conftest$ac_exeext conftest.$ac_ext
22207 ac_res=`eval 'as_val=${'$as_ac_var'}
22208 $as_echo "$as_val"'`
22209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22210 $as_echo "$ac_res" >&6; }
22211 as_val=`eval 'as_val=${'$as_ac_var'}
22212 $as_echo "$as_val"'`
22213 if test "x$as_val" = x""yes; then
22214 cat >>confdefs.h <<_ACEOF
22215 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22223 for ac_func in strtoull strtouq
22225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22226 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22227 $as_echo_n "checking for $ac_func... " >&6; }
22228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22229 $as_echo_n "(cached) " >&6
22231 cat >conftest.$ac_ext <<_ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h. */
22237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22239 #define $ac_func innocuous_$ac_func
22241 /* System header to define __stub macros and hopefully few prototypes,
22242 which can conflict with char $ac_func (); below.
22243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22244 <limits.h> exists even on freestanding compilers. */
22247 # include <limits.h>
22249 # include <assert.h>
22254 /* Override any GCC internal prototype to avoid an error.
22255 Use char because int might match the return type of a GCC
22256 builtin and then its argument prototype would still apply. */
22261 /* The GNU C library defines this for functions which it implements
22262 to always fail with ENOSYS. Some functions are actually named
22263 something starting with __ and the normal name is an alias. */
22264 #if defined __stub_$ac_func || defined __stub___$ac_func
22271 return $ac_func ();
22276 rm -f conftest.$ac_objext conftest$ac_exeext
22277 if { (ac_try="$ac_link"
22278 case "(($ac_try" in
22279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280 *) ac_try_echo=$ac_try;;
22282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22283 $as_echo "$ac_try_echo") >&5
22284 (eval "$ac_link") 2>conftest.er1
22286 grep -v '^ *+' conftest.er1 >conftest.err
22288 cat conftest.err >&5
22289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } && {
22291 test -z "$ac_c_werror_flag" ||
22292 test ! -s conftest.err
22293 } && test -s conftest$ac_exeext && {
22294 test "$cross_compiling" = yes ||
22295 $as_test_x conftest$ac_exeext
22297 eval "$as_ac_var=yes"
22299 $as_echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22302 eval "$as_ac_var=no"
22305 rm -rf conftest.dSYM
22306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22307 conftest$ac_exeext conftest.$ac_ext
22309 ac_res=`eval 'as_val=${'$as_ac_var'}
22310 $as_echo "$as_val"'`
22311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22312 $as_echo "$ac_res" >&6; }
22313 as_val=`eval 'as_val=${'$as_ac_var'}
22314 $as_echo "$as_val"'`
22315 if test "x$as_val" = x""yes; then
22316 cat >>confdefs.h <<_ACEOF
22317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22324 # Check for one of atexit() or on_exit()
22326 for ac_func in atexit
22328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22329 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22330 $as_echo_n "checking for $ac_func... " >&6; }
22331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22332 $as_echo_n "(cached) " >&6
22334 cat >conftest.$ac_ext <<_ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22342 #define $ac_func innocuous_$ac_func
22344 /* System header to define __stub macros and hopefully few prototypes,
22345 which can conflict with char $ac_func (); below.
22346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22347 <limits.h> exists even on freestanding compilers. */
22350 # include <limits.h>
22352 # include <assert.h>
22357 /* Override any GCC internal prototype to avoid an error.
22358 Use char because int might match the return type of a GCC
22359 builtin and then its argument prototype would still apply. */
22364 /* The GNU C library defines this for functions which it implements
22365 to always fail with ENOSYS. Some functions are actually named
22366 something starting with __ and the normal name is an alias. */
22367 #if defined __stub_$ac_func || defined __stub___$ac_func
22374 return $ac_func ();
22379 rm -f conftest.$ac_objext conftest$ac_exeext
22380 if { (ac_try="$ac_link"
22381 case "(($ac_try" in
22382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22383 *) ac_try_echo=$ac_try;;
22385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22386 $as_echo "$ac_try_echo") >&5
22387 (eval "$ac_link") 2>conftest.er1
22389 grep -v '^ *+' conftest.er1 >conftest.err
22391 cat conftest.err >&5
22392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } && {
22394 test -z "$ac_c_werror_flag" ||
22395 test ! -s conftest.err
22396 } && test -s conftest$ac_exeext && {
22397 test "$cross_compiling" = yes ||
22398 $as_test_x conftest$ac_exeext
22400 eval "$as_ac_var=yes"
22402 $as_echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22405 eval "$as_ac_var=no"
22408 rm -rf conftest.dSYM
22409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22410 conftest$ac_exeext conftest.$ac_ext
22412 ac_res=`eval 'as_val=${'$as_ac_var'}
22413 $as_echo "$as_val"'`
22414 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22415 $as_echo "$ac_res" >&6; }
22416 as_val=`eval 'as_val=${'$as_ac_var'}
22417 $as_echo "$as_val"'`
22418 if test "x$as_val" = x""yes; then
22419 cat >>confdefs.h <<_ACEOF
22420 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22425 for ac_func in on_exit
22427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22428 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22429 $as_echo_n "checking for $ac_func... " >&6; }
22430 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22431 $as_echo_n "(cached) " >&6
22433 cat >conftest.$ac_ext <<_ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22441 #define $ac_func innocuous_$ac_func
22443 /* System header to define __stub macros and hopefully few prototypes,
22444 which can conflict with char $ac_func (); below.
22445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22446 <limits.h> exists even on freestanding compilers. */
22449 # include <limits.h>
22451 # include <assert.h>
22456 /* Override any GCC internal prototype to avoid an error.
22457 Use char because int might match the return type of a GCC
22458 builtin and then its argument prototype would still apply. */
22463 /* The GNU C library defines this for functions which it implements
22464 to always fail with ENOSYS. Some functions are actually named
22465 something starting with __ and the normal name is an alias. */
22466 #if defined __stub_$ac_func || defined __stub___$ac_func
22473 return $ac_func ();
22478 rm -f conftest.$ac_objext conftest$ac_exeext
22479 if { (ac_try="$ac_link"
22480 case "(($ac_try" in
22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482 *) ac_try_echo=$ac_try;;
22484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22485 $as_echo "$ac_try_echo") >&5
22486 (eval "$ac_link") 2>conftest.er1
22488 grep -v '^ *+' conftest.er1 >conftest.err
22490 cat conftest.err >&5
22491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); } && {
22493 test -z "$ac_c_werror_flag" ||
22494 test ! -s conftest.err
22495 } && test -s conftest$ac_exeext && {
22496 test "$cross_compiling" = yes ||
22497 $as_test_x conftest$ac_exeext
22499 eval "$as_ac_var=yes"
22501 $as_echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 eval "$as_ac_var=no"
22507 rm -rf conftest.dSYM
22508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22509 conftest$ac_exeext conftest.$ac_ext
22511 ac_res=`eval 'as_val=${'$as_ac_var'}
22512 $as_echo "$as_val"'`
22513 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22514 $as_echo "$ac_res" >&6; }
22515 as_val=`eval 'as_val=${'$as_ac_var'}
22516 $as_echo "$as_val"'`
22517 if test "x$as_val" = x""yes; then
22518 cat >>confdefs.h <<_ACEOF
22519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22523 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22524 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22525 { (exit 1); exit 1; }; }
22537 # For each platform, we need to know about any special compile and link
22538 # libraries, and whether the normal C function names are thread-safe.
22539 # See the comment at the top of src/port/thread.c for more information.
22540 # WIN32 doesn't need the pthread tests; it always uses threads
22541 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22546 ac_cpp='$CPP $CPPFLAGS'
22547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22553 # We used to check for pthread.h first, but this fails if pthread.h
22554 # requires special compiler flags (e.g. on True64 or Sequent).
22555 # It gets checked for in the link test anyway.
22557 # First of all, check if the user has set any of the PTHREAD_LIBS,
22558 # etcetera environment variables, and if threads linking works using
22560 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22561 save_CFLAGS="$CFLAGS"
22562 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22564 LIBS="$PTHREAD_LIBS $LIBS"
22565 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22566 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22567 cat >conftest.$ac_ext <<_ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22574 /* Override any GCC internal prototype to avoid an error.
22575 Use char because int might match the return type of a GCC
22576 builtin and then its argument prototype would still apply. */
22580 char pthread_join ();
22584 return pthread_join ();
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (ac_try="$ac_link"
22591 case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22596 $as_echo "$ac_try_echo") >&5
22597 (eval "$ac_link") 2>conftest.er1
22599 grep -v '^ *+' conftest.er1 >conftest.err
22601 cat conftest.err >&5
22602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } && {
22604 test -z "$ac_c_werror_flag" ||
22605 test ! -s conftest.err
22606 } && test -s conftest$ac_exeext && {
22607 test "$cross_compiling" = yes ||
22608 $as_test_x conftest$ac_exeext
22612 $as_echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22618 rm -rf conftest.dSYM
22619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22620 conftest$ac_exeext conftest.$ac_ext
22621 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22622 $as_echo "$acx_pthread_ok" >&6; }
22623 if test x"$acx_pthread_ok" = xno; then
22628 CFLAGS="$save_CFLAGS"
22631 # We must check for the threads library under a number of different
22632 # names; the ordering is very important because some systems
22633 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22634 # libraries is broken (non-POSIX).
22636 # Create a list of thread flags to try. Items starting with a "-" are
22637 # C compiler flags, and other items are library names, except for "none"
22638 # which indicates that we try without any flags at all, and "pthread-config"
22639 # which is a program returning the flags for the Pth emulation library.
22641 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22643 # The ordering *is* (sometimes) important. Some notes on the
22644 # individual items follow:
22646 # pthreads: AIX (must check this before -lpthread)
22647 # none: in case threads are in libc; should be tried before -Kthread and
22648 # other compiler flags to prevent continual compiler warnings
22649 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22650 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22651 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22652 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22653 # -pthreads: Solaris/gcc
22654 # -mthreads: Mingw32/gcc, Lynx/gcc
22655 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22656 # doesn't hurt to check since this sometimes defines pthreads too;
22657 # also defines -D_REENTRANT)
22658 # pthread: Linux, etcetera
22659 # --thread-safe: KAI C++
22660 # pthread-config: use pthread-config program (for GNU Pth library)
22662 case "${host_cpu}-${host_os}" in
22665 # On Solaris (at least, for some versions), libc contains stubbed
22666 # (non-functional) versions of the pthreads routines, so link-based
22667 # tests will erroneously succeed. (We need to link with -pthread or
22668 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22669 # a function called by this macro, so we could check for that, but
22670 # who knows whether they'll stub that too in a future libc.) So,
22671 # we'll just look for -pthreads and -lpthread first:
22673 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22677 if test x"$acx_pthread_ok" = xno; then
22678 for flag in $acx_pthread_flags; do
22680 tryPTHREAD_CFLAGS=""
22684 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22685 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22689 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22690 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22691 tryPTHREAD_CFLAGS="$flag"
22695 # skip this if we already have flags defined, for PostgreSQL
22696 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22697 # Extract the first word of "pthread-config", so it can be a program name with args.
22698 set dummy pthread-config; ac_word=$2
22699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22700 $as_echo_n "checking for $ac_word... " >&6; }
22701 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22702 $as_echo_n "(cached) " >&6
22704 if test -n "$acx_pthread_config"; then
22705 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22708 for as_dir in $PATH
22711 test -z "$as_dir" && as_dir=.
22712 for ac_exec_ext in '' $ac_executable_extensions; do
22713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22714 ac_cv_prog_acx_pthread_config="yes"
22715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22722 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22725 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22726 if test -n "$acx_pthread_config"; then
22727 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22728 $as_echo "$acx_pthread_config" >&6; }
22730 { $as_echo "$as_me:$LINENO: result: no" >&5
22731 $as_echo "no" >&6; }
22735 if test x"$acx_pthread_config" = xno; then continue; fi
22736 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22737 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22741 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22742 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22743 tryPTHREAD_LIBS="-l$flag"
22748 save_CFLAGS="$CFLAGS"
22749 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22750 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22752 # Check for various functions. We must include pthread.h,
22753 # since some functions may be macros. (On the Sequent, we
22754 # need a special flag -Kthread to make this header compile.)
22755 # We check for pthread_join because it is in -lpthread on IRIX
22756 # while pthread_create is in libc. We check for pthread_attr_init
22757 # due to DEC craziness with -lpthreads. We check for
22758 # pthread_cleanup_push because it is one of the few pthread
22759 # functions on Solaris that doesn't have a non-functional libc stub.
22760 # We try pthread_create on general principles.
22761 cat >conftest.$ac_ext <<_ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22767 #include <pthread.h>
22771 pthread_t th; pthread_join(th, 0);
22772 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22773 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22778 rm -f conftest.$ac_objext conftest$ac_exeext
22779 if { (ac_try="$ac_link"
22780 case "(($ac_try" in
22781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22782 *) ac_try_echo=$ac_try;;
22784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22785 $as_echo "$ac_try_echo") >&5
22786 (eval "$ac_link") 2>conftest.er1
22788 grep -v '^ *+' conftest.er1 >conftest.err
22790 cat conftest.err >&5
22791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } && {
22793 test -z "$ac_c_werror_flag" ||
22794 test ! -s conftest.err
22795 } && test -s conftest$ac_exeext && {
22796 test "$cross_compiling" = yes ||
22797 $as_test_x conftest$ac_exeext
22801 $as_echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22807 rm -rf conftest.dSYM
22808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22809 conftest$ac_exeext conftest.$ac_ext
22811 if test "x$acx_pthread_ok" = xyes; then
22812 # Don't use options that are ignored by the compiler.
22813 # We find them by checking stderror.
22814 cat >conftest.$ac_ext <<_ACEOF
22816 main (int argc, char **argv)
22823 rm -f conftest.$ac_objext conftest$ac_exeext
22824 # Check both linking and compiling, because they might tolerate different options.
22825 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22826 # we continue with more flags because Linux needs -lpthread
22827 # for libpq builds on PostgreSQL. The test above only
22828 # tests for building binaries, not shared libraries.
22829 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22830 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22831 else acx_pthread_ok=no
22836 CFLAGS="$save_CFLAGS"
22838 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22839 $as_echo "$acx_pthread_ok" >&6; }
22843 # Various other checks:
22844 if test "x$acx_pthread_ok" = xyes; then
22846 LIBS="$PTHREAD_LIBS $LIBS"
22847 save_CFLAGS="$CFLAGS"
22848 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22850 # Detect AIX lossage: threads are created detached by default
22851 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22852 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22853 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22854 cat >conftest.$ac_ext <<_ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h. */
22860 #include <pthread.h>
22864 int attr=PTHREAD_CREATE_JOINABLE;
22869 rm -f conftest.$ac_objext conftest$ac_exeext
22870 if { (ac_try="$ac_link"
22871 case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22876 $as_echo "$ac_try_echo") >&5
22877 (eval "$ac_link") 2>conftest.er1
22879 grep -v '^ *+' conftest.er1 >conftest.err
22881 cat conftest.err >&5
22882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } && {
22884 test -z "$ac_c_werror_flag" ||
22885 test ! -s conftest.err
22886 } && test -s conftest$ac_exeext && {
22887 test "$cross_compiling" = yes ||
22888 $as_test_x conftest$ac_exeext
22890 ok=PTHREAD_CREATE_JOINABLE
22892 $as_echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22898 rm -rf conftest.dSYM
22899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22900 conftest$ac_exeext conftest.$ac_ext
22901 if test x"$ok" = xunknown; then
22902 cat >conftest.$ac_ext <<_ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h. */
22908 #include <pthread.h>
22912 int attr=PTHREAD_CREATE_UNDETACHED;
22917 rm -f conftest.$ac_objext conftest$ac_exeext
22918 if { (ac_try="$ac_link"
22919 case "(($ac_try" in
22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921 *) ac_try_echo=$ac_try;;
22923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22924 $as_echo "$ac_try_echo") >&5
22925 (eval "$ac_link") 2>conftest.er1
22927 grep -v '^ *+' conftest.er1 >conftest.err
22929 cat conftest.err >&5
22930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } && {
22932 test -z "$ac_c_werror_flag" ||
22933 test ! -s conftest.err
22934 } && test -s conftest$ac_exeext && {
22935 test "$cross_compiling" = yes ||
22936 $as_test_x conftest$ac_exeext
22938 ok=PTHREAD_CREATE_UNDETACHED
22940 $as_echo "$as_me: failed program was:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22946 rm -rf conftest.dSYM
22947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22948 conftest$ac_exeext conftest.$ac_ext
22950 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22952 cat >>confdefs.h <<\_ACEOF
22953 #define PTHREAD_CREATE_JOINABLE $ok
22957 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22958 $as_echo "${ok}" >&6; }
22959 if test x"$ok" = xunknown; then
22960 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22961 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22964 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22965 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22967 # We always add these in PostgreSQL
22968 # case "${host_cpu}-${host_os}" in
22969 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22970 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22972 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22973 $as_echo "${flag}" >&6; }
22974 if test "x$flag" != xno; then
22975 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22979 CFLAGS="$save_CFLAGS"
22981 # Supporting cc_r would require a special CC in all places that
22982 # use libpq, and that is ugly, so we don't do it. Users can still
22983 # define their compiler as cc_r to do thread builds of everything.
22984 # More AIX lossage: must compile with cc_r
22985 # Extract the first word of "cc_r", so it can be a program name with args.
22986 set dummy cc_r; ac_word=$2
22987 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22988 $as_echo_n "checking for $ac_word... " >&6; }
22989 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22990 $as_echo_n "(cached) " >&6
22992 if test -n "$PTHREAD_CC"; then
22993 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22996 for as_dir in $PATH
22999 test -z "$as_dir" && as_dir=.
23000 for ac_exec_ext in '' $ac_executable_extensions; do
23001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23002 ac_cv_prog_PTHREAD_CC="cc_r"
23003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23010 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23013 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23014 if test -n "$PTHREAD_CC"; then
23015 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23016 $as_echo "$PTHREAD_CC" >&6; }
23018 { $as_echo "$as_me:$LINENO: result: no" >&5
23019 $as_echo "no" >&6; }
23031 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23032 if test x"$acx_pthread_ok" = xyes; then
23034 cat >>confdefs.h <<\_ACEOF
23035 #define HAVE_PTHREAD 1
23044 ac_cpp='$CPP $CPPFLAGS'
23045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23051 # Some platforms use these, so just define them. They can't hurt if they
23052 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23053 # enables 5-arg getpwuid_r, among other things.
23054 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23057 # At this point, we don't want to muck with the compiler name for threading.
23058 # Let's see who fails, perhaps AIX. 2004-04-23
23059 if test "$PTHREAD_CC" != "$CC"; then
23060 { { $as_echo "$as_me:$LINENO: error:
23061 PostgreSQL does not support platforms that require a special compiler
23062 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23063 $as_echo "$as_me: error:
23064 PostgreSQL does not support platforms that require a special compiler
23065 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23066 { (exit 1); exit 1; }; }
23069 # Check for *_r functions
23072 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23073 LIBS="$LIBS $PTHREAD_LIBS"
23075 if test "$PORTNAME" != "win32"; then
23076 if test "${ac_cv_header_pthread_h+set}" = set; then
23077 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23078 $as_echo_n "checking for pthread.h... " >&6; }
23079 if test "${ac_cv_header_pthread_h+set}" = set; then
23080 $as_echo_n "(cached) " >&6
23082 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23083 $as_echo "$ac_cv_header_pthread_h" >&6; }
23085 # Is the header compilable?
23086 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23087 $as_echo_n "checking pthread.h usability... " >&6; }
23088 cat >conftest.$ac_ext <<_ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h. */
23094 $ac_includes_default
23095 #include <pthread.h>
23097 rm -f conftest.$ac_objext
23098 if { (ac_try="$ac_compile"
23099 case "(($ac_try" in
23100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23101 *) ac_try_echo=$ac_try;;
23103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23104 $as_echo "$ac_try_echo") >&5
23105 (eval "$ac_compile") 2>conftest.er1
23107 grep -v '^ *+' conftest.er1 >conftest.err
23109 cat conftest.err >&5
23110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); } && {
23112 test -z "$ac_c_werror_flag" ||
23113 test ! -s conftest.err
23114 } && test -s conftest.$ac_objext; then
23115 ac_header_compiler=yes
23117 $as_echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23120 ac_header_compiler=no
23123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23124 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23125 $as_echo "$ac_header_compiler" >&6; }
23127 # Is the header present?
23128 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23129 $as_echo_n "checking pthread.h presence... " >&6; }
23130 cat >conftest.$ac_ext <<_ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h. */
23136 #include <pthread.h>
23138 if { (ac_try="$ac_cpp conftest.$ac_ext"
23139 case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23144 $as_echo "$ac_try_echo") >&5
23145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23147 grep -v '^ *+' conftest.er1 >conftest.err
23149 cat conftest.err >&5
23150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } >/dev/null && {
23152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23153 test ! -s conftest.err
23155 ac_header_preproc=yes
23157 $as_echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23160 ac_header_preproc=no
23163 rm -f conftest.err conftest.$ac_ext
23164 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23165 $as_echo "$ac_header_preproc" >&6; }
23167 # So? What about this header?
23168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23170 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23171 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23172 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23173 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23174 ac_header_preproc=yes
23177 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23178 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23179 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23180 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23181 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23182 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23183 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23184 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23185 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23186 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23187 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23188 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23190 ## ---------------------------------------- ##
23191 ## Report this to pgsql-bugs@postgresql.org ##
23192 ## ---------------------------------------- ##
23194 ) | sed "s/^/$as_me: WARNING: /" >&2
23197 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23198 $as_echo_n "checking for pthread.h... " >&6; }
23199 if test "${ac_cv_header_pthread_h+set}" = set; then
23200 $as_echo_n "(cached) " >&6
23202 ac_cv_header_pthread_h=$ac_header_preproc
23204 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23205 $as_echo "$ac_cv_header_pthread_h" >&6; }
23208 if test "x$ac_cv_header_pthread_h" = x""yes; then
23211 { { $as_echo "$as_me:$LINENO: error:
23212 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23213 $as_echo "$as_me: error:
23214 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23215 { (exit 1); exit 1; }; }
23224 for ac_func in strerror_r getpwuid_r gethostbyname_r
23226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23227 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23228 $as_echo_n "checking for $ac_func... " >&6; }
23229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23230 $as_echo_n "(cached) " >&6
23232 cat >conftest.$ac_ext <<_ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h. */
23238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23240 #define $ac_func innocuous_$ac_func
23242 /* System header to define __stub macros and hopefully few prototypes,
23243 which can conflict with char $ac_func (); below.
23244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23245 <limits.h> exists even on freestanding compilers. */
23248 # include <limits.h>
23250 # include <assert.h>
23255 /* Override any GCC internal prototype to avoid an error.
23256 Use char because int might match the return type of a GCC
23257 builtin and then its argument prototype would still apply. */
23262 /* The GNU C library defines this for functions which it implements
23263 to always fail with ENOSYS. Some functions are actually named
23264 something starting with __ and the normal name is an alias. */
23265 #if defined __stub_$ac_func || defined __stub___$ac_func
23272 return $ac_func ();
23277 rm -f conftest.$ac_objext conftest$ac_exeext
23278 if { (ac_try="$ac_link"
23279 case "(($ac_try" in
23280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23284 $as_echo "$ac_try_echo") >&5
23285 (eval "$ac_link") 2>conftest.er1
23287 grep -v '^ *+' conftest.er1 >conftest.err
23289 cat conftest.err >&5
23290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } && {
23292 test -z "$ac_c_werror_flag" ||
23293 test ! -s conftest.err
23294 } && test -s conftest$ac_exeext && {
23295 test "$cross_compiling" = yes ||
23296 $as_test_x conftest$ac_exeext
23298 eval "$as_ac_var=yes"
23300 $as_echo "$as_me: failed program was:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23303 eval "$as_ac_var=no"
23306 rm -rf conftest.dSYM
23307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23308 conftest$ac_exeext conftest.$ac_ext
23310 ac_res=`eval 'as_val=${'$as_ac_var'}
23311 $as_echo "$as_val"'`
23312 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23313 $as_echo "$ac_res" >&6; }
23314 as_val=`eval 'as_val=${'$as_ac_var'}
23315 $as_echo "$as_val"'`
23316 if test "x$as_val" = x""yes; then
23317 cat >>confdefs.h <<_ACEOF
23318 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23325 # Do test here with the proper thread flags
23326 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23327 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23328 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23329 $as_echo_n "(cached) " >&6
23331 cat >conftest.$ac_ext <<_ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23337 #include <sys/types.h>
23343 struct passwd *space;
23346 struct passwd **result;
23347 getpwuid_r(uid, space, buf, bufsize, result);
23352 rm -f conftest.$ac_objext
23353 if { (ac_try="$ac_compile"
23354 case "(($ac_try" in
23355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356 *) ac_try_echo=$ac_try;;
23358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23359 $as_echo "$ac_try_echo") >&5
23360 (eval "$ac_compile") 2>conftest.er1
23362 grep -v '^ *+' conftest.er1 >conftest.err
23364 cat conftest.err >&5
23365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); } && {
23367 test -z "$ac_c_werror_flag" ||
23368 test ! -s conftest.err
23369 } && test -s conftest.$ac_objext; then
23370 pgac_cv_func_getpwuid_r_5arg=yes
23372 $as_echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23375 pgac_cv_func_getpwuid_r_5arg=no
23378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23380 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23381 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23382 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23384 cat >>confdefs.h <<\_ACEOF
23385 #define GETPWUID_R_5ARG /**/
23390 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23391 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23392 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23393 $as_echo_n "(cached) " >&6
23395 cat >conftest.$ac_ext <<_ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h. */
23401 #include <string.h>
23406 int strerror_r(int, char *, size_t);
23408 /* Older AIX has 'int' for the third argument so we don't test the args. */
23415 rm -f conftest.$ac_objext
23416 if { (ac_try="$ac_compile"
23417 case "(($ac_try" in
23418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419 *) ac_try_echo=$ac_try;;
23421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23422 $as_echo "$ac_try_echo") >&5
23423 (eval "$ac_compile") 2>conftest.er1
23425 grep -v '^ *+' conftest.er1 >conftest.err
23427 cat conftest.err >&5
23428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); } && {
23430 test -z "$ac_c_werror_flag" ||
23431 test ! -s conftest.err
23432 } && test -s conftest.$ac_objext; then
23433 pgac_cv_func_strerror_r_int=yes
23435 $as_echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23438 pgac_cv_func_strerror_r_int=no
23441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23444 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23445 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23447 cat >>confdefs.h <<\_ACEOF
23448 #define STRERROR_R_INT /**/
23458 # do not use values from template file
23467 # We can test for libldap_r only after we know PTHREAD_LIBS
23468 if test "$with_ldap" = yes ; then
23470 if test "$PORTNAME" != "win32"; then
23472 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23473 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23474 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23475 $as_echo_n "(cached) " >&6
23477 ac_check_lib_save_LIBS=$LIBS
23478 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23479 cat >conftest.$ac_ext <<_ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h. */
23486 /* Override any GCC internal prototype to avoid an error.
23487 Use char because int might match the return type of a GCC
23488 builtin and then its argument prototype would still apply. */
23496 return ldap_bind ();
23501 rm -f conftest.$ac_objext conftest$ac_exeext
23502 if { (ac_try="$ac_link"
23503 case "(($ac_try" in
23504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505 *) ac_try_echo=$ac_try;;
23507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23508 $as_echo "$ac_try_echo") >&5
23509 (eval "$ac_link") 2>conftest.er1
23511 grep -v '^ *+' conftest.er1 >conftest.err
23513 cat conftest.err >&5
23514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } && {
23516 test -z "$ac_c_werror_flag" ||
23517 test ! -s conftest.err
23518 } && test -s conftest$ac_exeext && {
23519 test "$cross_compiling" = yes ||
23520 $as_test_x conftest$ac_exeext
23522 ac_cv_lib_ldap_ldap_bind=yes
23524 $as_echo "$as_me: failed program was:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23527 ac_cv_lib_ldap_ldap_bind=no
23530 rm -rf conftest.dSYM
23531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23532 conftest$ac_exeext conftest.$ac_ext
23533 LIBS=$ac_check_lib_save_LIBS
23535 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23536 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23537 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23538 cat >>confdefs.h <<_ACEOF
23539 #define HAVE_LIBLDAP 1
23542 LIBS="-lldap $LIBS"
23545 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23546 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23547 { (exit 1); exit 1; }; }
23550 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23551 if test "$enable_thread_safety" = yes; then
23552 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23554 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23555 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23556 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23557 $as_echo_n "(cached) " >&6
23559 ac_check_lib_save_LIBS=$LIBS
23560 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23561 cat >conftest.$ac_ext <<_ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h. */
23568 /* Override any GCC internal prototype to avoid an error.
23569 Use char because int might match the return type of a GCC
23570 builtin and then its argument prototype would still apply. */
23574 char ldap_simple_bind ();
23578 return ldap_simple_bind ();
23583 rm -f conftest.$ac_objext conftest$ac_exeext
23584 if { (ac_try="$ac_link"
23585 case "(($ac_try" in
23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23590 $as_echo "$ac_try_echo") >&5
23591 (eval "$ac_link") 2>conftest.er1
23593 grep -v '^ *+' conftest.er1 >conftest.err
23595 cat conftest.err >&5
23596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } && {
23598 test -z "$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23600 } && test -s conftest$ac_exeext && {
23601 test "$cross_compiling" = yes ||
23602 $as_test_x conftest$ac_exeext
23604 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23606 $as_echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23609 ac_cv_lib_ldap_r_ldap_simple_bind=no
23612 rm -rf conftest.dSYM
23613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23614 conftest$ac_exeext conftest.$ac_ext
23615 LIBS=$ac_check_lib_save_LIBS
23617 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23618 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23619 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23620 cat >>confdefs.h <<_ACEOF
23621 #define HAVE_LIBLDAP_R 1
23624 LIBS="-lldap_r $LIBS"
23627 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23628 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23629 { (exit 1); exit 1; }; }
23632 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23634 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23638 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23639 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23640 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23641 $as_echo_n "(cached) " >&6
23643 ac_check_lib_save_LIBS=$LIBS
23644 LIBS="-lwldap32 $LIBS"
23645 cat >conftest.$ac_ext <<_ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h. */
23652 /* Override any GCC internal prototype to avoid an error.
23653 Use char because int might match the return type of a GCC
23654 builtin and then its argument prototype would still apply. */
23662 return ldap_bind ();
23667 rm -f conftest.$ac_objext conftest$ac_exeext
23668 if { (ac_try="$ac_link"
23669 case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23674 $as_echo "$ac_try_echo") >&5
23675 (eval "$ac_link") 2>conftest.er1
23677 grep -v '^ *+' conftest.er1 >conftest.err
23679 cat conftest.err >&5
23680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); } && {
23682 test -z "$ac_c_werror_flag" ||
23683 test ! -s conftest.err
23684 } && test -s conftest$ac_exeext && {
23685 test "$cross_compiling" = yes ||
23686 $as_test_x conftest$ac_exeext
23688 ac_cv_lib_wldap32_ldap_bind=yes
23690 $as_echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23693 ac_cv_lib_wldap32_ldap_bind=no
23696 rm -rf conftest.dSYM
23697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23698 conftest$ac_exeext conftest.$ac_ext
23699 LIBS=$ac_check_lib_save_LIBS
23701 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23702 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23703 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23704 cat >>confdefs.h <<_ACEOF
23705 #define HAVE_LIBWLDAP32 1
23708 LIBS="-lwldap32 $LIBS"
23711 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23712 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23713 { (exit 1); exit 1; }; }
23716 LDAP_LIBS_FE="-lwldap32"
23717 LDAP_LIBS_BE="-lwldap32"
23725 # Older versions of libxml2 lack the xmlStructuredErrorContext variable
23726 # (which could be a macro referring to a function, if threading is enabled)
23727 if test "$with_libxml" = yes ; then
23728 { $as_echo "$as_me:$LINENO: checking for xmlStructuredErrorContext" >&5
23729 $as_echo_n "checking for xmlStructuredErrorContext... " >&6; }
23730 if test "${pgac_cv_libxml_structerrctx+set}" = set; then
23731 $as_echo_n "(cached) " >&6
23733 cat >conftest.$ac_ext <<_ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23739 #include <libxml/globals.h>
23744 globptr = xmlStructuredErrorContext
23749 rm -f conftest.$ac_objext conftest$ac_exeext
23750 if { (ac_try="$ac_link"
23751 case "(($ac_try" in
23752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23753 *) ac_try_echo=$ac_try;;
23755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23756 $as_echo "$ac_try_echo") >&5
23757 (eval "$ac_link") 2>conftest.er1
23759 grep -v '^ *+' conftest.er1 >conftest.err
23761 cat conftest.err >&5
23762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); } && {
23764 test -z "$ac_c_werror_flag" ||
23765 test ! -s conftest.err
23766 } && test -s conftest$ac_exeext && {
23767 test "$cross_compiling" = yes ||
23768 $as_test_x conftest$ac_exeext
23770 pgac_cv_libxml_structerrctx=yes
23772 $as_echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23775 pgac_cv_libxml_structerrctx=no
23778 rm -rf conftest.dSYM
23779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23780 conftest$ac_exeext conftest.$ac_ext
23782 { $as_echo "$as_me:$LINENO: result: $pgac_cv_libxml_structerrctx" >&5
23783 $as_echo "$pgac_cv_libxml_structerrctx" >&6; }
23784 if test x"$pgac_cv_libxml_structerrctx" = x"yes"; then
23786 cat >>confdefs.h <<\_ACEOF
23787 #define HAVE_XMLSTRUCTUREDERRORCONTEXT 1
23794 # This test makes sure that run tests work at all. Sometimes a shared
23795 # library is found by the linker, but the runtime linker can't find it.
23796 # This check should come after all modifications of compiler or linker
23797 # variables, and before any other run tests.
23798 { $as_echo "$as_me:$LINENO: checking test program" >&5
23799 $as_echo_n "checking test program... " >&6; }
23800 if test "$cross_compiling" = yes; then
23801 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23802 $as_echo "cross-compiling" >&6; }
23804 cat >conftest.$ac_ext <<_ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h. */
23810 int main() { return 0; }
23812 rm -f conftest$ac_exeext
23813 if { (ac_try="$ac_link"
23814 case "(($ac_try" in
23815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23816 *) ac_try_echo=$ac_try;;
23818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23819 $as_echo "$ac_try_echo") >&5
23820 (eval "$ac_link") 2>&5
23822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23824 { (case "(($ac_try" in
23825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23826 *) ac_try_echo=$ac_try;;
23828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23829 $as_echo "$ac_try_echo") >&5
23830 (eval "$ac_try") 2>&5
23832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); }; }; then
23834 { $as_echo "$as_me:$LINENO: result: ok" >&5
23835 $as_echo "ok" >&6; }
23837 $as_echo "$as_me: program exited with status $ac_status" >&5
23838 $as_echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23841 ( exit $ac_status )
23842 { $as_echo "$as_me:$LINENO: result: failed" >&5
23843 $as_echo "failed" >&6; }
23844 { { $as_echo "$as_me:$LINENO: error:
23845 Could not execute a simple test program. This may be a problem
23846 related to locating shared libraries. Check the file 'config.log'
23847 for the exact reason." >&5
23848 $as_echo "$as_me: error:
23849 Could not execute a simple test program. This may be a problem
23850 related to locating shared libraries. Check the file 'config.log'
23851 for the exact reason." >&2;}
23852 { (exit 1); exit 1; }; }
23854 rm -rf conftest.dSYM
23855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23860 # --------------------
23861 # Run tests below here
23862 # --------------------
23864 # Force use of our snprintf if system's doesn't do arg control
23865 # See comment above at snprintf test for details.
23866 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23867 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23868 $as_echo_n "checking whether printf supports argument control... " >&6; }
23869 if test "${pgac_cv_printf_arg_control+set}" = set; then
23870 $as_echo_n "(cached) " >&6
23872 if test "$cross_compiling" = yes; then
23873 pgac_cv_printf_arg_control=cross
23875 cat >conftest.$ac_ext <<_ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h. */
23882 #include <string.h>
23888 /* can it swap arguments? */
23889 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23890 if (strcmp(buf, "4 3") != 0)
23895 rm -f conftest$ac_exeext
23896 if { (ac_try="$ac_link"
23897 case "(($ac_try" in
23898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23899 *) ac_try_echo=$ac_try;;
23901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23902 $as_echo "$ac_try_echo") >&5
23903 (eval "$ac_link") 2>&5
23905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23907 { (case "(($ac_try" in
23908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23909 *) ac_try_echo=$ac_try;;
23911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23912 $as_echo "$ac_try_echo") >&5
23913 (eval "$ac_try") 2>&5
23915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); }; }; then
23917 pgac_cv_printf_arg_control=yes
23919 $as_echo "$as_me: program exited with status $ac_status" >&5
23920 $as_echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23923 ( exit $ac_status )
23924 pgac_cv_printf_arg_control=no
23926 rm -rf conftest.dSYM
23927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23933 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23934 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23936 if test $pgac_cv_printf_arg_control != yes ; then
23937 pgac_need_repl_snprintf=yes
23944 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23945 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23946 if test "${pgac_cv_type_long_int_64+set}" = set; then
23947 $as_echo_n "(cached) " >&6
23949 if test "$cross_compiling" = yes; then
23950 # If cross-compiling, check the size reported by the compiler and
23951 # trust that the arithmetic works.
23952 cat >conftest.$ac_ext <<_ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23962 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23969 rm -f conftest.$ac_objext
23970 if { (ac_try="$ac_compile"
23971 case "(($ac_try" in
23972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973 *) ac_try_echo=$ac_try;;
23975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23976 $as_echo "$ac_try_echo") >&5
23977 (eval "$ac_compile") 2>conftest.er1
23979 grep -v '^ *+' conftest.er1 >conftest.err
23981 cat conftest.err >&5
23982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); } && {
23984 test -z "$ac_c_werror_flag" ||
23985 test ! -s conftest.err
23986 } && test -s conftest.$ac_objext; then
23987 pgac_cv_type_long_int_64=yes
23989 $as_echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23992 pgac_cv_type_long_int_64=no
23995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23997 cat >conftest.$ac_ext <<_ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h. */
24003 typedef long int ac_int64;
24006 * These are globals to discourage the compiler from folding all the
24007 * arithmetic tests down to compile-time constants.
24009 ac_int64 a = 20000001;
24010 ac_int64 b = 40000005;
24012 int does_int64_work()
24016 if (sizeof(ac_int64) != 8)
24017 return 0; /* definitely not the right size */
24019 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24027 exit(! does_int64_work());
24030 rm -f conftest$ac_exeext
24031 if { (ac_try="$ac_link"
24032 case "(($ac_try" in
24033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24034 *) ac_try_echo=$ac_try;;
24036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24037 $as_echo "$ac_try_echo") >&5
24038 (eval "$ac_link") 2>&5
24040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24042 { (case "(($ac_try" in
24043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044 *) ac_try_echo=$ac_try;;
24046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24047 $as_echo "$ac_try_echo") >&5
24048 (eval "$ac_try") 2>&5
24050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); }; }; then
24052 pgac_cv_type_long_int_64=yes
24054 $as_echo "$as_me: program exited with status $ac_status" >&5
24055 $as_echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24058 ( exit $ac_status )
24059 pgac_cv_type_long_int_64=no
24061 rm -rf conftest.dSYM
24062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24067 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24068 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24070 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24071 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE_LONG_INT_64 1
24080 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24081 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24082 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24083 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24084 $as_echo_n "(cached) " >&6
24086 if test "$cross_compiling" = yes; then
24087 # If cross-compiling, check the size reported by the compiler and
24088 # trust that the arithmetic works.
24089 cat >conftest.$ac_ext <<_ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h. */
24099 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24106 rm -f conftest.$ac_objext
24107 if { (ac_try="$ac_compile"
24108 case "(($ac_try" in
24109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24110 *) ac_try_echo=$ac_try;;
24112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24113 $as_echo "$ac_try_echo") >&5
24114 (eval "$ac_compile") 2>conftest.er1
24116 grep -v '^ *+' conftest.er1 >conftest.err
24118 cat conftest.err >&5
24119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); } && {
24121 test -z "$ac_c_werror_flag" ||
24122 test ! -s conftest.err
24123 } && test -s conftest.$ac_objext; then
24124 pgac_cv_type_long_long_int_64=yes
24126 $as_echo "$as_me: failed program was:" >&5
24127 sed 's/^/| /' conftest.$ac_ext >&5
24129 pgac_cv_type_long_long_int_64=no
24132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24134 cat >conftest.$ac_ext <<_ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h. */
24140 typedef long long int ac_int64;
24143 * These are globals to discourage the compiler from folding all the
24144 * arithmetic tests down to compile-time constants.
24146 ac_int64 a = 20000001;
24147 ac_int64 b = 40000005;
24149 int does_int64_work()
24153 if (sizeof(ac_int64) != 8)
24154 return 0; /* definitely not the right size */
24156 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24164 exit(! does_int64_work());
24167 rm -f conftest$ac_exeext
24168 if { (ac_try="$ac_link"
24169 case "(($ac_try" in
24170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24171 *) ac_try_echo=$ac_try;;
24173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24174 $as_echo "$ac_try_echo") >&5
24175 (eval "$ac_link") 2>&5
24177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24179 { (case "(($ac_try" in
24180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181 *) ac_try_echo=$ac_try;;
24183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24184 $as_echo "$ac_try_echo") >&5
24185 (eval "$ac_try") 2>&5
24187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); }; }; then
24189 pgac_cv_type_long_long_int_64=yes
24191 $as_echo "$as_me: program exited with status $ac_status" >&5
24192 $as_echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24195 ( exit $ac_status )
24196 pgac_cv_type_long_long_int_64=no
24198 rm -rf conftest.dSYM
24199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24204 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24205 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24207 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24208 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24210 cat >>confdefs.h <<\_ACEOF
24211 #define HAVE_LONG_LONG_INT_64 1
24216 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24217 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24218 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24219 { (exit 1); exit 1; }; }
24225 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24226 cat >conftest.$ac_ext <<_ACEOF
24229 cat confdefs.h >>conftest.$ac_ext
24230 cat >>conftest.$ac_ext <<_ACEOF
24231 /* end confdefs.h. */
24233 #define INT64CONST(x) x##LL
24234 long long int foo = INT64CONST(0x1234567890123456);
24244 rm -f conftest.$ac_objext
24245 if { (ac_try="$ac_compile"
24246 case "(($ac_try" in
24247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24248 *) ac_try_echo=$ac_try;;
24250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24251 $as_echo "$ac_try_echo") >&5
24252 (eval "$ac_compile") 2>conftest.er1
24254 grep -v '^ *+' conftest.er1 >conftest.err
24256 cat conftest.err >&5
24257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); } && {
24259 test -z "$ac_c_werror_flag" ||
24260 test ! -s conftest.err
24261 } && test -s conftest.$ac_objext; then
24263 cat >>confdefs.h <<\_ACEOF
24264 #define HAVE_LL_CONSTANTS 1
24268 $as_echo "$as_me: failed program was:" >&5
24269 sed 's/^/| /' conftest.$ac_ext >&5
24274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24278 # If we found "long int" is 64 bits, assume snprintf handles it. If
24279 # we found we need to use "long long int", better check. We cope with
24280 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24281 # work, fall back to our own snprintf emulation (which we know uses %lld).
24283 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24284 if test $pgac_need_repl_snprintf = no; then
24285 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24286 $as_echo_n "checking snprintf format for long long int... " >&6; }
24287 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24288 $as_echo_n "(cached) " >&6
24290 for pgac_format in '%lld' '%qd' '%I64d'; do
24291 if test "$cross_compiling" = yes; then
24292 pgac_cv_snprintf_long_long_int_format=cross; break
24294 cat >conftest.$ac_ext <<_ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24301 typedef long long int ac_int64;
24302 #define INT64_FORMAT "$pgac_format"
24304 ac_int64 a = 20000001;
24305 ac_int64 b = 40000005;
24307 int does_int64_snprintf_work()
24312 if (sizeof(ac_int64) != 8)
24313 return 0; /* doesn't look like the right size */
24316 snprintf(buf, 100, INT64_FORMAT, c);
24317 if (strcmp(buf, "800000140000005") != 0)
24318 return 0; /* either multiply or snprintf is busted */
24322 exit(! does_int64_snprintf_work());
24325 rm -f conftest$ac_exeext
24326 if { (ac_try="$ac_link"
24327 case "(($ac_try" in
24328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329 *) ac_try_echo=$ac_try;;
24331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24332 $as_echo "$ac_try_echo") >&5
24333 (eval "$ac_link") 2>&5
24335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24337 { (case "(($ac_try" in
24338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339 *) ac_try_echo=$ac_try;;
24341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24342 $as_echo "$ac_try_echo") >&5
24343 (eval "$ac_try") 2>&5
24345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); }; }; then
24347 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24349 $as_echo "$as_me: program exited with status $ac_status" >&5
24350 $as_echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24354 rm -rf conftest.dSYM
24355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24362 LONG_LONG_INT_FORMAT=''
24364 case $pgac_cv_snprintf_long_long_int_format in
24365 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24366 $as_echo "cannot test (not on host machine)" >&6; };;
24367 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24368 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24369 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24370 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24371 $as_echo "none" >&6; };;
24373 if test "$LONG_LONG_INT_FORMAT" = ""; then
24374 # Force usage of our own snprintf, since system snprintf is broken
24375 pgac_need_repl_snprintf=yes
24376 LONG_LONG_INT_FORMAT='%lld'
24379 # Here if we previously decided we needed to use our own snprintf
24380 LONG_LONG_INT_FORMAT='%lld'
24382 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24383 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24384 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24386 # Here if we are not using 'long long int' at all
24387 INT64_FORMAT='"%ld"'
24388 UINT64_FORMAT='"%lu"'
24392 cat >>confdefs.h <<_ACEOF
24393 #define INT64_FORMAT $INT64_FORMAT
24398 cat >>confdefs.h <<_ACEOF
24399 #define UINT64_FORMAT $UINT64_FORMAT
24403 # Now we have checked all the reasons to replace snprintf
24404 if test $pgac_need_repl_snprintf = yes; then
24406 cat >>confdefs.h <<\_ACEOF
24407 #define USE_REPL_SNPRINTF 1
24410 case " $LIBOBJS " in
24411 *" snprintf.$ac_objext "* ) ;;
24412 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24418 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24419 # The cast to long int works around a bug in the HP C Compiler
24420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24422 # This bug is HP SR number 8606223364.
24423 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24424 $as_echo_n "checking size of void *... " >&6; }
24425 if test "${ac_cv_sizeof_void_p+set}" = set; then
24426 $as_echo_n "(cached) " >&6
24428 if test "$cross_compiling" = yes; then
24429 # Depending upon the size, compute the lo and hi bounds.
24430 cat >conftest.$ac_ext <<_ACEOF
24433 cat confdefs.h >>conftest.$ac_ext
24434 cat >>conftest.$ac_ext <<_ACEOF
24435 /* end confdefs.h. */
24436 $ac_includes_default
24440 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24447 rm -f conftest.$ac_objext
24448 if { (ac_try="$ac_compile"
24449 case "(($ac_try" in
24450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24451 *) ac_try_echo=$ac_try;;
24453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24454 $as_echo "$ac_try_echo") >&5
24455 (eval "$ac_compile") 2>conftest.er1
24457 grep -v '^ *+' conftest.er1 >conftest.err
24459 cat conftest.err >&5
24460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } && {
24462 test -z "$ac_c_werror_flag" ||
24463 test ! -s conftest.err
24464 } && test -s conftest.$ac_objext; then
24467 cat >conftest.$ac_ext <<_ACEOF
24470 cat confdefs.h >>conftest.$ac_ext
24471 cat >>conftest.$ac_ext <<_ACEOF
24472 /* end confdefs.h. */
24473 $ac_includes_default
24477 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24484 rm -f conftest.$ac_objext
24485 if { (ac_try="$ac_compile"
24486 case "(($ac_try" in
24487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488 *) ac_try_echo=$ac_try;;
24490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24491 $as_echo "$ac_try_echo") >&5
24492 (eval "$ac_compile") 2>conftest.er1
24494 grep -v '^ *+' conftest.er1 >conftest.err
24496 cat conftest.err >&5
24497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498 (exit $ac_status); } && {
24499 test -z "$ac_c_werror_flag" ||
24500 test ! -s conftest.err
24501 } && test -s conftest.$ac_objext; then
24502 ac_hi=$ac_mid; break
24504 $as_echo "$as_me: failed program was:" >&5
24505 sed 's/^/| /' conftest.$ac_ext >&5
24507 ac_lo=`expr $ac_mid + 1`
24508 if test $ac_lo -le $ac_mid; then
24512 ac_mid=`expr 2 '*' $ac_mid + 1`
24515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24518 $as_echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24521 cat >conftest.$ac_ext <<_ACEOF
24524 cat confdefs.h >>conftest.$ac_ext
24525 cat >>conftest.$ac_ext <<_ACEOF
24526 /* end confdefs.h. */
24527 $ac_includes_default
24531 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24538 rm -f conftest.$ac_objext
24539 if { (ac_try="$ac_compile"
24540 case "(($ac_try" in
24541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24542 *) ac_try_echo=$ac_try;;
24544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24545 $as_echo "$ac_try_echo") >&5
24546 (eval "$ac_compile") 2>conftest.er1
24548 grep -v '^ *+' conftest.er1 >conftest.err
24550 cat conftest.err >&5
24551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); } && {
24553 test -z "$ac_c_werror_flag" ||
24554 test ! -s conftest.err
24555 } && test -s conftest.$ac_objext; then
24558 cat >conftest.$ac_ext <<_ACEOF
24561 cat confdefs.h >>conftest.$ac_ext
24562 cat >>conftest.$ac_ext <<_ACEOF
24563 /* end confdefs.h. */
24564 $ac_includes_default
24568 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24575 rm -f conftest.$ac_objext
24576 if { (ac_try="$ac_compile"
24577 case "(($ac_try" in
24578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579 *) ac_try_echo=$ac_try;;
24581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24582 $as_echo "$ac_try_echo") >&5
24583 (eval "$ac_compile") 2>conftest.er1
24585 grep -v '^ *+' conftest.er1 >conftest.err
24587 cat conftest.err >&5
24588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); } && {
24590 test -z "$ac_c_werror_flag" ||
24591 test ! -s conftest.err
24592 } && test -s conftest.$ac_objext; then
24593 ac_lo=$ac_mid; break
24595 $as_echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24598 ac_hi=`expr '(' $ac_mid ')' - 1`
24599 if test $ac_mid -le $ac_hi; then
24603 ac_mid=`expr 2 '*' $ac_mid`
24606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24609 $as_echo "$as_me: failed program was:" >&5
24610 sed 's/^/| /' conftest.$ac_ext >&5
24615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24619 # Binary search between lo and hi bounds.
24620 while test "x$ac_lo" != "x$ac_hi"; do
24621 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24622 cat >conftest.$ac_ext <<_ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h. */
24628 $ac_includes_default
24632 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24639 rm -f conftest.$ac_objext
24640 if { (ac_try="$ac_compile"
24641 case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24646 $as_echo "$ac_try_echo") >&5
24647 (eval "$ac_compile") 2>conftest.er1
24649 grep -v '^ *+' conftest.er1 >conftest.err
24651 cat conftest.err >&5
24652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } && {
24654 test -z "$ac_c_werror_flag" ||
24655 test ! -s conftest.err
24656 } && test -s conftest.$ac_objext; then
24659 $as_echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24662 ac_lo=`expr '(' $ac_mid ')' + 1`
24665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24668 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24669 '') if test "$ac_cv_type_void_p" = yes; then
24670 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24672 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24673 See \`config.log' for more details." >&5
24674 $as_echo "$as_me: error: cannot compute sizeof (void *)
24675 See \`config.log' for more details." >&2;}
24676 { (exit 77); exit 77; }; }; }
24678 ac_cv_sizeof_void_p=0
24682 cat >conftest.$ac_ext <<_ACEOF
24685 cat confdefs.h >>conftest.$ac_ext
24686 cat >>conftest.$ac_ext <<_ACEOF
24687 /* end confdefs.h. */
24688 $ac_includes_default
24689 static long int longval () { return (long int) (sizeof (void *)); }
24690 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24692 #include <stdlib.h>
24697 FILE *f = fopen ("conftest.val", "w");
24700 if (((long int) (sizeof (void *))) < 0)
24702 long int i = longval ();
24703 if (i != ((long int) (sizeof (void *))))
24705 fprintf (f, "%ld", i);
24709 unsigned long int i = ulongval ();
24710 if (i != ((long int) (sizeof (void *))))
24712 fprintf (f, "%lu", i);
24714 /* Do not output a trailing newline, as this causes \r\n confusion
24715 on some platforms. */
24716 return ferror (f) || fclose (f) != 0;
24722 rm -f conftest$ac_exeext
24723 if { (ac_try="$ac_link"
24724 case "(($ac_try" in
24725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726 *) ac_try_echo=$ac_try;;
24728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24729 $as_echo "$ac_try_echo") >&5
24730 (eval "$ac_link") 2>&5
24732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24734 { (case "(($ac_try" in
24735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24736 *) ac_try_echo=$ac_try;;
24738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24739 $as_echo "$ac_try_echo") >&5
24740 (eval "$ac_try") 2>&5
24742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; }; then
24744 ac_cv_sizeof_void_p=`cat conftest.val`
24746 $as_echo "$as_me: program exited with status $ac_status" >&5
24747 $as_echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24750 ( exit $ac_status )
24751 if test "$ac_cv_type_void_p" = yes; then
24752 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24754 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24755 See \`config.log' for more details." >&5
24756 $as_echo "$as_me: error: cannot compute sizeof (void *)
24757 See \`config.log' for more details." >&2;}
24758 { (exit 77); exit 77; }; }; }
24760 ac_cv_sizeof_void_p=0
24763 rm -rf conftest.dSYM
24764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24768 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24769 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24773 cat >>confdefs.h <<_ACEOF
24774 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24778 # The cast to long int works around a bug in the HP C Compiler
24779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24781 # This bug is HP SR number 8606223364.
24782 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24783 $as_echo_n "checking size of size_t... " >&6; }
24784 if test "${ac_cv_sizeof_size_t+set}" = set; then
24785 $as_echo_n "(cached) " >&6
24787 if test "$cross_compiling" = yes; then
24788 # Depending upon the size, compute the lo and hi bounds.
24789 cat >conftest.$ac_ext <<_ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h. */
24795 $ac_includes_default
24799 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24806 rm -f conftest.$ac_objext
24807 if { (ac_try="$ac_compile"
24808 case "(($ac_try" in
24809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24810 *) ac_try_echo=$ac_try;;
24812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24813 $as_echo "$ac_try_echo") >&5
24814 (eval "$ac_compile") 2>conftest.er1
24816 grep -v '^ *+' conftest.er1 >conftest.err
24818 cat conftest.err >&5
24819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); } && {
24821 test -z "$ac_c_werror_flag" ||
24822 test ! -s conftest.err
24823 } && test -s conftest.$ac_objext; then
24826 cat >conftest.$ac_ext <<_ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24832 $ac_includes_default
24836 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24843 rm -f conftest.$ac_objext
24844 if { (ac_try="$ac_compile"
24845 case "(($ac_try" in
24846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847 *) ac_try_echo=$ac_try;;
24849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24850 $as_echo "$ac_try_echo") >&5
24851 (eval "$ac_compile") 2>conftest.er1
24853 grep -v '^ *+' conftest.er1 >conftest.err
24855 cat conftest.err >&5
24856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); } && {
24858 test -z "$ac_c_werror_flag" ||
24859 test ! -s conftest.err
24860 } && test -s conftest.$ac_objext; then
24861 ac_hi=$ac_mid; break
24863 $as_echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24866 ac_lo=`expr $ac_mid + 1`
24867 if test $ac_lo -le $ac_mid; then
24871 ac_mid=`expr 2 '*' $ac_mid + 1`
24874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24877 $as_echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24880 cat >conftest.$ac_ext <<_ACEOF
24883 cat confdefs.h >>conftest.$ac_ext
24884 cat >>conftest.$ac_ext <<_ACEOF
24885 /* end confdefs.h. */
24886 $ac_includes_default
24890 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24897 rm -f conftest.$ac_objext
24898 if { (ac_try="$ac_compile"
24899 case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24904 $as_echo "$ac_try_echo") >&5
24905 (eval "$ac_compile") 2>conftest.er1
24907 grep -v '^ *+' conftest.er1 >conftest.err
24909 cat conftest.err >&5
24910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } && {
24912 test -z "$ac_c_werror_flag" ||
24913 test ! -s conftest.err
24914 } && test -s conftest.$ac_objext; then
24917 cat >conftest.$ac_ext <<_ACEOF
24920 cat confdefs.h >>conftest.$ac_ext
24921 cat >>conftest.$ac_ext <<_ACEOF
24922 /* end confdefs.h. */
24923 $ac_includes_default
24927 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24934 rm -f conftest.$ac_objext
24935 if { (ac_try="$ac_compile"
24936 case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24941 $as_echo "$ac_try_echo") >&5
24942 (eval "$ac_compile") 2>conftest.er1
24944 grep -v '^ *+' conftest.er1 >conftest.err
24946 cat conftest.err >&5
24947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); } && {
24949 test -z "$ac_c_werror_flag" ||
24950 test ! -s conftest.err
24951 } && test -s conftest.$ac_objext; then
24952 ac_lo=$ac_mid; break
24954 $as_echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24957 ac_hi=`expr '(' $ac_mid ')' - 1`
24958 if test $ac_mid -le $ac_hi; then
24962 ac_mid=`expr 2 '*' $ac_mid`
24965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24968 $as_echo "$as_me: failed program was:" >&5
24969 sed 's/^/| /' conftest.$ac_ext >&5
24974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24978 # Binary search between lo and hi bounds.
24979 while test "x$ac_lo" != "x$ac_hi"; do
24980 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24981 cat >conftest.$ac_ext <<_ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h. */
24987 $ac_includes_default
24991 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24998 rm -f conftest.$ac_objext
24999 if { (ac_try="$ac_compile"
25000 case "(($ac_try" in
25001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002 *) ac_try_echo=$ac_try;;
25004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25005 $as_echo "$ac_try_echo") >&5
25006 (eval "$ac_compile") 2>conftest.er1
25008 grep -v '^ *+' conftest.er1 >conftest.err
25010 cat conftest.err >&5
25011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); } && {
25013 test -z "$ac_c_werror_flag" ||
25014 test ! -s conftest.err
25015 } && test -s conftest.$ac_objext; then
25018 $as_echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25021 ac_lo=`expr '(' $ac_mid ')' + 1`
25024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25027 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25028 '') if test "$ac_cv_type_size_t" = yes; then
25029 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25031 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25032 See \`config.log' for more details." >&5
25033 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25034 See \`config.log' for more details." >&2;}
25035 { (exit 77); exit 77; }; }; }
25037 ac_cv_sizeof_size_t=0
25041 cat >conftest.$ac_ext <<_ACEOF
25044 cat confdefs.h >>conftest.$ac_ext
25045 cat >>conftest.$ac_ext <<_ACEOF
25046 /* end confdefs.h. */
25047 $ac_includes_default
25048 static long int longval () { return (long int) (sizeof (size_t)); }
25049 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25051 #include <stdlib.h>
25056 FILE *f = fopen ("conftest.val", "w");
25059 if (((long int) (sizeof (size_t))) < 0)
25061 long int i = longval ();
25062 if (i != ((long int) (sizeof (size_t))))
25064 fprintf (f, "%ld", i);
25068 unsigned long int i = ulongval ();
25069 if (i != ((long int) (sizeof (size_t))))
25071 fprintf (f, "%lu", i);
25073 /* Do not output a trailing newline, as this causes \r\n confusion
25074 on some platforms. */
25075 return ferror (f) || fclose (f) != 0;
25081 rm -f conftest$ac_exeext
25082 if { (ac_try="$ac_link"
25083 case "(($ac_try" in
25084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085 *) ac_try_echo=$ac_try;;
25087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25088 $as_echo "$ac_try_echo") >&5
25089 (eval "$ac_link") 2>&5
25091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25093 { (case "(($ac_try" in
25094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095 *) ac_try_echo=$ac_try;;
25097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25098 $as_echo "$ac_try_echo") >&5
25099 (eval "$ac_try") 2>&5
25101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; }; then
25103 ac_cv_sizeof_size_t=`cat conftest.val`
25105 $as_echo "$as_me: program exited with status $ac_status" >&5
25106 $as_echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25109 ( exit $ac_status )
25110 if test "$ac_cv_type_size_t" = yes; then
25111 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25113 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25114 See \`config.log' for more details." >&5
25115 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25116 See \`config.log' for more details." >&2;}
25117 { (exit 77); exit 77; }; }; }
25119 ac_cv_sizeof_size_t=0
25122 rm -rf conftest.dSYM
25123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25127 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25128 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25132 cat >>confdefs.h <<_ACEOF
25133 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25137 # The cast to long int works around a bug in the HP C Compiler
25138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25140 # This bug is HP SR number 8606223364.
25141 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25142 $as_echo_n "checking size of long... " >&6; }
25143 if test "${ac_cv_sizeof_long+set}" = set; then
25144 $as_echo_n "(cached) " >&6
25146 if test "$cross_compiling" = yes; then
25147 # Depending upon the size, compute the lo and hi bounds.
25148 cat >conftest.$ac_ext <<_ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h. */
25154 $ac_includes_default
25158 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25165 rm -f conftest.$ac_objext
25166 if { (ac_try="$ac_compile"
25167 case "(($ac_try" in
25168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25169 *) ac_try_echo=$ac_try;;
25171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25172 $as_echo "$ac_try_echo") >&5
25173 (eval "$ac_compile") 2>conftest.er1
25175 grep -v '^ *+' conftest.er1 >conftest.err
25177 cat conftest.err >&5
25178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); } && {
25180 test -z "$ac_c_werror_flag" ||
25181 test ! -s conftest.err
25182 } && test -s conftest.$ac_objext; then
25185 cat >conftest.$ac_ext <<_ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h. */
25191 $ac_includes_default
25195 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25202 rm -f conftest.$ac_objext
25203 if { (ac_try="$ac_compile"
25204 case "(($ac_try" in
25205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206 *) ac_try_echo=$ac_try;;
25208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25209 $as_echo "$ac_try_echo") >&5
25210 (eval "$ac_compile") 2>conftest.er1
25212 grep -v '^ *+' conftest.er1 >conftest.err
25214 cat conftest.err >&5
25215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } && {
25217 test -z "$ac_c_werror_flag" ||
25218 test ! -s conftest.err
25219 } && test -s conftest.$ac_objext; then
25220 ac_hi=$ac_mid; break
25222 $as_echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25225 ac_lo=`expr $ac_mid + 1`
25226 if test $ac_lo -le $ac_mid; then
25230 ac_mid=`expr 2 '*' $ac_mid + 1`
25233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25236 $as_echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25239 cat >conftest.$ac_ext <<_ACEOF
25242 cat confdefs.h >>conftest.$ac_ext
25243 cat >>conftest.$ac_ext <<_ACEOF
25244 /* end confdefs.h. */
25245 $ac_includes_default
25249 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25256 rm -f conftest.$ac_objext
25257 if { (ac_try="$ac_compile"
25258 case "(($ac_try" in
25259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25260 *) ac_try_echo=$ac_try;;
25262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25263 $as_echo "$ac_try_echo") >&5
25264 (eval "$ac_compile") 2>conftest.er1
25266 grep -v '^ *+' conftest.er1 >conftest.err
25268 cat conftest.err >&5
25269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); } && {
25271 test -z "$ac_c_werror_flag" ||
25272 test ! -s conftest.err
25273 } && test -s conftest.$ac_objext; then
25276 cat >conftest.$ac_ext <<_ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h. */
25282 $ac_includes_default
25286 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25293 rm -f conftest.$ac_objext
25294 if { (ac_try="$ac_compile"
25295 case "(($ac_try" in
25296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25297 *) ac_try_echo=$ac_try;;
25299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25300 $as_echo "$ac_try_echo") >&5
25301 (eval "$ac_compile") 2>conftest.er1
25303 grep -v '^ *+' conftest.er1 >conftest.err
25305 cat conftest.err >&5
25306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); } && {
25308 test -z "$ac_c_werror_flag" ||
25309 test ! -s conftest.err
25310 } && test -s conftest.$ac_objext; then
25311 ac_lo=$ac_mid; break
25313 $as_echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25316 ac_hi=`expr '(' $ac_mid ')' - 1`
25317 if test $ac_mid -le $ac_hi; then
25321 ac_mid=`expr 2 '*' $ac_mid`
25324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25327 $as_echo "$as_me: failed program was:" >&5
25328 sed 's/^/| /' conftest.$ac_ext >&5
25333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25337 # Binary search between lo and hi bounds.
25338 while test "x$ac_lo" != "x$ac_hi"; do
25339 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25340 cat >conftest.$ac_ext <<_ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h. */
25346 $ac_includes_default
25350 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25357 rm -f conftest.$ac_objext
25358 if { (ac_try="$ac_compile"
25359 case "(($ac_try" in
25360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25361 *) ac_try_echo=$ac_try;;
25363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25364 $as_echo "$ac_try_echo") >&5
25365 (eval "$ac_compile") 2>conftest.er1
25367 grep -v '^ *+' conftest.er1 >conftest.err
25369 cat conftest.err >&5
25370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); } && {
25372 test -z "$ac_c_werror_flag" ||
25373 test ! -s conftest.err
25374 } && test -s conftest.$ac_objext; then
25377 $as_echo "$as_me: failed program was:" >&5
25378 sed 's/^/| /' conftest.$ac_ext >&5
25380 ac_lo=`expr '(' $ac_mid ')' + 1`
25383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25386 ?*) ac_cv_sizeof_long=$ac_lo;;
25387 '') if test "$ac_cv_type_long" = yes; then
25388 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25390 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25391 See \`config.log' for more details." >&5
25392 $as_echo "$as_me: error: cannot compute sizeof (long)
25393 See \`config.log' for more details." >&2;}
25394 { (exit 77); exit 77; }; }; }
25396 ac_cv_sizeof_long=0
25400 cat >conftest.$ac_ext <<_ACEOF
25403 cat confdefs.h >>conftest.$ac_ext
25404 cat >>conftest.$ac_ext <<_ACEOF
25405 /* end confdefs.h. */
25406 $ac_includes_default
25407 static long int longval () { return (long int) (sizeof (long)); }
25408 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25410 #include <stdlib.h>
25415 FILE *f = fopen ("conftest.val", "w");
25418 if (((long int) (sizeof (long))) < 0)
25420 long int i = longval ();
25421 if (i != ((long int) (sizeof (long))))
25423 fprintf (f, "%ld", i);
25427 unsigned long int i = ulongval ();
25428 if (i != ((long int) (sizeof (long))))
25430 fprintf (f, "%lu", i);
25432 /* Do not output a trailing newline, as this causes \r\n confusion
25433 on some platforms. */
25434 return ferror (f) || fclose (f) != 0;
25440 rm -f conftest$ac_exeext
25441 if { (ac_try="$ac_link"
25442 case "(($ac_try" in
25443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444 *) ac_try_echo=$ac_try;;
25446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25447 $as_echo "$ac_try_echo") >&5
25448 (eval "$ac_link") 2>&5
25450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25452 { (case "(($ac_try" in
25453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25454 *) ac_try_echo=$ac_try;;
25456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25457 $as_echo "$ac_try_echo") >&5
25458 (eval "$ac_try") 2>&5
25460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); }; }; then
25462 ac_cv_sizeof_long=`cat conftest.val`
25464 $as_echo "$as_me: program exited with status $ac_status" >&5
25465 $as_echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25468 ( exit $ac_status )
25469 if test "$ac_cv_type_long" = yes; then
25470 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25472 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25473 See \`config.log' for more details." >&5
25474 $as_echo "$as_me: error: cannot compute sizeof (long)
25475 See \`config.log' for more details." >&2;}
25476 { (exit 77); exit 77; }; }; }
25478 ac_cv_sizeof_long=0
25481 rm -rf conftest.dSYM
25482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25486 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25487 $as_echo "$ac_cv_sizeof_long" >&6; }
25491 cat >>confdefs.h <<_ACEOF
25492 #define SIZEOF_LONG $ac_cv_sizeof_long
25497 # Decide whether float4 is passed by value: user-selectable, enabled by default
25498 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25499 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25502 # Check whether --enable-float4-byval was given.
25503 if test "${enable_float4_byval+set}" = set; then
25504 enableval=$enable_float4_byval;
25508 cat >>confdefs.h <<\_ACEOF
25509 #define USE_FLOAT4_BYVAL 1
25512 float4passbyval=true
25515 float4passbyval=false
25518 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25519 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25520 { (exit 1); exit 1; }; }
25525 enable_float4_byval=yes
25527 cat >>confdefs.h <<\_ACEOF
25528 #define USE_FLOAT4_BYVAL 1
25531 float4passbyval=true
25535 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25536 $as_echo "$enable_float4_byval" >&6; }
25538 cat >>confdefs.h <<_ACEOF
25539 #define FLOAT4PASSBYVAL $float4passbyval
25543 # Decide whether float8 is passed by value.
25544 # Note: this setting also controls int8 and related types such as timestamp.
25545 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25546 # If not, trying to select it is an error.
25547 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25548 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25549 if test $ac_cv_sizeof_void_p -ge 8 ; then
25552 # Check whether --enable-float8-byval was given.
25553 if test "${enable_float8_byval+set}" = set; then
25554 enableval=$enable_float8_byval;
25563 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25564 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25565 { (exit 1); exit 1; }; }
25570 enable_float8_byval=yes
25578 # Check whether --enable-float8-byval was given.
25579 if test "${enable_float8_byval+set}" = set; then
25580 enableval=$enable_float8_byval;
25589 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25590 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25591 { (exit 1); exit 1; }; }
25596 enable_float8_byval=no
25601 if test "$enable_float8_byval" = yes ; then
25602 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25603 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25604 { (exit 1); exit 1; }; }
25607 if test "$enable_float8_byval" = yes ; then
25609 cat >>confdefs.h <<\_ACEOF
25610 #define USE_FLOAT8_BYVAL 1
25613 float8passbyval=true
25615 float8passbyval=false
25617 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25618 $as_echo "$enable_float8_byval" >&6; }
25620 cat >>confdefs.h <<_ACEOF
25621 #define FLOAT8PASSBYVAL $float8passbyval
25625 # Determine memory alignment requirements for the basic C data types.
25627 # The cast to long int works around a bug in the HP C Compiler,
25628 # see AC_CHECK_SIZEOF for more information.
25629 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25630 $as_echo_n "checking alignment of short... " >&6; }
25631 if test "${ac_cv_alignof_short+set}" = set; then
25632 $as_echo_n "(cached) " >&6
25634 if test "$cross_compiling" = yes; then
25635 # Depending upon the size, compute the lo and hi bounds.
25636 cat >conftest.$ac_ext <<_ACEOF
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h. */
25642 $ac_includes_default
25644 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25646 typedef struct { char x; short y; } ac__type_alignof_;
25650 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25657 rm -f conftest.$ac_objext
25658 if { (ac_try="$ac_compile"
25659 case "(($ac_try" in
25660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661 *) ac_try_echo=$ac_try;;
25663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25664 $as_echo "$ac_try_echo") >&5
25665 (eval "$ac_compile") 2>conftest.er1
25667 grep -v '^ *+' conftest.er1 >conftest.err
25669 cat conftest.err >&5
25670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); } && {
25672 test -z "$ac_c_werror_flag" ||
25673 test ! -s conftest.err
25674 } && test -s conftest.$ac_objext; then
25677 cat >conftest.$ac_ext <<_ACEOF
25680 cat confdefs.h >>conftest.$ac_ext
25681 cat >>conftest.$ac_ext <<_ACEOF
25682 /* end confdefs.h. */
25683 $ac_includes_default
25685 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25687 typedef struct { char x; short y; } ac__type_alignof_;
25691 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25698 rm -f conftest.$ac_objext
25699 if { (ac_try="$ac_compile"
25700 case "(($ac_try" in
25701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702 *) ac_try_echo=$ac_try;;
25704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25705 $as_echo "$ac_try_echo") >&5
25706 (eval "$ac_compile") 2>conftest.er1
25708 grep -v '^ *+' conftest.er1 >conftest.err
25710 cat conftest.err >&5
25711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } && {
25713 test -z "$ac_c_werror_flag" ||
25714 test ! -s conftest.err
25715 } && test -s conftest.$ac_objext; then
25716 ac_hi=$ac_mid; break
25718 $as_echo "$as_me: failed program was:" >&5
25719 sed 's/^/| /' conftest.$ac_ext >&5
25721 ac_lo=`expr $ac_mid + 1`
25722 if test $ac_lo -le $ac_mid; then
25726 ac_mid=`expr 2 '*' $ac_mid + 1`
25729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25732 $as_echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25735 cat >conftest.$ac_ext <<_ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25741 $ac_includes_default
25743 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25745 typedef struct { char x; short y; } ac__type_alignof_;
25749 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25756 rm -f conftest.$ac_objext
25757 if { (ac_try="$ac_compile"
25758 case "(($ac_try" in
25759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25760 *) ac_try_echo=$ac_try;;
25762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25763 $as_echo "$ac_try_echo") >&5
25764 (eval "$ac_compile") 2>conftest.er1
25766 grep -v '^ *+' conftest.er1 >conftest.err
25768 cat conftest.err >&5
25769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } && {
25771 test -z "$ac_c_werror_flag" ||
25772 test ! -s conftest.err
25773 } && test -s conftest.$ac_objext; then
25776 cat >conftest.$ac_ext <<_ACEOF
25779 cat confdefs.h >>conftest.$ac_ext
25780 cat >>conftest.$ac_ext <<_ACEOF
25781 /* end confdefs.h. */
25782 $ac_includes_default
25784 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25786 typedef struct { char x; short y; } ac__type_alignof_;
25790 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25797 rm -f conftest.$ac_objext
25798 if { (ac_try="$ac_compile"
25799 case "(($ac_try" in
25800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25801 *) ac_try_echo=$ac_try;;
25803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25804 $as_echo "$ac_try_echo") >&5
25805 (eval "$ac_compile") 2>conftest.er1
25807 grep -v '^ *+' conftest.er1 >conftest.err
25809 cat conftest.err >&5
25810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } && {
25812 test -z "$ac_c_werror_flag" ||
25813 test ! -s conftest.err
25814 } && test -s conftest.$ac_objext; then
25815 ac_lo=$ac_mid; break
25817 $as_echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25820 ac_hi=`expr '(' $ac_mid ')' - 1`
25821 if test $ac_mid -le $ac_hi; then
25825 ac_mid=`expr 2 '*' $ac_mid`
25828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25831 $as_echo "$as_me: failed program was:" >&5
25832 sed 's/^/| /' conftest.$ac_ext >&5
25837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25841 # Binary search between lo and hi bounds.
25842 while test "x$ac_lo" != "x$ac_hi"; do
25843 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 $ac_includes_default
25852 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25854 typedef struct { char x; short y; } ac__type_alignof_;
25858 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25865 rm -f conftest.$ac_objext
25866 if { (ac_try="$ac_compile"
25867 case "(($ac_try" in
25868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869 *) ac_try_echo=$ac_try;;
25871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25872 $as_echo "$ac_try_echo") >&5
25873 (eval "$ac_compile") 2>conftest.er1
25875 grep -v '^ *+' conftest.er1 >conftest.err
25877 cat conftest.err >&5
25878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); } && {
25880 test -z "$ac_c_werror_flag" ||
25881 test ! -s conftest.err
25882 } && test -s conftest.$ac_objext; then
25885 $as_echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25888 ac_lo=`expr '(' $ac_mid ')' + 1`
25891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25894 ?*) ac_cv_alignof_short=$ac_lo;;
25895 '') if test "$ac_cv_type_short" = yes; then
25896 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25898 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25899 See \`config.log' for more details." >&5
25900 $as_echo "$as_me: error: cannot compute alignment of short
25901 See \`config.log' for more details." >&2;}
25902 { (exit 77); exit 77; }; }; }
25904 ac_cv_alignof_short=0
25908 cat >conftest.$ac_ext <<_ACEOF
25911 cat confdefs.h >>conftest.$ac_ext
25912 cat >>conftest.$ac_ext <<_ACEOF
25913 /* end confdefs.h. */
25914 $ac_includes_default
25916 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25918 typedef struct { char x; short y; } ac__type_alignof_;
25919 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25920 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25922 #include <stdlib.h>
25927 FILE *f = fopen ("conftest.val", "w");
25930 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25932 long int i = longval ();
25933 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25935 fprintf (f, "%ld", i);
25939 unsigned long int i = ulongval ();
25940 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25942 fprintf (f, "%lu", i);
25944 /* Do not output a trailing newline, as this causes \r\n confusion
25945 on some platforms. */
25946 return ferror (f) || fclose (f) != 0;
25952 rm -f conftest$ac_exeext
25953 if { (ac_try="$ac_link"
25954 case "(($ac_try" in
25955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956 *) ac_try_echo=$ac_try;;
25958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25959 $as_echo "$ac_try_echo") >&5
25960 (eval "$ac_link") 2>&5
25962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25964 { (case "(($ac_try" in
25965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25966 *) ac_try_echo=$ac_try;;
25968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25969 $as_echo "$ac_try_echo") >&5
25970 (eval "$ac_try") 2>&5
25972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); }; }; then
25974 ac_cv_alignof_short=`cat conftest.val`
25976 $as_echo "$as_me: program exited with status $ac_status" >&5
25977 $as_echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25980 ( exit $ac_status )
25981 if test "$ac_cv_type_short" = yes; then
25982 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25984 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25985 See \`config.log' for more details." >&5
25986 $as_echo "$as_me: error: cannot compute alignment of short
25987 See \`config.log' for more details." >&2;}
25988 { (exit 77); exit 77; }; }; }
25990 ac_cv_alignof_short=0
25993 rm -rf conftest.dSYM
25994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25998 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25999 $as_echo "$ac_cv_alignof_short" >&6; }
26003 cat >>confdefs.h <<_ACEOF
26004 #define ALIGNOF_SHORT $ac_cv_alignof_short
26008 # The cast to long int works around a bug in the HP C Compiler,
26009 # see AC_CHECK_SIZEOF for more information.
26010 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26011 $as_echo_n "checking alignment of int... " >&6; }
26012 if test "${ac_cv_alignof_int+set}" = set; then
26013 $as_echo_n "(cached) " >&6
26015 if test "$cross_compiling" = yes; then
26016 # Depending upon the size, compute the lo and hi bounds.
26017 cat >conftest.$ac_ext <<_ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h. */
26023 $ac_includes_default
26025 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26027 typedef struct { char x; int y; } ac__type_alignof_;
26031 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26038 rm -f conftest.$ac_objext
26039 if { (ac_try="$ac_compile"
26040 case "(($ac_try" in
26041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26042 *) ac_try_echo=$ac_try;;
26044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26045 $as_echo "$ac_try_echo") >&5
26046 (eval "$ac_compile") 2>conftest.er1
26048 grep -v '^ *+' conftest.er1 >conftest.err
26050 cat conftest.err >&5
26051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); } && {
26053 test -z "$ac_c_werror_flag" ||
26054 test ! -s conftest.err
26055 } && test -s conftest.$ac_objext; then
26058 cat >conftest.$ac_ext <<_ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h. */
26064 $ac_includes_default
26066 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26068 typedef struct { char x; int y; } ac__type_alignof_;
26072 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26079 rm -f conftest.$ac_objext
26080 if { (ac_try="$ac_compile"
26081 case "(($ac_try" in
26082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26083 *) ac_try_echo=$ac_try;;
26085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26086 $as_echo "$ac_try_echo") >&5
26087 (eval "$ac_compile") 2>conftest.er1
26089 grep -v '^ *+' conftest.er1 >conftest.err
26091 cat conftest.err >&5
26092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093 (exit $ac_status); } && {
26094 test -z "$ac_c_werror_flag" ||
26095 test ! -s conftest.err
26096 } && test -s conftest.$ac_objext; then
26097 ac_hi=$ac_mid; break
26099 $as_echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26102 ac_lo=`expr $ac_mid + 1`
26103 if test $ac_lo -le $ac_mid; then
26107 ac_mid=`expr 2 '*' $ac_mid + 1`
26110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26113 $as_echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26116 cat >conftest.$ac_ext <<_ACEOF
26119 cat confdefs.h >>conftest.$ac_ext
26120 cat >>conftest.$ac_ext <<_ACEOF
26121 /* end confdefs.h. */
26122 $ac_includes_default
26124 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26126 typedef struct { char x; int y; } ac__type_alignof_;
26130 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26137 rm -f conftest.$ac_objext
26138 if { (ac_try="$ac_compile"
26139 case "(($ac_try" in
26140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26141 *) ac_try_echo=$ac_try;;
26143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26144 $as_echo "$ac_try_echo") >&5
26145 (eval "$ac_compile") 2>conftest.er1
26147 grep -v '^ *+' conftest.er1 >conftest.err
26149 cat conftest.err >&5
26150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); } && {
26152 test -z "$ac_c_werror_flag" ||
26153 test ! -s conftest.err
26154 } && test -s conftest.$ac_objext; then
26157 cat >conftest.$ac_ext <<_ACEOF
26160 cat confdefs.h >>conftest.$ac_ext
26161 cat >>conftest.$ac_ext <<_ACEOF
26162 /* end confdefs.h. */
26163 $ac_includes_default
26165 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26167 typedef struct { char x; int y; } ac__type_alignof_;
26171 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26178 rm -f conftest.$ac_objext
26179 if { (ac_try="$ac_compile"
26180 case "(($ac_try" in
26181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182 *) ac_try_echo=$ac_try;;
26184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26185 $as_echo "$ac_try_echo") >&5
26186 (eval "$ac_compile") 2>conftest.er1
26188 grep -v '^ *+' conftest.er1 >conftest.err
26190 cat conftest.err >&5
26191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); } && {
26193 test -z "$ac_c_werror_flag" ||
26194 test ! -s conftest.err
26195 } && test -s conftest.$ac_objext; then
26196 ac_lo=$ac_mid; break
26198 $as_echo "$as_me: failed program was:" >&5
26199 sed 's/^/| /' conftest.$ac_ext >&5
26201 ac_hi=`expr '(' $ac_mid ')' - 1`
26202 if test $ac_mid -le $ac_hi; then
26206 ac_mid=`expr 2 '*' $ac_mid`
26209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26212 $as_echo "$as_me: failed program was:" >&5
26213 sed 's/^/| /' conftest.$ac_ext >&5
26218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26222 # Binary search between lo and hi bounds.
26223 while test "x$ac_lo" != "x$ac_hi"; do
26224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26225 cat >conftest.$ac_ext <<_ACEOF
26228 cat confdefs.h >>conftest.$ac_ext
26229 cat >>conftest.$ac_ext <<_ACEOF
26230 /* end confdefs.h. */
26231 $ac_includes_default
26233 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26235 typedef struct { char x; int y; } ac__type_alignof_;
26239 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26246 rm -f conftest.$ac_objext
26247 if { (ac_try="$ac_compile"
26248 case "(($ac_try" in
26249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250 *) ac_try_echo=$ac_try;;
26252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26253 $as_echo "$ac_try_echo") >&5
26254 (eval "$ac_compile") 2>conftest.er1
26256 grep -v '^ *+' conftest.er1 >conftest.err
26258 cat conftest.err >&5
26259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); } && {
26261 test -z "$ac_c_werror_flag" ||
26262 test ! -s conftest.err
26263 } && test -s conftest.$ac_objext; then
26266 $as_echo "$as_me: failed program was:" >&5
26267 sed 's/^/| /' conftest.$ac_ext >&5
26269 ac_lo=`expr '(' $ac_mid ')' + 1`
26272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26275 ?*) ac_cv_alignof_int=$ac_lo;;
26276 '') if test "$ac_cv_type_int" = yes; then
26277 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26279 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26280 See \`config.log' for more details." >&5
26281 $as_echo "$as_me: error: cannot compute alignment of int
26282 See \`config.log' for more details." >&2;}
26283 { (exit 77); exit 77; }; }; }
26285 ac_cv_alignof_int=0
26289 cat >conftest.$ac_ext <<_ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h. */
26295 $ac_includes_default
26297 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26299 typedef struct { char x; int y; } ac__type_alignof_;
26300 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26301 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26303 #include <stdlib.h>
26308 FILE *f = fopen ("conftest.val", "w");
26311 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26313 long int i = longval ();
26314 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26316 fprintf (f, "%ld", i);
26320 unsigned long int i = ulongval ();
26321 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26323 fprintf (f, "%lu", i);
26325 /* Do not output a trailing newline, as this causes \r\n confusion
26326 on some platforms. */
26327 return ferror (f) || fclose (f) != 0;
26333 rm -f conftest$ac_exeext
26334 if { (ac_try="$ac_link"
26335 case "(($ac_try" in
26336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337 *) ac_try_echo=$ac_try;;
26339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26340 $as_echo "$ac_try_echo") >&5
26341 (eval "$ac_link") 2>&5
26343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26345 { (case "(($ac_try" in
26346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347 *) ac_try_echo=$ac_try;;
26349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26350 $as_echo "$ac_try_echo") >&5
26351 (eval "$ac_try") 2>&5
26353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); }; }; then
26355 ac_cv_alignof_int=`cat conftest.val`
26357 $as_echo "$as_me: program exited with status $ac_status" >&5
26358 $as_echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26361 ( exit $ac_status )
26362 if test "$ac_cv_type_int" = yes; then
26363 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26365 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26366 See \`config.log' for more details." >&5
26367 $as_echo "$as_me: error: cannot compute alignment of int
26368 See \`config.log' for more details." >&2;}
26369 { (exit 77); exit 77; }; }; }
26371 ac_cv_alignof_int=0
26374 rm -rf conftest.dSYM
26375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26379 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26380 $as_echo "$ac_cv_alignof_int" >&6; }
26384 cat >>confdefs.h <<_ACEOF
26385 #define ALIGNOF_INT $ac_cv_alignof_int
26389 # The cast to long int works around a bug in the HP C Compiler,
26390 # see AC_CHECK_SIZEOF for more information.
26391 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26392 $as_echo_n "checking alignment of long... " >&6; }
26393 if test "${ac_cv_alignof_long+set}" = set; then
26394 $as_echo_n "(cached) " >&6
26396 if test "$cross_compiling" = yes; then
26397 # Depending upon the size, compute the lo and hi bounds.
26398 cat >conftest.$ac_ext <<_ACEOF
26401 cat confdefs.h >>conftest.$ac_ext
26402 cat >>conftest.$ac_ext <<_ACEOF
26403 /* end confdefs.h. */
26404 $ac_includes_default
26406 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26408 typedef struct { char x; long y; } ac__type_alignof_;
26412 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26419 rm -f conftest.$ac_objext
26420 if { (ac_try="$ac_compile"
26421 case "(($ac_try" in
26422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423 *) ac_try_echo=$ac_try;;
26425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26426 $as_echo "$ac_try_echo") >&5
26427 (eval "$ac_compile") 2>conftest.er1
26429 grep -v '^ *+' conftest.er1 >conftest.err
26431 cat conftest.err >&5
26432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); } && {
26434 test -z "$ac_c_werror_flag" ||
26435 test ! -s conftest.err
26436 } && test -s conftest.$ac_objext; then
26439 cat >conftest.$ac_ext <<_ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h. */
26445 $ac_includes_default
26447 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26449 typedef struct { char x; long y; } ac__type_alignof_;
26453 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26460 rm -f conftest.$ac_objext
26461 if { (ac_try="$ac_compile"
26462 case "(($ac_try" in
26463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26464 *) ac_try_echo=$ac_try;;
26466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26467 $as_echo "$ac_try_echo") >&5
26468 (eval "$ac_compile") 2>conftest.er1
26470 grep -v '^ *+' conftest.er1 >conftest.err
26472 cat conftest.err >&5
26473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); } && {
26475 test -z "$ac_c_werror_flag" ||
26476 test ! -s conftest.err
26477 } && test -s conftest.$ac_objext; then
26478 ac_hi=$ac_mid; break
26480 $as_echo "$as_me: failed program was:" >&5
26481 sed 's/^/| /' conftest.$ac_ext >&5
26483 ac_lo=`expr $ac_mid + 1`
26484 if test $ac_lo -le $ac_mid; then
26488 ac_mid=`expr 2 '*' $ac_mid + 1`
26491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26494 $as_echo "$as_me: failed program was:" >&5
26495 sed 's/^/| /' conftest.$ac_ext >&5
26497 cat >conftest.$ac_ext <<_ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h. */
26503 $ac_includes_default
26505 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26507 typedef struct { char x; long y; } ac__type_alignof_;
26511 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26518 rm -f conftest.$ac_objext
26519 if { (ac_try="$ac_compile"
26520 case "(($ac_try" in
26521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26522 *) ac_try_echo=$ac_try;;
26524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26525 $as_echo "$ac_try_echo") >&5
26526 (eval "$ac_compile") 2>conftest.er1
26528 grep -v '^ *+' conftest.er1 >conftest.err
26530 cat conftest.err >&5
26531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); } && {
26533 test -z "$ac_c_werror_flag" ||
26534 test ! -s conftest.err
26535 } && test -s conftest.$ac_objext; then
26538 cat >conftest.$ac_ext <<_ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h. */
26544 $ac_includes_default
26546 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26548 typedef struct { char x; long y; } ac__type_alignof_;
26552 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26559 rm -f conftest.$ac_objext
26560 if { (ac_try="$ac_compile"
26561 case "(($ac_try" in
26562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563 *) ac_try_echo=$ac_try;;
26565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26566 $as_echo "$ac_try_echo") >&5
26567 (eval "$ac_compile") 2>conftest.er1
26569 grep -v '^ *+' conftest.er1 >conftest.err
26571 cat conftest.err >&5
26572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } && {
26574 test -z "$ac_c_werror_flag" ||
26575 test ! -s conftest.err
26576 } && test -s conftest.$ac_objext; then
26577 ac_lo=$ac_mid; break
26579 $as_echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26582 ac_hi=`expr '(' $ac_mid ')' - 1`
26583 if test $ac_mid -le $ac_hi; then
26587 ac_mid=`expr 2 '*' $ac_mid`
26590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26593 $as_echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26603 # Binary search between lo and hi bounds.
26604 while test "x$ac_lo" != "x$ac_hi"; do
26605 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26606 cat >conftest.$ac_ext <<_ACEOF
26609 cat confdefs.h >>conftest.$ac_ext
26610 cat >>conftest.$ac_ext <<_ACEOF
26611 /* end confdefs.h. */
26612 $ac_includes_default
26614 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26616 typedef struct { char x; long y; } ac__type_alignof_;
26620 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26627 rm -f conftest.$ac_objext
26628 if { (ac_try="$ac_compile"
26629 case "(($ac_try" in
26630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26631 *) ac_try_echo=$ac_try;;
26633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26634 $as_echo "$ac_try_echo") >&5
26635 (eval "$ac_compile") 2>conftest.er1
26637 grep -v '^ *+' conftest.er1 >conftest.err
26639 cat conftest.err >&5
26640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); } && {
26642 test -z "$ac_c_werror_flag" ||
26643 test ! -s conftest.err
26644 } && test -s conftest.$ac_objext; then
26647 $as_echo "$as_me: failed program was:" >&5
26648 sed 's/^/| /' conftest.$ac_ext >&5
26650 ac_lo=`expr '(' $ac_mid ')' + 1`
26653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26656 ?*) ac_cv_alignof_long=$ac_lo;;
26657 '') if test "$ac_cv_type_long" = yes; then
26658 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26660 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26661 See \`config.log' for more details." >&5
26662 $as_echo "$as_me: error: cannot compute alignment of long
26663 See \`config.log' for more details." >&2;}
26664 { (exit 77); exit 77; }; }; }
26666 ac_cv_alignof_long=0
26670 cat >conftest.$ac_ext <<_ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h. */
26676 $ac_includes_default
26678 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26680 typedef struct { char x; long y; } ac__type_alignof_;
26681 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26682 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26684 #include <stdlib.h>
26689 FILE *f = fopen ("conftest.val", "w");
26692 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26694 long int i = longval ();
26695 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26697 fprintf (f, "%ld", i);
26701 unsigned long int i = ulongval ();
26702 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26704 fprintf (f, "%lu", i);
26706 /* Do not output a trailing newline, as this causes \r\n confusion
26707 on some platforms. */
26708 return ferror (f) || fclose (f) != 0;
26714 rm -f conftest$ac_exeext
26715 if { (ac_try="$ac_link"
26716 case "(($ac_try" in
26717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718 *) ac_try_echo=$ac_try;;
26720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26721 $as_echo "$ac_try_echo") >&5
26722 (eval "$ac_link") 2>&5
26724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26726 { (case "(($ac_try" in
26727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728 *) ac_try_echo=$ac_try;;
26730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26731 $as_echo "$ac_try_echo") >&5
26732 (eval "$ac_try") 2>&5
26734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); }; }; then
26736 ac_cv_alignof_long=`cat conftest.val`
26738 $as_echo "$as_me: program exited with status $ac_status" >&5
26739 $as_echo "$as_me: failed program was:" >&5
26740 sed 's/^/| /' conftest.$ac_ext >&5
26742 ( exit $ac_status )
26743 if test "$ac_cv_type_long" = yes; then
26744 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26746 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26747 See \`config.log' for more details." >&5
26748 $as_echo "$as_me: error: cannot compute alignment of long
26749 See \`config.log' for more details." >&2;}
26750 { (exit 77); exit 77; }; }; }
26752 ac_cv_alignof_long=0
26755 rm -rf conftest.dSYM
26756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26760 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26761 $as_echo "$ac_cv_alignof_long" >&6; }
26765 cat >>confdefs.h <<_ACEOF
26766 #define ALIGNOF_LONG $ac_cv_alignof_long
26770 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26771 # The cast to long int works around a bug in the HP C Compiler,
26772 # see AC_CHECK_SIZEOF for more information.
26773 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26774 $as_echo_n "checking alignment of long long int... " >&6; }
26775 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26776 $as_echo_n "(cached) " >&6
26778 if test "$cross_compiling" = yes; then
26779 # Depending upon the size, compute the lo and hi bounds.
26780 cat >conftest.$ac_ext <<_ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h. */
26786 $ac_includes_default
26788 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26790 typedef struct { char x; long long int y; } ac__type_alignof_;
26794 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26801 rm -f conftest.$ac_objext
26802 if { (ac_try="$ac_compile"
26803 case "(($ac_try" in
26804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26805 *) ac_try_echo=$ac_try;;
26807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26808 $as_echo "$ac_try_echo") >&5
26809 (eval "$ac_compile") 2>conftest.er1
26811 grep -v '^ *+' conftest.er1 >conftest.err
26813 cat conftest.err >&5
26814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); } && {
26816 test -z "$ac_c_werror_flag" ||
26817 test ! -s conftest.err
26818 } && test -s conftest.$ac_objext; then
26821 cat >conftest.$ac_ext <<_ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h. */
26827 $ac_includes_default
26829 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26831 typedef struct { char x; long long int y; } ac__type_alignof_;
26835 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26842 rm -f conftest.$ac_objext
26843 if { (ac_try="$ac_compile"
26844 case "(($ac_try" in
26845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846 *) ac_try_echo=$ac_try;;
26848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26849 $as_echo "$ac_try_echo") >&5
26850 (eval "$ac_compile") 2>conftest.er1
26852 grep -v '^ *+' conftest.er1 >conftest.err
26854 cat conftest.err >&5
26855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); } && {
26857 test -z "$ac_c_werror_flag" ||
26858 test ! -s conftest.err
26859 } && test -s conftest.$ac_objext; then
26860 ac_hi=$ac_mid; break
26862 $as_echo "$as_me: failed program was:" >&5
26863 sed 's/^/| /' conftest.$ac_ext >&5
26865 ac_lo=`expr $ac_mid + 1`
26866 if test $ac_lo -le $ac_mid; then
26870 ac_mid=`expr 2 '*' $ac_mid + 1`
26873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26876 $as_echo "$as_me: failed program was:" >&5
26877 sed 's/^/| /' conftest.$ac_ext >&5
26879 cat >conftest.$ac_ext <<_ACEOF
26882 cat confdefs.h >>conftest.$ac_ext
26883 cat >>conftest.$ac_ext <<_ACEOF
26884 /* end confdefs.h. */
26885 $ac_includes_default
26887 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26889 typedef struct { char x; long long int y; } ac__type_alignof_;
26893 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26900 rm -f conftest.$ac_objext
26901 if { (ac_try="$ac_compile"
26902 case "(($ac_try" in
26903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904 *) ac_try_echo=$ac_try;;
26906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26907 $as_echo "$ac_try_echo") >&5
26908 (eval "$ac_compile") 2>conftest.er1
26910 grep -v '^ *+' conftest.er1 >conftest.err
26912 cat conftest.err >&5
26913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } && {
26915 test -z "$ac_c_werror_flag" ||
26916 test ! -s conftest.err
26917 } && test -s conftest.$ac_objext; then
26920 cat >conftest.$ac_ext <<_ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h. */
26926 $ac_includes_default
26928 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26930 typedef struct { char x; long long int y; } ac__type_alignof_;
26934 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26941 rm -f conftest.$ac_objext
26942 if { (ac_try="$ac_compile"
26943 case "(($ac_try" in
26944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945 *) ac_try_echo=$ac_try;;
26947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26948 $as_echo "$ac_try_echo") >&5
26949 (eval "$ac_compile") 2>conftest.er1
26951 grep -v '^ *+' conftest.er1 >conftest.err
26953 cat conftest.err >&5
26954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); } && {
26956 test -z "$ac_c_werror_flag" ||
26957 test ! -s conftest.err
26958 } && test -s conftest.$ac_objext; then
26959 ac_lo=$ac_mid; break
26961 $as_echo "$as_me: failed program was:" >&5
26962 sed 's/^/| /' conftest.$ac_ext >&5
26964 ac_hi=`expr '(' $ac_mid ')' - 1`
26965 if test $ac_mid -le $ac_hi; then
26969 ac_mid=`expr 2 '*' $ac_mid`
26972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26975 $as_echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26985 # Binary search between lo and hi bounds.
26986 while test "x$ac_lo" != "x$ac_hi"; do
26987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26988 cat >conftest.$ac_ext <<_ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h. */
26994 $ac_includes_default
26996 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26998 typedef struct { char x; long long int y; } ac__type_alignof_;
27002 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27009 rm -f conftest.$ac_objext
27010 if { (ac_try="$ac_compile"
27011 case "(($ac_try" in
27012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27013 *) ac_try_echo=$ac_try;;
27015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27016 $as_echo "$ac_try_echo") >&5
27017 (eval "$ac_compile") 2>conftest.er1
27019 grep -v '^ *+' conftest.er1 >conftest.err
27021 cat conftest.err >&5
27022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023 (exit $ac_status); } && {
27024 test -z "$ac_c_werror_flag" ||
27025 test ! -s conftest.err
27026 } && test -s conftest.$ac_objext; then
27029 $as_echo "$as_me: failed program was:" >&5
27030 sed 's/^/| /' conftest.$ac_ext >&5
27032 ac_lo=`expr '(' $ac_mid ')' + 1`
27035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27038 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27039 '') if test "$ac_cv_type_long_long_int" = yes; then
27040 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27042 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27043 See \`config.log' for more details." >&5
27044 $as_echo "$as_me: error: cannot compute alignment of long long int
27045 See \`config.log' for more details." >&2;}
27046 { (exit 77); exit 77; }; }; }
27048 ac_cv_alignof_long_long_int=0
27052 cat >conftest.$ac_ext <<_ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h. */
27058 $ac_includes_default
27060 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27062 typedef struct { char x; long long int y; } ac__type_alignof_;
27063 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27064 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27066 #include <stdlib.h>
27071 FILE *f = fopen ("conftest.val", "w");
27074 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27076 long int i = longval ();
27077 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27079 fprintf (f, "%ld", i);
27083 unsigned long int i = ulongval ();
27084 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27086 fprintf (f, "%lu", i);
27088 /* Do not output a trailing newline, as this causes \r\n confusion
27089 on some platforms. */
27090 return ferror (f) || fclose (f) != 0;
27096 rm -f conftest$ac_exeext
27097 if { (ac_try="$ac_link"
27098 case "(($ac_try" in
27099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27100 *) ac_try_echo=$ac_try;;
27102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27103 $as_echo "$ac_try_echo") >&5
27104 (eval "$ac_link") 2>&5
27106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27108 { (case "(($ac_try" in
27109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27110 *) ac_try_echo=$ac_try;;
27112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27113 $as_echo "$ac_try_echo") >&5
27114 (eval "$ac_try") 2>&5
27116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117 (exit $ac_status); }; }; then
27118 ac_cv_alignof_long_long_int=`cat conftest.val`
27120 $as_echo "$as_me: program exited with status $ac_status" >&5
27121 $as_echo "$as_me: failed program was:" >&5
27122 sed 's/^/| /' conftest.$ac_ext >&5
27124 ( exit $ac_status )
27125 if test "$ac_cv_type_long_long_int" = yes; then
27126 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27128 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27129 See \`config.log' for more details." >&5
27130 $as_echo "$as_me: error: cannot compute alignment of long long int
27131 See \`config.log' for more details." >&2;}
27132 { (exit 77); exit 77; }; }; }
27134 ac_cv_alignof_long_long_int=0
27137 rm -rf conftest.dSYM
27138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27142 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27143 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27147 cat >>confdefs.h <<_ACEOF
27148 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27153 # The cast to long int works around a bug in the HP C Compiler,
27154 # see AC_CHECK_SIZEOF for more information.
27155 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27156 $as_echo_n "checking alignment of double... " >&6; }
27157 if test "${ac_cv_alignof_double+set}" = set; then
27158 $as_echo_n "(cached) " >&6
27160 if test "$cross_compiling" = yes; then
27161 # Depending upon the size, compute the lo and hi bounds.
27162 cat >conftest.$ac_ext <<_ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h. */
27168 $ac_includes_default
27170 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27172 typedef struct { char x; double y; } ac__type_alignof_;
27176 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27183 rm -f conftest.$ac_objext
27184 if { (ac_try="$ac_compile"
27185 case "(($ac_try" in
27186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187 *) ac_try_echo=$ac_try;;
27189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27190 $as_echo "$ac_try_echo") >&5
27191 (eval "$ac_compile") 2>conftest.er1
27193 grep -v '^ *+' conftest.er1 >conftest.err
27195 cat conftest.err >&5
27196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197 (exit $ac_status); } && {
27198 test -z "$ac_c_werror_flag" ||
27199 test ! -s conftest.err
27200 } && test -s conftest.$ac_objext; then
27203 cat >conftest.$ac_ext <<_ACEOF
27206 cat confdefs.h >>conftest.$ac_ext
27207 cat >>conftest.$ac_ext <<_ACEOF
27208 /* end confdefs.h. */
27209 $ac_includes_default
27211 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27213 typedef struct { char x; double y; } ac__type_alignof_;
27217 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27224 rm -f conftest.$ac_objext
27225 if { (ac_try="$ac_compile"
27226 case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27231 $as_echo "$ac_try_echo") >&5
27232 (eval "$ac_compile") 2>conftest.er1
27234 grep -v '^ *+' conftest.er1 >conftest.err
27236 cat conftest.err >&5
27237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); } && {
27239 test -z "$ac_c_werror_flag" ||
27240 test ! -s conftest.err
27241 } && test -s conftest.$ac_objext; then
27242 ac_hi=$ac_mid; break
27244 $as_echo "$as_me: failed program was:" >&5
27245 sed 's/^/| /' conftest.$ac_ext >&5
27247 ac_lo=`expr $ac_mid + 1`
27248 if test $ac_lo -le $ac_mid; then
27252 ac_mid=`expr 2 '*' $ac_mid + 1`
27255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27258 $as_echo "$as_me: failed program was:" >&5
27259 sed 's/^/| /' conftest.$ac_ext >&5
27261 cat >conftest.$ac_ext <<_ACEOF
27264 cat confdefs.h >>conftest.$ac_ext
27265 cat >>conftest.$ac_ext <<_ACEOF
27266 /* end confdefs.h. */
27267 $ac_includes_default
27269 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27271 typedef struct { char x; double y; } ac__type_alignof_;
27275 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27282 rm -f conftest.$ac_objext
27283 if { (ac_try="$ac_compile"
27284 case "(($ac_try" in
27285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286 *) ac_try_echo=$ac_try;;
27288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27289 $as_echo "$ac_try_echo") >&5
27290 (eval "$ac_compile") 2>conftest.er1
27292 grep -v '^ *+' conftest.er1 >conftest.err
27294 cat conftest.err >&5
27295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); } && {
27297 test -z "$ac_c_werror_flag" ||
27298 test ! -s conftest.err
27299 } && test -s conftest.$ac_objext; then
27302 cat >conftest.$ac_ext <<_ACEOF
27305 cat confdefs.h >>conftest.$ac_ext
27306 cat >>conftest.$ac_ext <<_ACEOF
27307 /* end confdefs.h. */
27308 $ac_includes_default
27310 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27312 typedef struct { char x; double y; } ac__type_alignof_;
27316 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27323 rm -f conftest.$ac_objext
27324 if { (ac_try="$ac_compile"
27325 case "(($ac_try" in
27326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27327 *) ac_try_echo=$ac_try;;
27329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27330 $as_echo "$ac_try_echo") >&5
27331 (eval "$ac_compile") 2>conftest.er1
27333 grep -v '^ *+' conftest.er1 >conftest.err
27335 cat conftest.err >&5
27336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); } && {
27338 test -z "$ac_c_werror_flag" ||
27339 test ! -s conftest.err
27340 } && test -s conftest.$ac_objext; then
27341 ac_lo=$ac_mid; break
27343 $as_echo "$as_me: failed program was:" >&5
27344 sed 's/^/| /' conftest.$ac_ext >&5
27346 ac_hi=`expr '(' $ac_mid ')' - 1`
27347 if test $ac_mid -le $ac_hi; then
27351 ac_mid=`expr 2 '*' $ac_mid`
27354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27357 $as_echo "$as_me: failed program was:" >&5
27358 sed 's/^/| /' conftest.$ac_ext >&5
27363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27367 # Binary search between lo and hi bounds.
27368 while test "x$ac_lo" != "x$ac_hi"; do
27369 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27370 cat >conftest.$ac_ext <<_ACEOF
27373 cat confdefs.h >>conftest.$ac_ext
27374 cat >>conftest.$ac_ext <<_ACEOF
27375 /* end confdefs.h. */
27376 $ac_includes_default
27378 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27380 typedef struct { char x; double y; } ac__type_alignof_;
27384 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27391 rm -f conftest.$ac_objext
27392 if { (ac_try="$ac_compile"
27393 case "(($ac_try" in
27394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27395 *) ac_try_echo=$ac_try;;
27397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27398 $as_echo "$ac_try_echo") >&5
27399 (eval "$ac_compile") 2>conftest.er1
27401 grep -v '^ *+' conftest.er1 >conftest.err
27403 cat conftest.err >&5
27404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); } && {
27406 test -z "$ac_c_werror_flag" ||
27407 test ! -s conftest.err
27408 } && test -s conftest.$ac_objext; then
27411 $as_echo "$as_me: failed program was:" >&5
27412 sed 's/^/| /' conftest.$ac_ext >&5
27414 ac_lo=`expr '(' $ac_mid ')' + 1`
27417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27420 ?*) ac_cv_alignof_double=$ac_lo;;
27421 '') if test "$ac_cv_type_double" = yes; then
27422 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27424 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27425 See \`config.log' for more details." >&5
27426 $as_echo "$as_me: error: cannot compute alignment of double
27427 See \`config.log' for more details." >&2;}
27428 { (exit 77); exit 77; }; }; }
27430 ac_cv_alignof_double=0
27434 cat >conftest.$ac_ext <<_ACEOF
27437 cat confdefs.h >>conftest.$ac_ext
27438 cat >>conftest.$ac_ext <<_ACEOF
27439 /* end confdefs.h. */
27440 $ac_includes_default
27442 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27444 typedef struct { char x; double y; } ac__type_alignof_;
27445 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27446 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27448 #include <stdlib.h>
27453 FILE *f = fopen ("conftest.val", "w");
27456 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27458 long int i = longval ();
27459 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27461 fprintf (f, "%ld", i);
27465 unsigned long int i = ulongval ();
27466 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27468 fprintf (f, "%lu", i);
27470 /* Do not output a trailing newline, as this causes \r\n confusion
27471 on some platforms. */
27472 return ferror (f) || fclose (f) != 0;
27478 rm -f conftest$ac_exeext
27479 if { (ac_try="$ac_link"
27480 case "(($ac_try" in
27481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482 *) ac_try_echo=$ac_try;;
27484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27485 $as_echo "$ac_try_echo") >&5
27486 (eval "$ac_link") 2>&5
27488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27490 { (case "(($ac_try" in
27491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492 *) ac_try_echo=$ac_try;;
27494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27495 $as_echo "$ac_try_echo") >&5
27496 (eval "$ac_try") 2>&5
27498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); }; }; then
27500 ac_cv_alignof_double=`cat conftest.val`
27502 $as_echo "$as_me: program exited with status $ac_status" >&5
27503 $as_echo "$as_me: failed program was:" >&5
27504 sed 's/^/| /' conftest.$ac_ext >&5
27506 ( exit $ac_status )
27507 if test "$ac_cv_type_double" = yes; then
27508 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27510 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27511 See \`config.log' for more details." >&5
27512 $as_echo "$as_me: error: cannot compute alignment of double
27513 See \`config.log' for more details." >&2;}
27514 { (exit 77); exit 77; }; }; }
27516 ac_cv_alignof_double=0
27519 rm -rf conftest.dSYM
27520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27524 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27525 $as_echo "$ac_cv_alignof_double" >&6; }
27529 cat >>confdefs.h <<_ACEOF
27530 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27535 # Compute maximum alignment of any basic type.
27536 # We assume long's alignment is at least as strong as char, short, or int;
27537 # but we must check long long (if it exists) and double.
27539 MAX_ALIGNOF=$ac_cv_alignof_long
27540 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27541 MAX_ALIGNOF=$ac_cv_alignof_double
27543 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27544 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27547 cat >>confdefs.h <<_ACEOF
27548 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27553 # Some platforms predefine the types int8, int16, etc. Only check
27554 # a (hopefully) representative subset.
27555 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27556 $as_echo_n "checking for int8... " >&6; }
27557 if test "${ac_cv_type_int8+set}" = set; then
27558 $as_echo_n "(cached) " >&6
27561 cat >conftest.$ac_ext <<_ACEOF
27564 cat confdefs.h >>conftest.$ac_ext
27565 cat >>conftest.$ac_ext <<_ACEOF
27566 /* end confdefs.h. */
27568 #ifdef HAVE_SUPPORTDEFS_H
27569 #include <SupportDefs.h>
27581 rm -f conftest.$ac_objext
27582 if { (ac_try="$ac_compile"
27583 case "(($ac_try" in
27584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27588 $as_echo "$ac_try_echo") >&5
27589 (eval "$ac_compile") 2>conftest.er1
27591 grep -v '^ *+' conftest.er1 >conftest.err
27593 cat conftest.err >&5
27594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); } && {
27596 test -z "$ac_c_werror_flag" ||
27597 test ! -s conftest.err
27598 } && test -s conftest.$ac_objext; then
27599 cat >conftest.$ac_ext <<_ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h. */
27606 #ifdef HAVE_SUPPORTDEFS_H
27607 #include <SupportDefs.h>
27613 if (sizeof ((int8)))
27619 rm -f conftest.$ac_objext
27620 if { (ac_try="$ac_compile"
27621 case "(($ac_try" in
27622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27623 *) ac_try_echo=$ac_try;;
27625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27626 $as_echo "$ac_try_echo") >&5
27627 (eval "$ac_compile") 2>conftest.er1
27629 grep -v '^ *+' conftest.er1 >conftest.err
27631 cat conftest.err >&5
27632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); } && {
27634 test -z "$ac_c_werror_flag" ||
27635 test ! -s conftest.err
27636 } && test -s conftest.$ac_objext; then
27639 $as_echo "$as_me: failed program was:" >&5
27640 sed 's/^/| /' conftest.$ac_ext >&5
27642 ac_cv_type_int8=yes
27645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27647 $as_echo "$as_me: failed program was:" >&5
27648 sed 's/^/| /' conftest.$ac_ext >&5
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27655 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27656 $as_echo "$ac_cv_type_int8" >&6; }
27657 if test "x$ac_cv_type_int8" = x""yes; then
27659 cat >>confdefs.h <<_ACEOF
27660 #define HAVE_INT8 1
27665 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27666 $as_echo_n "checking for uint8... " >&6; }
27667 if test "${ac_cv_type_uint8+set}" = set; then
27668 $as_echo_n "(cached) " >&6
27670 ac_cv_type_uint8=no
27671 cat >conftest.$ac_ext <<_ACEOF
27674 cat confdefs.h >>conftest.$ac_ext
27675 cat >>conftest.$ac_ext <<_ACEOF
27676 /* end confdefs.h. */
27678 #ifdef HAVE_SUPPORTDEFS_H
27679 #include <SupportDefs.h>
27685 if (sizeof (uint8))
27691 rm -f conftest.$ac_objext
27692 if { (ac_try="$ac_compile"
27693 case "(($ac_try" in
27694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27695 *) ac_try_echo=$ac_try;;
27697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27698 $as_echo "$ac_try_echo") >&5
27699 (eval "$ac_compile") 2>conftest.er1
27701 grep -v '^ *+' conftest.er1 >conftest.err
27703 cat conftest.err >&5
27704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); } && {
27706 test -z "$ac_c_werror_flag" ||
27707 test ! -s conftest.err
27708 } && test -s conftest.$ac_objext; then
27709 cat >conftest.$ac_ext <<_ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h. */
27716 #ifdef HAVE_SUPPORTDEFS_H
27717 #include <SupportDefs.h>
27723 if (sizeof ((uint8)))
27729 rm -f conftest.$ac_objext
27730 if { (ac_try="$ac_compile"
27731 case "(($ac_try" in
27732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27733 *) ac_try_echo=$ac_try;;
27735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27736 $as_echo "$ac_try_echo") >&5
27737 (eval "$ac_compile") 2>conftest.er1
27739 grep -v '^ *+' conftest.er1 >conftest.err
27741 cat conftest.err >&5
27742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); } && {
27744 test -z "$ac_c_werror_flag" ||
27745 test ! -s conftest.err
27746 } && test -s conftest.$ac_objext; then
27749 $as_echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27752 ac_cv_type_uint8=yes
27755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27757 $as_echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27765 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27766 $as_echo "$ac_cv_type_uint8" >&6; }
27767 if test "x$ac_cv_type_uint8" = x""yes; then
27769 cat >>confdefs.h <<_ACEOF
27770 #define HAVE_UINT8 1
27775 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27776 $as_echo_n "checking for int64... " >&6; }
27777 if test "${ac_cv_type_int64+set}" = set; then
27778 $as_echo_n "(cached) " >&6
27780 ac_cv_type_int64=no
27781 cat >conftest.$ac_ext <<_ACEOF
27784 cat confdefs.h >>conftest.$ac_ext
27785 cat >>conftest.$ac_ext <<_ACEOF
27786 /* end confdefs.h. */
27788 #ifdef HAVE_SUPPORTDEFS_H
27789 #include <SupportDefs.h>
27795 if (sizeof (int64))
27801 rm -f conftest.$ac_objext
27802 if { (ac_try="$ac_compile"
27803 case "(($ac_try" in
27804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27805 *) ac_try_echo=$ac_try;;
27807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27808 $as_echo "$ac_try_echo") >&5
27809 (eval "$ac_compile") 2>conftest.er1
27811 grep -v '^ *+' conftest.er1 >conftest.err
27813 cat conftest.err >&5
27814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); } && {
27816 test -z "$ac_c_werror_flag" ||
27817 test ! -s conftest.err
27818 } && test -s conftest.$ac_objext; then
27819 cat >conftest.$ac_ext <<_ACEOF
27822 cat confdefs.h >>conftest.$ac_ext
27823 cat >>conftest.$ac_ext <<_ACEOF
27824 /* end confdefs.h. */
27826 #ifdef HAVE_SUPPORTDEFS_H
27827 #include <SupportDefs.h>
27833 if (sizeof ((int64)))
27839 rm -f conftest.$ac_objext
27840 if { (ac_try="$ac_compile"
27841 case "(($ac_try" in
27842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843 *) ac_try_echo=$ac_try;;
27845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27846 $as_echo "$ac_try_echo") >&5
27847 (eval "$ac_compile") 2>conftest.er1
27849 grep -v '^ *+' conftest.er1 >conftest.err
27851 cat conftest.err >&5
27852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } && {
27854 test -z "$ac_c_werror_flag" ||
27855 test ! -s conftest.err
27856 } && test -s conftest.$ac_objext; then
27859 $as_echo "$as_me: failed program was:" >&5
27860 sed 's/^/| /' conftest.$ac_ext >&5
27862 ac_cv_type_int64=yes
27865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27867 $as_echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27875 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27876 $as_echo "$ac_cv_type_int64" >&6; }
27877 if test "x$ac_cv_type_int64" = x""yes; then
27879 cat >>confdefs.h <<_ACEOF
27880 #define HAVE_INT64 1
27885 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27886 $as_echo_n "checking for uint64... " >&6; }
27887 if test "${ac_cv_type_uint64+set}" = set; then
27888 $as_echo_n "(cached) " >&6
27890 ac_cv_type_uint64=no
27891 cat >conftest.$ac_ext <<_ACEOF
27894 cat confdefs.h >>conftest.$ac_ext
27895 cat >>conftest.$ac_ext <<_ACEOF
27896 /* end confdefs.h. */
27898 #ifdef HAVE_SUPPORTDEFS_H
27899 #include <SupportDefs.h>
27905 if (sizeof (uint64))
27911 rm -f conftest.$ac_objext
27912 if { (ac_try="$ac_compile"
27913 case "(($ac_try" in
27914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915 *) ac_try_echo=$ac_try;;
27917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27918 $as_echo "$ac_try_echo") >&5
27919 (eval "$ac_compile") 2>conftest.er1
27921 grep -v '^ *+' conftest.er1 >conftest.err
27923 cat conftest.err >&5
27924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); } && {
27926 test -z "$ac_c_werror_flag" ||
27927 test ! -s conftest.err
27928 } && test -s conftest.$ac_objext; then
27929 cat >conftest.$ac_ext <<_ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h. */
27936 #ifdef HAVE_SUPPORTDEFS_H
27937 #include <SupportDefs.h>
27943 if (sizeof ((uint64)))
27949 rm -f conftest.$ac_objext
27950 if { (ac_try="$ac_compile"
27951 case "(($ac_try" in
27952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27953 *) ac_try_echo=$ac_try;;
27955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27956 $as_echo "$ac_try_echo") >&5
27957 (eval "$ac_compile") 2>conftest.er1
27959 grep -v '^ *+' conftest.er1 >conftest.err
27961 cat conftest.err >&5
27962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); } && {
27964 test -z "$ac_c_werror_flag" ||
27965 test ! -s conftest.err
27966 } && test -s conftest.$ac_objext; then
27969 $as_echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27972 ac_cv_type_uint64=yes
27975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27977 $as_echo "$as_me: failed program was:" >&5
27978 sed 's/^/| /' conftest.$ac_ext >&5
27983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27985 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27986 $as_echo "$ac_cv_type_uint64" >&6; }
27987 if test "x$ac_cv_type_uint64" = x""yes; then
27989 cat >>confdefs.h <<_ACEOF
27990 #define HAVE_UINT64 1
27997 # We also check for sig_atomic_t, which *should* be defined per ANSI
27998 # C, but is missing on some old platforms.
27999 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28000 $as_echo_n "checking for sig_atomic_t... " >&6; }
28001 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28002 $as_echo_n "(cached) " >&6
28004 ac_cv_type_sig_atomic_t=no
28005 cat >conftest.$ac_ext <<_ACEOF
28008 cat confdefs.h >>conftest.$ac_ext
28009 cat >>conftest.$ac_ext <<_ACEOF
28010 /* end confdefs.h. */
28011 #include <signal.h>
28016 if (sizeof (sig_atomic_t))
28022 rm -f conftest.$ac_objext
28023 if { (ac_try="$ac_compile"
28024 case "(($ac_try" in
28025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026 *) ac_try_echo=$ac_try;;
28028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28029 $as_echo "$ac_try_echo") >&5
28030 (eval "$ac_compile") 2>conftest.er1
28032 grep -v '^ *+' conftest.er1 >conftest.err
28034 cat conftest.err >&5
28035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); } && {
28037 test -z "$ac_c_werror_flag" ||
28038 test ! -s conftest.err
28039 } && test -s conftest.$ac_objext; then
28040 cat >conftest.$ac_ext <<_ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h. */
28046 #include <signal.h>
28051 if (sizeof ((sig_atomic_t)))
28057 rm -f conftest.$ac_objext
28058 if { (ac_try="$ac_compile"
28059 case "(($ac_try" in
28060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061 *) ac_try_echo=$ac_try;;
28063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28064 $as_echo "$ac_try_echo") >&5
28065 (eval "$ac_compile") 2>conftest.er1
28067 grep -v '^ *+' conftest.er1 >conftest.err
28069 cat conftest.err >&5
28070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); } && {
28072 test -z "$ac_c_werror_flag" ||
28073 test ! -s conftest.err
28074 } && test -s conftest.$ac_objext; then
28077 $as_echo "$as_me: failed program was:" >&5
28078 sed 's/^/| /' conftest.$ac_ext >&5
28080 ac_cv_type_sig_atomic_t=yes
28083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28085 $as_echo "$as_me: failed program was:" >&5
28086 sed 's/^/| /' conftest.$ac_ext >&5
28091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28093 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28094 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28095 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28097 cat >>confdefs.h <<_ACEOF
28098 #define HAVE_SIG_ATOMIC_T 1
28106 if test "$PORTNAME" != "win32"
28108 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28109 $as_echo_n "checking for POSIX signal interface... " >&6; }
28110 if test "${pgac_cv_func_posix_signals+set}" = set; then
28111 $as_echo_n "(cached) " >&6
28113 cat >conftest.$ac_ext <<_ACEOF
28116 cat confdefs.h >>conftest.$ac_ext
28117 cat >>conftest.$ac_ext <<_ACEOF
28118 /* end confdefs.h. */
28119 #include <signal.h>
28124 struct sigaction act, oact;
28125 sigemptyset(&act.sa_mask);
28126 act.sa_flags = SA_RESTART;
28127 sigaction(0, &act, &oact);
28132 rm -f conftest.$ac_objext conftest$ac_exeext
28133 if { (ac_try="$ac_link"
28134 case "(($ac_try" in
28135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136 *) ac_try_echo=$ac_try;;
28138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28139 $as_echo "$ac_try_echo") >&5
28140 (eval "$ac_link") 2>conftest.er1
28142 grep -v '^ *+' conftest.er1 >conftest.err
28144 cat conftest.err >&5
28145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); } && {
28147 test -z "$ac_c_werror_flag" ||
28148 test ! -s conftest.err
28149 } && test -s conftest$ac_exeext && {
28150 test "$cross_compiling" = yes ||
28151 $as_test_x conftest$ac_exeext
28153 pgac_cv_func_posix_signals=yes
28155 $as_echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28158 pgac_cv_func_posix_signals=no
28161 rm -rf conftest.dSYM
28162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28163 conftest$ac_exeext conftest.$ac_ext
28165 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28166 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28167 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28169 cat >>confdefs.h <<\_ACEOF
28170 #define HAVE_POSIX_SIGNALS /**/
28174 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28176 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28177 { { $as_echo "$as_me:$LINENO: error:
28178 Thread-safety requires POSIX signals, which are not supported by this
28179 operating system; use --disable-thread-safety to disable thread safety." >&5
28180 $as_echo "$as_me: error:
28181 Thread-safety requires POSIX signals, which are not supported by this
28182 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28183 { (exit 1); exit 1; }; }
28187 # SunOS doesn't handle negative byte comparisons properly with +/- return
28188 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28189 $as_echo_n "checking for working memcmp... " >&6; }
28190 if test "${ac_cv_func_memcmp_working+set}" = set; then
28191 $as_echo_n "(cached) " >&6
28193 if test "$cross_compiling" = yes; then
28194 ac_cv_func_memcmp_working=no
28196 cat >conftest.$ac_ext <<_ACEOF
28199 cat confdefs.h >>conftest.$ac_ext
28200 cat >>conftest.$ac_ext <<_ACEOF
28201 /* end confdefs.h. */
28202 $ac_includes_default
28207 /* Some versions of memcmp are not 8-bit clean. */
28208 char c0 = '\100', c1 = '\200', c2 = '\201';
28209 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28212 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28213 or more and with at least one buffer not starting on a 4-byte boundary.
28214 William Lewis provided this test program. */
28219 for (i = 0; i < 4; i++)
28223 strcpy (a, "--------01111111");
28224 strcpy (b, "--------10000000");
28225 if (memcmp (a, b, 16) >= 0)
28235 rm -f conftest$ac_exeext
28236 if { (ac_try="$ac_link"
28237 case "(($ac_try" in
28238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28239 *) ac_try_echo=$ac_try;;
28241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28242 $as_echo "$ac_try_echo") >&5
28243 (eval "$ac_link") 2>&5
28245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28247 { (case "(($ac_try" in
28248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249 *) ac_try_echo=$ac_try;;
28251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28252 $as_echo "$ac_try_echo") >&5
28253 (eval "$ac_try") 2>&5
28255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); }; }; then
28257 ac_cv_func_memcmp_working=yes
28259 $as_echo "$as_me: program exited with status $ac_status" >&5
28260 $as_echo "$as_me: failed program was:" >&5
28261 sed 's/^/| /' conftest.$ac_ext >&5
28263 ( exit $ac_status )
28264 ac_cv_func_memcmp_working=no
28266 rm -rf conftest.dSYM
28267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28272 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28273 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28274 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28275 *" memcmp.$ac_objext "* ) ;;
28276 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28283 # Select semaphore implementation type.
28284 if test "$PORTNAME" != "win32"; then
28285 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28287 cat >>confdefs.h <<\_ACEOF
28288 #define USE_NAMED_POSIX_SEMAPHORES 1
28291 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28293 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28295 cat >>confdefs.h <<\_ACEOF
28296 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28299 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28302 cat >>confdefs.h <<\_ACEOF
28303 #define USE_SYSV_SEMAPHORES 1
28306 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28311 cat >>confdefs.h <<\_ACEOF
28312 #define USE_WIN32_SEMAPHORES 1
28315 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28319 # Select shared-memory implementation type.
28320 if test "$PORTNAME" != "win32"; then
28322 cat >>confdefs.h <<\_ACEOF
28323 #define USE_SYSV_SHARED_MEMORY 1
28326 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28329 cat >>confdefs.h <<\_ACEOF
28330 #define USE_WIN32_SHARED_MEMORY 1
28333 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28336 # Select latch implementation type.
28337 if test "$PORTNAME" != "win32"; then
28338 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28340 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28343 # If not set in template file, set bytes to use libc memset()
28344 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28345 MEMSET_LOOP_LIMIT=1024
28348 cat >>confdefs.h <<_ACEOF
28349 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28354 if test "$enable_nls" = yes ; then
28356 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28357 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28358 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28359 $as_echo_n "(cached) " >&6
28361 ac_func_search_save_LIBS=$LIBS
28362 cat >conftest.$ac_ext <<_ACEOF
28365 cat confdefs.h >>conftest.$ac_ext
28366 cat >>conftest.$ac_ext <<_ACEOF
28367 /* end confdefs.h. */
28369 /* Override any GCC internal prototype to avoid an error.
28370 Use char because int might match the return type of a GCC
28371 builtin and then its argument prototype would still apply. */
28375 char bind_textdomain_codeset ();
28379 return bind_textdomain_codeset ();
28384 for ac_lib in '' intl; do
28385 if test -z "$ac_lib"; then
28386 ac_res="none required"
28389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28391 rm -f conftest.$ac_objext conftest$ac_exeext
28392 if { (ac_try="$ac_link"
28393 case "(($ac_try" in
28394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28395 *) ac_try_echo=$ac_try;;
28397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28398 $as_echo "$ac_try_echo") >&5
28399 (eval "$ac_link") 2>conftest.er1
28401 grep -v '^ *+' conftest.er1 >conftest.err
28403 cat conftest.err >&5
28404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); } && {
28406 test -z "$ac_c_werror_flag" ||
28407 test ! -s conftest.err
28408 } && test -s conftest$ac_exeext && {
28409 test "$cross_compiling" = yes ||
28410 $as_test_x conftest$ac_exeext
28412 ac_cv_search_bind_textdomain_codeset=$ac_res
28414 $as_echo "$as_me: failed program was:" >&5
28415 sed 's/^/| /' conftest.$ac_ext >&5
28420 rm -rf conftest.dSYM
28421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28423 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28427 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28430 ac_cv_search_bind_textdomain_codeset=no
28432 rm conftest.$ac_ext
28433 LIBS=$ac_func_search_save_LIBS
28435 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28436 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28437 ac_res=$ac_cv_search_bind_textdomain_codeset
28438 if test "$ac_res" != no; then
28439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28442 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28443 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28444 { (exit 1); exit 1; }; }
28447 if test "${ac_cv_header_libintl_h+set}" = set; then
28448 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28449 $as_echo_n "checking for libintl.h... " >&6; }
28450 if test "${ac_cv_header_libintl_h+set}" = set; then
28451 $as_echo_n "(cached) " >&6
28453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28454 $as_echo "$ac_cv_header_libintl_h" >&6; }
28456 # Is the header compilable?
28457 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28458 $as_echo_n "checking libintl.h usability... " >&6; }
28459 cat >conftest.$ac_ext <<_ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h. */
28465 $ac_includes_default
28466 #include <libintl.h>
28468 rm -f conftest.$ac_objext
28469 if { (ac_try="$ac_compile"
28470 case "(($ac_try" in
28471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472 *) ac_try_echo=$ac_try;;
28474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28475 $as_echo "$ac_try_echo") >&5
28476 (eval "$ac_compile") 2>conftest.er1
28478 grep -v '^ *+' conftest.er1 >conftest.err
28480 cat conftest.err >&5
28481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); } && {
28483 test -z "$ac_c_werror_flag" ||
28484 test ! -s conftest.err
28485 } && test -s conftest.$ac_objext; then
28486 ac_header_compiler=yes
28488 $as_echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28491 ac_header_compiler=no
28494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28496 $as_echo "$ac_header_compiler" >&6; }
28498 # Is the header present?
28499 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28500 $as_echo_n "checking libintl.h presence... " >&6; }
28501 cat >conftest.$ac_ext <<_ACEOF
28504 cat confdefs.h >>conftest.$ac_ext
28505 cat >>conftest.$ac_ext <<_ACEOF
28506 /* end confdefs.h. */
28507 #include <libintl.h>
28509 if { (ac_try="$ac_cpp conftest.$ac_ext"
28510 case "(($ac_try" in
28511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28512 *) ac_try_echo=$ac_try;;
28514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28515 $as_echo "$ac_try_echo") >&5
28516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28518 grep -v '^ *+' conftest.er1 >conftest.err
28520 cat conftest.err >&5
28521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); } >/dev/null && {
28523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28524 test ! -s conftest.err
28526 ac_header_preproc=yes
28528 $as_echo "$as_me: failed program was:" >&5
28529 sed 's/^/| /' conftest.$ac_ext >&5
28531 ac_header_preproc=no
28534 rm -f conftest.err conftest.$ac_ext
28535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28536 $as_echo "$ac_header_preproc" >&6; }
28538 # So? What about this header?
28539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28541 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28542 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28543 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28544 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28545 ac_header_preproc=yes
28548 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28549 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28550 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28551 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28552 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28553 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28554 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28555 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28556 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28557 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28558 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28559 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28561 ## ---------------------------------------- ##
28562 ## Report this to pgsql-bugs@postgresql.org ##
28563 ## ---------------------------------------- ##
28565 ) | sed "s/^/$as_me: WARNING: /" >&2
28568 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28569 $as_echo_n "checking for libintl.h... " >&6; }
28570 if test "${ac_cv_header_libintl_h+set}" = set; then
28571 $as_echo_n "(cached) " >&6
28573 ac_cv_header_libintl_h=$ac_header_preproc
28575 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28576 $as_echo "$ac_cv_header_libintl_h" >&6; }
28579 if test "x$ac_cv_header_libintl_h" = x""yes; then
28582 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28583 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28584 { (exit 1); exit 1; }; }
28588 for ac_prog in msgfmt
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_prog_MSGFMT+set}" = set; then
28595 $as_echo_n "(cached) " >&6
28597 if test -n "$MSGFMT"; then
28598 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28601 for as_dir in $PATH
28604 test -z "$as_dir" && as_dir=.
28605 for ac_exec_ext in '' $ac_executable_extensions; do
28606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28607 ac_cv_prog_MSGFMT="$ac_prog"
28608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28617 MSGFMT=$ac_cv_prog_MSGFMT
28618 if test -n "$MSGFMT"; then
28619 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28620 $as_echo "$MSGFMT" >&6; }
28622 { $as_echo "$as_me:$LINENO: result: no" >&5
28623 $as_echo "no" >&6; }
28627 test -n "$MSGFMT" && break
28630 if test -z "$MSGFMT"; then
28631 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28632 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28633 { (exit 1); exit 1; }; }
28635 for ac_prog in msgmerge
28637 # Extract the first word of "$ac_prog", so it can be a program name with args.
28638 set dummy $ac_prog; ac_word=$2
28639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28640 $as_echo_n "checking for $ac_word... " >&6; }
28641 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28642 $as_echo_n "(cached) " >&6
28644 if test -n "$MSGMERGE"; then
28645 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28648 for as_dir in $PATH
28651 test -z "$as_dir" && as_dir=.
28652 for ac_exec_ext in '' $ac_executable_extensions; do
28653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28654 ac_cv_prog_MSGMERGE="$ac_prog"
28655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28664 MSGMERGE=$ac_cv_prog_MSGMERGE
28665 if test -n "$MSGMERGE"; then
28666 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28667 $as_echo "$MSGMERGE" >&6; }
28669 { $as_echo "$as_me:$LINENO: result: no" >&5
28670 $as_echo "no" >&6; }
28674 test -n "$MSGMERGE" && break
28677 for ac_prog in xgettext
28679 # Extract the first word of "$ac_prog", so it can be a program name with args.
28680 set dummy $ac_prog; ac_word=$2
28681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28682 $as_echo_n "checking for $ac_word... " >&6; }
28683 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28684 $as_echo_n "(cached) " >&6
28686 if test -n "$XGETTEXT"; then
28687 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28690 for as_dir in $PATH
28693 test -z "$as_dir" && as_dir=.
28694 for ac_exec_ext in '' $ac_executable_extensions; do
28695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28696 ac_cv_prog_XGETTEXT="$ac_prog"
28697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28706 XGETTEXT=$ac_cv_prog_XGETTEXT
28707 if test -n "$XGETTEXT"; then
28708 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28709 $as_echo "$XGETTEXT" >&6; }
28711 { $as_echo "$as_me:$LINENO: result: no" >&5
28712 $as_echo "no" >&6; }
28716 test -n "$XGETTEXT" && break
28722 # Check for Tcl configuration script tclConfig.sh
28723 if test "$with_tcl" = yes; then
28724 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28726 # Extract the first word of "$ac_prog", so it can be a program name with args.
28727 set dummy $ac_prog; ac_word=$2
28728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28729 $as_echo_n "checking for $ac_word... " >&6; }
28730 if test "${ac_cv_path_TCLSH+set}" = set; then
28731 $as_echo_n "(cached) " >&6
28735 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28739 for as_dir in $PATH
28742 test -z "$as_dir" && as_dir=.
28743 for ac_exec_ext in '' $ac_executable_extensions; do
28744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28745 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28746 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28756 TCLSH=$ac_cv_path_TCLSH
28757 if test -n "$TCLSH"; then
28758 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28759 $as_echo "$TCLSH" >&6; }
28761 { $as_echo "$as_me:$LINENO: result: no" >&5
28762 $as_echo "no" >&6; }
28766 test -n "$TCLSH" && break
28769 if test x"$TCLSH" = x""; then
28770 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28771 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28772 { (exit 1); exit 1; }; }
28775 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28776 $as_echo_n "checking for tclConfig.sh... " >&6; }
28777 # Let user override test
28778 if test -z "$TCL_CONFIG_SH"; then
28779 pgac_test_dirs="$with_tclconfig"
28781 set X $pgac_test_dirs; shift
28782 if test $# -eq 0; then
28783 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28784 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28785 { (exit 1); exit 1; }; }
28786 set X `echo 'puts $auto_path' | $TCLSH`; shift
28790 if test -r "$pgac_dir/tclConfig.sh"; then
28791 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28797 if test -z "$TCL_CONFIG_SH"; then
28798 { $as_echo "$as_me:$LINENO: result: no" >&5
28799 $as_echo "no" >&6; }
28800 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28801 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28802 { (exit 1); exit 1; }; }
28804 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28805 $as_echo "$TCL_CONFIG_SH" >&6; }
28811 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28812 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28813 eval TCL_LIBS=\"$TCL_LIBS\"
28814 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28815 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28817 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28818 ac_save_CPPFLAGS=$CPPFLAGS
28819 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28820 if test "${ac_cv_header_tcl_h+set}" = set; then
28821 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28822 $as_echo_n "checking for tcl.h... " >&6; }
28823 if test "${ac_cv_header_tcl_h+set}" = set; then
28824 $as_echo_n "(cached) " >&6
28826 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28827 $as_echo "$ac_cv_header_tcl_h" >&6; }
28829 # Is the header compilable?
28830 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28831 $as_echo_n "checking tcl.h usability... " >&6; }
28832 cat >conftest.$ac_ext <<_ACEOF
28835 cat confdefs.h >>conftest.$ac_ext
28836 cat >>conftest.$ac_ext <<_ACEOF
28837 /* end confdefs.h. */
28838 $ac_includes_default
28841 rm -f conftest.$ac_objext
28842 if { (ac_try="$ac_compile"
28843 case "(($ac_try" in
28844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28845 *) ac_try_echo=$ac_try;;
28847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28848 $as_echo "$ac_try_echo") >&5
28849 (eval "$ac_compile") 2>conftest.er1
28851 grep -v '^ *+' conftest.er1 >conftest.err
28853 cat conftest.err >&5
28854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); } && {
28856 test -z "$ac_c_werror_flag" ||
28857 test ! -s conftest.err
28858 } && test -s conftest.$ac_objext; then
28859 ac_header_compiler=yes
28861 $as_echo "$as_me: failed program was:" >&5
28862 sed 's/^/| /' conftest.$ac_ext >&5
28864 ac_header_compiler=no
28867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28868 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28869 $as_echo "$ac_header_compiler" >&6; }
28871 # Is the header present?
28872 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28873 $as_echo_n "checking tcl.h presence... " >&6; }
28874 cat >conftest.$ac_ext <<_ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h. */
28882 if { (ac_try="$ac_cpp conftest.$ac_ext"
28883 case "(($ac_try" in
28884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885 *) ac_try_echo=$ac_try;;
28887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28888 $as_echo "$ac_try_echo") >&5
28889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28891 grep -v '^ *+' conftest.er1 >conftest.err
28893 cat conftest.err >&5
28894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); } >/dev/null && {
28896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28897 test ! -s conftest.err
28899 ac_header_preproc=yes
28901 $as_echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28904 ac_header_preproc=no
28907 rm -f conftest.err conftest.$ac_ext
28908 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28909 $as_echo "$ac_header_preproc" >&6; }
28911 # So? What about this header?
28912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28914 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28915 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28916 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28917 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28918 ac_header_preproc=yes
28921 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28922 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28923 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28924 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28925 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28926 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28927 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28928 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28929 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28930 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28931 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28932 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28934 ## ---------------------------------------- ##
28935 ## Report this to pgsql-bugs@postgresql.org ##
28936 ## ---------------------------------------- ##
28938 ) | sed "s/^/$as_me: WARNING: /" >&2
28941 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28942 $as_echo_n "checking for tcl.h... " >&6; }
28943 if test "${ac_cv_header_tcl_h+set}" = set; then
28944 $as_echo_n "(cached) " >&6
28946 ac_cv_header_tcl_h=$ac_header_preproc
28948 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28949 $as_echo "$ac_cv_header_tcl_h" >&6; }
28952 if test "x$ac_cv_header_tcl_h" = x""yes; then
28955 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28956 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28957 { (exit 1); exit 1; }; }
28961 CPPFLAGS=$ac_save_CPPFLAGS
28964 # check for <Python.h>
28965 if test "$with_python" = yes; then
28966 ac_save_CPPFLAGS=$CPPFLAGS
28967 CPPFLAGS="$python_includespec $CPPFLAGS"
28968 if test "${ac_cv_header_Python_h+set}" = set; then
28969 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28970 $as_echo_n "checking for Python.h... " >&6; }
28971 if test "${ac_cv_header_Python_h+set}" = set; then
28972 $as_echo_n "(cached) " >&6
28974 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28975 $as_echo "$ac_cv_header_Python_h" >&6; }
28977 # Is the header compilable?
28978 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
28979 $as_echo_n "checking Python.h usability... " >&6; }
28980 cat >conftest.$ac_ext <<_ACEOF
28983 cat confdefs.h >>conftest.$ac_ext
28984 cat >>conftest.$ac_ext <<_ACEOF
28985 /* end confdefs.h. */
28986 $ac_includes_default
28987 #include <Python.h>
28989 rm -f conftest.$ac_objext
28990 if { (ac_try="$ac_compile"
28991 case "(($ac_try" in
28992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993 *) ac_try_echo=$ac_try;;
28995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28996 $as_echo "$ac_try_echo") >&5
28997 (eval "$ac_compile") 2>conftest.er1
28999 grep -v '^ *+' conftest.er1 >conftest.err
29001 cat conftest.err >&5
29002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); } && {
29004 test -z "$ac_c_werror_flag" ||
29005 test ! -s conftest.err
29006 } && test -s conftest.$ac_objext; then
29007 ac_header_compiler=yes
29009 $as_echo "$as_me: failed program was:" >&5
29010 sed 's/^/| /' conftest.$ac_ext >&5
29012 ac_header_compiler=no
29015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29016 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29017 $as_echo "$ac_header_compiler" >&6; }
29019 # Is the header present?
29020 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29021 $as_echo_n "checking Python.h presence... " >&6; }
29022 cat >conftest.$ac_ext <<_ACEOF
29025 cat confdefs.h >>conftest.$ac_ext
29026 cat >>conftest.$ac_ext <<_ACEOF
29027 /* end confdefs.h. */
29028 #include <Python.h>
29030 if { (ac_try="$ac_cpp conftest.$ac_ext"
29031 case "(($ac_try" in
29032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29033 *) ac_try_echo=$ac_try;;
29035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29036 $as_echo "$ac_try_echo") >&5
29037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29039 grep -v '^ *+' conftest.er1 >conftest.err
29041 cat conftest.err >&5
29042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); } >/dev/null && {
29044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29045 test ! -s conftest.err
29047 ac_header_preproc=yes
29049 $as_echo "$as_me: failed program was:" >&5
29050 sed 's/^/| /' conftest.$ac_ext >&5
29052 ac_header_preproc=no
29055 rm -f conftest.err conftest.$ac_ext
29056 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29057 $as_echo "$ac_header_preproc" >&6; }
29059 # So? What about this header?
29060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29062 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29063 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29064 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29065 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29066 ac_header_preproc=yes
29069 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29070 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29071 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29072 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29073 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29074 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29075 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29076 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29077 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29078 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29079 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29080 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29082 ## ---------------------------------------- ##
29083 ## Report this to pgsql-bugs@postgresql.org ##
29084 ## ---------------------------------------- ##
29086 ) | sed "s/^/$as_me: WARNING: /" >&2
29089 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29090 $as_echo_n "checking for Python.h... " >&6; }
29091 if test "${ac_cv_header_Python_h+set}" = set; then
29092 $as_echo_n "(cached) " >&6
29094 ac_cv_header_Python_h=$ac_header_preproc
29096 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29097 $as_echo "$ac_cv_header_Python_h" >&6; }
29100 if test "x$ac_cv_header_Python_h" = x""yes; then
29103 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29104 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29105 { (exit 1); exit 1; }; }
29109 CPPFLAGS=$ac_save_CPPFLAGS
29113 # Check for DocBook and tools
29115 for ac_prog in onsgmls nsgmls
29117 # Extract the first word of "$ac_prog", so it can be a program name with args.
29118 set dummy $ac_prog; ac_word=$2
29119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29120 $as_echo_n "checking for $ac_word... " >&6; }
29121 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29122 $as_echo_n "(cached) " >&6
29124 if test -n "$NSGMLS"; then
29125 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29128 for as_dir in $PATH
29131 test -z "$as_dir" && as_dir=.
29132 for ac_exec_ext in '' $ac_executable_extensions; do
29133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29134 ac_cv_prog_NSGMLS="$ac_prog"
29135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29144 NSGMLS=$ac_cv_prog_NSGMLS
29145 if test -n "$NSGMLS"; then
29146 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29147 $as_echo "$NSGMLS" >&6; }
29149 { $as_echo "$as_me:$LINENO: result: no" >&5
29150 $as_echo "no" >&6; }
29154 test -n "$NSGMLS" && break
29157 for ac_prog in openjade jade
29159 # Extract the first word of "$ac_prog", so it can be a program name with args.
29160 set dummy $ac_prog; ac_word=$2
29161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29162 $as_echo_n "checking for $ac_word... " >&6; }
29163 if test "${ac_cv_prog_JADE+set}" = set; then
29164 $as_echo_n "(cached) " >&6
29166 if test -n "$JADE"; then
29167 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29170 for as_dir in $PATH
29173 test -z "$as_dir" && as_dir=.
29174 for ac_exec_ext in '' $ac_executable_extensions; do
29175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29176 ac_cv_prog_JADE="$ac_prog"
29177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29186 JADE=$ac_cv_prog_JADE
29187 if test -n "$JADE"; then
29188 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29189 $as_echo "$JADE" >&6; }
29191 { $as_echo "$as_me:$LINENO: result: no" >&5
29192 $as_echo "no" >&6; }
29196 test -n "$JADE" && break
29200 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29201 $as_echo_n "checking for DocBook V4.2... " >&6; }
29202 if test "${pgac_cv_check_docbook+set}" = set; then
29203 $as_echo_n "(cached) " >&6
29205 cat >conftest.sgml <<EOF
29206 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29208 <title>test</title>
29210 <title>random</title>
29212 <title>testsect</title>
29219 pgac_cv_check_docbook=no
29221 if test -n "$NSGMLS"; then
29222 $NSGMLS -s conftest.sgml 1>&5 2>&1
29223 if test $? -eq 0; then
29224 pgac_cv_check_docbook=yes
29227 rm -f conftest.sgml
29229 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29230 $as_echo "$pgac_cv_check_docbook" >&6; }
29232 have_docbook=$pgac_cv_check_docbook
29235 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29236 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29237 if test "${pgac_cv_path_stylesheets+set}" = set; then
29238 $as_echo_n "(cached) " >&6
29240 if test -n "$DOCBOOKSTYLE"; then
29241 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29243 for pgac_prefix in /usr /usr/local /opt /sw; do
29244 for pgac_infix in share lib; do
29245 for pgac_postfix in \
29246 sgml/stylesheets/nwalsh-modular \
29247 sgml/stylesheets/docbook \
29248 sgml/stylesheets/dsssl/docbook \
29249 sgml/docbook-dsssl \
29250 sgml/docbook/dsssl/modular \
29251 sgml/docbook/stylesheet/dsssl/modular \
29252 sgml/docbook/dsssl-stylesheets \
29253 sgml/dsssl/docbook-dsssl-nwalsh
29255 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29256 if test -r "$pgac_candidate/html/docbook.dsl" \
29257 && test -r "$pgac_candidate/print/docbook.dsl"
29259 pgac_cv_path_stylesheets=$pgac_candidate
29268 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29270 if test -n "$DOCBOOKSTYLE"; then
29271 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29272 $as_echo "$DOCBOOKSTYLE" >&6; }
29274 { $as_echo "$as_me:$LINENO: result: no" >&5
29275 $as_echo "no" >&6; }
29277 if test -n "$DOCBOOKSTYLE"; then
29278 for ac_prog in collateindex.pl
29280 # Extract the first word of "$ac_prog", so it can be a program name with args.
29281 set dummy $ac_prog; ac_word=$2
29282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29283 $as_echo_n "checking for $ac_word... " >&6; }
29284 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29285 $as_echo_n "(cached) " >&6
29287 case $COLLATEINDEX in
29289 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29293 for as_dir in $DOCBOOKSTYLE/bin $PATH
29296 test -z "$as_dir" && as_dir=.
29297 for ac_exec_ext in '' $ac_executable_extensions; do
29298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29299 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29300 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29310 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29311 if test -n "$COLLATEINDEX"; then
29312 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29313 $as_echo "$COLLATEINDEX" >&6; }
29315 { $as_echo "$as_me:$LINENO: result: no" >&5
29316 $as_echo "no" >&6; }
29320 test -n "$COLLATEINDEX" && break
29324 for ac_prog in collateindex.pl
29326 # Extract the first word of "$ac_prog", so it can be a program name with args.
29327 set dummy $ac_prog; ac_word=$2
29328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29329 $as_echo_n "checking for $ac_word... " >&6; }
29330 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29331 $as_echo_n "(cached) " >&6
29333 case $COLLATEINDEX in
29335 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29339 for as_dir in $PATH
29342 test -z "$as_dir" && as_dir=.
29343 for ac_exec_ext in '' $ac_executable_extensions; do
29344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29345 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29356 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29357 if test -n "$COLLATEINDEX"; then
29358 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29359 $as_echo "$COLLATEINDEX" >&6; }
29361 { $as_echo "$as_me:$LINENO: result: no" >&5
29362 $as_echo "no" >&6; }
29366 test -n "$COLLATEINDEX" && break
29370 for ac_prog in xsltproc
29372 # Extract the first word of "$ac_prog", so it can be a program name with args.
29373 set dummy $ac_prog; ac_word=$2
29374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29375 $as_echo_n "checking for $ac_word... " >&6; }
29376 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29377 $as_echo_n "(cached) " >&6
29379 if test -n "$XSLTPROC"; then
29380 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29383 for as_dir in $PATH
29386 test -z "$as_dir" && as_dir=.
29387 for ac_exec_ext in '' $ac_executable_extensions; do
29388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29389 ac_cv_prog_XSLTPROC="$ac_prog"
29390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29399 XSLTPROC=$ac_cv_prog_XSLTPROC
29400 if test -n "$XSLTPROC"; then
29401 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29402 $as_echo "$XSLTPROC" >&6; }
29404 { $as_echo "$as_me:$LINENO: result: no" >&5
29405 $as_echo "no" >&6; }
29409 test -n "$XSLTPROC" && break
29412 for ac_prog in osx sgml2xml sx
29414 # Extract the first word of "$ac_prog", so it can be a program name with args.
29415 set dummy $ac_prog; ac_word=$2
29416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29417 $as_echo_n "checking for $ac_word... " >&6; }
29418 if test "${ac_cv_prog_OSX+set}" = set; then
29419 $as_echo_n "(cached) " >&6
29421 if test -n "$OSX"; then
29422 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29425 for as_dir in $PATH
29428 test -z "$as_dir" && as_dir=.
29429 for ac_exec_ext in '' $ac_executable_extensions; do
29430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29431 ac_cv_prog_OSX="$ac_prog"
29432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29441 OSX=$ac_cv_prog_OSX
29442 if test -n "$OSX"; then
29443 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29444 $as_echo "$OSX" >&6; }
29446 { $as_echo "$as_me:$LINENO: result: no" >&5
29447 $as_echo "no" >&6; }
29451 test -n "$OSX" && break
29457 # We have to run the thread test near the end so we have all our symbols
29458 # defined. Cross compiling throws a warning.
29460 if test "$enable_thread_safety" = yes; then
29461 if test "$PORTNAME" != "win32"
29463 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29464 $as_echo_n "checking thread safety of required library functions... " >&6; }
29468 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29469 LIBS="$LIBS $PTHREAD_LIBS"
29470 if test "$cross_compiling" = yes; then
29471 { $as_echo "$as_me:$LINENO: result: maybe" >&5
29472 $as_echo "maybe" >&6; }
29473 { $as_echo "$as_me:$LINENO: WARNING:
29474 *** Skipping thread test program because of cross-compile build.
29475 *** Run the program in src/test/thread on the target machine.
29477 $as_echo "$as_me: WARNING:
29478 *** Skipping thread test program because of cross-compile build.
29479 *** Run the program in src/test/thread on the target machine.
29482 cat >conftest.$ac_ext <<_ACEOF
29485 cat confdefs.h >>conftest.$ac_ext
29486 cat >>conftest.$ac_ext <<_ACEOF
29487 /* end confdefs.h. */
29488 #include "$srcdir/src/test/thread/thread_test.c"
29490 rm -f conftest$ac_exeext
29491 if { (ac_try="$ac_link"
29492 case "(($ac_try" in
29493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29494 *) ac_try_echo=$ac_try;;
29496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29497 $as_echo "$ac_try_echo") >&5
29498 (eval "$ac_link") 2>&5
29500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29502 { (case "(($ac_try" in
29503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504 *) ac_try_echo=$ac_try;;
29506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29507 $as_echo "$ac_try_echo") >&5
29508 (eval "$ac_try") 2>&5
29510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); }; }; then
29512 { $as_echo "$as_me:$LINENO: result: yes" >&5
29513 $as_echo "yes" >&6; }
29515 $as_echo "$as_me: program exited with status $ac_status" >&5
29516 $as_echo "$as_me: failed program was:" >&5
29517 sed 's/^/| /' conftest.$ac_ext >&5
29519 ( exit $ac_status )
29520 { $as_echo "$as_me:$LINENO: result: no" >&5
29521 $as_echo "no" >&6; }
29522 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29523 This platform is not thread-safe. Check the file 'config.log' or compile
29524 and run src/test/thread/thread_test for the exact reason.
29525 Use --disable-thread-safety to disable thread safety." >&5
29526 $as_echo "$as_me: error: thread test program failed
29527 This platform is not thread-safe. Check the file 'config.log' or compile
29528 and run src/test/thread/thread_test for the exact reason.
29529 Use --disable-thread-safety to disable thread safety." >&2;}
29530 { (exit 1); exit 1; }; }
29532 rm -rf conftest.dSYM
29533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29540 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29541 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29545 # If compiler will take -Wl,--as-needed (or various platform-specific
29546 # spellings thereof) then add that to LDFLAGS. This is much easier than
29547 # trying to filter LIBS to the minimum for each executable.
29548 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29549 # libreadline; therefore we postpone testing it until we know what library
29550 # dependencies readline has. The test code will try to link with $LIBS.
29551 if test "$with_readline" = yes; then
29552 link_test_func=readline
29554 link_test_func=exit
29557 if test "$PORTNAME" = "darwin"; then
29558 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29559 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29560 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29561 $as_echo_n "(cached) " >&6
29563 pgac_save_LDFLAGS=$LDFLAGS
29564 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29565 if test "$cross_compiling" = yes; then
29566 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29568 cat >conftest.$ac_ext <<_ACEOF
29571 cat confdefs.h >>conftest.$ac_ext
29572 cat >>conftest.$ac_ext <<_ACEOF
29573 /* end confdefs.h. */
29574 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29583 rm -f conftest$ac_exeext
29584 if { (ac_try="$ac_link"
29585 case "(($ac_try" in
29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587 *) ac_try_echo=$ac_try;;
29589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29590 $as_echo "$ac_try_echo") >&5
29591 (eval "$ac_link") 2>&5
29593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29595 { (case "(($ac_try" in
29596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29597 *) ac_try_echo=$ac_try;;
29599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29600 $as_echo "$ac_try_echo") >&5
29601 (eval "$ac_try") 2>&5
29603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); }; }; then
29605 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29607 $as_echo "$as_me: program exited with status $ac_status" >&5
29608 $as_echo "$as_me: failed program was:" >&5
29609 sed 's/^/| /' conftest.$ac_ext >&5
29611 ( exit $ac_status )
29612 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29614 rm -rf conftest.dSYM
29615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29619 LDFLAGS="$pgac_save_LDFLAGS"
29621 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29622 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29623 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29624 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29627 elif test "$PORTNAME" = "openbsd"; then
29628 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29629 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29630 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29631 $as_echo_n "(cached) " >&6
29633 pgac_save_LDFLAGS=$LDFLAGS
29634 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29635 if test "$cross_compiling" = yes; then
29636 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29638 cat >conftest.$ac_ext <<_ACEOF
29641 cat confdefs.h >>conftest.$ac_ext
29642 cat >>conftest.$ac_ext <<_ACEOF
29643 /* end confdefs.h. */
29644 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29653 rm -f conftest$ac_exeext
29654 if { (ac_try="$ac_link"
29655 case "(($ac_try" in
29656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29657 *) ac_try_echo=$ac_try;;
29659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29660 $as_echo "$ac_try_echo") >&5
29661 (eval "$ac_link") 2>&5
29663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29665 { (case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29670 $as_echo "$ac_try_echo") >&5
29671 (eval "$ac_try") 2>&5
29673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); }; }; then
29675 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29677 $as_echo "$as_me: program exited with status $ac_status" >&5
29678 $as_echo "$as_me: failed program was:" >&5
29679 sed 's/^/| /' conftest.$ac_ext >&5
29681 ( exit $ac_status )
29682 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29684 rm -rf conftest.dSYM
29685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29689 LDFLAGS="$pgac_save_LDFLAGS"
29691 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29692 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29693 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29694 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29698 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29699 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29700 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29701 $as_echo_n "(cached) " >&6
29703 pgac_save_LDFLAGS=$LDFLAGS
29704 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29705 if test "$cross_compiling" = yes; then
29706 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29708 cat >conftest.$ac_ext <<_ACEOF
29711 cat confdefs.h >>conftest.$ac_ext
29712 cat >>conftest.$ac_ext <<_ACEOF
29713 /* end confdefs.h. */
29714 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29723 rm -f conftest$ac_exeext
29724 if { (ac_try="$ac_link"
29725 case "(($ac_try" in
29726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29727 *) ac_try_echo=$ac_try;;
29729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29730 $as_echo "$ac_try_echo") >&5
29731 (eval "$ac_link") 2>&5
29733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29735 { (case "(($ac_try" in
29736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29737 *) ac_try_echo=$ac_try;;
29739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29740 $as_echo "$ac_try_echo") >&5
29741 (eval "$ac_try") 2>&5
29743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); }; }; then
29745 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29747 $as_echo "$as_me: program exited with status $ac_status" >&5
29748 $as_echo "$as_me: failed program was:" >&5
29749 sed 's/^/| /' conftest.$ac_ext >&5
29751 ( exit $ac_status )
29752 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29754 rm -rf conftest.dSYM
29755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29759 LDFLAGS="$pgac_save_LDFLAGS"
29761 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29762 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29763 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29764 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29769 # Create compiler version string
29770 if test x"$GCC" = x"yes" ; then
29771 cc_string=`${CC} --version | sed q`
29772 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29773 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29774 cc_string=`${CC} -V 2>&1 | sed q`
29780 cat >>confdefs.h <<_ACEOF
29781 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29785 # Supply a numeric version string for use by 3rd party add-ons
29786 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29787 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29789 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29791 cat >>confdefs.h <<_ACEOF
29792 #define PG_VERSION_NUM $PG_VERSION_NUM
29797 # Begin output steps
29799 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29800 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29801 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29802 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29803 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29804 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29805 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29806 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29808 # prepare build tree if outside source tree
29809 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29810 # Note 2: /bin/pwd might be better than shell's built-in at getting
29811 # a symlink-free name.
29812 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29816 if test "$no_create" != yes; then
29817 $as_echo_n "preparing build tree... " >&6
29818 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29819 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29820 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29821 $as_echo "$as_me: error: failed" >&2;}
29822 { (exit 1); exit 1; }; }
29823 { $as_echo "$as_me:$LINENO: result: done" >&5
29824 $as_echo "done" >&6; }
29830 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29833 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}"
29836 if test "$PORTNAME" = "win32"; then
29837 ac_config_commands="$ac_config_commands check_win32_symlinks"
29841 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29844 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29847 cat >confcache <<\_ACEOF
29848 # This file is a shell script that caches the results of configure
29849 # tests run on this system so they can be shared between configure
29850 # scripts and configure runs, see configure's option --config-cache.
29851 # It is not useful on other systems. If it contains results you don't
29852 # want to keep, you may remove or edit it.
29854 # config.status only pays attention to the cache file if you give it
29855 # the --recheck option to rerun configure.
29857 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29858 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29859 # following values.
29863 # The following way of writing the cache mishandles newlines in values,
29864 # but we know of no workaround that is simple, portable, and efficient.
29865 # So, we kill variables containing newlines.
29866 # Ultrix sh set writes to stderr and can't be redirected directly,
29867 # and sets the high bit in the cache file unless we assign to the vars.
29869 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29870 eval ac_val=\$$ac_var
29874 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29875 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29878 _ | IFS | as_nl) ;; #(
29879 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29880 *) $as_unset $ac_var ;;
29886 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29887 *${as_nl}ac_space=\ *)
29888 # `set' does not quote correctly, so add quotes (double-quote
29889 # substitution turns \\\\ into \\, and sed turns \\ into \).
29892 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29895 # `set' quotes correctly as required by POSIX, so do not add quotes.
29896 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29907 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29909 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29910 if test -w "$cache_file"; then
29911 test "x$cache_file" != "x/dev/null" &&
29912 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29913 $as_echo "$as_me: updating cache $cache_file" >&6;}
29914 cat confcache >$cache_file
29916 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29917 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29922 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29923 # Let make expand exec_prefix.
29924 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29926 DEFS=-DHAVE_CONFIG_H
29930 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29931 # 1. Remove the extension, and $U if already installed.
29932 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29933 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29934 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29935 # will be set to the directory where LIBOBJS objects are built.
29936 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29937 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29939 LIBOBJS=$ac_libobjs
29941 LTLIBOBJS=$ac_ltlibobjs
29946 : ${CONFIG_STATUS=./config.status}
29948 ac_clean_files_save=$ac_clean_files
29949 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29950 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29951 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29952 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29954 # Generated by $as_me.
29955 # Run this file to recreate the current configuration.
29956 # Compiler output produced by configure, useful for debugging
29957 # configure, is in config.log if it exists.
29960 ac_cs_recheck=false
29962 SHELL=\${CONFIG_SHELL-$SHELL}
29965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29966 ## --------------------- ##
29967 ## M4sh Initialization. ##
29968 ## --------------------- ##
29970 # Be more Bourne compatible
29971 DUALCASE=1; export DUALCASE # for MKS sh
29972 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29975 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29976 # is contrary to our usage. Disable this feature.
29977 alias -g '${1+"$@"}'='"$@"'
29978 setopt NO_GLOB_SUBST
29980 case `(set -o) 2>/dev/null` in
29981 *posix*) set -o posix ;;
29990 # Avoid depending upon Character Ranges.
29991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29994 as_cr_digits='0123456789'
29995 as_cr_alnum=$as_cr_Letters$as_cr_digits
30000 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30001 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30002 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30003 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30004 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30005 as_echo='printf %s\n'
30006 as_echo_n='printf %s'
30008 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30009 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30010 as_echo_n='/usr/ucb/echo -n'
30012 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30013 as_echo_n_body='eval
30017 expr "X$arg" : "X\\(.*\\)$as_nl";
30018 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30020 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30022 export as_echo_n_body
30023 as_echo_n='sh -c $as_echo_n_body as_echo'
30025 export as_echo_body
30026 as_echo='sh -c $as_echo_body as_echo'
30029 # The user is always right.
30030 if test "${PATH_SEPARATOR+set}" != set; then
30032 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30033 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30038 # Support unset when possible.
30039 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30047 # We need space, tab and new line, in precisely that order. Quoting is
30048 # there to prevent editors from complaining about space-tab.
30049 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30050 # splitting by setting IFS to empty value.)
30053 # Find who we are. Look in the path if we contain no directory separator.
30055 *[\\/]* ) as_myself=$0 ;;
30056 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30057 for as_dir in $PATH
30060 test -z "$as_dir" && as_dir=.
30061 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30067 # We did not find ourselves, most probably we were run as `sh COMMAND'
30068 # in which case we are not to be found in the path.
30069 if test "x$as_myself" = x; then
30072 if test ! -f "$as_myself"; then
30073 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30074 { (exit 1); exit 1; }
30077 # Work around bugs in pre-3.0 UWIN ksh.
30078 for as_var in ENV MAIL MAILPATH
30079 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30091 # Required to use basename.
30092 if expr a : '\(a\)' >/dev/null 2>&1 &&
30093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30100 as_basename=basename
30106 # Name of the executable.
30107 as_me=`$as_basename -- "$0" ||
30108 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30109 X"$0" : 'X\(//\)$' \| \
30110 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30112 sed '/^.*\/\([^/][^/]*\)\/*$/{
30131 as_lineno_1=$LINENO
30132 as_lineno_2=$LINENO
30133 test "x$as_lineno_1" != "x$as_lineno_2" &&
30134 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30136 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30137 # uniformly replaced by the line number. The first 'sed' inserts a
30138 # line-number line after each line using $LINENO; the second 'sed'
30139 # does the real work. The second script uses 'N' to pair each
30140 # line-number line with the line containing $LINENO, and appends
30141 # trailing '-' during substitution so that $LINENO is not a special
30142 # case at line end.
30143 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30144 # scripts with optimization help from Paolo Bonzini. Blame Lee
30145 # E. McMahon (1931-1989) for sed's syntax. :-)
30157 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30160 ' >$as_me.lineno &&
30161 chmod +x "$as_me.lineno" ||
30162 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30163 { (exit 1); exit 1; }; }
30165 # Don't try to exec as it changes $[0], causing all sort of problems
30166 # (the dirname of $[0] is not the place where we might find the
30167 # original and so on. Autoconf is especially sensitive to this).
30168 . "./$as_me.lineno"
30169 # Exit status is that of the last command.
30174 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30180 ECHO_C= ECHO_N= ECHO_T=
30181 case `echo -n x` in
30183 case `echo 'x\c'` in
30184 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30190 if expr a : '\(a\)' >/dev/null 2>&1 &&
30191 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30197 rm -f conf$$ conf$$.exe conf$$.file
30198 if test -d conf$$.dir; then
30199 rm -f conf$$.dir/conf$$.file
30202 mkdir conf$$.dir 2>/dev/null
30204 if (echo >conf$$.file) 2>/dev/null; then
30205 if ln -s conf$$.file conf$$ 2>/dev/null; then
30207 # ... but there are two gotchas:
30208 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30209 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30210 # In both cases, we have to default to `cp -p'.
30211 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30213 elif ln conf$$.file conf$$ 2>/dev/null; then
30221 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30222 rmdir conf$$.dir 2>/dev/null
30224 if mkdir -p . 2>/dev/null; then
30227 test -d ./-p && rmdir ./-p
30231 if test -x / >/dev/null 2>&1; then
30232 as_test_x='test -x'
30234 if ls -dL / >/dev/null 2>&1; then
30241 if test -d "$1"; then
30247 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30248 ???[sx]*):;;*)false;;esac;fi
30252 as_executable_p=$as_test_x
30254 # Sed expression to map a string onto a valid CPP name.
30255 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30257 # Sed expression to map a string onto a valid variable name.
30258 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30263 # Save the log message, to keep $[0] and so on meaningful, and to
30264 # report actual input values of CONFIG_FILES etc. instead of their
30265 # values after options handling.
30267 This file was extended by PostgreSQL $as_me 9.2devel, which was
30268 generated by GNU Autoconf 2.63. Invocation command line was
30270 CONFIG_FILES = $CONFIG_FILES
30271 CONFIG_HEADERS = $CONFIG_HEADERS
30272 CONFIG_LINKS = $CONFIG_LINKS
30273 CONFIG_COMMANDS = $CONFIG_COMMANDS
30276 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30281 case $ac_config_files in *"
30282 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30285 case $ac_config_headers in *"
30286 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30291 # Files that config.status was made for.
30292 config_files="$ac_config_files"
30293 config_headers="$ac_config_headers"
30294 config_links="$ac_config_links"
30295 config_commands="$ac_config_commands"
30299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30301 \`$as_me' instantiates files from templates according to the
30302 current configuration.
30304 Usage: $0 [OPTION]... [FILE]...
30306 -h, --help print this help, then exit
30307 -V, --version print version number and configuration settings, then exit
30308 -q, --quiet, --silent
30309 do not print progress messages
30310 -d, --debug don't remove temporary files
30311 --recheck update $as_me by reconfiguring in the same conditions
30312 --file=FILE[:TEMPLATE]
30313 instantiate the configuration file FILE
30314 --header=FILE[:TEMPLATE]
30315 instantiate the configuration header FILE
30317 Configuration files:
30320 Configuration headers:
30323 Configuration links:
30326 Configuration commands:
30329 Report bugs to <bug-autoconf@gnu.org>."
30332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30334 PostgreSQL config.status 9.2devel
30335 configured by $0, generated by GNU Autoconf 2.63,
30336 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30338 Copyright (C) 2008 Free Software Foundation, Inc.
30339 This config.status script is free software; the Free Software Foundation
30340 gives unlimited permission to copy, distribute and modify it."
30346 test -n "\$AWK" || AWK=awk
30349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30350 # The default lists apply if the user does not specify any file.
30356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30357 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30368 # Handling of the options.
30369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30371 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30372 $as_echo "$ac_cs_version"; exit ;;
30373 --debug | --debu | --deb | --de | --d | -d )
30375 --file | --fil | --fi | --f )
30378 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30380 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30381 ac_need_defaults=false;;
30382 --header | --heade | --head | --hea )
30385 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30387 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30388 ac_need_defaults=false;;
30390 # Conflict between --help and --header
30391 { $as_echo "$as_me: error: ambiguous option: $1
30392 Try \`$0 --help' for more information." >&2
30393 { (exit 1); exit 1; }; };;
30394 --help | --hel | -h )
30395 $as_echo "$ac_cs_usage"; exit ;;
30396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30397 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30400 # This is an error.
30401 -*) { $as_echo "$as_me: error: unrecognized option: $1
30402 Try \`$0 --help' for more information." >&2
30403 { (exit 1); exit 1; }; } ;;
30405 *) ac_config_targets="$ac_config_targets $1"
30406 ac_need_defaults=false ;;
30412 ac_configure_extra_args=
30414 if $ac_cs_silent; then
30416 ac_configure_extra_args="$ac_configure_extra_args --silent"
30420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30421 if \$ac_cs_recheck; then
30422 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30424 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30425 CONFIG_SHELL='$SHELL'
30426 export CONFIG_SHELL
30431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30435 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30436 ## Running $as_me. ##
30442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30447 # Handling of arguments.
30448 for ac_config_target in $ac_config_targets
30450 case $ac_config_target in
30451 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30452 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30453 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30454 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30455 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30456 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30457 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30458 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30459 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30460 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30461 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30462 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30463 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30465 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30466 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30467 { (exit 1); exit 1; }; };;
30472 # If the user did not use the arguments to specify the items to instantiate,
30473 # then the envvar interface is used. Set only those that are not.
30474 # We use the long form for the default assignment because of an extremely
30475 # bizarre bug on SunOS 4.1.3.
30476 if $ac_need_defaults; then
30477 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30478 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30479 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30480 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30483 # Have a temporary directory for convenience. Make it in the build tree
30484 # simply because there is no reason against having it here, and in addition,
30485 # creating and moving files from /tmp can sometimes cause problems.
30486 # Hook for its removal unless debugging.
30487 # Note that there is a small window in which the directory will not be cleaned:
30488 # after its creation but before its name has been assigned to `$tmp'.
30492 trap 'exit_status=$?
30493 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30495 trap '{ (exit 1); exit 1; }' 1 2 13 15
30497 # Create a (secure) tmp directory for tmp files.
30500 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30501 test -n "$tmp" && test -d "$tmp"
30504 tmp=./conf$$-$RANDOM
30505 (umask 077 && mkdir "$tmp")
30508 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30509 { (exit 1); exit 1; }
30512 # Set up the scripts for CONFIG_FILES section.
30513 # No need to generate them if there are no CONFIG_FILES.
30514 # This happens for instance with `./config.status config.h'.
30515 if test -n "$CONFIG_FILES"; then
30519 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30520 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30523 ac_cs_awk_cr=$ac_cr
30526 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30531 echo "cat >conf$$subs.awk <<_ACEOF" &&
30532 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30534 } >conf$$subs.sh ||
30535 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30536 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30537 { (exit 1); exit 1; }; }
30538 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30540 for ac_last_try in false false false false false :; do
30541 . ./conf$$subs.sh ||
30542 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30543 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30544 { (exit 1); exit 1; }; }
30546 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30547 if test $ac_delim_n = $ac_delim_num; then
30549 elif $ac_last_try; then
30550 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30551 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30552 { (exit 1); exit 1; }; }
30554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30557 rm -f conf$$subs.sh
30559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30560 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30564 s/^/S["/; s/!.*/"]=/
30574 s/\(.\{148\}\).*/\1/
30576 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30581 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30588 s/\(.\{148\}\).*/\1/
30590 s/["\\]/\\&/g; s/^/"/; s/$/"/
30594 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30599 ' <conf$$subs.awk | sed '
30604 ' >>$CONFIG_STATUS || ac_write_fail=1
30605 rm -f conf$$subs.awk
30606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30608 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30609 for (key in S) S_is_set[key] = 1
30615 nfields = split(line, field, "@")
30617 len = length(field[1])
30618 for (i = 2; i < nfields; i++) {
30620 keylen = length(key)
30621 if (S_is_set[key]) {
30623 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30624 len += length(value) + length(field[++i])
30635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30636 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30637 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30640 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30641 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30642 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30643 { (exit 1); exit 1; }; }
30646 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30647 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30648 # trailing colons and then remove the whole line if VPATH becomes empty
30649 # (actually we leave an empty line to preserve line numbers).
30650 if test "x$srcdir" = x.; then
30651 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30652 s/:*\$(srcdir):*/:/
30653 s/:*\${srcdir}:*/:/
30655 s/^\([^=]*=[ ]*\):*/\1/
30661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30662 fi # test -n "$CONFIG_FILES"
30664 # Set up the scripts for CONFIG_HEADERS section.
30665 # No need to generate them if there are no CONFIG_HEADERS.
30666 # This happens for instance with `./config.status Makefile'.
30667 if test -n "$CONFIG_HEADERS"; then
30668 cat >"$tmp/defines.awk" <<\_ACAWK ||
30672 # Transform confdefs.h into an awk script `defines.awk', embedded as
30673 # here-document in config.status, that substitutes the proper values into
30674 # config.h.in to produce config.h.
30676 # Create a delimiter string that does not exist in confdefs.h, to ease
30677 # handling of long lines.
30679 for ac_last_try in false false :; do
30680 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30681 if test -z "$ac_t"; then
30683 elif $ac_last_try; then
30684 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30685 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30686 { (exit 1); exit 1; }; }
30688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30692 # For the awk script, D is an array of macro values keyed by name,
30693 # likewise P contains macro parameters if any. Preserve backslash
30694 # newline sequences.
30696 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30698 s/.\{148\}/&'"$ac_delim"'/g
30701 s/^[ ]*#[ ]*define[ ][ ]*/ /
30708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30715 D["\1"]=" \3\\\\\\n"\\/p
30717 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30722 s/.\{148\}/&'"$ac_delim"'/g
30727 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30730 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30732 ' <confdefs.h | sed '
30733 s/'"$ac_delim"'/"\\\
30734 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30737 for (key in D) D_is_set[key] = 1
30740 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30742 split(line, arg, " ")
30743 if (arg[1] == "#") {
30747 defundef = substr(arg[1], 2)
30750 split(mac1, mac2, "(") #)
30752 prefix = substr(line, 1, index(line, defundef) - 1)
30753 if (D_is_set[macro]) {
30754 # Preserve the white space surrounding the "#".
30755 print prefix "define", macro P[macro] D[macro]
30758 # Replace #undef with comments. This is necessary, for example,
30759 # in the case of _POSIX_SOURCE, which is predefined and required
30760 # on some systems where configure will not decide to define it.
30761 if (defundef == "undef") {
30762 print "/*", prefix defundef, macro, "*/"
30770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30771 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30772 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30773 { (exit 1); exit 1; }; }
30774 fi # test -n "$CONFIG_HEADERS"
30777 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30782 :[FHLC]) ac_mode=$ac_tag; continue;;
30784 case $ac_mode$ac_tag in
30786 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30787 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30788 { (exit 1); exit 1; }; };;
30789 :[FH]-) ac_tag=-:-;;
30790 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30807 -) ac_f="$tmp/stdin";;
30808 *) # Look for the file first in the build tree, then in the source tree
30809 # (if the path is not absolute). The absolute path cannot be DOS-style,
30810 # because $ac_f cannot contain `:'.
30814 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30816 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30817 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30818 { (exit 1); exit 1; }; };;
30820 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30821 ac_file_inputs="$ac_file_inputs '$ac_f'"
30824 # Let's still pretend it is `configure' which instantiates (i.e., don't
30825 # use $as_me), people would be surprised to read:
30826 # /* config.h. Generated by config.status. */
30827 configure_input='Generated from '`
30828 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30830 if test x"$ac_file" != x-; then
30831 configure_input="$ac_file. $configure_input"
30832 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30833 $as_echo "$as_me: creating $ac_file" >&6;}
30835 # Neutralize special characters interpreted by sed in replacement strings.
30836 case $configure_input in #(
30837 *\&* | *\|* | *\\* )
30838 ac_sed_conf_input=`$as_echo "$configure_input" |
30839 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30840 *) ac_sed_conf_input=$configure_input;;
30844 *:-:* | *:-) cat >"$tmp/stdin" \
30845 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30846 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30847 { (exit 1); exit 1; }; } ;;
30852 ac_dir=`$as_dirname -- "$ac_file" ||
30853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30854 X"$ac_file" : 'X\(//\)[^/]' \| \
30855 X"$ac_file" : 'X\(//\)$' \| \
30856 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30857 $as_echo X"$ac_file" |
30858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30862 /^X\(\/\/\)[^/].*/{
30877 -*) as_dir=./$as_dir;;
30879 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30883 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30884 *) as_qdir=$as_dir;;
30886 as_dirs="'$as_qdir' $as_dirs"
30887 as_dir=`$as_dirname -- "$as_dir" ||
30888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30889 X"$as_dir" : 'X\(//\)[^/]' \| \
30890 X"$as_dir" : 'X\(//\)$' \| \
30891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30892 $as_echo X"$as_dir" |
30893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30897 /^X\(\/\/\)[^/].*/{
30910 test -d "$as_dir" && break
30912 test -z "$as_dirs" || eval "mkdir $as_dirs"
30913 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30914 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30915 { (exit 1); exit 1; }; }; }
30919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30921 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30922 # A ".." for each directory in $ac_dir_suffix.
30923 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30924 case $ac_top_builddir_sub in
30925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30929 ac_abs_top_builddir=$ac_pwd
30930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30931 # for backward compatibility:
30932 ac_top_builddir=$ac_top_build_prefix
30935 .) # We are building in place.
30937 ac_top_srcdir=$ac_top_builddir_sub
30938 ac_abs_top_srcdir=$ac_pwd ;;
30939 [\\/]* | ?:[\\/]* ) # Absolute name.
30940 ac_srcdir=$srcdir$ac_dir_suffix;
30941 ac_top_srcdir=$srcdir
30942 ac_abs_top_srcdir=$srcdir ;;
30943 *) # Relative name.
30944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30945 ac_top_srcdir=$ac_top_build_prefix$srcdir
30946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30957 ac_MKDIR_P=$MKDIR_P
30959 [\\/$]* | ?:[\\/]* ) ;;
30960 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30965 # If the template does not know about datarootdir, expand it.
30966 # FIXME: This hack should be removed a few years after 2.60.
30967 ac_datarootdir_hack=; ac_datarootdir_seen=
30980 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30981 *datarootdir*) ac_datarootdir_seen=yes;;
30982 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30983 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30984 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30987 ac_datarootdir_hack='
30988 s&@datadir@&$datadir&g
30989 s&@docdir@&$docdir&g
30990 s&@infodir@&$infodir&g
30991 s&@localedir@&$localedir&g
30992 s&@mandir@&$mandir&g
30993 s&\\\${datarootdir}&$datarootdir&g' ;;
30997 # Neutralize VPATH when `$srcdir' = `.'.
30998 # Shell code in configure.ac might set extrasub.
30999 # FIXME: do we really want to maintain this feature?
31000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31001 ac_sed_extra="$ac_vpsub
31004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31007 s|@configure_input@|$ac_sed_conf_input|;t t
31008 s&@top_builddir@&$ac_top_builddir_sub&;t t
31009 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31010 s&@srcdir@&$ac_srcdir&;t t
31011 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31012 s&@top_srcdir@&$ac_top_srcdir&;t t
31013 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31014 s&@builddir@&$ac_builddir&;t t
31015 s&@abs_builddir@&$ac_abs_builddir&;t t
31016 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31017 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31018 $ac_datarootdir_hack
31020 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31021 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31022 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31023 { (exit 1); exit 1; }; }
31025 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31026 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31027 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31028 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31029 which seems to be undefined. Please make sure it is defined." >&5
31030 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31031 which seems to be undefined. Please make sure it is defined." >&2;}
31035 -) cat "$tmp/out" && rm -f "$tmp/out";;
31036 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31038 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31039 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31040 { (exit 1); exit 1; }; }
31046 if test x"$ac_file" != x-; then
31048 $as_echo "/* $configure_input */" \
31049 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31050 } >"$tmp/config.h" \
31051 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31052 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31053 { (exit 1); exit 1; }; }
31054 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31055 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31056 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31059 mv "$tmp/config.h" "$ac_file" \
31060 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31061 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31062 { (exit 1); exit 1; }; }
31065 $as_echo "/* $configure_input */" \
31066 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31067 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31068 $as_echo "$as_me: error: could not create -" >&2;}
31069 { (exit 1); exit 1; }; }
31077 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31080 # Prefer the file from the source tree if names are identical.
31081 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31082 ac_source=$srcdir/$ac_source
31085 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31086 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31088 if test ! -r "$ac_source"; then
31089 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31090 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31091 { (exit 1); exit 1; }; }
31095 # Try a relative symlink, then a hard link, then a copy.
31097 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31098 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31100 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31101 ln "$ac_source" "$ac_file" 2>/dev/null ||
31102 cp -p "$ac_source" "$ac_file" ||
31103 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31104 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31105 { (exit 1); exit 1; }; }
31108 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31109 $as_echo "$as_me: executing $ac_file commands" >&6;}
31114 case $ac_file$ac_mode in
31115 "check_win32_symlinks":C)
31116 # Links sometimes fail undetected on Mingw -
31117 # so here we detect it and warn the user
31118 for FILE in $CONFIG_LINKS
31120 # test -e works for symlinks in the MinGW console
31121 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31122 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31125 "src/include/pg_config.h":H)
31126 # Update timestamp for pg_config.h (see Makefile.global)
31127 echo >src/include/stamp-h
31129 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31135 { (exit 0); exit 0; }
31137 chmod +x $CONFIG_STATUS
31138 ac_clean_files=$ac_clean_files_save
31140 test $ac_write_fail = 0 ||
31141 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31142 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31143 { (exit 1); exit 1; }; }
31146 # configure is writing to config.log, and then calls config.status.
31147 # config.status does its own redirection, appending to config.log.
31148 # Unfortunately, on DOS this fails, as config.log is still kept open
31149 # by configure, so config.status won't be able to write to it; its
31150 # output is simply discarded. So we exec the FD to /dev/null,
31151 # effectively closing config.log, so it can be properly (re)opened and
31152 # appended to by config.status. When coming back to configure, we
31153 # need to make the FD available again.
31154 if test "$no_create" != yes; then
31156 ac_config_status_args=
31157 test "$silent" = yes &&
31158 ac_config_status_args="$ac_config_status_args --quiet"
31160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31163 # would make configure fail if this is the last instruction.
31164 $ac_cs_success || { (exit 1); exit 1; }
31166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31167 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31168 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}