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 /**/
18990 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
18992 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18993 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18994 $as_echo_n "checking for $ac_func... " >&6; }
18995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18996 $as_echo_n "(cached) " >&6
18998 cat >conftest.$ac_ext <<_ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19006 #define $ac_func innocuous_$ac_func
19008 /* System header to define __stub macros and hopefully few prototypes,
19009 which can conflict with char $ac_func (); below.
19010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19011 <limits.h> exists even on freestanding compilers. */
19014 # include <limits.h>
19016 # include <assert.h>
19021 /* Override any GCC internal prototype to avoid an error.
19022 Use char because int might match the return type of a GCC
19023 builtin and then its argument prototype would still apply. */
19028 /* The GNU C library defines this for functions which it implements
19029 to always fail with ENOSYS. Some functions are actually named
19030 something starting with __ and the normal name is an alias. */
19031 #if defined __stub_$ac_func || defined __stub___$ac_func
19038 return $ac_func ();
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (ac_try="$ac_link"
19045 case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19050 $as_echo "$ac_try_echo") >&5
19051 (eval "$ac_link") 2>conftest.er1
19053 grep -v '^ *+' conftest.er1 >conftest.err
19055 cat conftest.err >&5
19056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } && {
19058 test -z "$ac_c_werror_flag" ||
19059 test ! -s conftest.err
19060 } && test -s conftest$ac_exeext && {
19061 test "$cross_compiling" = yes ||
19062 $as_test_x conftest$ac_exeext
19064 eval "$as_ac_var=yes"
19066 $as_echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 eval "$as_ac_var=no"
19072 rm -rf conftest.dSYM
19073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19074 conftest$ac_exeext conftest.$ac_ext
19076 ac_res=`eval 'as_val=${'$as_ac_var'}
19077 $as_echo "$as_val"'`
19078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19079 $as_echo "$ac_res" >&6; }
19080 as_val=`eval 'as_val=${'$as_ac_var'}
19081 $as_echo "$as_val"'`
19082 if test "x$as_val" = x""yes; then
19083 cat >>confdefs.h <<_ACEOF
19084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19092 for ac_func in fseeko
19094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19095 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19096 $as_echo_n "checking for $ac_func... " >&6; }
19097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19098 $as_echo_n "(cached) " >&6
19100 cat >conftest.$ac_ext <<_ACEOF
19103 cat confdefs.h >>conftest.$ac_ext
19104 cat >>conftest.$ac_ext <<_ACEOF
19105 /* end confdefs.h. */
19106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19108 #define $ac_func innocuous_$ac_func
19110 /* System header to define __stub macros and hopefully few prototypes,
19111 which can conflict with char $ac_func (); below.
19112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19113 <limits.h> exists even on freestanding compilers. */
19116 # include <limits.h>
19118 # include <assert.h>
19123 /* Override any GCC internal prototype to avoid an error.
19124 Use char because int might match the return type of a GCC
19125 builtin and then its argument prototype would still apply. */
19130 /* The GNU C library defines this for functions which it implements
19131 to always fail with ENOSYS. Some functions are actually named
19132 something starting with __ and the normal name is an alias. */
19133 #if defined __stub_$ac_func || defined __stub___$ac_func
19140 return $ac_func ();
19145 rm -f conftest.$ac_objext conftest$ac_exeext
19146 if { (ac_try="$ac_link"
19147 case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19152 $as_echo "$ac_try_echo") >&5
19153 (eval "$ac_link") 2>conftest.er1
19155 grep -v '^ *+' conftest.er1 >conftest.err
19157 cat conftest.err >&5
19158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } && {
19160 test -z "$ac_c_werror_flag" ||
19161 test ! -s conftest.err
19162 } && test -s conftest$ac_exeext && {
19163 test "$cross_compiling" = yes ||
19164 $as_test_x conftest$ac_exeext
19166 eval "$as_ac_var=yes"
19168 $as_echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19171 eval "$as_ac_var=no"
19174 rm -rf conftest.dSYM
19175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19176 conftest$ac_exeext conftest.$ac_ext
19178 ac_res=`eval 'as_val=${'$as_ac_var'}
19179 $as_echo "$as_val"'`
19180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19181 $as_echo "$ac_res" >&6; }
19182 as_val=`eval 'as_val=${'$as_ac_var'}
19183 $as_echo "$as_val"'`
19184 if test "x$as_val" = x""yes; then
19185 cat >>confdefs.h <<_ACEOF
19186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19190 case " $LIBOBJS " in
19191 *" $ac_func.$ac_objext "* ) ;;
19192 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19201 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19202 # Mingw uses macros to access Win32 API calls
19203 bsdi*|netbsd*|mingw*)
19205 cat >>confdefs.h <<\_ACEOF
19206 #define HAVE_FSEEKO 1
19209 ac_cv_func_fseeko=yes;;
19211 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19212 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19213 if test "${ac_cv_sys_largefile_source+set}" = set; then
19214 $as_echo_n "(cached) " >&6
19217 cat >conftest.$ac_ext <<_ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223 #include <sys/types.h> /* for off_t */
19228 int (*fp) (FILE *, off_t, int) = fseeko;
19229 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19234 rm -f conftest.$ac_objext conftest$ac_exeext
19235 if { (ac_try="$ac_link"
19236 case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19241 $as_echo "$ac_try_echo") >&5
19242 (eval "$ac_link") 2>conftest.er1
19244 grep -v '^ *+' conftest.er1 >conftest.err
19246 cat conftest.err >&5
19247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } && {
19249 test -z "$ac_c_werror_flag" ||
19250 test ! -s conftest.err
19251 } && test -s conftest$ac_exeext && {
19252 test "$cross_compiling" = yes ||
19253 $as_test_x conftest$ac_exeext
19255 ac_cv_sys_largefile_source=no; break
19257 $as_echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19263 rm -rf conftest.dSYM
19264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19265 conftest$ac_exeext conftest.$ac_ext
19266 cat >conftest.$ac_ext <<_ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 #define _LARGEFILE_SOURCE 1
19273 #include <sys/types.h> /* for off_t */
19278 int (*fp) (FILE *, off_t, int) = fseeko;
19279 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (ac_try="$ac_link"
19286 case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19291 $as_echo "$ac_try_echo") >&5
19292 (eval "$ac_link") 2>conftest.er1
19294 grep -v '^ *+' conftest.er1 >conftest.err
19296 cat conftest.err >&5
19297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } && {
19299 test -z "$ac_c_werror_flag" ||
19300 test ! -s conftest.err
19301 } && test -s conftest$ac_exeext && {
19302 test "$cross_compiling" = yes ||
19303 $as_test_x conftest$ac_exeext
19305 ac_cv_sys_largefile_source=1; break
19307 $as_echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19313 rm -rf conftest.dSYM
19314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19315 conftest$ac_exeext conftest.$ac_ext
19316 ac_cv_sys_largefile_source=unknown
19320 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19321 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19322 case $ac_cv_sys_largefile_source in #(
19325 cat >>confdefs.h <<_ACEOF
19326 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19332 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19333 # in glibc 2.1.3, but that breaks too many other things.
19334 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19335 if test $ac_cv_sys_largefile_source != unknown; then
19337 cat >>confdefs.h <<\_ACEOF
19338 #define HAVE_FSEEKO 1
19345 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19346 # by calling it, 2009-04-02
19347 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19348 if test "$PORTNAME" != "solaris"; then
19350 for ac_func in posix_fadvise
19352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19353 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19354 $as_echo_n "checking for $ac_func... " >&6; }
19355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19356 $as_echo_n "(cached) " >&6
19358 cat >conftest.$ac_ext <<_ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19366 #define $ac_func innocuous_$ac_func
19368 /* System header to define __stub macros and hopefully few prototypes,
19369 which can conflict with char $ac_func (); below.
19370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19371 <limits.h> exists even on freestanding compilers. */
19374 # include <limits.h>
19376 # include <assert.h>
19381 /* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19388 /* The GNU C library defines this for functions which it implements
19389 to always fail with ENOSYS. Some functions are actually named
19390 something starting with __ and the normal name is an alias. */
19391 #if defined __stub_$ac_func || defined __stub___$ac_func
19398 return $ac_func ();
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (ac_try="$ac_link"
19405 case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19410 $as_echo "$ac_try_echo") >&5
19411 (eval "$ac_link") 2>conftest.er1
19413 grep -v '^ *+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } && {
19418 test -z "$ac_c_werror_flag" ||
19419 test ! -s conftest.err
19420 } && test -s conftest$ac_exeext && {
19421 test "$cross_compiling" = yes ||
19422 $as_test_x conftest$ac_exeext
19424 eval "$as_ac_var=yes"
19426 $as_echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 eval "$as_ac_var=no"
19432 rm -rf conftest.dSYM
19433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19434 conftest$ac_exeext conftest.$ac_ext
19436 ac_res=`eval 'as_val=${'$as_ac_var'}
19437 $as_echo "$as_val"'`
19438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19439 $as_echo "$ac_res" >&6; }
19440 as_val=`eval 'as_val=${'$as_ac_var'}
19441 $as_echo "$as_val"'`
19442 if test "x$as_val" = x""yes; then
19443 cat >>confdefs.h <<_ACEOF
19444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19450 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19451 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19452 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19453 $as_echo_n "(cached) " >&6
19455 cat >conftest.$ac_ext <<_ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19466 #ifndef posix_fadvise
19467 (void) posix_fadvise;
19474 rm -f conftest.$ac_objext
19475 if { (ac_try="$ac_compile"
19476 case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19481 $as_echo "$ac_try_echo") >&5
19482 (eval "$ac_compile") 2>conftest.er1
19484 grep -v '^ *+' conftest.er1 >conftest.err
19486 cat conftest.err >&5
19487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } && {
19489 test -z "$ac_c_werror_flag" ||
19490 test ! -s conftest.err
19491 } && test -s conftest.$ac_objext; then
19492 ac_cv_have_decl_posix_fadvise=yes
19494 $as_echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_cv_have_decl_posix_fadvise=no
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19503 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19504 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19506 cat >>confdefs.h <<_ACEOF
19507 #define HAVE_DECL_POSIX_FADVISE 1
19512 cat >>confdefs.h <<_ACEOF
19513 #define HAVE_DECL_POSIX_FADVISE 0
19522 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19523 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19524 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19525 $as_echo_n "(cached) " >&6
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 #include <unistd.h>
19546 rm -f conftest.$ac_objext
19547 if { (ac_try="$ac_compile"
19548 case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19553 $as_echo "$ac_try_echo") >&5
19554 (eval "$ac_compile") 2>conftest.er1
19556 grep -v '^ *+' conftest.er1 >conftest.err
19558 cat conftest.err >&5
19559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest.$ac_objext; then
19564 ac_cv_have_decl_fdatasync=yes
19566 $as_echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_cv_have_decl_fdatasync=no
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19574 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19575 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19576 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19578 cat >>confdefs.h <<_ACEOF
19579 #define HAVE_DECL_FDATASYNC 1
19584 cat >>confdefs.h <<_ACEOF
19585 #define HAVE_DECL_FDATASYNC 0
19592 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19593 $as_echo_n "checking whether strlcat is declared... " >&6; }
19594 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19595 $as_echo_n "(cached) " >&6
19597 cat >conftest.$ac_ext <<_ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19603 $ac_includes_default
19615 rm -f conftest.$ac_objext
19616 if { (ac_try="$ac_compile"
19617 case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19622 $as_echo "$ac_try_echo") >&5
19623 (eval "$ac_compile") 2>conftest.er1
19625 grep -v '^ *+' conftest.er1 >conftest.err
19627 cat conftest.err >&5
19628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } && {
19630 test -z "$ac_c_werror_flag" ||
19631 test ! -s conftest.err
19632 } && test -s conftest.$ac_objext; then
19633 ac_cv_have_decl_strlcat=yes
19635 $as_echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19638 ac_cv_have_decl_strlcat=no
19641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19643 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19644 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19645 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19647 cat >>confdefs.h <<_ACEOF
19648 #define HAVE_DECL_STRLCAT 1
19653 cat >>confdefs.h <<_ACEOF
19654 #define HAVE_DECL_STRLCAT 0
19659 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19660 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19661 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19662 $as_echo_n "(cached) " >&6
19664 cat >conftest.$ac_ext <<_ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19670 $ac_includes_default
19682 rm -f conftest.$ac_objext
19683 if { (ac_try="$ac_compile"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19689 $as_echo "$ac_try_echo") >&5
19690 (eval "$ac_compile") 2>conftest.er1
19692 grep -v '^ *+' conftest.er1 >conftest.err
19694 cat conftest.err >&5
19695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } && {
19697 test -z "$ac_c_werror_flag" ||
19698 test ! -s conftest.err
19699 } && test -s conftest.$ac_objext; then
19700 ac_cv_have_decl_strlcpy=yes
19702 $as_echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 ac_cv_have_decl_strlcpy=no
19708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19710 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19711 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19712 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19714 cat >>confdefs.h <<_ACEOF
19715 #define HAVE_DECL_STRLCPY 1
19720 cat >>confdefs.h <<_ACEOF
19721 #define HAVE_DECL_STRLCPY 0
19728 # This is probably only present on Darwin, but may as well check always
19729 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19730 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19731 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19732 $as_echo_n "(cached) " >&6
19734 cat >conftest.$ac_ext <<_ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h. */
19745 #ifndef F_FULLFSYNC
19746 (void) F_FULLFSYNC;
19753 rm -f conftest.$ac_objext
19754 if { (ac_try="$ac_compile"
19755 case "(($ac_try" in
19756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19757 *) ac_try_echo=$ac_try;;
19759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19760 $as_echo "$ac_try_echo") >&5
19761 (eval "$ac_compile") 2>conftest.er1
19763 grep -v '^ *+' conftest.er1 >conftest.err
19765 cat conftest.err >&5
19766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } && {
19768 test -z "$ac_c_werror_flag" ||
19769 test ! -s conftest.err
19770 } && test -s conftest.$ac_objext; then
19771 ac_cv_have_decl_F_FULLFSYNC=yes
19773 $as_echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19776 ac_cv_have_decl_F_FULLFSYNC=no
19779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19781 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19782 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19783 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19785 cat >>confdefs.h <<_ACEOF
19786 #define HAVE_DECL_F_FULLFSYNC 1
19791 cat >>confdefs.h <<_ACEOF
19792 #define HAVE_DECL_F_FULLFSYNC 0
19801 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19802 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19803 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19804 $as_echo_n "(cached) " >&6
19806 ac_cv_type_struct_sockaddr_in6=no
19807 cat >conftest.$ac_ext <<_ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h. */
19813 $ac_includes_default
19814 #include <netinet/in.h>
19819 if (sizeof (struct sockaddr_in6))
19825 rm -f conftest.$ac_objext
19826 if { (ac_try="$ac_compile"
19827 case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19832 $as_echo "$ac_try_echo") >&5
19833 (eval "$ac_compile") 2>conftest.er1
19835 grep -v '^ *+' conftest.er1 >conftest.err
19837 cat conftest.err >&5
19838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } && {
19840 test -z "$ac_c_werror_flag" ||
19841 test ! -s conftest.err
19842 } && test -s conftest.$ac_objext; then
19843 cat >conftest.$ac_ext <<_ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19849 $ac_includes_default
19850 #include <netinet/in.h>
19855 if (sizeof ((struct sockaddr_in6)))
19861 rm -f conftest.$ac_objext
19862 if { (ac_try="$ac_compile"
19863 case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19868 $as_echo "$ac_try_echo") >&5
19869 (eval "$ac_compile") 2>conftest.er1
19871 grep -v '^ *+' conftest.er1 >conftest.err
19873 cat conftest.err >&5
19874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } && {
19876 test -z "$ac_c_werror_flag" ||
19877 test ! -s conftest.err
19878 } && test -s conftest.$ac_objext; then
19881 $as_echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 ac_cv_type_struct_sockaddr_in6=yes
19887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19889 $as_echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19898 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19899 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19901 cat >>confdefs.h <<\_ACEOF
19902 #define HAVE_IPV6 1
19910 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19911 $as_echo_n "checking for PS_STRINGS... " >&6; }
19912 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19913 $as_echo_n "(cached) " >&6
19915 cat >conftest.$ac_ext <<_ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19921 #include <machine/vmparam.h>
19922 #include <sys/exec.h>
19927 PS_STRINGS->ps_nargvstr = 1;
19928 PS_STRINGS->ps_argvstr = "foo";
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19940 $as_echo "$ac_try_echo") >&5
19941 (eval "$ac_link") 2>conftest.er1
19943 grep -v '^ *+' conftest.er1 >conftest.err
19945 cat conftest.err >&5
19946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } && {
19948 test -z "$ac_c_werror_flag" ||
19949 test ! -s conftest.err
19950 } && test -s conftest$ac_exeext && {
19951 test "$cross_compiling" = yes ||
19952 $as_test_x conftest$ac_exeext
19954 pgac_cv_var_PS_STRINGS=yes
19956 $as_echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19959 pgac_cv_var_PS_STRINGS=no
19962 rm -rf conftest.dSYM
19963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19964 conftest$ac_exeext conftest.$ac_ext
19966 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19967 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19968 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19970 cat >>confdefs.h <<\_ACEOF
19971 #define HAVE_PS_STRINGS /**/
19977 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19978 # is missing. Yes, there are machines that have only one. We may
19979 # also decide to use snprintf.c if snprintf() is present but does not
19980 # have all the features we need --- see below.
19982 if test "$PORTNAME" = "win32"; then
19983 # Win32 gets snprintf.c built unconditionally.
19985 # To properly translate all NLS languages strings, we must support the
19986 # *printf() %$ format, which allows *printf() arguments to be selected
19987 # by position in the translated string.
19989 # libintl versions < 0.13 use the native *printf() functions, and Win32
19990 # *printf() doesn't understand %$, so we must use our /port versions,
19991 # which do understand %$. libintl versions >= 0.13 include their own
19992 # *printf versions on Win32. The libintl 0.13 release note text is:
19994 # C format strings with positions, as they arise when a translator
19995 # needs to reorder a sentence, are now supported on all platforms.
19996 # On those few platforms (NetBSD and Woe32) for which the native
19997 # printf()/fprintf()/... functions don't support such format
19998 # strings, replacements are provided through <libintl.h>.
20000 # We could use libintl >= 0.13's *printf() if we were sure that we had
20001 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20002 # to guarantee that, it is best to just use our own, so we are sure to
20003 # get %$ support. In include/port.h we disable the *printf() macros
20004 # that might have been defined by libintl.
20006 # We do this unconditionally whether NLS is used or not so we are sure
20007 # that all Win32 libraries and binaries behave the same.
20008 pgac_need_repl_snprintf=yes
20010 pgac_need_repl_snprintf=no
20012 for ac_func in snprintf
20014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20015 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20016 $as_echo_n "checking for $ac_func... " >&6; }
20017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20018 $as_echo_n "(cached) " >&6
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20028 #define $ac_func innocuous_$ac_func
20030 /* System header to define __stub macros and hopefully few prototypes,
20031 which can conflict with char $ac_func (); below.
20032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20033 <limits.h> exists even on freestanding compilers. */
20036 # include <limits.h>
20038 # include <assert.h>
20043 /* Override any GCC internal prototype to avoid an error.
20044 Use char because int might match the return type of a GCC
20045 builtin and then its argument prototype would still apply. */
20050 /* The GNU C library defines this for functions which it implements
20051 to always fail with ENOSYS. Some functions are actually named
20052 something starting with __ and the normal name is an alias. */
20053 #if defined __stub_$ac_func || defined __stub___$ac_func
20060 return $ac_func ();
20065 rm -f conftest.$ac_objext conftest$ac_exeext
20066 if { (ac_try="$ac_link"
20067 case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20072 $as_echo "$ac_try_echo") >&5
20073 (eval "$ac_link") 2>conftest.er1
20075 grep -v '^ *+' conftest.er1 >conftest.err
20077 cat conftest.err >&5
20078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } && {
20080 test -z "$ac_c_werror_flag" ||
20081 test ! -s conftest.err
20082 } && test -s conftest$ac_exeext && {
20083 test "$cross_compiling" = yes ||
20084 $as_test_x conftest$ac_exeext
20086 eval "$as_ac_var=yes"
20088 $as_echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20091 eval "$as_ac_var=no"
20094 rm -rf conftest.dSYM
20095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20096 conftest$ac_exeext conftest.$ac_ext
20098 ac_res=`eval 'as_val=${'$as_ac_var'}
20099 $as_echo "$as_val"'`
20100 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20101 $as_echo "$ac_res" >&6; }
20102 as_val=`eval 'as_val=${'$as_ac_var'}
20103 $as_echo "$as_val"'`
20104 if test "x$as_val" = x""yes; then
20105 cat >>confdefs.h <<_ACEOF
20106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20110 pgac_need_repl_snprintf=yes
20115 for ac_func in vsnprintf
20117 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20118 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20119 $as_echo_n "checking for $ac_func... " >&6; }
20120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20121 $as_echo_n "(cached) " >&6
20123 cat >conftest.$ac_ext <<_ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20131 #define $ac_func innocuous_$ac_func
20133 /* System header to define __stub macros and hopefully few prototypes,
20134 which can conflict with char $ac_func (); below.
20135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20136 <limits.h> exists even on freestanding compilers. */
20139 # include <limits.h>
20141 # include <assert.h>
20146 /* Override any GCC internal prototype to avoid an error.
20147 Use char because int might match the return type of a GCC
20148 builtin and then its argument prototype would still apply. */
20153 /* The GNU C library defines this for functions which it implements
20154 to always fail with ENOSYS. Some functions are actually named
20155 something starting with __ and the normal name is an alias. */
20156 #if defined __stub_$ac_func || defined __stub___$ac_func
20163 return $ac_func ();
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (ac_try="$ac_link"
20170 case "(($ac_try" in
20171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172 *) ac_try_echo=$ac_try;;
20174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20175 $as_echo "$ac_try_echo") >&5
20176 (eval "$ac_link") 2>conftest.er1
20178 grep -v '^ *+' conftest.er1 >conftest.err
20180 cat conftest.err >&5
20181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } && {
20183 test -z "$ac_c_werror_flag" ||
20184 test ! -s conftest.err
20185 } && test -s conftest$ac_exeext && {
20186 test "$cross_compiling" = yes ||
20187 $as_test_x conftest$ac_exeext
20189 eval "$as_ac_var=yes"
20191 $as_echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 eval "$as_ac_var=no"
20197 rm -rf conftest.dSYM
20198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20199 conftest$ac_exeext conftest.$ac_ext
20201 ac_res=`eval 'as_val=${'$as_ac_var'}
20202 $as_echo "$as_val"'`
20203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20204 $as_echo "$ac_res" >&6; }
20205 as_val=`eval 'as_val=${'$as_ac_var'}
20206 $as_echo "$as_val"'`
20207 if test "x$as_val" = x""yes; then
20208 cat >>confdefs.h <<_ACEOF
20209 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20213 pgac_need_repl_snprintf=yes
20220 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20221 # include/c.h will provide declarations. Note this is a separate test
20222 # from whether the functions exist in the C library --- there are
20223 # systems that have the functions but don't bother to declare them :-(
20225 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20226 $as_echo_n "checking whether snprintf is declared... " >&6; }
20227 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20228 $as_echo_n "(cached) " >&6
20230 cat >conftest.$ac_ext <<_ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20236 $ac_includes_default
20248 rm -f conftest.$ac_objext
20249 if { (ac_try="$ac_compile"
20250 case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20255 $as_echo "$ac_try_echo") >&5
20256 (eval "$ac_compile") 2>conftest.er1
20258 grep -v '^ *+' conftest.er1 >conftest.err
20260 cat conftest.err >&5
20261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest.$ac_objext; then
20266 ac_cv_have_decl_snprintf=yes
20268 $as_echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20271 ac_cv_have_decl_snprintf=no
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20277 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20278 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20280 cat >>confdefs.h <<_ACEOF
20281 #define HAVE_DECL_SNPRINTF 1
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_DECL_SNPRINTF 0
20292 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20293 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20294 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20295 $as_echo_n "(cached) " >&6
20297 cat >conftest.$ac_ext <<_ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20303 $ac_includes_default
20315 rm -f conftest.$ac_objext
20316 if { (ac_try="$ac_compile"
20317 case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20322 $as_echo "$ac_try_echo") >&5
20323 (eval "$ac_compile") 2>conftest.er1
20325 grep -v '^ *+' conftest.er1 >conftest.err
20327 cat conftest.err >&5
20328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } && {
20330 test -z "$ac_c_werror_flag" ||
20331 test ! -s conftest.err
20332 } && test -s conftest.$ac_objext; then
20333 ac_cv_have_decl_vsnprintf=yes
20335 $as_echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20338 ac_cv_have_decl_vsnprintf=no
20341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20343 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20344 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20345 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20347 cat >>confdefs.h <<_ACEOF
20348 #define HAVE_DECL_VSNPRINTF 1
20353 cat >>confdefs.h <<_ACEOF
20354 #define HAVE_DECL_VSNPRINTF 0
20363 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20364 $as_echo_n "checking for isinf... " >&6; }
20365 if test "${ac_cv_func_isinf+set}" = set; then
20366 $as_echo_n "(cached) " >&6
20368 cat >conftest.$ac_ext <<_ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20376 double glob_double;
20381 return isinf(glob_double) ? 0 : 1;
20386 rm -f conftest.$ac_objext conftest$ac_exeext
20387 if { (ac_try="$ac_link"
20388 case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20393 $as_echo "$ac_try_echo") >&5
20394 (eval "$ac_link") 2>conftest.er1
20396 grep -v '^ *+' conftest.er1 >conftest.err
20398 cat conftest.err >&5
20399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest$ac_exeext && {
20404 test "$cross_compiling" = yes ||
20405 $as_test_x conftest$ac_exeext
20407 ac_cv_func_isinf=yes
20409 $as_echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20412 ac_cv_func_isinf=no
20415 rm -rf conftest.dSYM
20416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20417 conftest$ac_exeext conftest.$ac_ext
20419 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20420 $as_echo "$ac_cv_func_isinf" >&6; }
20422 if test $ac_cv_func_isinf = yes ; then
20424 cat >>confdefs.h <<\_ACEOF
20425 #define HAVE_ISINF 1
20429 case " $LIBOBJS " in
20430 *" isinf.$ac_objext "* ) ;;
20431 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20435 # Look for a way to implement a substitute for isinf()
20440 for ac_func in fpclass fp_class fp_class_d class
20442 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20443 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20444 $as_echo_n "checking for $ac_func... " >&6; }
20445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20446 $as_echo_n "(cached) " >&6
20448 cat >conftest.$ac_ext <<_ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20456 #define $ac_func innocuous_$ac_func
20458 /* System header to define __stub macros and hopefully few prototypes,
20459 which can conflict with char $ac_func (); below.
20460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20461 <limits.h> exists even on freestanding compilers. */
20464 # include <limits.h>
20466 # include <assert.h>
20471 /* Override any GCC internal prototype to avoid an error.
20472 Use char because int might match the return type of a GCC
20473 builtin and then its argument prototype would still apply. */
20478 /* The GNU C library defines this for functions which it implements
20479 to always fail with ENOSYS. Some functions are actually named
20480 something starting with __ and the normal name is an alias. */
20481 #if defined __stub_$ac_func || defined __stub___$ac_func
20488 return $ac_func ();
20493 rm -f conftest.$ac_objext conftest$ac_exeext
20494 if { (ac_try="$ac_link"
20495 case "(($ac_try" in
20496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497 *) ac_try_echo=$ac_try;;
20499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20500 $as_echo "$ac_try_echo") >&5
20501 (eval "$ac_link") 2>conftest.er1
20503 grep -v '^ *+' conftest.er1 >conftest.err
20505 cat conftest.err >&5
20506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } && {
20508 test -z "$ac_c_werror_flag" ||
20509 test ! -s conftest.err
20510 } && test -s conftest$ac_exeext && {
20511 test "$cross_compiling" = yes ||
20512 $as_test_x conftest$ac_exeext
20514 eval "$as_ac_var=yes"
20516 $as_echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20519 eval "$as_ac_var=no"
20522 rm -rf conftest.dSYM
20523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20524 conftest$ac_exeext conftest.$ac_ext
20526 ac_res=`eval 'as_val=${'$as_ac_var'}
20527 $as_echo "$as_val"'`
20528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20529 $as_echo "$ac_res" >&6; }
20530 as_val=`eval 'as_val=${'$as_ac_var'}
20531 $as_echo "$as_val"'`
20532 if test "x$as_val" = x""yes; then
20533 cat >>confdefs.h <<_ACEOF
20534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20542 # Some versions of libedit contain strlcpy(); so disregard that library while
20543 # checking for these standard libc functions.
20544 pgac_save_LIBS="$LIBS"
20545 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20560 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20563 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20564 $as_echo_n "checking for $ac_func... " >&6; }
20565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20566 $as_echo_n "(cached) " >&6
20568 cat >conftest.$ac_ext <<_ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20576 #define $ac_func innocuous_$ac_func
20578 /* System header to define __stub macros and hopefully few prototypes,
20579 which can conflict with char $ac_func (); below.
20580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20581 <limits.h> exists even on freestanding compilers. */
20584 # include <limits.h>
20586 # include <assert.h>
20591 /* Override any GCC internal prototype to avoid an error.
20592 Use char because int might match the return type of a GCC
20593 builtin and then its argument prototype would still apply. */
20598 /* The GNU C library defines this for functions which it implements
20599 to always fail with ENOSYS. Some functions are actually named
20600 something starting with __ and the normal name is an alias. */
20601 #if defined __stub_$ac_func || defined __stub___$ac_func
20608 return $ac_func ();
20613 rm -f conftest.$ac_objext conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20620 $as_echo "$ac_try_echo") >&5
20621 (eval "$ac_link") 2>conftest.er1
20623 grep -v '^ *+' conftest.er1 >conftest.err
20625 cat conftest.err >&5
20626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } && {
20628 test -z "$ac_c_werror_flag" ||
20629 test ! -s conftest.err
20630 } && test -s conftest$ac_exeext && {
20631 test "$cross_compiling" = yes ||
20632 $as_test_x conftest$ac_exeext
20634 eval "$as_ac_var=yes"
20636 $as_echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20639 eval "$as_ac_var=no"
20642 rm -rf conftest.dSYM
20643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20644 conftest$ac_exeext conftest.$ac_ext
20646 ac_res=`eval 'as_val=${'$as_ac_var'}
20647 $as_echo "$as_val"'`
20648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20649 $as_echo "$ac_res" >&6; }
20650 as_val=`eval 'as_val=${'$as_ac_var'}
20651 $as_echo "$as_val"'`
20652 if test "x$as_val" = x""yes; then
20653 cat >>confdefs.h <<_ACEOF
20654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20658 case " $LIBOBJS " in
20659 *" $ac_func.$ac_objext "* ) ;;
20660 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20671 # Windows uses a specialised env handler
20672 # and doesn't need a replacement getpeereid because it doesn't use
20676 cat >>confdefs.h <<\_ACEOF
20677 #define HAVE_UNSETENV 1
20681 cat >>confdefs.h <<\_ACEOF
20682 #define HAVE_GETPEEREID 1
20685 ac_cv_func_unsetenv=yes
20686 ac_cv_func_getpeereid=yes;;
20690 for ac_func in unsetenv getpeereid
20692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20693 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20694 $as_echo_n "checking for $ac_func... " >&6; }
20695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20696 $as_echo_n "(cached) " >&6
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20706 #define $ac_func innocuous_$ac_func
20708 /* System header to define __stub macros and hopefully few prototypes,
20709 which can conflict with char $ac_func (); below.
20710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20711 <limits.h> exists even on freestanding compilers. */
20714 # include <limits.h>
20716 # include <assert.h>
20721 /* Override any GCC internal prototype to avoid an error.
20722 Use char because int might match the return type of a GCC
20723 builtin and then its argument prototype would still apply. */
20728 /* The GNU C library defines this for functions which it implements
20729 to always fail with ENOSYS. Some functions are actually named
20730 something starting with __ and the normal name is an alias. */
20731 #if defined __stub_$ac_func || defined __stub___$ac_func
20738 return $ac_func ();
20743 rm -f conftest.$ac_objext conftest$ac_exeext
20744 if { (ac_try="$ac_link"
20745 case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20750 $as_echo "$ac_try_echo") >&5
20751 (eval "$ac_link") 2>conftest.er1
20753 grep -v '^ *+' conftest.er1 >conftest.err
20755 cat conftest.err >&5
20756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } && {
20758 test -z "$ac_c_werror_flag" ||
20759 test ! -s conftest.err
20760 } && test -s conftest$ac_exeext && {
20761 test "$cross_compiling" = yes ||
20762 $as_test_x conftest$ac_exeext
20764 eval "$as_ac_var=yes"
20766 $as_echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20769 eval "$as_ac_var=no"
20772 rm -rf conftest.dSYM
20773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20774 conftest$ac_exeext conftest.$ac_ext
20776 ac_res=`eval 'as_val=${'$as_ac_var'}
20777 $as_echo "$as_val"'`
20778 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20779 $as_echo "$ac_res" >&6; }
20780 as_val=`eval 'as_val=${'$as_ac_var'}
20781 $as_echo "$as_val"'`
20782 if test "x$as_val" = x""yes; then
20783 cat >>confdefs.h <<_ACEOF
20784 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20788 case " $LIBOBJS " in
20789 *" $ac_func.$ac_objext "* ) ;;
20790 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20802 LIBS="$pgac_save_LIBS"
20804 # System's version of getaddrinfo(), if any, may be used only if we found
20805 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20806 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20807 # versions of getaddrinfo don't follow normal C call protocol. This is OK
20808 # because we want to use our own getaddrinfo.c on Windows anyway.)
20809 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20811 for ac_func in getaddrinfo
20813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20814 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20815 $as_echo_n "checking for $ac_func... " >&6; }
20816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20817 $as_echo_n "(cached) " >&6
20819 cat >conftest.$ac_ext <<_ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20827 #define $ac_func innocuous_$ac_func
20829 /* System header to define __stub macros and hopefully few prototypes,
20830 which can conflict with char $ac_func (); below.
20831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20832 <limits.h> exists even on freestanding compilers. */
20835 # include <limits.h>
20837 # include <assert.h>
20842 /* Override any GCC internal prototype to avoid an error.
20843 Use char because int might match the return type of a GCC
20844 builtin and then its argument prototype would still apply. */
20849 /* The GNU C library defines this for functions which it implements
20850 to always fail with ENOSYS. Some functions are actually named
20851 something starting with __ and the normal name is an alias. */
20852 #if defined __stub_$ac_func || defined __stub___$ac_func
20859 return $ac_func ();
20864 rm -f conftest.$ac_objext conftest$ac_exeext
20865 if { (ac_try="$ac_link"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20871 $as_echo "$ac_try_echo") >&5
20872 (eval "$ac_link") 2>conftest.er1
20874 grep -v '^ *+' conftest.er1 >conftest.err
20876 cat conftest.err >&5
20877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } && {
20879 test -z "$ac_c_werror_flag" ||
20880 test ! -s conftest.err
20881 } && test -s conftest$ac_exeext && {
20882 test "$cross_compiling" = yes ||
20883 $as_test_x conftest$ac_exeext
20885 eval "$as_ac_var=yes"
20887 $as_echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20890 eval "$as_ac_var=no"
20893 rm -rf conftest.dSYM
20894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20895 conftest$ac_exeext conftest.$ac_ext
20897 ac_res=`eval 'as_val=${'$as_ac_var'}
20898 $as_echo "$as_val"'`
20899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20900 $as_echo "$ac_res" >&6; }
20901 as_val=`eval 'as_val=${'$as_ac_var'}
20902 $as_echo "$as_val"'`
20903 if test "x$as_val" = x""yes; then
20904 cat >>confdefs.h <<_ACEOF
20905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20909 case " $LIBOBJS " in
20910 *" $ac_func.$ac_objext "* ) ;;
20911 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20920 case " $LIBOBJS " in
20921 *" getaddrinfo.$ac_objext "* ) ;;
20922 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20928 # Similarly, use system's getopt_long() only if system provides struct option.
20929 if test x"$ac_cv_type_struct_option" = xyes ; then
20931 for ac_func in getopt_long
20933 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20934 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20935 $as_echo_n "checking for $ac_func... " >&6; }
20936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20937 $as_echo_n "(cached) " >&6
20939 cat >conftest.$ac_ext <<_ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20947 #define $ac_func innocuous_$ac_func
20949 /* System header to define __stub macros and hopefully few prototypes,
20950 which can conflict with char $ac_func (); below.
20951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20952 <limits.h> exists even on freestanding compilers. */
20955 # include <limits.h>
20957 # include <assert.h>
20962 /* Override any GCC internal prototype to avoid an error.
20963 Use char because int might match the return type of a GCC
20964 builtin and then its argument prototype would still apply. */
20969 /* The GNU C library defines this for functions which it implements
20970 to always fail with ENOSYS. Some functions are actually named
20971 something starting with __ and the normal name is an alias. */
20972 #if defined __stub_$ac_func || defined __stub___$ac_func
20979 return $ac_func ();
20984 rm -f conftest.$ac_objext conftest$ac_exeext
20985 if { (ac_try="$ac_link"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20991 $as_echo "$ac_try_echo") >&5
20992 (eval "$ac_link") 2>conftest.er1
20994 grep -v '^ *+' conftest.er1 >conftest.err
20996 cat conftest.err >&5
20997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } && {
20999 test -z "$ac_c_werror_flag" ||
21000 test ! -s conftest.err
21001 } && test -s conftest$ac_exeext && {
21002 test "$cross_compiling" = yes ||
21003 $as_test_x conftest$ac_exeext
21005 eval "$as_ac_var=yes"
21007 $as_echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 eval "$as_ac_var=no"
21013 rm -rf conftest.dSYM
21014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21015 conftest$ac_exeext conftest.$ac_ext
21017 ac_res=`eval 'as_val=${'$as_ac_var'}
21018 $as_echo "$as_val"'`
21019 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21020 $as_echo "$ac_res" >&6; }
21021 as_val=`eval 'as_val=${'$as_ac_var'}
21022 $as_echo "$as_val"'`
21023 if test "x$as_val" = x""yes; then
21024 cat >>confdefs.h <<_ACEOF
21025 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21029 case " $LIBOBJS " in
21030 *" $ac_func.$ac_objext "* ) ;;
21031 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21040 case " $LIBOBJS " in
21041 *" getopt_long.$ac_objext "* ) ;;
21042 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21048 # Solaris' getopt() doesn't do what we want for long options, so always use
21049 # our version on that platform.
21050 if test "$PORTNAME" = "solaris"; then
21051 case " $LIBOBJS " in
21052 *" getopt.$ac_objext "* ) ;;
21053 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21059 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21060 # so always use our version on Windows.
21061 if test "$PORTNAME" = "win32"; then
21062 case " $LIBOBJS " in
21063 *" getopt.$ac_objext "* ) ;;
21064 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21068 case " $LIBOBJS " in
21069 *" getopt_long.$ac_objext "* ) ;;
21070 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21077 if test "$PORTNAME" = "win32"; then
21079 for ac_func in gettimeofday
21081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21082 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21083 $as_echo_n "checking for $ac_func... " >&6; }
21084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21085 $as_echo_n "(cached) " >&6
21087 cat >conftest.$ac_ext <<_ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21095 #define $ac_func innocuous_$ac_func
21097 /* System header to define __stub macros and hopefully few prototypes,
21098 which can conflict with char $ac_func (); below.
21099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21100 <limits.h> exists even on freestanding compilers. */
21103 # include <limits.h>
21105 # include <assert.h>
21110 /* Override any GCC internal prototype to avoid an error.
21111 Use char because int might match the return type of a GCC
21112 builtin and then its argument prototype would still apply. */
21117 /* The GNU C library defines this for functions which it implements
21118 to always fail with ENOSYS. Some functions are actually named
21119 something starting with __ and the normal name is an alias. */
21120 #if defined __stub_$ac_func || defined __stub___$ac_func
21127 return $ac_func ();
21132 rm -f conftest.$ac_objext conftest$ac_exeext
21133 if { (ac_try="$ac_link"
21134 case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21139 $as_echo "$ac_try_echo") >&5
21140 (eval "$ac_link") 2>conftest.er1
21142 grep -v '^ *+' conftest.er1 >conftest.err
21144 cat conftest.err >&5
21145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } && {
21147 test -z "$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 } && test -s conftest$ac_exeext && {
21150 test "$cross_compiling" = yes ||
21151 $as_test_x conftest$ac_exeext
21153 eval "$as_ac_var=yes"
21155 $as_echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 eval "$as_ac_var=no"
21161 rm -rf conftest.dSYM
21162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21163 conftest$ac_exeext conftest.$ac_ext
21165 ac_res=`eval 'as_val=${'$as_ac_var'}
21166 $as_echo "$as_val"'`
21167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21168 $as_echo "$ac_res" >&6; }
21169 as_val=`eval 'as_val=${'$as_ac_var'}
21170 $as_echo "$as_val"'`
21171 if test "x$as_val" = x""yes; then
21172 cat >>confdefs.h <<_ACEOF
21173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21177 case " $LIBOBJS " in
21178 *" $ac_func.$ac_objext "* ) ;;
21179 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21187 case " $LIBOBJS " in
21188 *" kill.$ac_objext "* ) ;;
21189 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21193 case " $LIBOBJS " in
21194 *" open.$ac_objext "* ) ;;
21195 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21199 case " $LIBOBJS " in
21200 *" win32env.$ac_objext "* ) ;;
21201 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21205 case " $LIBOBJS " in
21206 *" win32error.$ac_objext "* ) ;;
21207 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21211 case " $LIBOBJS " in
21212 *" win32setlocale.$ac_objext "* ) ;;
21213 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21218 cat >>confdefs.h <<\_ACEOF
21219 #define HAVE_SYMLINK 1
21222 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21223 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21224 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21225 $as_echo_n "(cached) " >&6
21227 ac_cv_type_MINIDUMP_TYPE=no
21228 cat >conftest.$ac_ext <<_ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21235 #define WIN32_LEAN_AND_MEAN
21236 #include <windows.h>
21237 #include <string.h>
21238 #include <dbghelp.h>
21243 if (sizeof (MINIDUMP_TYPE))
21249 rm -f conftest.$ac_objext
21250 if { (ac_try="$ac_compile"
21251 case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21256 $as_echo "$ac_try_echo") >&5
21257 (eval "$ac_compile") 2>conftest.er1
21259 grep -v '^ *+' conftest.er1 >conftest.err
21261 cat conftest.err >&5
21262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } && {
21264 test -z "$ac_c_werror_flag" ||
21265 test ! -s conftest.err
21266 } && test -s conftest.$ac_objext; then
21267 cat >conftest.$ac_ext <<_ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21274 #define WIN32_LEAN_AND_MEAN
21275 #include <windows.h>
21276 #include <string.h>
21277 #include <dbghelp.h>
21282 if (sizeof ((MINIDUMP_TYPE)))
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21295 $as_echo "$ac_try_echo") >&5
21296 (eval "$ac_compile") 2>conftest.er1
21298 grep -v '^ *+' conftest.er1 >conftest.err
21300 cat conftest.err >&5
21301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } && {
21303 test -z "$ac_c_werror_flag" ||
21304 test ! -s conftest.err
21305 } && test -s conftest.$ac_objext; then
21308 $as_echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_cv_type_MINIDUMP_TYPE=yes
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 $as_echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21324 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21325 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21326 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21328 cat >>confdefs.h <<_ACEOF
21329 #define HAVE_MINIDUMP_TYPE 1
21332 pgac_minidump_type=yes
21334 pgac_minidump_type=no
21338 if test x"$pgac_minidump_type" = x"yes" ; then
21339 have_win32_dbghelp=yes
21342 have_win32_dbghelp=no
21346 if test "$with_readline" = yes; then
21347 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21348 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21349 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21350 $as_echo_n "(cached) " >&6
21352 cat >conftest.$ac_ext <<_ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21359 #ifdef HAVE_READLINE_READLINE_H
21360 # include <readline/readline.h>
21361 #elif defined(HAVE_READLINE_H)
21362 # include <readline.h>
21368 rl_completion_append_character = 'x';
21373 rm -f conftest.$ac_objext conftest$ac_exeext
21374 if { (ac_try="$ac_link"
21375 case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21380 $as_echo "$ac_try_echo") >&5
21381 (eval "$ac_link") 2>conftest.er1
21383 grep -v '^ *+' conftest.er1 >conftest.err
21385 cat conftest.err >&5
21386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } && {
21388 test -z "$ac_c_werror_flag" ||
21389 test ! -s conftest.err
21390 } && test -s conftest$ac_exeext && {
21391 test "$cross_compiling" = yes ||
21392 $as_test_x conftest$ac_exeext
21394 pgac_cv_var_rl_completion_append_character=yes
21396 $as_echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21399 pgac_cv_var_rl_completion_append_character=no
21402 rm -rf conftest.dSYM
21403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21404 conftest$ac_exeext conftest.$ac_ext
21406 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21407 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21408 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21410 cat >>confdefs.h <<\_ACEOF
21411 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21417 for ac_func in rl_completion_matches rl_filename_completion_function
21419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21420 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21421 $as_echo_n "checking for $ac_func... " >&6; }
21422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21423 $as_echo_n "(cached) " >&6
21425 cat >conftest.$ac_ext <<_ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21433 #define $ac_func innocuous_$ac_func
21435 /* System header to define __stub macros and hopefully few prototypes,
21436 which can conflict with char $ac_func (); below.
21437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21438 <limits.h> exists even on freestanding compilers. */
21441 # include <limits.h>
21443 # include <assert.h>
21448 /* Override any GCC internal prototype to avoid an error.
21449 Use char because int might match the return type of a GCC
21450 builtin and then its argument prototype would still apply. */
21455 /* The GNU C library defines this for functions which it implements
21456 to always fail with ENOSYS. Some functions are actually named
21457 something starting with __ and the normal name is an alias. */
21458 #if defined __stub_$ac_func || defined __stub___$ac_func
21465 return $ac_func ();
21470 rm -f conftest.$ac_objext conftest$ac_exeext
21471 if { (ac_try="$ac_link"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21477 $as_echo "$ac_try_echo") >&5
21478 (eval "$ac_link") 2>conftest.er1
21480 grep -v '^ *+' conftest.er1 >conftest.err
21482 cat conftest.err >&5
21483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && {
21485 test -z "$ac_c_werror_flag" ||
21486 test ! -s conftest.err
21487 } && test -s conftest$ac_exeext && {
21488 test "$cross_compiling" = yes ||
21489 $as_test_x conftest$ac_exeext
21491 eval "$as_ac_var=yes"
21493 $as_echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21496 eval "$as_ac_var=no"
21499 rm -rf conftest.dSYM
21500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21501 conftest$ac_exeext conftest.$ac_ext
21503 ac_res=`eval 'as_val=${'$as_ac_var'}
21504 $as_echo "$as_val"'`
21505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21506 $as_echo "$ac_res" >&6; }
21507 as_val=`eval 'as_val=${'$as_ac_var'}
21508 $as_echo "$as_val"'`
21509 if test "x$as_val" = x""yes; then
21510 cat >>confdefs.h <<_ACEOF
21511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21519 for ac_func in append_history history_truncate_file
21521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21522 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21523 $as_echo_n "checking for $ac_func... " >&6; }
21524 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21525 $as_echo_n "(cached) " >&6
21527 cat >conftest.$ac_ext <<_ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21535 #define $ac_func innocuous_$ac_func
21537 /* System header to define __stub macros and hopefully few prototypes,
21538 which can conflict with char $ac_func (); below.
21539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21540 <limits.h> exists even on freestanding compilers. */
21543 # include <limits.h>
21545 # include <assert.h>
21550 /* Override any GCC internal prototype to avoid an error.
21551 Use char because int might match the return type of a GCC
21552 builtin and then its argument prototype would still apply. */
21557 /* The GNU C library defines this for functions which it implements
21558 to always fail with ENOSYS. Some functions are actually named
21559 something starting with __ and the normal name is an alias. */
21560 #if defined __stub_$ac_func || defined __stub___$ac_func
21567 return $ac_func ();
21572 rm -f conftest.$ac_objext conftest$ac_exeext
21573 if { (ac_try="$ac_link"
21574 case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21579 $as_echo "$ac_try_echo") >&5
21580 (eval "$ac_link") 2>conftest.er1
21582 grep -v '^ *+' conftest.er1 >conftest.err
21584 cat conftest.err >&5
21585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } && {
21587 test -z "$ac_c_werror_flag" ||
21588 test ! -s conftest.err
21589 } && test -s conftest$ac_exeext && {
21590 test "$cross_compiling" = yes ||
21591 $as_test_x conftest$ac_exeext
21593 eval "$as_ac_var=yes"
21595 $as_echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21598 eval "$as_ac_var=no"
21601 rm -rf conftest.dSYM
21602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21603 conftest$ac_exeext conftest.$ac_ext
21605 ac_res=`eval 'as_val=${'$as_ac_var'}
21606 $as_echo "$as_val"'`
21607 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21608 $as_echo "$ac_res" >&6; }
21609 as_val=`eval 'as_val=${'$as_ac_var'}
21610 $as_echo "$as_val"'`
21611 if test "x$as_val" = x""yes; then
21612 cat >>confdefs.h <<_ACEOF
21613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21622 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21623 $as_echo_n "checking for sigsetjmp... " >&6; }
21624 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21625 $as_echo_n "(cached) " >&6
21627 cat >conftest.$ac_ext <<_ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 #include <setjmp.h>
21637 sigjmp_buf x; sigsetjmp(x, 1);
21642 rm -f conftest.$ac_objext conftest$ac_exeext
21643 if { (ac_try="$ac_link"
21644 case "(($ac_try" in
21645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646 *) ac_try_echo=$ac_try;;
21648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21649 $as_echo "$ac_try_echo") >&5
21650 (eval "$ac_link") 2>conftest.er1
21652 grep -v '^ *+' conftest.er1 >conftest.err
21654 cat conftest.err >&5
21655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } && {
21657 test -z "$ac_c_werror_flag" ||
21658 test ! -s conftest.err
21659 } && test -s conftest$ac_exeext && {
21660 test "$cross_compiling" = yes ||
21661 $as_test_x conftest$ac_exeext
21663 pgac_cv_func_sigsetjmp=yes
21665 $as_echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 pgac_cv_func_sigsetjmp=no
21671 rm -rf conftest.dSYM
21672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21673 conftest$ac_exeext conftest.$ac_ext
21675 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21676 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21677 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21679 cat >>confdefs.h <<\_ACEOF
21680 #define HAVE_SIGSETJMP 1
21685 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21686 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21687 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21688 $as_echo_n "(cached) " >&6
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <signal.h>
21697 /* NetBSD declares sys_siglist in unistd.h. */
21698 #ifdef HAVE_UNISTD_H
21699 # include <unistd.h>
21706 #ifndef sys_siglist
21707 (void) sys_siglist;
21714 rm -f conftest.$ac_objext
21715 if { (ac_try="$ac_compile"
21716 case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21721 $as_echo "$ac_try_echo") >&5
21722 (eval "$ac_compile") 2>conftest.er1
21724 grep -v '^ *+' conftest.er1 >conftest.err
21726 cat conftest.err >&5
21727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); } && {
21729 test -z "$ac_c_werror_flag" ||
21730 test ! -s conftest.err
21731 } && test -s conftest.$ac_objext; then
21732 ac_cv_have_decl_sys_siglist=yes
21734 $as_echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21737 ac_cv_have_decl_sys_siglist=no
21740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21742 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21743 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21744 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21746 cat >>confdefs.h <<_ACEOF
21747 #define HAVE_DECL_SYS_SIGLIST 1
21752 cat >>confdefs.h <<_ACEOF
21753 #define HAVE_DECL_SYS_SIGLIST 0
21762 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21763 $as_echo_n "checking for syslog... " >&6; }
21764 if test "${ac_cv_func_syslog+set}" = set; then
21765 $as_echo_n "(cached) " >&6
21767 cat >conftest.$ac_ext <<_ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h. */
21773 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21775 #define syslog innocuous_syslog
21777 /* System header to define __stub macros and hopefully few prototypes,
21778 which can conflict with char syslog (); below.
21779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21780 <limits.h> exists even on freestanding compilers. */
21783 # include <limits.h>
21785 # include <assert.h>
21790 /* Override any GCC internal prototype to avoid an error.
21791 Use char because int might match the return type of a GCC
21792 builtin and then its argument prototype would still apply. */
21797 /* The GNU C library defines this for functions which it implements
21798 to always fail with ENOSYS. Some functions are actually named
21799 something starting with __ and the normal name is an alias. */
21800 #if defined __stub_syslog || defined __stub___syslog
21812 rm -f conftest.$ac_objext conftest$ac_exeext
21813 if { (ac_try="$ac_link"
21814 case "(($ac_try" in
21815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21816 *) ac_try_echo=$ac_try;;
21818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21819 $as_echo "$ac_try_echo") >&5
21820 (eval "$ac_link") 2>conftest.er1
21822 grep -v '^ *+' conftest.er1 >conftest.err
21824 cat conftest.err >&5
21825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } && {
21827 test -z "$ac_c_werror_flag" ||
21828 test ! -s conftest.err
21829 } && test -s conftest$ac_exeext && {
21830 test "$cross_compiling" = yes ||
21831 $as_test_x conftest$ac_exeext
21833 ac_cv_func_syslog=yes
21835 $as_echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21838 ac_cv_func_syslog=no
21841 rm -rf conftest.dSYM
21842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21843 conftest$ac_exeext conftest.$ac_ext
21845 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21846 $as_echo "$ac_cv_func_syslog" >&6; }
21847 if test "x$ac_cv_func_syslog" = x""yes; then
21848 if test "${ac_cv_header_syslog_h+set}" = set; then
21849 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21850 $as_echo_n "checking for syslog.h... " >&6; }
21851 if test "${ac_cv_header_syslog_h+set}" = set; then
21852 $as_echo_n "(cached) " >&6
21854 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21855 $as_echo "$ac_cv_header_syslog_h" >&6; }
21857 # Is the header compilable?
21858 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21859 $as_echo_n "checking syslog.h usability... " >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 $ac_includes_default
21867 #include <syslog.h>
21869 rm -f conftest.$ac_objext
21870 if { (ac_try="$ac_compile"
21871 case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21876 $as_echo "$ac_try_echo") >&5
21877 (eval "$ac_compile") 2>conftest.er1
21879 grep -v '^ *+' conftest.er1 >conftest.err
21881 cat conftest.err >&5
21882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } && {
21884 test -z "$ac_c_werror_flag" ||
21885 test ! -s conftest.err
21886 } && test -s conftest.$ac_objext; then
21887 ac_header_compiler=yes
21889 $as_echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21892 ac_header_compiler=no
21895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21896 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21897 $as_echo "$ac_header_compiler" >&6; }
21899 # Is the header present?
21900 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21901 $as_echo_n "checking syslog.h presence... " >&6; }
21902 cat >conftest.$ac_ext <<_ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21908 #include <syslog.h>
21910 if { (ac_try="$ac_cpp conftest.$ac_ext"
21911 case "(($ac_try" in
21912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913 *) ac_try_echo=$ac_try;;
21915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21916 $as_echo "$ac_try_echo") >&5
21917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21919 grep -v '^ *+' conftest.er1 >conftest.err
21921 cat conftest.err >&5
21922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } >/dev/null && {
21924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21925 test ! -s conftest.err
21927 ac_header_preproc=yes
21929 $as_echo "$as_me: failed program was:" >&5
21930 sed 's/^/| /' conftest.$ac_ext >&5
21932 ac_header_preproc=no
21935 rm -f conftest.err conftest.$ac_ext
21936 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21937 $as_echo "$ac_header_preproc" >&6; }
21939 # So? What about this header?
21940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21942 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21943 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21944 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21945 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21946 ac_header_preproc=yes
21949 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21950 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21951 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
21952 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
21953 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21954 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21955 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
21956 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
21957 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21958 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21959 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21960 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21962 ## ---------------------------------------- ##
21963 ## Report this to pgsql-bugs@postgresql.org ##
21964 ## ---------------------------------------- ##
21966 ) | sed "s/^/$as_me: WARNING: /" >&2
21969 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21970 $as_echo_n "checking for syslog.h... " >&6; }
21971 if test "${ac_cv_header_syslog_h+set}" = set; then
21972 $as_echo_n "(cached) " >&6
21974 ac_cv_header_syslog_h=$ac_header_preproc
21976 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21977 $as_echo "$ac_cv_header_syslog_h" >&6; }
21980 if test "x$ac_cv_header_syslog_h" = x""yes; then
21982 cat >>confdefs.h <<\_ACEOF
21983 #define HAVE_SYSLOG 1
21992 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21993 $as_echo_n "checking for opterr... " >&6; }
21994 if test "${pgac_cv_var_int_opterr+set}" = set; then
21995 $as_echo_n "(cached) " >&6
21997 cat >conftest.$ac_ext <<_ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22003 #include <unistd.h>
22007 extern int opterr; opterr = 1;
22012 rm -f conftest.$ac_objext conftest$ac_exeext
22013 if { (ac_try="$ac_link"
22014 case "(($ac_try" in
22015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22016 *) ac_try_echo=$ac_try;;
22018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22019 $as_echo "$ac_try_echo") >&5
22020 (eval "$ac_link") 2>conftest.er1
22022 grep -v '^ *+' conftest.er1 >conftest.err
22024 cat conftest.err >&5
22025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } && {
22027 test -z "$ac_c_werror_flag" ||
22028 test ! -s conftest.err
22029 } && test -s conftest$ac_exeext && {
22030 test "$cross_compiling" = yes ||
22031 $as_test_x conftest$ac_exeext
22033 pgac_cv_var_int_opterr=yes
22035 $as_echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22038 pgac_cv_var_int_opterr=no
22041 rm -rf conftest.dSYM
22042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22043 conftest$ac_exeext conftest.$ac_ext
22045 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22046 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22047 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22049 cat >>confdefs.h <<\_ACEOF
22050 #define HAVE_INT_OPTERR 1
22055 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22056 $as_echo_n "checking for optreset... " >&6; }
22057 if test "${pgac_cv_var_int_optreset+set}" = set; then
22058 $as_echo_n "(cached) " >&6
22060 cat >conftest.$ac_ext <<_ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22066 #include <unistd.h>
22070 extern int optreset; optreset = 1;
22075 rm -f conftest.$ac_objext conftest$ac_exeext
22076 if { (ac_try="$ac_link"
22077 case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22082 $as_echo "$ac_try_echo") >&5
22083 (eval "$ac_link") 2>conftest.er1
22085 grep -v '^ *+' conftest.er1 >conftest.err
22087 cat conftest.err >&5
22088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } && {
22090 test -z "$ac_c_werror_flag" ||
22091 test ! -s conftest.err
22092 } && test -s conftest$ac_exeext && {
22093 test "$cross_compiling" = yes ||
22094 $as_test_x conftest$ac_exeext
22096 pgac_cv_var_int_optreset=yes
22098 $as_echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22101 pgac_cv_var_int_optreset=no
22104 rm -rf conftest.dSYM
22105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22106 conftest$ac_exeext conftest.$ac_ext
22108 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22109 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22110 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22112 cat >>confdefs.h <<\_ACEOF
22113 #define HAVE_INT_OPTRESET 1
22120 for ac_func in strtoll strtoq
22122 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22123 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22124 $as_echo_n "checking for $ac_func... " >&6; }
22125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22126 $as_echo_n "(cached) " >&6
22128 cat >conftest.$ac_ext <<_ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22136 #define $ac_func innocuous_$ac_func
22138 /* System header to define __stub macros and hopefully few prototypes,
22139 which can conflict with char $ac_func (); below.
22140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22141 <limits.h> exists even on freestanding compilers. */
22144 # include <limits.h>
22146 # include <assert.h>
22151 /* Override any GCC internal prototype to avoid an error.
22152 Use char because int might match the return type of a GCC
22153 builtin and then its argument prototype would still apply. */
22158 /* The GNU C library defines this for functions which it implements
22159 to always fail with ENOSYS. Some functions are actually named
22160 something starting with __ and the normal name is an alias. */
22161 #if defined __stub_$ac_func || defined __stub___$ac_func
22168 return $ac_func ();
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (ac_try="$ac_link"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22180 $as_echo "$ac_try_echo") >&5
22181 (eval "$ac_link") 2>conftest.er1
22183 grep -v '^ *+' conftest.er1 >conftest.err
22185 cat conftest.err >&5
22186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } && {
22188 test -z "$ac_c_werror_flag" ||
22189 test ! -s conftest.err
22190 } && test -s conftest$ac_exeext && {
22191 test "$cross_compiling" = yes ||
22192 $as_test_x conftest$ac_exeext
22194 eval "$as_ac_var=yes"
22196 $as_echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22199 eval "$as_ac_var=no"
22202 rm -rf conftest.dSYM
22203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22204 conftest$ac_exeext conftest.$ac_ext
22206 ac_res=`eval 'as_val=${'$as_ac_var'}
22207 $as_echo "$as_val"'`
22208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22209 $as_echo "$ac_res" >&6; }
22210 as_val=`eval 'as_val=${'$as_ac_var'}
22211 $as_echo "$as_val"'`
22212 if test "x$as_val" = x""yes; then
22213 cat >>confdefs.h <<_ACEOF
22214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22222 for ac_func in strtoull strtouq
22224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22225 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22226 $as_echo_n "checking for $ac_func... " >&6; }
22227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22228 $as_echo_n "(cached) " >&6
22230 cat >conftest.$ac_ext <<_ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22238 #define $ac_func innocuous_$ac_func
22240 /* System header to define __stub macros and hopefully few prototypes,
22241 which can conflict with char $ac_func (); below.
22242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22243 <limits.h> exists even on freestanding compilers. */
22246 # include <limits.h>
22248 # include <assert.h>
22253 /* Override any GCC internal prototype to avoid an error.
22254 Use char because int might match the return type of a GCC
22255 builtin and then its argument prototype would still apply. */
22260 /* The GNU C library defines this for functions which it implements
22261 to always fail with ENOSYS. Some functions are actually named
22262 something starting with __ and the normal name is an alias. */
22263 #if defined __stub_$ac_func || defined __stub___$ac_func
22270 return $ac_func ();
22275 rm -f conftest.$ac_objext conftest$ac_exeext
22276 if { (ac_try="$ac_link"
22277 case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22282 $as_echo "$ac_try_echo") >&5
22283 (eval "$ac_link") 2>conftest.er1
22285 grep -v '^ *+' conftest.er1 >conftest.err
22287 cat conftest.err >&5
22288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } && {
22290 test -z "$ac_c_werror_flag" ||
22291 test ! -s conftest.err
22292 } && test -s conftest$ac_exeext && {
22293 test "$cross_compiling" = yes ||
22294 $as_test_x conftest$ac_exeext
22296 eval "$as_ac_var=yes"
22298 $as_echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22301 eval "$as_ac_var=no"
22304 rm -rf conftest.dSYM
22305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22306 conftest$ac_exeext conftest.$ac_ext
22308 ac_res=`eval 'as_val=${'$as_ac_var'}
22309 $as_echo "$as_val"'`
22310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22311 $as_echo "$ac_res" >&6; }
22312 as_val=`eval 'as_val=${'$as_ac_var'}
22313 $as_echo "$as_val"'`
22314 if test "x$as_val" = x""yes; then
22315 cat >>confdefs.h <<_ACEOF
22316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22323 # Check for one of atexit() or on_exit()
22325 for ac_func in atexit
22327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22328 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22329 $as_echo_n "checking for $ac_func... " >&6; }
22330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22331 $as_echo_n "(cached) " >&6
22333 cat >conftest.$ac_ext <<_ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h. */
22339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22341 #define $ac_func innocuous_$ac_func
22343 /* System header to define __stub macros and hopefully few prototypes,
22344 which can conflict with char $ac_func (); below.
22345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22346 <limits.h> exists even on freestanding compilers. */
22349 # include <limits.h>
22351 # include <assert.h>
22356 /* Override any GCC internal prototype to avoid an error.
22357 Use char because int might match the return type of a GCC
22358 builtin and then its argument prototype would still apply. */
22363 /* The GNU C library defines this for functions which it implements
22364 to always fail with ENOSYS. Some functions are actually named
22365 something starting with __ and the normal name is an alias. */
22366 #if defined __stub_$ac_func || defined __stub___$ac_func
22373 return $ac_func ();
22378 rm -f conftest.$ac_objext conftest$ac_exeext
22379 if { (ac_try="$ac_link"
22380 case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22385 $as_echo "$ac_try_echo") >&5
22386 (eval "$ac_link") 2>conftest.er1
22388 grep -v '^ *+' conftest.er1 >conftest.err
22390 cat conftest.err >&5
22391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } && {
22393 test -z "$ac_c_werror_flag" ||
22394 test ! -s conftest.err
22395 } && test -s conftest$ac_exeext && {
22396 test "$cross_compiling" = yes ||
22397 $as_test_x conftest$ac_exeext
22399 eval "$as_ac_var=yes"
22401 $as_echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22404 eval "$as_ac_var=no"
22407 rm -rf conftest.dSYM
22408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22409 conftest$ac_exeext conftest.$ac_ext
22411 ac_res=`eval 'as_val=${'$as_ac_var'}
22412 $as_echo "$as_val"'`
22413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22414 $as_echo "$ac_res" >&6; }
22415 as_val=`eval 'as_val=${'$as_ac_var'}
22416 $as_echo "$as_val"'`
22417 if test "x$as_val" = x""yes; then
22418 cat >>confdefs.h <<_ACEOF
22419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22424 for ac_func in on_exit
22426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22427 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22428 $as_echo_n "checking for $ac_func... " >&6; }
22429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22430 $as_echo_n "(cached) " >&6
22432 cat >conftest.$ac_ext <<_ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h. */
22438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22440 #define $ac_func innocuous_$ac_func
22442 /* System header to define __stub macros and hopefully few prototypes,
22443 which can conflict with char $ac_func (); below.
22444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22445 <limits.h> exists even on freestanding compilers. */
22448 # include <limits.h>
22450 # include <assert.h>
22455 /* Override any GCC internal prototype to avoid an error.
22456 Use char because int might match the return type of a GCC
22457 builtin and then its argument prototype would still apply. */
22462 /* The GNU C library defines this for functions which it implements
22463 to always fail with ENOSYS. Some functions are actually named
22464 something starting with __ and the normal name is an alias. */
22465 #if defined __stub_$ac_func || defined __stub___$ac_func
22472 return $ac_func ();
22477 rm -f conftest.$ac_objext conftest$ac_exeext
22478 if { (ac_try="$ac_link"
22479 case "(($ac_try" in
22480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22481 *) ac_try_echo=$ac_try;;
22483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22484 $as_echo "$ac_try_echo") >&5
22485 (eval "$ac_link") 2>conftest.er1
22487 grep -v '^ *+' conftest.er1 >conftest.err
22489 cat conftest.err >&5
22490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); } && {
22492 test -z "$ac_c_werror_flag" ||
22493 test ! -s conftest.err
22494 } && test -s conftest$ac_exeext && {
22495 test "$cross_compiling" = yes ||
22496 $as_test_x conftest$ac_exeext
22498 eval "$as_ac_var=yes"
22500 $as_echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22503 eval "$as_ac_var=no"
22506 rm -rf conftest.dSYM
22507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22508 conftest$ac_exeext conftest.$ac_ext
22510 ac_res=`eval 'as_val=${'$as_ac_var'}
22511 $as_echo "$as_val"'`
22512 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22513 $as_echo "$ac_res" >&6; }
22514 as_val=`eval 'as_val=${'$as_ac_var'}
22515 $as_echo "$as_val"'`
22516 if test "x$as_val" = x""yes; then
22517 cat >>confdefs.h <<_ACEOF
22518 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22522 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22523 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22524 { (exit 1); exit 1; }; }
22536 # For each platform, we need to know about any special compile and link
22537 # libraries, and whether the normal C function names are thread-safe.
22538 # See the comment at the top of src/port/thread.c for more information.
22539 # WIN32 doesn't need the pthread tests; it always uses threads
22540 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22545 ac_cpp='$CPP $CPPFLAGS'
22546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22552 # We used to check for pthread.h first, but this fails if pthread.h
22553 # requires special compiler flags (e.g. on True64 or Sequent).
22554 # It gets checked for in the link test anyway.
22556 # First of all, check if the user has set any of the PTHREAD_LIBS,
22557 # etcetera environment variables, and if threads linking works using
22559 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22560 save_CFLAGS="$CFLAGS"
22561 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22563 LIBS="$PTHREAD_LIBS $LIBS"
22564 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22565 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22566 cat >conftest.$ac_ext <<_ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h. */
22573 /* Override any GCC internal prototype to avoid an error.
22574 Use char because int might match the return type of a GCC
22575 builtin and then its argument prototype would still apply. */
22579 char pthread_join ();
22583 return pthread_join ();
22588 rm -f conftest.$ac_objext conftest$ac_exeext
22589 if { (ac_try="$ac_link"
22590 case "(($ac_try" in
22591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592 *) ac_try_echo=$ac_try;;
22594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22595 $as_echo "$ac_try_echo") >&5
22596 (eval "$ac_link") 2>conftest.er1
22598 grep -v '^ *+' conftest.er1 >conftest.err
22600 cat conftest.err >&5
22601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && {
22603 test -z "$ac_c_werror_flag" ||
22604 test ! -s conftest.err
22605 } && test -s conftest$ac_exeext && {
22606 test "$cross_compiling" = yes ||
22607 $as_test_x conftest$ac_exeext
22611 $as_echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22617 rm -rf conftest.dSYM
22618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22619 conftest$ac_exeext conftest.$ac_ext
22620 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22621 $as_echo "$acx_pthread_ok" >&6; }
22622 if test x"$acx_pthread_ok" = xno; then
22627 CFLAGS="$save_CFLAGS"
22630 # We must check for the threads library under a number of different
22631 # names; the ordering is very important because some systems
22632 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22633 # libraries is broken (non-POSIX).
22635 # Create a list of thread flags to try. Items starting with a "-" are
22636 # C compiler flags, and other items are library names, except for "none"
22637 # which indicates that we try without any flags at all, and "pthread-config"
22638 # which is a program returning the flags for the Pth emulation library.
22640 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22642 # The ordering *is* (sometimes) important. Some notes on the
22643 # individual items follow:
22645 # pthreads: AIX (must check this before -lpthread)
22646 # none: in case threads are in libc; should be tried before -Kthread and
22647 # other compiler flags to prevent continual compiler warnings
22648 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22649 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22650 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22651 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22652 # -pthreads: Solaris/gcc
22653 # -mthreads: Mingw32/gcc, Lynx/gcc
22654 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22655 # doesn't hurt to check since this sometimes defines pthreads too;
22656 # also defines -D_REENTRANT)
22657 # pthread: Linux, etcetera
22658 # --thread-safe: KAI C++
22659 # pthread-config: use pthread-config program (for GNU Pth library)
22661 case "${host_cpu}-${host_os}" in
22664 # On Solaris (at least, for some versions), libc contains stubbed
22665 # (non-functional) versions of the pthreads routines, so link-based
22666 # tests will erroneously succeed. (We need to link with -pthread or
22667 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22668 # a function called by this macro, so we could check for that, but
22669 # who knows whether they'll stub that too in a future libc.) So,
22670 # we'll just look for -pthreads and -lpthread first:
22672 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22676 if test x"$acx_pthread_ok" = xno; then
22677 for flag in $acx_pthread_flags; do
22679 tryPTHREAD_CFLAGS=""
22683 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22684 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22688 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22689 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22690 tryPTHREAD_CFLAGS="$flag"
22694 # skip this if we already have flags defined, for PostgreSQL
22695 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22696 # Extract the first word of "pthread-config", so it can be a program name with args.
22697 set dummy pthread-config; ac_word=$2
22698 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22699 $as_echo_n "checking for $ac_word... " >&6; }
22700 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22701 $as_echo_n "(cached) " >&6
22703 if test -n "$acx_pthread_config"; then
22704 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22707 for as_dir in $PATH
22710 test -z "$as_dir" && as_dir=.
22711 for ac_exec_ext in '' $ac_executable_extensions; do
22712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22713 ac_cv_prog_acx_pthread_config="yes"
22714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22721 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22724 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22725 if test -n "$acx_pthread_config"; then
22726 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22727 $as_echo "$acx_pthread_config" >&6; }
22729 { $as_echo "$as_me:$LINENO: result: no" >&5
22730 $as_echo "no" >&6; }
22734 if test x"$acx_pthread_config" = xno; then continue; fi
22735 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22736 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22740 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22741 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22742 tryPTHREAD_LIBS="-l$flag"
22747 save_CFLAGS="$CFLAGS"
22748 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22749 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22751 # Check for various functions. We must include pthread.h,
22752 # since some functions may be macros. (On the Sequent, we
22753 # need a special flag -Kthread to make this header compile.)
22754 # We check for pthread_join because it is in -lpthread on IRIX
22755 # while pthread_create is in libc. We check for pthread_attr_init
22756 # due to DEC craziness with -lpthreads. We check for
22757 # pthread_cleanup_push because it is one of the few pthread
22758 # functions on Solaris that doesn't have a non-functional libc stub.
22759 # We try pthread_create on general principles.
22760 cat >conftest.$ac_ext <<_ACEOF
22763 cat confdefs.h >>conftest.$ac_ext
22764 cat >>conftest.$ac_ext <<_ACEOF
22765 /* end confdefs.h. */
22766 #include <pthread.h>
22770 pthread_t th; pthread_join(th, 0);
22771 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22772 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22777 rm -f conftest.$ac_objext conftest$ac_exeext
22778 if { (ac_try="$ac_link"
22779 case "(($ac_try" in
22780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781 *) ac_try_echo=$ac_try;;
22783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22784 $as_echo "$ac_try_echo") >&5
22785 (eval "$ac_link") 2>conftest.er1
22787 grep -v '^ *+' conftest.er1 >conftest.err
22789 cat conftest.err >&5
22790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } && {
22792 test -z "$ac_c_werror_flag" ||
22793 test ! -s conftest.err
22794 } && test -s conftest$ac_exeext && {
22795 test "$cross_compiling" = yes ||
22796 $as_test_x conftest$ac_exeext
22800 $as_echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22806 rm -rf conftest.dSYM
22807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22808 conftest$ac_exeext conftest.$ac_ext
22810 if test "x$acx_pthread_ok" = xyes; then
22811 # Don't use options that are ignored by the compiler.
22812 # We find them by checking stderror.
22813 cat >conftest.$ac_ext <<_ACEOF
22815 main (int argc, char **argv)
22822 rm -f conftest.$ac_objext conftest$ac_exeext
22823 # Check both linking and compiling, because they might tolerate different options.
22824 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22825 # we continue with more flags because Linux needs -lpthread
22826 # for libpq builds on PostgreSQL. The test above only
22827 # tests for building binaries, not shared libraries.
22828 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22829 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22830 else acx_pthread_ok=no
22835 CFLAGS="$save_CFLAGS"
22837 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22838 $as_echo "$acx_pthread_ok" >&6; }
22842 # Various other checks:
22843 if test "x$acx_pthread_ok" = xyes; then
22845 LIBS="$PTHREAD_LIBS $LIBS"
22846 save_CFLAGS="$CFLAGS"
22847 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22849 # Detect AIX lossage: threads are created detached by default
22850 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22851 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22852 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22853 cat >conftest.$ac_ext <<_ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h. */
22859 #include <pthread.h>
22863 int attr=PTHREAD_CREATE_JOINABLE;
22868 rm -f conftest.$ac_objext conftest$ac_exeext
22869 if { (ac_try="$ac_link"
22870 case "(($ac_try" in
22871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872 *) ac_try_echo=$ac_try;;
22874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22875 $as_echo "$ac_try_echo") >&5
22876 (eval "$ac_link") 2>conftest.er1
22878 grep -v '^ *+' conftest.er1 >conftest.err
22880 cat conftest.err >&5
22881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } && {
22883 test -z "$ac_c_werror_flag" ||
22884 test ! -s conftest.err
22885 } && test -s conftest$ac_exeext && {
22886 test "$cross_compiling" = yes ||
22887 $as_test_x conftest$ac_exeext
22889 ok=PTHREAD_CREATE_JOINABLE
22891 $as_echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22897 rm -rf conftest.dSYM
22898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22899 conftest$ac_exeext conftest.$ac_ext
22900 if test x"$ok" = xunknown; then
22901 cat >conftest.$ac_ext <<_ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h. */
22907 #include <pthread.h>
22911 int attr=PTHREAD_CREATE_UNDETACHED;
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (ac_try="$ac_link"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22923 $as_echo "$ac_try_echo") >&5
22924 (eval "$ac_link") 2>conftest.er1
22926 grep -v '^ *+' conftest.er1 >conftest.err
22928 cat conftest.err >&5
22929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } && {
22931 test -z "$ac_c_werror_flag" ||
22932 test ! -s conftest.err
22933 } && test -s conftest$ac_exeext && {
22934 test "$cross_compiling" = yes ||
22935 $as_test_x conftest$ac_exeext
22937 ok=PTHREAD_CREATE_UNDETACHED
22939 $as_echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.$ac_ext >&5
22945 rm -rf conftest.dSYM
22946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22947 conftest$ac_exeext conftest.$ac_ext
22949 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22951 cat >>confdefs.h <<\_ACEOF
22952 #define PTHREAD_CREATE_JOINABLE $ok
22956 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22957 $as_echo "${ok}" >&6; }
22958 if test x"$ok" = xunknown; then
22959 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22960 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22963 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22964 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22966 # We always add these in PostgreSQL
22967 # case "${host_cpu}-${host_os}" in
22968 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22969 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22971 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22972 $as_echo "${flag}" >&6; }
22973 if test "x$flag" != xno; then
22974 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22978 CFLAGS="$save_CFLAGS"
22980 # Supporting cc_r would require a special CC in all places that
22981 # use libpq, and that is ugly, so we don't do it. Users can still
22982 # define their compiler as cc_r to do thread builds of everything.
22983 # More AIX lossage: must compile with cc_r
22984 # Extract the first word of "cc_r", so it can be a program name with args.
22985 set dummy cc_r; ac_word=$2
22986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22987 $as_echo_n "checking for $ac_word... " >&6; }
22988 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22989 $as_echo_n "(cached) " >&6
22991 if test -n "$PTHREAD_CC"; then
22992 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22995 for as_dir in $PATH
22998 test -z "$as_dir" && as_dir=.
22999 for ac_exec_ext in '' $ac_executable_extensions; do
23000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23001 ac_cv_prog_PTHREAD_CC="cc_r"
23002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23009 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23012 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23013 if test -n "$PTHREAD_CC"; then
23014 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23015 $as_echo "$PTHREAD_CC" >&6; }
23017 { $as_echo "$as_me:$LINENO: result: no" >&5
23018 $as_echo "no" >&6; }
23030 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23031 if test x"$acx_pthread_ok" = xyes; then
23033 cat >>confdefs.h <<\_ACEOF
23034 #define HAVE_PTHREAD 1
23043 ac_cpp='$CPP $CPPFLAGS'
23044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23050 # Some platforms use these, so just define them. They can't hurt if they
23051 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23052 # enables 5-arg getpwuid_r, among other things.
23053 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23056 # At this point, we don't want to muck with the compiler name for threading.
23057 # Let's see who fails, perhaps AIX. 2004-04-23
23058 if test "$PTHREAD_CC" != "$CC"; then
23059 { { $as_echo "$as_me:$LINENO: error:
23060 PostgreSQL does not support platforms that require a special compiler
23061 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23062 $as_echo "$as_me: error:
23063 PostgreSQL does not support platforms that require a special compiler
23064 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23065 { (exit 1); exit 1; }; }
23068 # Check for *_r functions
23071 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23072 LIBS="$LIBS $PTHREAD_LIBS"
23074 if test "$PORTNAME" != "win32"; then
23075 if test "${ac_cv_header_pthread_h+set}" = set; then
23076 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23077 $as_echo_n "checking for pthread.h... " >&6; }
23078 if test "${ac_cv_header_pthread_h+set}" = set; then
23079 $as_echo_n "(cached) " >&6
23081 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23082 $as_echo "$ac_cv_header_pthread_h" >&6; }
23084 # Is the header compilable?
23085 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23086 $as_echo_n "checking pthread.h usability... " >&6; }
23087 cat >conftest.$ac_ext <<_ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23093 $ac_includes_default
23094 #include <pthread.h>
23096 rm -f conftest.$ac_objext
23097 if { (ac_try="$ac_compile"
23098 case "(($ac_try" in
23099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23100 *) ac_try_echo=$ac_try;;
23102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23103 $as_echo "$ac_try_echo") >&5
23104 (eval "$ac_compile") 2>conftest.er1
23106 grep -v '^ *+' conftest.er1 >conftest.err
23108 cat conftest.err >&5
23109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } && {
23111 test -z "$ac_c_werror_flag" ||
23112 test ! -s conftest.err
23113 } && test -s conftest.$ac_objext; then
23114 ac_header_compiler=yes
23116 $as_echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23119 ac_header_compiler=no
23122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23123 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23124 $as_echo "$ac_header_compiler" >&6; }
23126 # Is the header present?
23127 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23128 $as_echo_n "checking pthread.h presence... " >&6; }
23129 cat >conftest.$ac_ext <<_ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h. */
23135 #include <pthread.h>
23137 if { (ac_try="$ac_cpp conftest.$ac_ext"
23138 case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23143 $as_echo "$ac_try_echo") >&5
23144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23146 grep -v '^ *+' conftest.er1 >conftest.err
23148 cat conftest.err >&5
23149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } >/dev/null && {
23151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23152 test ! -s conftest.err
23154 ac_header_preproc=yes
23156 $as_echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23159 ac_header_preproc=no
23162 rm -f conftest.err conftest.$ac_ext
23163 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23164 $as_echo "$ac_header_preproc" >&6; }
23166 # So? What about this header?
23167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23169 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23170 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23171 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23172 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23173 ac_header_preproc=yes
23176 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23177 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23178 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23179 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23180 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23181 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23182 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23183 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23184 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23185 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23186 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23187 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23189 ## ---------------------------------------- ##
23190 ## Report this to pgsql-bugs@postgresql.org ##
23191 ## ---------------------------------------- ##
23193 ) | sed "s/^/$as_me: WARNING: /" >&2
23196 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23197 $as_echo_n "checking for pthread.h... " >&6; }
23198 if test "${ac_cv_header_pthread_h+set}" = set; then
23199 $as_echo_n "(cached) " >&6
23201 ac_cv_header_pthread_h=$ac_header_preproc
23203 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23204 $as_echo "$ac_cv_header_pthread_h" >&6; }
23207 if test "x$ac_cv_header_pthread_h" = x""yes; then
23210 { { $as_echo "$as_me:$LINENO: error:
23211 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23212 $as_echo "$as_me: error:
23213 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23214 { (exit 1); exit 1; }; }
23223 for ac_func in strerror_r getpwuid_r gethostbyname_r
23225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23226 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23227 $as_echo_n "checking for $ac_func... " >&6; }
23228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23229 $as_echo_n "(cached) " >&6
23231 cat >conftest.$ac_ext <<_ACEOF
23234 cat confdefs.h >>conftest.$ac_ext
23235 cat >>conftest.$ac_ext <<_ACEOF
23236 /* end confdefs.h. */
23237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23239 #define $ac_func innocuous_$ac_func
23241 /* System header to define __stub macros and hopefully few prototypes,
23242 which can conflict with char $ac_func (); below.
23243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23244 <limits.h> exists even on freestanding compilers. */
23247 # include <limits.h>
23249 # include <assert.h>
23254 /* Override any GCC internal prototype to avoid an error.
23255 Use char because int might match the return type of a GCC
23256 builtin and then its argument prototype would still apply. */
23261 /* The GNU C library defines this for functions which it implements
23262 to always fail with ENOSYS. Some functions are actually named
23263 something starting with __ and the normal name is an alias. */
23264 #if defined __stub_$ac_func || defined __stub___$ac_func
23271 return $ac_func ();
23276 rm -f conftest.$ac_objext conftest$ac_exeext
23277 if { (ac_try="$ac_link"
23278 case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23283 $as_echo "$ac_try_echo") >&5
23284 (eval "$ac_link") 2>conftest.er1
23286 grep -v '^ *+' conftest.er1 >conftest.err
23288 cat conftest.err >&5
23289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } && {
23291 test -z "$ac_c_werror_flag" ||
23292 test ! -s conftest.err
23293 } && test -s conftest$ac_exeext && {
23294 test "$cross_compiling" = yes ||
23295 $as_test_x conftest$ac_exeext
23297 eval "$as_ac_var=yes"
23299 $as_echo "$as_me: failed program was:" >&5
23300 sed 's/^/| /' conftest.$ac_ext >&5
23302 eval "$as_ac_var=no"
23305 rm -rf conftest.dSYM
23306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23307 conftest$ac_exeext conftest.$ac_ext
23309 ac_res=`eval 'as_val=${'$as_ac_var'}
23310 $as_echo "$as_val"'`
23311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23312 $as_echo "$ac_res" >&6; }
23313 as_val=`eval 'as_val=${'$as_ac_var'}
23314 $as_echo "$as_val"'`
23315 if test "x$as_val" = x""yes; then
23316 cat >>confdefs.h <<_ACEOF
23317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23324 # Do test here with the proper thread flags
23325 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23326 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23327 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23328 $as_echo_n "(cached) " >&6
23330 cat >conftest.$ac_ext <<_ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h. */
23336 #include <sys/types.h>
23342 struct passwd *space;
23345 struct passwd **result;
23346 getpwuid_r(uid, space, buf, bufsize, result);
23351 rm -f conftest.$ac_objext
23352 if { (ac_try="$ac_compile"
23353 case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23358 $as_echo "$ac_try_echo") >&5
23359 (eval "$ac_compile") 2>conftest.er1
23361 grep -v '^ *+' conftest.er1 >conftest.err
23363 cat conftest.err >&5
23364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } && {
23366 test -z "$ac_c_werror_flag" ||
23367 test ! -s conftest.err
23368 } && test -s conftest.$ac_objext; then
23369 pgac_cv_func_getpwuid_r_5arg=yes
23371 $as_echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23374 pgac_cv_func_getpwuid_r_5arg=no
23377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23379 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23380 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23381 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23383 cat >>confdefs.h <<\_ACEOF
23384 #define GETPWUID_R_5ARG /**/
23389 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23390 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23391 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23392 $as_echo_n "(cached) " >&6
23394 cat >conftest.$ac_ext <<_ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h. */
23400 #include <string.h>
23405 int strerror_r(int, char *, size_t);
23407 /* Older AIX has 'int' for the third argument so we don't test the args. */
23414 rm -f conftest.$ac_objext
23415 if { (ac_try="$ac_compile"
23416 case "(($ac_try" in
23417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418 *) ac_try_echo=$ac_try;;
23420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23421 $as_echo "$ac_try_echo") >&5
23422 (eval "$ac_compile") 2>conftest.er1
23424 grep -v '^ *+' conftest.er1 >conftest.err
23426 cat conftest.err >&5
23427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); } && {
23429 test -z "$ac_c_werror_flag" ||
23430 test ! -s conftest.err
23431 } && test -s conftest.$ac_objext; then
23432 pgac_cv_func_strerror_r_int=yes
23434 $as_echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23437 pgac_cv_func_strerror_r_int=no
23440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23442 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23443 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23444 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23446 cat >>confdefs.h <<\_ACEOF
23447 #define STRERROR_R_INT /**/
23457 # do not use values from template file
23466 # We can test for libldap_r only after we know PTHREAD_LIBS
23467 if test "$with_ldap" = yes ; then
23469 if test "$PORTNAME" != "win32"; then
23471 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23472 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23473 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23474 $as_echo_n "(cached) " >&6
23476 ac_check_lib_save_LIBS=$LIBS
23477 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23478 cat >conftest.$ac_ext <<_ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h. */
23485 /* Override any GCC internal prototype to avoid an error.
23486 Use char because int might match the return type of a GCC
23487 builtin and then its argument prototype would still apply. */
23495 return ldap_bind ();
23500 rm -f conftest.$ac_objext conftest$ac_exeext
23501 if { (ac_try="$ac_link"
23502 case "(($ac_try" in
23503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504 *) ac_try_echo=$ac_try;;
23506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23507 $as_echo "$ac_try_echo") >&5
23508 (eval "$ac_link") 2>conftest.er1
23510 grep -v '^ *+' conftest.er1 >conftest.err
23512 cat conftest.err >&5
23513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } && {
23515 test -z "$ac_c_werror_flag" ||
23516 test ! -s conftest.err
23517 } && test -s conftest$ac_exeext && {
23518 test "$cross_compiling" = yes ||
23519 $as_test_x conftest$ac_exeext
23521 ac_cv_lib_ldap_ldap_bind=yes
23523 $as_echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23526 ac_cv_lib_ldap_ldap_bind=no
23529 rm -rf conftest.dSYM
23530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23531 conftest$ac_exeext conftest.$ac_ext
23532 LIBS=$ac_check_lib_save_LIBS
23534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23535 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23536 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23537 cat >>confdefs.h <<_ACEOF
23538 #define HAVE_LIBLDAP 1
23541 LIBS="-lldap $LIBS"
23544 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23545 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23546 { (exit 1); exit 1; }; }
23549 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23550 if test "$enable_thread_safety" = yes; then
23551 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23553 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23554 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23555 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23556 $as_echo_n "(cached) " >&6
23558 ac_check_lib_save_LIBS=$LIBS
23559 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23560 cat >conftest.$ac_ext <<_ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h. */
23567 /* Override any GCC internal prototype to avoid an error.
23568 Use char because int might match the return type of a GCC
23569 builtin and then its argument prototype would still apply. */
23573 char ldap_simple_bind ();
23577 return ldap_simple_bind ();
23582 rm -f conftest.$ac_objext conftest$ac_exeext
23583 if { (ac_try="$ac_link"
23584 case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23589 $as_echo "$ac_try_echo") >&5
23590 (eval "$ac_link") 2>conftest.er1
23592 grep -v '^ *+' conftest.er1 >conftest.err
23594 cat conftest.err >&5
23595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } && {
23597 test -z "$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 } && test -s conftest$ac_exeext && {
23600 test "$cross_compiling" = yes ||
23601 $as_test_x conftest$ac_exeext
23603 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23605 $as_echo "$as_me: failed program was:" >&5
23606 sed 's/^/| /' conftest.$ac_ext >&5
23608 ac_cv_lib_ldap_r_ldap_simple_bind=no
23611 rm -rf conftest.dSYM
23612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23613 conftest$ac_exeext conftest.$ac_ext
23614 LIBS=$ac_check_lib_save_LIBS
23616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23617 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23618 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23619 cat >>confdefs.h <<_ACEOF
23620 #define HAVE_LIBLDAP_R 1
23623 LIBS="-lldap_r $LIBS"
23626 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23627 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23628 { (exit 1); exit 1; }; }
23631 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23633 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23637 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23638 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23639 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23640 $as_echo_n "(cached) " >&6
23642 ac_check_lib_save_LIBS=$LIBS
23643 LIBS="-lwldap32 $LIBS"
23644 cat >conftest.$ac_ext <<_ACEOF
23647 cat confdefs.h >>conftest.$ac_ext
23648 cat >>conftest.$ac_ext <<_ACEOF
23649 /* end confdefs.h. */
23651 /* Override any GCC internal prototype to avoid an error.
23652 Use char because int might match the return type of a GCC
23653 builtin and then its argument prototype would still apply. */
23661 return ldap_bind ();
23666 rm -f conftest.$ac_objext conftest$ac_exeext
23667 if { (ac_try="$ac_link"
23668 case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23673 $as_echo "$ac_try_echo") >&5
23674 (eval "$ac_link") 2>conftest.er1
23676 grep -v '^ *+' conftest.er1 >conftest.err
23678 cat conftest.err >&5
23679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } && {
23681 test -z "$ac_c_werror_flag" ||
23682 test ! -s conftest.err
23683 } && test -s conftest$ac_exeext && {
23684 test "$cross_compiling" = yes ||
23685 $as_test_x conftest$ac_exeext
23687 ac_cv_lib_wldap32_ldap_bind=yes
23689 $as_echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23692 ac_cv_lib_wldap32_ldap_bind=no
23695 rm -rf conftest.dSYM
23696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23697 conftest$ac_exeext conftest.$ac_ext
23698 LIBS=$ac_check_lib_save_LIBS
23700 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23701 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23702 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23703 cat >>confdefs.h <<_ACEOF
23704 #define HAVE_LIBWLDAP32 1
23707 LIBS="-lwldap32 $LIBS"
23710 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23711 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23712 { (exit 1); exit 1; }; }
23715 LDAP_LIBS_FE="-lwldap32"
23716 LDAP_LIBS_BE="-lwldap32"
23724 # Older versions of libxml2 lack the xmlStructuredErrorContext variable
23725 # (which could be a macro referring to a function, if threading is enabled)
23726 if test "$with_libxml" = yes ; then
23727 { $as_echo "$as_me:$LINENO: checking for xmlStructuredErrorContext" >&5
23728 $as_echo_n "checking for xmlStructuredErrorContext... " >&6; }
23729 if test "${pgac_cv_libxml_structerrctx+set}" = set; then
23730 $as_echo_n "(cached) " >&6
23732 cat >conftest.$ac_ext <<_ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23738 #include <libxml/globals.h>
23743 globptr = xmlStructuredErrorContext
23748 rm -f conftest.$ac_objext conftest$ac_exeext
23749 if { (ac_try="$ac_link"
23750 case "(($ac_try" in
23751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752 *) ac_try_echo=$ac_try;;
23754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23755 $as_echo "$ac_try_echo") >&5
23756 (eval "$ac_link") 2>conftest.er1
23758 grep -v '^ *+' conftest.er1 >conftest.err
23760 cat conftest.err >&5
23761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } && {
23763 test -z "$ac_c_werror_flag" ||
23764 test ! -s conftest.err
23765 } && test -s conftest$ac_exeext && {
23766 test "$cross_compiling" = yes ||
23767 $as_test_x conftest$ac_exeext
23769 pgac_cv_libxml_structerrctx=yes
23771 $as_echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23774 pgac_cv_libxml_structerrctx=no
23777 rm -rf conftest.dSYM
23778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23779 conftest$ac_exeext conftest.$ac_ext
23781 { $as_echo "$as_me:$LINENO: result: $pgac_cv_libxml_structerrctx" >&5
23782 $as_echo "$pgac_cv_libxml_structerrctx" >&6; }
23783 if test x"$pgac_cv_libxml_structerrctx" = x"yes"; then
23785 cat >>confdefs.h <<\_ACEOF
23786 #define HAVE_XMLSTRUCTUREDERRORCONTEXT 1
23793 # This test makes sure that run tests work at all. Sometimes a shared
23794 # library is found by the linker, but the runtime linker can't find it.
23795 # This check should come after all modifications of compiler or linker
23796 # variables, and before any other run tests.
23797 { $as_echo "$as_me:$LINENO: checking test program" >&5
23798 $as_echo_n "checking test program... " >&6; }
23799 if test "$cross_compiling" = yes; then
23800 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23801 $as_echo "cross-compiling" >&6; }
23803 cat >conftest.$ac_ext <<_ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h. */
23809 int main() { return 0; }
23811 rm -f conftest$ac_exeext
23812 if { (ac_try="$ac_link"
23813 case "(($ac_try" in
23814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815 *) ac_try_echo=$ac_try;;
23817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23818 $as_echo "$ac_try_echo") >&5
23819 (eval "$ac_link") 2>&5
23821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23823 { (case "(($ac_try" in
23824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825 *) ac_try_echo=$ac_try;;
23827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23828 $as_echo "$ac_try_echo") >&5
23829 (eval "$ac_try") 2>&5
23831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); }; }; then
23833 { $as_echo "$as_me:$LINENO: result: ok" >&5
23834 $as_echo "ok" >&6; }
23836 $as_echo "$as_me: program exited with status $ac_status" >&5
23837 $as_echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23840 ( exit $ac_status )
23841 { $as_echo "$as_me:$LINENO: result: failed" >&5
23842 $as_echo "failed" >&6; }
23843 { { $as_echo "$as_me:$LINENO: error:
23844 Could not execute a simple test program. This may be a problem
23845 related to locating shared libraries. Check the file 'config.log'
23846 for the exact reason." >&5
23847 $as_echo "$as_me: error:
23848 Could not execute a simple test program. This may be a problem
23849 related to locating shared libraries. Check the file 'config.log'
23850 for the exact reason." >&2;}
23851 { (exit 1); exit 1; }; }
23853 rm -rf conftest.dSYM
23854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23859 # --------------------
23860 # Run tests below here
23861 # --------------------
23863 # Force use of our snprintf if system's doesn't do arg control
23864 # See comment above at snprintf test for details.
23865 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23866 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23867 $as_echo_n "checking whether printf supports argument control... " >&6; }
23868 if test "${pgac_cv_printf_arg_control+set}" = set; then
23869 $as_echo_n "(cached) " >&6
23871 if test "$cross_compiling" = yes; then
23872 pgac_cv_printf_arg_control=cross
23874 cat >conftest.$ac_ext <<_ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h. */
23881 #include <string.h>
23887 /* can it swap arguments? */
23888 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23889 if (strcmp(buf, "4 3") != 0)
23894 rm -f conftest$ac_exeext
23895 if { (ac_try="$ac_link"
23896 case "(($ac_try" in
23897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898 *) ac_try_echo=$ac_try;;
23900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23901 $as_echo "$ac_try_echo") >&5
23902 (eval "$ac_link") 2>&5
23904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23906 { (case "(($ac_try" in
23907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908 *) ac_try_echo=$ac_try;;
23910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23911 $as_echo "$ac_try_echo") >&5
23912 (eval "$ac_try") 2>&5
23914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); }; }; then
23916 pgac_cv_printf_arg_control=yes
23918 $as_echo "$as_me: program exited with status $ac_status" >&5
23919 $as_echo "$as_me: failed program was:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23922 ( exit $ac_status )
23923 pgac_cv_printf_arg_control=no
23925 rm -rf conftest.dSYM
23926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23932 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23933 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23935 if test $pgac_cv_printf_arg_control != yes ; then
23936 pgac_need_repl_snprintf=yes
23943 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23944 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23945 if test "${pgac_cv_type_long_int_64+set}" = set; then
23946 $as_echo_n "(cached) " >&6
23948 if test "$cross_compiling" = yes; then
23949 # If cross-compiling, check the size reported by the compiler and
23950 # trust that the arithmetic works.
23951 cat >conftest.$ac_ext <<_ACEOF
23954 cat confdefs.h >>conftest.$ac_ext
23955 cat >>conftest.$ac_ext <<_ACEOF
23956 /* end confdefs.h. */
23961 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23968 rm -f conftest.$ac_objext
23969 if { (ac_try="$ac_compile"
23970 case "(($ac_try" in
23971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23972 *) ac_try_echo=$ac_try;;
23974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23975 $as_echo "$ac_try_echo") >&5
23976 (eval "$ac_compile") 2>conftest.er1
23978 grep -v '^ *+' conftest.er1 >conftest.err
23980 cat conftest.err >&5
23981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); } && {
23983 test -z "$ac_c_werror_flag" ||
23984 test ! -s conftest.err
23985 } && test -s conftest.$ac_objext; then
23986 pgac_cv_type_long_int_64=yes
23988 $as_echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23991 pgac_cv_type_long_int_64=no
23994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23996 cat >conftest.$ac_ext <<_ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h. */
24002 typedef long int ac_int64;
24005 * These are globals to discourage the compiler from folding all the
24006 * arithmetic tests down to compile-time constants.
24008 ac_int64 a = 20000001;
24009 ac_int64 b = 40000005;
24011 int does_int64_work()
24015 if (sizeof(ac_int64) != 8)
24016 return 0; /* definitely not the right size */
24018 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24026 exit(! does_int64_work());
24029 rm -f conftest$ac_exeext
24030 if { (ac_try="$ac_link"
24031 case "(($ac_try" in
24032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24033 *) ac_try_echo=$ac_try;;
24035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24036 $as_echo "$ac_try_echo") >&5
24037 (eval "$ac_link") 2>&5
24039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24041 { (case "(($ac_try" in
24042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043 *) ac_try_echo=$ac_try;;
24045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24046 $as_echo "$ac_try_echo") >&5
24047 (eval "$ac_try") 2>&5
24049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); }; }; then
24051 pgac_cv_type_long_int_64=yes
24053 $as_echo "$as_me: program exited with status $ac_status" >&5
24054 $as_echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24057 ( exit $ac_status )
24058 pgac_cv_type_long_int_64=no
24060 rm -rf conftest.dSYM
24061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24066 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24067 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24069 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24070 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24072 cat >>confdefs.h <<\_ACEOF
24073 #define HAVE_LONG_INT_64 1
24079 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24080 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24081 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24082 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24083 $as_echo_n "(cached) " >&6
24085 if test "$cross_compiling" = yes; then
24086 # If cross-compiling, check the size reported by the compiler and
24087 # trust that the arithmetic works.
24088 cat >conftest.$ac_ext <<_ACEOF
24091 cat confdefs.h >>conftest.$ac_ext
24092 cat >>conftest.$ac_ext <<_ACEOF
24093 /* end confdefs.h. */
24098 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24105 rm -f conftest.$ac_objext
24106 if { (ac_try="$ac_compile"
24107 case "(($ac_try" in
24108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109 *) ac_try_echo=$ac_try;;
24111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24112 $as_echo "$ac_try_echo") >&5
24113 (eval "$ac_compile") 2>conftest.er1
24115 grep -v '^ *+' conftest.er1 >conftest.err
24117 cat conftest.err >&5
24118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); } && {
24120 test -z "$ac_c_werror_flag" ||
24121 test ! -s conftest.err
24122 } && test -s conftest.$ac_objext; then
24123 pgac_cv_type_long_long_int_64=yes
24125 $as_echo "$as_me: failed program was:" >&5
24126 sed 's/^/| /' conftest.$ac_ext >&5
24128 pgac_cv_type_long_long_int_64=no
24131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24133 cat >conftest.$ac_ext <<_ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h. */
24139 typedef long long int ac_int64;
24142 * These are globals to discourage the compiler from folding all the
24143 * arithmetic tests down to compile-time constants.
24145 ac_int64 a = 20000001;
24146 ac_int64 b = 40000005;
24148 int does_int64_work()
24152 if (sizeof(ac_int64) != 8)
24153 return 0; /* definitely not the right size */
24155 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24163 exit(! does_int64_work());
24166 rm -f conftest$ac_exeext
24167 if { (ac_try="$ac_link"
24168 case "(($ac_try" in
24169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24170 *) ac_try_echo=$ac_try;;
24172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24173 $as_echo "$ac_try_echo") >&5
24174 (eval "$ac_link") 2>&5
24176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24178 { (case "(($ac_try" in
24179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180 *) ac_try_echo=$ac_try;;
24182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24183 $as_echo "$ac_try_echo") >&5
24184 (eval "$ac_try") 2>&5
24186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); }; }; then
24188 pgac_cv_type_long_long_int_64=yes
24190 $as_echo "$as_me: program exited with status $ac_status" >&5
24191 $as_echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.$ac_ext >&5
24194 ( exit $ac_status )
24195 pgac_cv_type_long_long_int_64=no
24197 rm -rf conftest.dSYM
24198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24203 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24204 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24206 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24207 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24209 cat >>confdefs.h <<\_ACEOF
24210 #define HAVE_LONG_LONG_INT_64 1
24215 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24216 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24217 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24218 { (exit 1); exit 1; }; }
24224 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24225 cat >conftest.$ac_ext <<_ACEOF
24228 cat confdefs.h >>conftest.$ac_ext
24229 cat >>conftest.$ac_ext <<_ACEOF
24230 /* end confdefs.h. */
24232 #define INT64CONST(x) x##LL
24233 long long int foo = INT64CONST(0x1234567890123456);
24243 rm -f conftest.$ac_objext
24244 if { (ac_try="$ac_compile"
24245 case "(($ac_try" in
24246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24247 *) ac_try_echo=$ac_try;;
24249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24250 $as_echo "$ac_try_echo") >&5
24251 (eval "$ac_compile") 2>conftest.er1
24253 grep -v '^ *+' conftest.er1 >conftest.err
24255 cat conftest.err >&5
24256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); } && {
24258 test -z "$ac_c_werror_flag" ||
24259 test ! -s conftest.err
24260 } && test -s conftest.$ac_objext; then
24262 cat >>confdefs.h <<\_ACEOF
24263 #define HAVE_LL_CONSTANTS 1
24267 $as_echo "$as_me: failed program was:" >&5
24268 sed 's/^/| /' conftest.$ac_ext >&5
24273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24277 # If we found "long int" is 64 bits, assume snprintf handles it. If
24278 # we found we need to use "long long int", better check. We cope with
24279 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24280 # work, fall back to our own snprintf emulation (which we know uses %lld).
24282 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24283 if test $pgac_need_repl_snprintf = no; then
24284 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24285 $as_echo_n "checking snprintf format for long long int... " >&6; }
24286 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24287 $as_echo_n "(cached) " >&6
24289 for pgac_format in '%lld' '%qd' '%I64d'; do
24290 if test "$cross_compiling" = yes; then
24291 pgac_cv_snprintf_long_long_int_format=cross; break
24293 cat >conftest.$ac_ext <<_ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h. */
24300 typedef long long int ac_int64;
24301 #define INT64_FORMAT "$pgac_format"
24303 ac_int64 a = 20000001;
24304 ac_int64 b = 40000005;
24306 int does_int64_snprintf_work()
24311 if (sizeof(ac_int64) != 8)
24312 return 0; /* doesn't look like the right size */
24315 snprintf(buf, 100, INT64_FORMAT, c);
24316 if (strcmp(buf, "800000140000005") != 0)
24317 return 0; /* either multiply or snprintf is busted */
24321 exit(! does_int64_snprintf_work());
24324 rm -f conftest$ac_exeext
24325 if { (ac_try="$ac_link"
24326 case "(($ac_try" in
24327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24328 *) ac_try_echo=$ac_try;;
24330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24331 $as_echo "$ac_try_echo") >&5
24332 (eval "$ac_link") 2>&5
24334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24336 { (case "(($ac_try" in
24337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24338 *) ac_try_echo=$ac_try;;
24340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24341 $as_echo "$ac_try_echo") >&5
24342 (eval "$ac_try") 2>&5
24344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); }; }; then
24346 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24348 $as_echo "$as_me: program exited with status $ac_status" >&5
24349 $as_echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24353 rm -rf conftest.dSYM
24354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24361 LONG_LONG_INT_FORMAT=''
24363 case $pgac_cv_snprintf_long_long_int_format in
24364 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24365 $as_echo "cannot test (not on host machine)" >&6; };;
24366 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24367 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24368 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24369 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24370 $as_echo "none" >&6; };;
24372 if test "$LONG_LONG_INT_FORMAT" = ""; then
24373 # Force usage of our own snprintf, since system snprintf is broken
24374 pgac_need_repl_snprintf=yes
24375 LONG_LONG_INT_FORMAT='%lld'
24378 # Here if we previously decided we needed to use our own snprintf
24379 LONG_LONG_INT_FORMAT='%lld'
24381 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24382 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24383 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24385 # Here if we are not using 'long long int' at all
24386 INT64_FORMAT='"%ld"'
24387 UINT64_FORMAT='"%lu"'
24391 cat >>confdefs.h <<_ACEOF
24392 #define INT64_FORMAT $INT64_FORMAT
24397 cat >>confdefs.h <<_ACEOF
24398 #define UINT64_FORMAT $UINT64_FORMAT
24402 # Now we have checked all the reasons to replace snprintf
24403 if test $pgac_need_repl_snprintf = yes; then
24405 cat >>confdefs.h <<\_ACEOF
24406 #define USE_REPL_SNPRINTF 1
24409 case " $LIBOBJS " in
24410 *" snprintf.$ac_objext "* ) ;;
24411 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24417 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24418 # The cast to long int works around a bug in the HP C Compiler
24419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24421 # This bug is HP SR number 8606223364.
24422 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24423 $as_echo_n "checking size of void *... " >&6; }
24424 if test "${ac_cv_sizeof_void_p+set}" = set; then
24425 $as_echo_n "(cached) " >&6
24427 if test "$cross_compiling" = yes; then
24428 # Depending upon the size, compute the lo and hi bounds.
24429 cat >conftest.$ac_ext <<_ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h. */
24435 $ac_includes_default
24439 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24446 rm -f conftest.$ac_objext
24447 if { (ac_try="$ac_compile"
24448 case "(($ac_try" in
24449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24450 *) ac_try_echo=$ac_try;;
24452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24453 $as_echo "$ac_try_echo") >&5
24454 (eval "$ac_compile") 2>conftest.er1
24456 grep -v '^ *+' conftest.er1 >conftest.err
24458 cat conftest.err >&5
24459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); } && {
24461 test -z "$ac_c_werror_flag" ||
24462 test ! -s conftest.err
24463 } && test -s conftest.$ac_objext; then
24466 cat >conftest.$ac_ext <<_ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h. */
24472 $ac_includes_default
24476 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24483 rm -f conftest.$ac_objext
24484 if { (ac_try="$ac_compile"
24485 case "(($ac_try" in
24486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24487 *) ac_try_echo=$ac_try;;
24489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24490 $as_echo "$ac_try_echo") >&5
24491 (eval "$ac_compile") 2>conftest.er1
24493 grep -v '^ *+' conftest.er1 >conftest.err
24495 cat conftest.err >&5
24496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } && {
24498 test -z "$ac_c_werror_flag" ||
24499 test ! -s conftest.err
24500 } && test -s conftest.$ac_objext; then
24501 ac_hi=$ac_mid; break
24503 $as_echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24506 ac_lo=`expr $ac_mid + 1`
24507 if test $ac_lo -le $ac_mid; then
24511 ac_mid=`expr 2 '*' $ac_mid + 1`
24514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24517 $as_echo "$as_me: failed program was:" >&5
24518 sed 's/^/| /' conftest.$ac_ext >&5
24520 cat >conftest.$ac_ext <<_ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24526 $ac_includes_default
24530 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24537 rm -f conftest.$ac_objext
24538 if { (ac_try="$ac_compile"
24539 case "(($ac_try" in
24540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541 *) ac_try_echo=$ac_try;;
24543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24544 $as_echo "$ac_try_echo") >&5
24545 (eval "$ac_compile") 2>conftest.er1
24547 grep -v '^ *+' conftest.er1 >conftest.err
24549 cat conftest.err >&5
24550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); } && {
24552 test -z "$ac_c_werror_flag" ||
24553 test ! -s conftest.err
24554 } && test -s conftest.$ac_objext; then
24557 cat >conftest.$ac_ext <<_ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h. */
24563 $ac_includes_default
24567 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24574 rm -f conftest.$ac_objext
24575 if { (ac_try="$ac_compile"
24576 case "(($ac_try" in
24577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24578 *) ac_try_echo=$ac_try;;
24580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24581 $as_echo "$ac_try_echo") >&5
24582 (eval "$ac_compile") 2>conftest.er1
24584 grep -v '^ *+' conftest.er1 >conftest.err
24586 cat conftest.err >&5
24587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } && {
24589 test -z "$ac_c_werror_flag" ||
24590 test ! -s conftest.err
24591 } && test -s conftest.$ac_objext; then
24592 ac_lo=$ac_mid; break
24594 $as_echo "$as_me: failed program was:" >&5
24595 sed 's/^/| /' conftest.$ac_ext >&5
24597 ac_hi=`expr '(' $ac_mid ')' - 1`
24598 if test $ac_mid -le $ac_hi; then
24602 ac_mid=`expr 2 '*' $ac_mid`
24605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24608 $as_echo "$as_me: failed program was:" >&5
24609 sed 's/^/| /' conftest.$ac_ext >&5
24614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24618 # Binary search between lo and hi bounds.
24619 while test "x$ac_lo" != "x$ac_hi"; do
24620 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24621 cat >conftest.$ac_ext <<_ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h. */
24627 $ac_includes_default
24631 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24638 rm -f conftest.$ac_objext
24639 if { (ac_try="$ac_compile"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24645 $as_echo "$ac_try_echo") >&5
24646 (eval "$ac_compile") 2>conftest.er1
24648 grep -v '^ *+' conftest.er1 >conftest.err
24650 cat conftest.err >&5
24651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); } && {
24653 test -z "$ac_c_werror_flag" ||
24654 test ! -s conftest.err
24655 } && test -s conftest.$ac_objext; then
24658 $as_echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24661 ac_lo=`expr '(' $ac_mid ')' + 1`
24664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24667 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24668 '') if test "$ac_cv_type_void_p" = yes; then
24669 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24671 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24672 See \`config.log' for more details." >&5
24673 $as_echo "$as_me: error: cannot compute sizeof (void *)
24674 See \`config.log' for more details." >&2;}
24675 { (exit 77); exit 77; }; }; }
24677 ac_cv_sizeof_void_p=0
24681 cat >conftest.$ac_ext <<_ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h. */
24687 $ac_includes_default
24688 static long int longval () { return (long int) (sizeof (void *)); }
24689 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24691 #include <stdlib.h>
24696 FILE *f = fopen ("conftest.val", "w");
24699 if (((long int) (sizeof (void *))) < 0)
24701 long int i = longval ();
24702 if (i != ((long int) (sizeof (void *))))
24704 fprintf (f, "%ld", i);
24708 unsigned long int i = ulongval ();
24709 if (i != ((long int) (sizeof (void *))))
24711 fprintf (f, "%lu", i);
24713 /* Do not output a trailing newline, as this causes \r\n confusion
24714 on some platforms. */
24715 return ferror (f) || fclose (f) != 0;
24721 rm -f conftest$ac_exeext
24722 if { (ac_try="$ac_link"
24723 case "(($ac_try" in
24724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24725 *) ac_try_echo=$ac_try;;
24727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24728 $as_echo "$ac_try_echo") >&5
24729 (eval "$ac_link") 2>&5
24731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24733 { (case "(($ac_try" in
24734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24735 *) ac_try_echo=$ac_try;;
24737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24738 $as_echo "$ac_try_echo") >&5
24739 (eval "$ac_try") 2>&5
24741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); }; }; then
24743 ac_cv_sizeof_void_p=`cat conftest.val`
24745 $as_echo "$as_me: program exited with status $ac_status" >&5
24746 $as_echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24749 ( exit $ac_status )
24750 if test "$ac_cv_type_void_p" = yes; then
24751 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24753 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24754 See \`config.log' for more details." >&5
24755 $as_echo "$as_me: error: cannot compute sizeof (void *)
24756 See \`config.log' for more details." >&2;}
24757 { (exit 77); exit 77; }; }; }
24759 ac_cv_sizeof_void_p=0
24762 rm -rf conftest.dSYM
24763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24767 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24768 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24772 cat >>confdefs.h <<_ACEOF
24773 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24777 # The cast to long int works around a bug in the HP C Compiler
24778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24780 # This bug is HP SR number 8606223364.
24781 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24782 $as_echo_n "checking size of size_t... " >&6; }
24783 if test "${ac_cv_sizeof_size_t+set}" = set; then
24784 $as_echo_n "(cached) " >&6
24786 if test "$cross_compiling" = yes; then
24787 # Depending upon the size, compute the lo and hi bounds.
24788 cat >conftest.$ac_ext <<_ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h. */
24794 $ac_includes_default
24798 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24805 rm -f conftest.$ac_objext
24806 if { (ac_try="$ac_compile"
24807 case "(($ac_try" in
24808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24809 *) ac_try_echo=$ac_try;;
24811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24812 $as_echo "$ac_try_echo") >&5
24813 (eval "$ac_compile") 2>conftest.er1
24815 grep -v '^ *+' conftest.er1 >conftest.err
24817 cat conftest.err >&5
24818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); } && {
24820 test -z "$ac_c_werror_flag" ||
24821 test ! -s conftest.err
24822 } && test -s conftest.$ac_objext; then
24825 cat >conftest.$ac_ext <<_ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h. */
24831 $ac_includes_default
24835 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24842 rm -f conftest.$ac_objext
24843 if { (ac_try="$ac_compile"
24844 case "(($ac_try" in
24845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24846 *) ac_try_echo=$ac_try;;
24848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24849 $as_echo "$ac_try_echo") >&5
24850 (eval "$ac_compile") 2>conftest.er1
24852 grep -v '^ *+' conftest.er1 >conftest.err
24854 cat conftest.err >&5
24855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } && {
24857 test -z "$ac_c_werror_flag" ||
24858 test ! -s conftest.err
24859 } && test -s conftest.$ac_objext; then
24860 ac_hi=$ac_mid; break
24862 $as_echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24865 ac_lo=`expr $ac_mid + 1`
24866 if test $ac_lo -le $ac_mid; then
24870 ac_mid=`expr 2 '*' $ac_mid + 1`
24873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24876 $as_echo "$as_me: failed program was:" >&5
24877 sed 's/^/| /' conftest.$ac_ext >&5
24879 cat >conftest.$ac_ext <<_ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h. */
24885 $ac_includes_default
24889 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24896 rm -f conftest.$ac_objext
24897 if { (ac_try="$ac_compile"
24898 case "(($ac_try" in
24899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24900 *) ac_try_echo=$ac_try;;
24902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24903 $as_echo "$ac_try_echo") >&5
24904 (eval "$ac_compile") 2>conftest.er1
24906 grep -v '^ *+' conftest.er1 >conftest.err
24908 cat conftest.err >&5
24909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); } && {
24911 test -z "$ac_c_werror_flag" ||
24912 test ! -s conftest.err
24913 } && test -s conftest.$ac_objext; then
24916 cat >conftest.$ac_ext <<_ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24922 $ac_includes_default
24926 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24933 rm -f conftest.$ac_objext
24934 if { (ac_try="$ac_compile"
24935 case "(($ac_try" in
24936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24937 *) ac_try_echo=$ac_try;;
24939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24940 $as_echo "$ac_try_echo") >&5
24941 (eval "$ac_compile") 2>conftest.er1
24943 grep -v '^ *+' conftest.er1 >conftest.err
24945 cat conftest.err >&5
24946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } && {
24948 test -z "$ac_c_werror_flag" ||
24949 test ! -s conftest.err
24950 } && test -s conftest.$ac_objext; then
24951 ac_lo=$ac_mid; break
24953 $as_echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24956 ac_hi=`expr '(' $ac_mid ')' - 1`
24957 if test $ac_mid -le $ac_hi; then
24961 ac_mid=`expr 2 '*' $ac_mid`
24964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24967 $as_echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24977 # Binary search between lo and hi bounds.
24978 while test "x$ac_lo" != "x$ac_hi"; do
24979 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24980 cat >conftest.$ac_ext <<_ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h. */
24986 $ac_includes_default
24990 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24997 rm -f conftest.$ac_objext
24998 if { (ac_try="$ac_compile"
24999 case "(($ac_try" in
25000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25004 $as_echo "$ac_try_echo") >&5
25005 (eval "$ac_compile") 2>conftest.er1
25007 grep -v '^ *+' conftest.er1 >conftest.err
25009 cat conftest.err >&5
25010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); } && {
25012 test -z "$ac_c_werror_flag" ||
25013 test ! -s conftest.err
25014 } && test -s conftest.$ac_objext; then
25017 $as_echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25020 ac_lo=`expr '(' $ac_mid ')' + 1`
25023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25026 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25027 '') if test "$ac_cv_type_size_t" = yes; then
25028 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25030 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25031 See \`config.log' for more details." >&5
25032 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25033 See \`config.log' for more details." >&2;}
25034 { (exit 77); exit 77; }; }; }
25036 ac_cv_sizeof_size_t=0
25040 cat >conftest.$ac_ext <<_ACEOF
25043 cat confdefs.h >>conftest.$ac_ext
25044 cat >>conftest.$ac_ext <<_ACEOF
25045 /* end confdefs.h. */
25046 $ac_includes_default
25047 static long int longval () { return (long int) (sizeof (size_t)); }
25048 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25050 #include <stdlib.h>
25055 FILE *f = fopen ("conftest.val", "w");
25058 if (((long int) (sizeof (size_t))) < 0)
25060 long int i = longval ();
25061 if (i != ((long int) (sizeof (size_t))))
25063 fprintf (f, "%ld", i);
25067 unsigned long int i = ulongval ();
25068 if (i != ((long int) (sizeof (size_t))))
25070 fprintf (f, "%lu", i);
25072 /* Do not output a trailing newline, as this causes \r\n confusion
25073 on some platforms. */
25074 return ferror (f) || fclose (f) != 0;
25080 rm -f conftest$ac_exeext
25081 if { (ac_try="$ac_link"
25082 case "(($ac_try" in
25083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25084 *) ac_try_echo=$ac_try;;
25086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25087 $as_echo "$ac_try_echo") >&5
25088 (eval "$ac_link") 2>&5
25090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25092 { (case "(($ac_try" in
25093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25094 *) ac_try_echo=$ac_try;;
25096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25097 $as_echo "$ac_try_echo") >&5
25098 (eval "$ac_try") 2>&5
25100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; }; then
25102 ac_cv_sizeof_size_t=`cat conftest.val`
25104 $as_echo "$as_me: program exited with status $ac_status" >&5
25105 $as_echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25108 ( exit $ac_status )
25109 if test "$ac_cv_type_size_t" = yes; then
25110 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25112 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25113 See \`config.log' for more details." >&5
25114 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25115 See \`config.log' for more details." >&2;}
25116 { (exit 77); exit 77; }; }; }
25118 ac_cv_sizeof_size_t=0
25121 rm -rf conftest.dSYM
25122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25126 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25127 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25131 cat >>confdefs.h <<_ACEOF
25132 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25136 # The cast to long int works around a bug in the HP C Compiler
25137 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25138 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25139 # This bug is HP SR number 8606223364.
25140 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25141 $as_echo_n "checking size of long... " >&6; }
25142 if test "${ac_cv_sizeof_long+set}" = set; then
25143 $as_echo_n "(cached) " >&6
25145 if test "$cross_compiling" = yes; then
25146 # Depending upon the size, compute the lo and hi bounds.
25147 cat >conftest.$ac_ext <<_ACEOF
25150 cat confdefs.h >>conftest.$ac_ext
25151 cat >>conftest.$ac_ext <<_ACEOF
25152 /* end confdefs.h. */
25153 $ac_includes_default
25157 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25164 rm -f conftest.$ac_objext
25165 if { (ac_try="$ac_compile"
25166 case "(($ac_try" in
25167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25168 *) ac_try_echo=$ac_try;;
25170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25171 $as_echo "$ac_try_echo") >&5
25172 (eval "$ac_compile") 2>conftest.er1
25174 grep -v '^ *+' conftest.er1 >conftest.err
25176 cat conftest.err >&5
25177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); } && {
25179 test -z "$ac_c_werror_flag" ||
25180 test ! -s conftest.err
25181 } && test -s conftest.$ac_objext; then
25184 cat >conftest.$ac_ext <<_ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h. */
25190 $ac_includes_default
25194 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25201 rm -f conftest.$ac_objext
25202 if { (ac_try="$ac_compile"
25203 case "(($ac_try" in
25204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205 *) ac_try_echo=$ac_try;;
25207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25208 $as_echo "$ac_try_echo") >&5
25209 (eval "$ac_compile") 2>conftest.er1
25211 grep -v '^ *+' conftest.er1 >conftest.err
25213 cat conftest.err >&5
25214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } && {
25216 test -z "$ac_c_werror_flag" ||
25217 test ! -s conftest.err
25218 } && test -s conftest.$ac_objext; then
25219 ac_hi=$ac_mid; break
25221 $as_echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25224 ac_lo=`expr $ac_mid + 1`
25225 if test $ac_lo -le $ac_mid; then
25229 ac_mid=`expr 2 '*' $ac_mid + 1`
25232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25235 $as_echo "$as_me: failed program was:" >&5
25236 sed 's/^/| /' conftest.$ac_ext >&5
25238 cat >conftest.$ac_ext <<_ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h. */
25244 $ac_includes_default
25248 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25255 rm -f conftest.$ac_objext
25256 if { (ac_try="$ac_compile"
25257 case "(($ac_try" in
25258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259 *) ac_try_echo=$ac_try;;
25261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25262 $as_echo "$ac_try_echo") >&5
25263 (eval "$ac_compile") 2>conftest.er1
25265 grep -v '^ *+' conftest.er1 >conftest.err
25267 cat conftest.err >&5
25268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); } && {
25270 test -z "$ac_c_werror_flag" ||
25271 test ! -s conftest.err
25272 } && test -s conftest.$ac_objext; then
25275 cat >conftest.$ac_ext <<_ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h. */
25281 $ac_includes_default
25285 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25292 rm -f conftest.$ac_objext
25293 if { (ac_try="$ac_compile"
25294 case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25299 $as_echo "$ac_try_echo") >&5
25300 (eval "$ac_compile") 2>conftest.er1
25302 grep -v '^ *+' conftest.er1 >conftest.err
25304 cat conftest.err >&5
25305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); } && {
25307 test -z "$ac_c_werror_flag" ||
25308 test ! -s conftest.err
25309 } && test -s conftest.$ac_objext; then
25310 ac_lo=$ac_mid; break
25312 $as_echo "$as_me: failed program was:" >&5
25313 sed 's/^/| /' conftest.$ac_ext >&5
25315 ac_hi=`expr '(' $ac_mid ')' - 1`
25316 if test $ac_mid -le $ac_hi; then
25320 ac_mid=`expr 2 '*' $ac_mid`
25323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25326 $as_echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25336 # Binary search between lo and hi bounds.
25337 while test "x$ac_lo" != "x$ac_hi"; do
25338 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25339 cat >conftest.$ac_ext <<_ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25345 $ac_includes_default
25349 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25356 rm -f conftest.$ac_objext
25357 if { (ac_try="$ac_compile"
25358 case "(($ac_try" in
25359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25360 *) ac_try_echo=$ac_try;;
25362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25363 $as_echo "$ac_try_echo") >&5
25364 (eval "$ac_compile") 2>conftest.er1
25366 grep -v '^ *+' conftest.er1 >conftest.err
25368 cat conftest.err >&5
25369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); } && {
25371 test -z "$ac_c_werror_flag" ||
25372 test ! -s conftest.err
25373 } && test -s conftest.$ac_objext; then
25376 $as_echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25379 ac_lo=`expr '(' $ac_mid ')' + 1`
25382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25385 ?*) ac_cv_sizeof_long=$ac_lo;;
25386 '') if test "$ac_cv_type_long" = yes; then
25387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25389 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25390 See \`config.log' for more details." >&5
25391 $as_echo "$as_me: error: cannot compute sizeof (long)
25392 See \`config.log' for more details." >&2;}
25393 { (exit 77); exit 77; }; }; }
25395 ac_cv_sizeof_long=0
25399 cat >conftest.$ac_ext <<_ACEOF
25402 cat confdefs.h >>conftest.$ac_ext
25403 cat >>conftest.$ac_ext <<_ACEOF
25404 /* end confdefs.h. */
25405 $ac_includes_default
25406 static long int longval () { return (long int) (sizeof (long)); }
25407 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25409 #include <stdlib.h>
25414 FILE *f = fopen ("conftest.val", "w");
25417 if (((long int) (sizeof (long))) < 0)
25419 long int i = longval ();
25420 if (i != ((long int) (sizeof (long))))
25422 fprintf (f, "%ld", i);
25426 unsigned long int i = ulongval ();
25427 if (i != ((long int) (sizeof (long))))
25429 fprintf (f, "%lu", i);
25431 /* Do not output a trailing newline, as this causes \r\n confusion
25432 on some platforms. */
25433 return ferror (f) || fclose (f) != 0;
25439 rm -f conftest$ac_exeext
25440 if { (ac_try="$ac_link"
25441 case "(($ac_try" in
25442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25443 *) ac_try_echo=$ac_try;;
25445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25446 $as_echo "$ac_try_echo") >&5
25447 (eval "$ac_link") 2>&5
25449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25451 { (case "(($ac_try" in
25452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453 *) ac_try_echo=$ac_try;;
25455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25456 $as_echo "$ac_try_echo") >&5
25457 (eval "$ac_try") 2>&5
25459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; }; then
25461 ac_cv_sizeof_long=`cat conftest.val`
25463 $as_echo "$as_me: program exited with status $ac_status" >&5
25464 $as_echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25467 ( exit $ac_status )
25468 if test "$ac_cv_type_long" = yes; then
25469 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25471 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25472 See \`config.log' for more details." >&5
25473 $as_echo "$as_me: error: cannot compute sizeof (long)
25474 See \`config.log' for more details." >&2;}
25475 { (exit 77); exit 77; }; }; }
25477 ac_cv_sizeof_long=0
25480 rm -rf conftest.dSYM
25481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25485 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25486 $as_echo "$ac_cv_sizeof_long" >&6; }
25490 cat >>confdefs.h <<_ACEOF
25491 #define SIZEOF_LONG $ac_cv_sizeof_long
25496 # Decide whether float4 is passed by value: user-selectable, enabled by default
25497 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25498 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25501 # Check whether --enable-float4-byval was given.
25502 if test "${enable_float4_byval+set}" = set; then
25503 enableval=$enable_float4_byval;
25507 cat >>confdefs.h <<\_ACEOF
25508 #define USE_FLOAT4_BYVAL 1
25511 float4passbyval=true
25514 float4passbyval=false
25517 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25518 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25519 { (exit 1); exit 1; }; }
25524 enable_float4_byval=yes
25526 cat >>confdefs.h <<\_ACEOF
25527 #define USE_FLOAT4_BYVAL 1
25530 float4passbyval=true
25534 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25535 $as_echo "$enable_float4_byval" >&6; }
25537 cat >>confdefs.h <<_ACEOF
25538 #define FLOAT4PASSBYVAL $float4passbyval
25542 # Decide whether float8 is passed by value.
25543 # Note: this setting also controls int8 and related types such as timestamp.
25544 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25545 # If not, trying to select it is an error.
25546 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25547 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25548 if test $ac_cv_sizeof_void_p -ge 8 ; then
25551 # Check whether --enable-float8-byval was given.
25552 if test "${enable_float8_byval+set}" = set; then
25553 enableval=$enable_float8_byval;
25562 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25563 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25564 { (exit 1); exit 1; }; }
25569 enable_float8_byval=yes
25577 # Check whether --enable-float8-byval was given.
25578 if test "${enable_float8_byval+set}" = set; then
25579 enableval=$enable_float8_byval;
25588 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25589 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25590 { (exit 1); exit 1; }; }
25595 enable_float8_byval=no
25600 if test "$enable_float8_byval" = yes ; then
25601 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25602 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25603 { (exit 1); exit 1; }; }
25606 if test "$enable_float8_byval" = yes ; then
25608 cat >>confdefs.h <<\_ACEOF
25609 #define USE_FLOAT8_BYVAL 1
25612 float8passbyval=true
25614 float8passbyval=false
25616 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25617 $as_echo "$enable_float8_byval" >&6; }
25619 cat >>confdefs.h <<_ACEOF
25620 #define FLOAT8PASSBYVAL $float8passbyval
25624 # Determine memory alignment requirements for the basic C data types.
25626 # The cast to long int works around a bug in the HP C Compiler,
25627 # see AC_CHECK_SIZEOF for more information.
25628 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25629 $as_echo_n "checking alignment of short... " >&6; }
25630 if test "${ac_cv_alignof_short+set}" = set; then
25631 $as_echo_n "(cached) " >&6
25633 if test "$cross_compiling" = yes; then
25634 # Depending upon the size, compute the lo and hi bounds.
25635 cat >conftest.$ac_ext <<_ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h. */
25641 $ac_includes_default
25643 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25645 typedef struct { char x; short y; } ac__type_alignof_;
25649 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25656 rm -f conftest.$ac_objext
25657 if { (ac_try="$ac_compile"
25658 case "(($ac_try" in
25659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25660 *) ac_try_echo=$ac_try;;
25662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25663 $as_echo "$ac_try_echo") >&5
25664 (eval "$ac_compile") 2>conftest.er1
25666 grep -v '^ *+' conftest.er1 >conftest.err
25668 cat conftest.err >&5
25669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); } && {
25671 test -z "$ac_c_werror_flag" ||
25672 test ! -s conftest.err
25673 } && test -s conftest.$ac_objext; then
25676 cat >conftest.$ac_ext <<_ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h. */
25682 $ac_includes_default
25684 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25686 typedef struct { char x; short y; } ac__type_alignof_;
25690 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25697 rm -f conftest.$ac_objext
25698 if { (ac_try="$ac_compile"
25699 case "(($ac_try" in
25700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701 *) ac_try_echo=$ac_try;;
25703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25704 $as_echo "$ac_try_echo") >&5
25705 (eval "$ac_compile") 2>conftest.er1
25707 grep -v '^ *+' conftest.er1 >conftest.err
25709 cat conftest.err >&5
25710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); } && {
25712 test -z "$ac_c_werror_flag" ||
25713 test ! -s conftest.err
25714 } && test -s conftest.$ac_objext; then
25715 ac_hi=$ac_mid; break
25717 $as_echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25720 ac_lo=`expr $ac_mid + 1`
25721 if test $ac_lo -le $ac_mid; then
25725 ac_mid=`expr 2 '*' $ac_mid + 1`
25728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25731 $as_echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25734 cat >conftest.$ac_ext <<_ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25740 $ac_includes_default
25742 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25744 typedef struct { char x; short y; } ac__type_alignof_;
25748 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25755 rm -f conftest.$ac_objext
25756 if { (ac_try="$ac_compile"
25757 case "(($ac_try" in
25758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25759 *) ac_try_echo=$ac_try;;
25761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25762 $as_echo "$ac_try_echo") >&5
25763 (eval "$ac_compile") 2>conftest.er1
25765 grep -v '^ *+' conftest.er1 >conftest.err
25767 cat conftest.err >&5
25768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); } && {
25770 test -z "$ac_c_werror_flag" ||
25771 test ! -s conftest.err
25772 } && test -s conftest.$ac_objext; then
25775 cat >conftest.$ac_ext <<_ACEOF
25778 cat confdefs.h >>conftest.$ac_ext
25779 cat >>conftest.$ac_ext <<_ACEOF
25780 /* end confdefs.h. */
25781 $ac_includes_default
25783 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25785 typedef struct { char x; short y; } ac__type_alignof_;
25789 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25796 rm -f conftest.$ac_objext
25797 if { (ac_try="$ac_compile"
25798 case "(($ac_try" in
25799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800 *) ac_try_echo=$ac_try;;
25802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25803 $as_echo "$ac_try_echo") >&5
25804 (eval "$ac_compile") 2>conftest.er1
25806 grep -v '^ *+' conftest.er1 >conftest.err
25808 cat conftest.err >&5
25809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); } && {
25811 test -z "$ac_c_werror_flag" ||
25812 test ! -s conftest.err
25813 } && test -s conftest.$ac_objext; then
25814 ac_lo=$ac_mid; break
25816 $as_echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25819 ac_hi=`expr '(' $ac_mid ')' - 1`
25820 if test $ac_mid -le $ac_hi; then
25824 ac_mid=`expr 2 '*' $ac_mid`
25827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25830 $as_echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25840 # Binary search between lo and hi bounds.
25841 while test "x$ac_lo" != "x$ac_hi"; do
25842 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25843 cat >conftest.$ac_ext <<_ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25849 $ac_includes_default
25851 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25853 typedef struct { char x; short y; } ac__type_alignof_;
25857 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25864 rm -f conftest.$ac_objext
25865 if { (ac_try="$ac_compile"
25866 case "(($ac_try" in
25867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868 *) ac_try_echo=$ac_try;;
25870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25871 $as_echo "$ac_try_echo") >&5
25872 (eval "$ac_compile") 2>conftest.er1
25874 grep -v '^ *+' conftest.er1 >conftest.err
25876 cat conftest.err >&5
25877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); } && {
25879 test -z "$ac_c_werror_flag" ||
25880 test ! -s conftest.err
25881 } && test -s conftest.$ac_objext; then
25884 $as_echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25887 ac_lo=`expr '(' $ac_mid ')' + 1`
25890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25893 ?*) ac_cv_alignof_short=$ac_lo;;
25894 '') if test "$ac_cv_type_short" = yes; then
25895 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25897 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25898 See \`config.log' for more details." >&5
25899 $as_echo "$as_me: error: cannot compute alignment of short
25900 See \`config.log' for more details." >&2;}
25901 { (exit 77); exit 77; }; }; }
25903 ac_cv_alignof_short=0
25907 cat >conftest.$ac_ext <<_ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25913 $ac_includes_default
25915 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25917 typedef struct { char x; short y; } ac__type_alignof_;
25918 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25919 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25921 #include <stdlib.h>
25926 FILE *f = fopen ("conftest.val", "w");
25929 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25931 long int i = longval ();
25932 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25934 fprintf (f, "%ld", i);
25938 unsigned long int i = ulongval ();
25939 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25941 fprintf (f, "%lu", i);
25943 /* Do not output a trailing newline, as this causes \r\n confusion
25944 on some platforms. */
25945 return ferror (f) || fclose (f) != 0;
25951 rm -f conftest$ac_exeext
25952 if { (ac_try="$ac_link"
25953 case "(($ac_try" in
25954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955 *) ac_try_echo=$ac_try;;
25957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25958 $as_echo "$ac_try_echo") >&5
25959 (eval "$ac_link") 2>&5
25961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25963 { (case "(($ac_try" in
25964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965 *) ac_try_echo=$ac_try;;
25967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25968 $as_echo "$ac_try_echo") >&5
25969 (eval "$ac_try") 2>&5
25971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); }; }; then
25973 ac_cv_alignof_short=`cat conftest.val`
25975 $as_echo "$as_me: program exited with status $ac_status" >&5
25976 $as_echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.$ac_ext >&5
25979 ( exit $ac_status )
25980 if test "$ac_cv_type_short" = yes; then
25981 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25983 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25984 See \`config.log' for more details." >&5
25985 $as_echo "$as_me: error: cannot compute alignment of short
25986 See \`config.log' for more details." >&2;}
25987 { (exit 77); exit 77; }; }; }
25989 ac_cv_alignof_short=0
25992 rm -rf conftest.dSYM
25993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25997 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25998 $as_echo "$ac_cv_alignof_short" >&6; }
26002 cat >>confdefs.h <<_ACEOF
26003 #define ALIGNOF_SHORT $ac_cv_alignof_short
26007 # The cast to long int works around a bug in the HP C Compiler,
26008 # see AC_CHECK_SIZEOF for more information.
26009 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26010 $as_echo_n "checking alignment of int... " >&6; }
26011 if test "${ac_cv_alignof_int+set}" = set; then
26012 $as_echo_n "(cached) " >&6
26014 if test "$cross_compiling" = yes; then
26015 # Depending upon the size, compute the lo and hi bounds.
26016 cat >conftest.$ac_ext <<_ACEOF
26019 cat confdefs.h >>conftest.$ac_ext
26020 cat >>conftest.$ac_ext <<_ACEOF
26021 /* end confdefs.h. */
26022 $ac_includes_default
26024 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26026 typedef struct { char x; int y; } ac__type_alignof_;
26030 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26037 rm -f conftest.$ac_objext
26038 if { (ac_try="$ac_compile"
26039 case "(($ac_try" in
26040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26041 *) ac_try_echo=$ac_try;;
26043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26044 $as_echo "$ac_try_echo") >&5
26045 (eval "$ac_compile") 2>conftest.er1
26047 grep -v '^ *+' conftest.er1 >conftest.err
26049 cat conftest.err >&5
26050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); } && {
26052 test -z "$ac_c_werror_flag" ||
26053 test ! -s conftest.err
26054 } && test -s conftest.$ac_objext; then
26057 cat >conftest.$ac_ext <<_ACEOF
26060 cat confdefs.h >>conftest.$ac_ext
26061 cat >>conftest.$ac_ext <<_ACEOF
26062 /* end confdefs.h. */
26063 $ac_includes_default
26065 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26067 typedef struct { char x; int y; } ac__type_alignof_;
26071 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26078 rm -f conftest.$ac_objext
26079 if { (ac_try="$ac_compile"
26080 case "(($ac_try" in
26081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26082 *) ac_try_echo=$ac_try;;
26084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26085 $as_echo "$ac_try_echo") >&5
26086 (eval "$ac_compile") 2>conftest.er1
26088 grep -v '^ *+' conftest.er1 >conftest.err
26090 cat conftest.err >&5
26091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); } && {
26093 test -z "$ac_c_werror_flag" ||
26094 test ! -s conftest.err
26095 } && test -s conftest.$ac_objext; then
26096 ac_hi=$ac_mid; break
26098 $as_echo "$as_me: failed program was:" >&5
26099 sed 's/^/| /' conftest.$ac_ext >&5
26101 ac_lo=`expr $ac_mid + 1`
26102 if test $ac_lo -le $ac_mid; then
26106 ac_mid=`expr 2 '*' $ac_mid + 1`
26109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26112 $as_echo "$as_me: failed program was:" >&5
26113 sed 's/^/| /' conftest.$ac_ext >&5
26115 cat >conftest.$ac_ext <<_ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h. */
26121 $ac_includes_default
26123 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26125 typedef struct { char x; int y; } ac__type_alignof_;
26129 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26136 rm -f conftest.$ac_objext
26137 if { (ac_try="$ac_compile"
26138 case "(($ac_try" in
26139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140 *) ac_try_echo=$ac_try;;
26142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26143 $as_echo "$ac_try_echo") >&5
26144 (eval "$ac_compile") 2>conftest.er1
26146 grep -v '^ *+' conftest.er1 >conftest.err
26148 cat conftest.err >&5
26149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); } && {
26151 test -z "$ac_c_werror_flag" ||
26152 test ! -s conftest.err
26153 } && test -s conftest.$ac_objext; then
26156 cat >conftest.$ac_ext <<_ACEOF
26159 cat confdefs.h >>conftest.$ac_ext
26160 cat >>conftest.$ac_ext <<_ACEOF
26161 /* end confdefs.h. */
26162 $ac_includes_default
26164 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26166 typedef struct { char x; int y; } ac__type_alignof_;
26170 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26177 rm -f conftest.$ac_objext
26178 if { (ac_try="$ac_compile"
26179 case "(($ac_try" in
26180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26181 *) ac_try_echo=$ac_try;;
26183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26184 $as_echo "$ac_try_echo") >&5
26185 (eval "$ac_compile") 2>conftest.er1
26187 grep -v '^ *+' conftest.er1 >conftest.err
26189 cat conftest.err >&5
26190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); } && {
26192 test -z "$ac_c_werror_flag" ||
26193 test ! -s conftest.err
26194 } && test -s conftest.$ac_objext; then
26195 ac_lo=$ac_mid; break
26197 $as_echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26200 ac_hi=`expr '(' $ac_mid ')' - 1`
26201 if test $ac_mid -le $ac_hi; then
26205 ac_mid=`expr 2 '*' $ac_mid`
26208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26211 $as_echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26221 # Binary search between lo and hi bounds.
26222 while test "x$ac_lo" != "x$ac_hi"; do
26223 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26224 cat >conftest.$ac_ext <<_ACEOF
26227 cat confdefs.h >>conftest.$ac_ext
26228 cat >>conftest.$ac_ext <<_ACEOF
26229 /* end confdefs.h. */
26230 $ac_includes_default
26232 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26234 typedef struct { char x; int y; } ac__type_alignof_;
26238 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26245 rm -f conftest.$ac_objext
26246 if { (ac_try="$ac_compile"
26247 case "(($ac_try" in
26248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26249 *) ac_try_echo=$ac_try;;
26251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26252 $as_echo "$ac_try_echo") >&5
26253 (eval "$ac_compile") 2>conftest.er1
26255 grep -v '^ *+' conftest.er1 >conftest.err
26257 cat conftest.err >&5
26258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); } && {
26260 test -z "$ac_c_werror_flag" ||
26261 test ! -s conftest.err
26262 } && test -s conftest.$ac_objext; then
26265 $as_echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26268 ac_lo=`expr '(' $ac_mid ')' + 1`
26271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26274 ?*) ac_cv_alignof_int=$ac_lo;;
26275 '') if test "$ac_cv_type_int" = yes; then
26276 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26278 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26279 See \`config.log' for more details." >&5
26280 $as_echo "$as_me: error: cannot compute alignment of int
26281 See \`config.log' for more details." >&2;}
26282 { (exit 77); exit 77; }; }; }
26284 ac_cv_alignof_int=0
26288 cat >conftest.$ac_ext <<_ACEOF
26291 cat confdefs.h >>conftest.$ac_ext
26292 cat >>conftest.$ac_ext <<_ACEOF
26293 /* end confdefs.h. */
26294 $ac_includes_default
26296 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26298 typedef struct { char x; int y; } ac__type_alignof_;
26299 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26300 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26302 #include <stdlib.h>
26307 FILE *f = fopen ("conftest.val", "w");
26310 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26312 long int i = longval ();
26313 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26315 fprintf (f, "%ld", i);
26319 unsigned long int i = ulongval ();
26320 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26322 fprintf (f, "%lu", i);
26324 /* Do not output a trailing newline, as this causes \r\n confusion
26325 on some platforms. */
26326 return ferror (f) || fclose (f) != 0;
26332 rm -f conftest$ac_exeext
26333 if { (ac_try="$ac_link"
26334 case "(($ac_try" in
26335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336 *) ac_try_echo=$ac_try;;
26338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26339 $as_echo "$ac_try_echo") >&5
26340 (eval "$ac_link") 2>&5
26342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26344 { (case "(($ac_try" in
26345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26346 *) ac_try_echo=$ac_try;;
26348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26349 $as_echo "$ac_try_echo") >&5
26350 (eval "$ac_try") 2>&5
26352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); }; }; then
26354 ac_cv_alignof_int=`cat conftest.val`
26356 $as_echo "$as_me: program exited with status $ac_status" >&5
26357 $as_echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26360 ( exit $ac_status )
26361 if test "$ac_cv_type_int" = yes; then
26362 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26364 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26365 See \`config.log' for more details." >&5
26366 $as_echo "$as_me: error: cannot compute alignment of int
26367 See \`config.log' for more details." >&2;}
26368 { (exit 77); exit 77; }; }; }
26370 ac_cv_alignof_int=0
26373 rm -rf conftest.dSYM
26374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26378 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26379 $as_echo "$ac_cv_alignof_int" >&6; }
26383 cat >>confdefs.h <<_ACEOF
26384 #define ALIGNOF_INT $ac_cv_alignof_int
26388 # The cast to long int works around a bug in the HP C Compiler,
26389 # see AC_CHECK_SIZEOF for more information.
26390 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26391 $as_echo_n "checking alignment of long... " >&6; }
26392 if test "${ac_cv_alignof_long+set}" = set; then
26393 $as_echo_n "(cached) " >&6
26395 if test "$cross_compiling" = yes; then
26396 # Depending upon the size, compute the lo and hi bounds.
26397 cat >conftest.$ac_ext <<_ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h. */
26403 $ac_includes_default
26405 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26407 typedef struct { char x; long y; } ac__type_alignof_;
26411 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26418 rm -f conftest.$ac_objext
26419 if { (ac_try="$ac_compile"
26420 case "(($ac_try" in
26421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26422 *) ac_try_echo=$ac_try;;
26424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26425 $as_echo "$ac_try_echo") >&5
26426 (eval "$ac_compile") 2>conftest.er1
26428 grep -v '^ *+' conftest.er1 >conftest.err
26430 cat conftest.err >&5
26431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } && {
26433 test -z "$ac_c_werror_flag" ||
26434 test ! -s conftest.err
26435 } && test -s conftest.$ac_objext; then
26438 cat >conftest.$ac_ext <<_ACEOF
26441 cat confdefs.h >>conftest.$ac_ext
26442 cat >>conftest.$ac_ext <<_ACEOF
26443 /* end confdefs.h. */
26444 $ac_includes_default
26446 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26448 typedef struct { char x; long y; } ac__type_alignof_;
26452 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26459 rm -f conftest.$ac_objext
26460 if { (ac_try="$ac_compile"
26461 case "(($ac_try" in
26462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463 *) ac_try_echo=$ac_try;;
26465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26466 $as_echo "$ac_try_echo") >&5
26467 (eval "$ac_compile") 2>conftest.er1
26469 grep -v '^ *+' conftest.er1 >conftest.err
26471 cat conftest.err >&5
26472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); } && {
26474 test -z "$ac_c_werror_flag" ||
26475 test ! -s conftest.err
26476 } && test -s conftest.$ac_objext; then
26477 ac_hi=$ac_mid; break
26479 $as_echo "$as_me: failed program was:" >&5
26480 sed 's/^/| /' conftest.$ac_ext >&5
26482 ac_lo=`expr $ac_mid + 1`
26483 if test $ac_lo -le $ac_mid; then
26487 ac_mid=`expr 2 '*' $ac_mid + 1`
26490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26493 $as_echo "$as_me: failed program was:" >&5
26494 sed 's/^/| /' conftest.$ac_ext >&5
26496 cat >conftest.$ac_ext <<_ACEOF
26499 cat confdefs.h >>conftest.$ac_ext
26500 cat >>conftest.$ac_ext <<_ACEOF
26501 /* end confdefs.h. */
26502 $ac_includes_default
26504 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26506 typedef struct { char x; long y; } ac__type_alignof_;
26510 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26517 rm -f conftest.$ac_objext
26518 if { (ac_try="$ac_compile"
26519 case "(($ac_try" in
26520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26521 *) ac_try_echo=$ac_try;;
26523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26524 $as_echo "$ac_try_echo") >&5
26525 (eval "$ac_compile") 2>conftest.er1
26527 grep -v '^ *+' conftest.er1 >conftest.err
26529 cat conftest.err >&5
26530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); } && {
26532 test -z "$ac_c_werror_flag" ||
26533 test ! -s conftest.err
26534 } && test -s conftest.$ac_objext; then
26537 cat >conftest.$ac_ext <<_ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26543 $ac_includes_default
26545 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26547 typedef struct { char x; long y; } ac__type_alignof_;
26551 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26558 rm -f conftest.$ac_objext
26559 if { (ac_try="$ac_compile"
26560 case "(($ac_try" in
26561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26562 *) ac_try_echo=$ac_try;;
26564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26565 $as_echo "$ac_try_echo") >&5
26566 (eval "$ac_compile") 2>conftest.er1
26568 grep -v '^ *+' conftest.er1 >conftest.err
26570 cat conftest.err >&5
26571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); } && {
26573 test -z "$ac_c_werror_flag" ||
26574 test ! -s conftest.err
26575 } && test -s conftest.$ac_objext; then
26576 ac_lo=$ac_mid; break
26578 $as_echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26581 ac_hi=`expr '(' $ac_mid ')' - 1`
26582 if test $ac_mid -le $ac_hi; then
26586 ac_mid=`expr 2 '*' $ac_mid`
26589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26592 $as_echo "$as_me: failed program was:" >&5
26593 sed 's/^/| /' conftest.$ac_ext >&5
26598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26602 # Binary search between lo and hi bounds.
26603 while test "x$ac_lo" != "x$ac_hi"; do
26604 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26605 cat >conftest.$ac_ext <<_ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h. */
26611 $ac_includes_default
26613 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26615 typedef struct { char x; long y; } ac__type_alignof_;
26619 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26626 rm -f conftest.$ac_objext
26627 if { (ac_try="$ac_compile"
26628 case "(($ac_try" in
26629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26630 *) ac_try_echo=$ac_try;;
26632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26633 $as_echo "$ac_try_echo") >&5
26634 (eval "$ac_compile") 2>conftest.er1
26636 grep -v '^ *+' conftest.er1 >conftest.err
26638 cat conftest.err >&5
26639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); } && {
26641 test -z "$ac_c_werror_flag" ||
26642 test ! -s conftest.err
26643 } && test -s conftest.$ac_objext; then
26646 $as_echo "$as_me: failed program was:" >&5
26647 sed 's/^/| /' conftest.$ac_ext >&5
26649 ac_lo=`expr '(' $ac_mid ')' + 1`
26652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26655 ?*) ac_cv_alignof_long=$ac_lo;;
26656 '') if test "$ac_cv_type_long" = yes; then
26657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26659 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26660 See \`config.log' for more details." >&5
26661 $as_echo "$as_me: error: cannot compute alignment of long
26662 See \`config.log' for more details." >&2;}
26663 { (exit 77); exit 77; }; }; }
26665 ac_cv_alignof_long=0
26669 cat >conftest.$ac_ext <<_ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h. */
26675 $ac_includes_default
26677 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26679 typedef struct { char x; long y; } ac__type_alignof_;
26680 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26681 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26683 #include <stdlib.h>
26688 FILE *f = fopen ("conftest.val", "w");
26691 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26693 long int i = longval ();
26694 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26696 fprintf (f, "%ld", i);
26700 unsigned long int i = ulongval ();
26701 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26703 fprintf (f, "%lu", i);
26705 /* Do not output a trailing newline, as this causes \r\n confusion
26706 on some platforms. */
26707 return ferror (f) || fclose (f) != 0;
26713 rm -f conftest$ac_exeext
26714 if { (ac_try="$ac_link"
26715 case "(($ac_try" in
26716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26717 *) ac_try_echo=$ac_try;;
26719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26720 $as_echo "$ac_try_echo") >&5
26721 (eval "$ac_link") 2>&5
26723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26725 { (case "(($ac_try" in
26726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26727 *) ac_try_echo=$ac_try;;
26729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26730 $as_echo "$ac_try_echo") >&5
26731 (eval "$ac_try") 2>&5
26733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); }; }; then
26735 ac_cv_alignof_long=`cat conftest.val`
26737 $as_echo "$as_me: program exited with status $ac_status" >&5
26738 $as_echo "$as_me: failed program was:" >&5
26739 sed 's/^/| /' conftest.$ac_ext >&5
26741 ( exit $ac_status )
26742 if test "$ac_cv_type_long" = yes; then
26743 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26745 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26746 See \`config.log' for more details." >&5
26747 $as_echo "$as_me: error: cannot compute alignment of long
26748 See \`config.log' for more details." >&2;}
26749 { (exit 77); exit 77; }; }; }
26751 ac_cv_alignof_long=0
26754 rm -rf conftest.dSYM
26755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26759 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26760 $as_echo "$ac_cv_alignof_long" >&6; }
26764 cat >>confdefs.h <<_ACEOF
26765 #define ALIGNOF_LONG $ac_cv_alignof_long
26769 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26770 # The cast to long int works around a bug in the HP C Compiler,
26771 # see AC_CHECK_SIZEOF for more information.
26772 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26773 $as_echo_n "checking alignment of long long int... " >&6; }
26774 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26775 $as_echo_n "(cached) " >&6
26777 if test "$cross_compiling" = yes; then
26778 # Depending upon the size, compute the lo and hi bounds.
26779 cat >conftest.$ac_ext <<_ACEOF
26782 cat confdefs.h >>conftest.$ac_ext
26783 cat >>conftest.$ac_ext <<_ACEOF
26784 /* end confdefs.h. */
26785 $ac_includes_default
26787 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26789 typedef struct { char x; long long int y; } ac__type_alignof_;
26793 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26800 rm -f conftest.$ac_objext
26801 if { (ac_try="$ac_compile"
26802 case "(($ac_try" in
26803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26804 *) ac_try_echo=$ac_try;;
26806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26807 $as_echo "$ac_try_echo") >&5
26808 (eval "$ac_compile") 2>conftest.er1
26810 grep -v '^ *+' conftest.er1 >conftest.err
26812 cat conftest.err >&5
26813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); } && {
26815 test -z "$ac_c_werror_flag" ||
26816 test ! -s conftest.err
26817 } && test -s conftest.$ac_objext; then
26820 cat >conftest.$ac_ext <<_ACEOF
26823 cat confdefs.h >>conftest.$ac_ext
26824 cat >>conftest.$ac_ext <<_ACEOF
26825 /* end confdefs.h. */
26826 $ac_includes_default
26828 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26830 typedef struct { char x; long long int y; } ac__type_alignof_;
26834 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26841 rm -f conftest.$ac_objext
26842 if { (ac_try="$ac_compile"
26843 case "(($ac_try" in
26844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845 *) ac_try_echo=$ac_try;;
26847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26848 $as_echo "$ac_try_echo") >&5
26849 (eval "$ac_compile") 2>conftest.er1
26851 grep -v '^ *+' conftest.er1 >conftest.err
26853 cat conftest.err >&5
26854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); } && {
26856 test -z "$ac_c_werror_flag" ||
26857 test ! -s conftest.err
26858 } && test -s conftest.$ac_objext; then
26859 ac_hi=$ac_mid; break
26861 $as_echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26864 ac_lo=`expr $ac_mid + 1`
26865 if test $ac_lo -le $ac_mid; then
26869 ac_mid=`expr 2 '*' $ac_mid + 1`
26872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26875 $as_echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.$ac_ext >&5
26878 cat >conftest.$ac_ext <<_ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h. */
26884 $ac_includes_default
26886 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26888 typedef struct { char x; long long int y; } ac__type_alignof_;
26892 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26899 rm -f conftest.$ac_objext
26900 if { (ac_try="$ac_compile"
26901 case "(($ac_try" in
26902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26903 *) ac_try_echo=$ac_try;;
26905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26906 $as_echo "$ac_try_echo") >&5
26907 (eval "$ac_compile") 2>conftest.er1
26909 grep -v '^ *+' conftest.er1 >conftest.err
26911 cat conftest.err >&5
26912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); } && {
26914 test -z "$ac_c_werror_flag" ||
26915 test ! -s conftest.err
26916 } && test -s conftest.$ac_objext; then
26919 cat >conftest.$ac_ext <<_ACEOF
26922 cat confdefs.h >>conftest.$ac_ext
26923 cat >>conftest.$ac_ext <<_ACEOF
26924 /* end confdefs.h. */
26925 $ac_includes_default
26927 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26929 typedef struct { char x; long long int y; } ac__type_alignof_;
26933 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26940 rm -f conftest.$ac_objext
26941 if { (ac_try="$ac_compile"
26942 case "(($ac_try" in
26943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944 *) ac_try_echo=$ac_try;;
26946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26947 $as_echo "$ac_try_echo") >&5
26948 (eval "$ac_compile") 2>conftest.er1
26950 grep -v '^ *+' conftest.er1 >conftest.err
26952 cat conftest.err >&5
26953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } && {
26955 test -z "$ac_c_werror_flag" ||
26956 test ! -s conftest.err
26957 } && test -s conftest.$ac_objext; then
26958 ac_lo=$ac_mid; break
26960 $as_echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26963 ac_hi=`expr '(' $ac_mid ')' - 1`
26964 if test $ac_mid -le $ac_hi; then
26968 ac_mid=`expr 2 '*' $ac_mid`
26971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26974 $as_echo "$as_me: failed program was:" >&5
26975 sed 's/^/| /' conftest.$ac_ext >&5
26980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26984 # Binary search between lo and hi bounds.
26985 while test "x$ac_lo" != "x$ac_hi"; do
26986 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26987 cat >conftest.$ac_ext <<_ACEOF
26990 cat confdefs.h >>conftest.$ac_ext
26991 cat >>conftest.$ac_ext <<_ACEOF
26992 /* end confdefs.h. */
26993 $ac_includes_default
26995 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26997 typedef struct { char x; long long int y; } ac__type_alignof_;
27001 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27008 rm -f conftest.$ac_objext
27009 if { (ac_try="$ac_compile"
27010 case "(($ac_try" in
27011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27012 *) ac_try_echo=$ac_try;;
27014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27015 $as_echo "$ac_try_echo") >&5
27016 (eval "$ac_compile") 2>conftest.er1
27018 grep -v '^ *+' conftest.er1 >conftest.err
27020 cat conftest.err >&5
27021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); } && {
27023 test -z "$ac_c_werror_flag" ||
27024 test ! -s conftest.err
27025 } && test -s conftest.$ac_objext; then
27028 $as_echo "$as_me: failed program was:" >&5
27029 sed 's/^/| /' conftest.$ac_ext >&5
27031 ac_lo=`expr '(' $ac_mid ')' + 1`
27034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27037 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27038 '') if test "$ac_cv_type_long_long_int" = yes; then
27039 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27041 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27042 See \`config.log' for more details." >&5
27043 $as_echo "$as_me: error: cannot compute alignment of long long int
27044 See \`config.log' for more details." >&2;}
27045 { (exit 77); exit 77; }; }; }
27047 ac_cv_alignof_long_long_int=0
27051 cat >conftest.$ac_ext <<_ACEOF
27054 cat confdefs.h >>conftest.$ac_ext
27055 cat >>conftest.$ac_ext <<_ACEOF
27056 /* end confdefs.h. */
27057 $ac_includes_default
27059 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27061 typedef struct { char x; long long int y; } ac__type_alignof_;
27062 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27063 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27065 #include <stdlib.h>
27070 FILE *f = fopen ("conftest.val", "w");
27073 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27075 long int i = longval ();
27076 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27078 fprintf (f, "%ld", i);
27082 unsigned long int i = ulongval ();
27083 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27085 fprintf (f, "%lu", i);
27087 /* Do not output a trailing newline, as this causes \r\n confusion
27088 on some platforms. */
27089 return ferror (f) || fclose (f) != 0;
27095 rm -f conftest$ac_exeext
27096 if { (ac_try="$ac_link"
27097 case "(($ac_try" in
27098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099 *) ac_try_echo=$ac_try;;
27101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27102 $as_echo "$ac_try_echo") >&5
27103 (eval "$ac_link") 2>&5
27105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27107 { (case "(($ac_try" in
27108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27109 *) ac_try_echo=$ac_try;;
27111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27112 $as_echo "$ac_try_echo") >&5
27113 (eval "$ac_try") 2>&5
27115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); }; }; then
27117 ac_cv_alignof_long_long_int=`cat conftest.val`
27119 $as_echo "$as_me: program exited with status $ac_status" >&5
27120 $as_echo "$as_me: failed program was:" >&5
27121 sed 's/^/| /' conftest.$ac_ext >&5
27123 ( exit $ac_status )
27124 if test "$ac_cv_type_long_long_int" = yes; then
27125 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27127 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27128 See \`config.log' for more details." >&5
27129 $as_echo "$as_me: error: cannot compute alignment of long long int
27130 See \`config.log' for more details." >&2;}
27131 { (exit 77); exit 77; }; }; }
27133 ac_cv_alignof_long_long_int=0
27136 rm -rf conftest.dSYM
27137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27141 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27142 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27146 cat >>confdefs.h <<_ACEOF
27147 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27152 # The cast to long int works around a bug in the HP C Compiler,
27153 # see AC_CHECK_SIZEOF for more information.
27154 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27155 $as_echo_n "checking alignment of double... " >&6; }
27156 if test "${ac_cv_alignof_double+set}" = set; then
27157 $as_echo_n "(cached) " >&6
27159 if test "$cross_compiling" = yes; then
27160 # Depending upon the size, compute the lo and hi bounds.
27161 cat >conftest.$ac_ext <<_ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h. */
27167 $ac_includes_default
27169 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27171 typedef struct { char x; double y; } ac__type_alignof_;
27175 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27182 rm -f conftest.$ac_objext
27183 if { (ac_try="$ac_compile"
27184 case "(($ac_try" in
27185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186 *) ac_try_echo=$ac_try;;
27188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27189 $as_echo "$ac_try_echo") >&5
27190 (eval "$ac_compile") 2>conftest.er1
27192 grep -v '^ *+' conftest.er1 >conftest.err
27194 cat conftest.err >&5
27195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); } && {
27197 test -z "$ac_c_werror_flag" ||
27198 test ! -s conftest.err
27199 } && test -s conftest.$ac_objext; then
27202 cat >conftest.$ac_ext <<_ACEOF
27205 cat confdefs.h >>conftest.$ac_ext
27206 cat >>conftest.$ac_ext <<_ACEOF
27207 /* end confdefs.h. */
27208 $ac_includes_default
27210 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27212 typedef struct { char x; double y; } ac__type_alignof_;
27216 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27223 rm -f conftest.$ac_objext
27224 if { (ac_try="$ac_compile"
27225 case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27230 $as_echo "$ac_try_echo") >&5
27231 (eval "$ac_compile") 2>conftest.er1
27233 grep -v '^ *+' conftest.er1 >conftest.err
27235 cat conftest.err >&5
27236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); } && {
27238 test -z "$ac_c_werror_flag" ||
27239 test ! -s conftest.err
27240 } && test -s conftest.$ac_objext; then
27241 ac_hi=$ac_mid; break
27243 $as_echo "$as_me: failed program was:" >&5
27244 sed 's/^/| /' conftest.$ac_ext >&5
27246 ac_lo=`expr $ac_mid + 1`
27247 if test $ac_lo -le $ac_mid; then
27251 ac_mid=`expr 2 '*' $ac_mid + 1`
27254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27257 $as_echo "$as_me: failed program was:" >&5
27258 sed 's/^/| /' conftest.$ac_ext >&5
27260 cat >conftest.$ac_ext <<_ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h. */
27266 $ac_includes_default
27268 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27270 typedef struct { char x; double y; } ac__type_alignof_;
27274 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27281 rm -f conftest.$ac_objext
27282 if { (ac_try="$ac_compile"
27283 case "(($ac_try" in
27284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285 *) ac_try_echo=$ac_try;;
27287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27288 $as_echo "$ac_try_echo") >&5
27289 (eval "$ac_compile") 2>conftest.er1
27291 grep -v '^ *+' conftest.er1 >conftest.err
27293 cat conftest.err >&5
27294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } && {
27296 test -z "$ac_c_werror_flag" ||
27297 test ! -s conftest.err
27298 } && test -s conftest.$ac_objext; then
27301 cat >conftest.$ac_ext <<_ACEOF
27304 cat confdefs.h >>conftest.$ac_ext
27305 cat >>conftest.$ac_ext <<_ACEOF
27306 /* end confdefs.h. */
27307 $ac_includes_default
27309 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27311 typedef struct { char x; double y; } ac__type_alignof_;
27315 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27322 rm -f conftest.$ac_objext
27323 if { (ac_try="$ac_compile"
27324 case "(($ac_try" in
27325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27329 $as_echo "$ac_try_echo") >&5
27330 (eval "$ac_compile") 2>conftest.er1
27332 grep -v '^ *+' conftest.er1 >conftest.err
27334 cat conftest.err >&5
27335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); } && {
27337 test -z "$ac_c_werror_flag" ||
27338 test ! -s conftest.err
27339 } && test -s conftest.$ac_objext; then
27340 ac_lo=$ac_mid; break
27342 $as_echo "$as_me: failed program was:" >&5
27343 sed 's/^/| /' conftest.$ac_ext >&5
27345 ac_hi=`expr '(' $ac_mid ')' - 1`
27346 if test $ac_mid -le $ac_hi; then
27350 ac_mid=`expr 2 '*' $ac_mid`
27353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27356 $as_echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27366 # Binary search between lo and hi bounds.
27367 while test "x$ac_lo" != "x$ac_hi"; do
27368 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27369 cat >conftest.$ac_ext <<_ACEOF
27372 cat confdefs.h >>conftest.$ac_ext
27373 cat >>conftest.$ac_ext <<_ACEOF
27374 /* end confdefs.h. */
27375 $ac_includes_default
27377 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27379 typedef struct { char x; double y; } ac__type_alignof_;
27383 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27390 rm -f conftest.$ac_objext
27391 if { (ac_try="$ac_compile"
27392 case "(($ac_try" in
27393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394 *) ac_try_echo=$ac_try;;
27396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27397 $as_echo "$ac_try_echo") >&5
27398 (eval "$ac_compile") 2>conftest.er1
27400 grep -v '^ *+' conftest.er1 >conftest.err
27402 cat conftest.err >&5
27403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); } && {
27405 test -z "$ac_c_werror_flag" ||
27406 test ! -s conftest.err
27407 } && test -s conftest.$ac_objext; then
27410 $as_echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27413 ac_lo=`expr '(' $ac_mid ')' + 1`
27416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27419 ?*) ac_cv_alignof_double=$ac_lo;;
27420 '') if test "$ac_cv_type_double" = yes; then
27421 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27423 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27424 See \`config.log' for more details." >&5
27425 $as_echo "$as_me: error: cannot compute alignment of double
27426 See \`config.log' for more details." >&2;}
27427 { (exit 77); exit 77; }; }; }
27429 ac_cv_alignof_double=0
27433 cat >conftest.$ac_ext <<_ACEOF
27436 cat confdefs.h >>conftest.$ac_ext
27437 cat >>conftest.$ac_ext <<_ACEOF
27438 /* end confdefs.h. */
27439 $ac_includes_default
27441 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27443 typedef struct { char x; double y; } ac__type_alignof_;
27444 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27445 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27447 #include <stdlib.h>
27452 FILE *f = fopen ("conftest.val", "w");
27455 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27457 long int i = longval ();
27458 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27460 fprintf (f, "%ld", i);
27464 unsigned long int i = ulongval ();
27465 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27467 fprintf (f, "%lu", i);
27469 /* Do not output a trailing newline, as this causes \r\n confusion
27470 on some platforms. */
27471 return ferror (f) || fclose (f) != 0;
27477 rm -f conftest$ac_exeext
27478 if { (ac_try="$ac_link"
27479 case "(($ac_try" in
27480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481 *) ac_try_echo=$ac_try;;
27483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27484 $as_echo "$ac_try_echo") >&5
27485 (eval "$ac_link") 2>&5
27487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27489 { (case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27494 $as_echo "$ac_try_echo") >&5
27495 (eval "$ac_try") 2>&5
27497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; }; then
27499 ac_cv_alignof_double=`cat conftest.val`
27501 $as_echo "$as_me: program exited with status $ac_status" >&5
27502 $as_echo "$as_me: failed program was:" >&5
27503 sed 's/^/| /' conftest.$ac_ext >&5
27505 ( exit $ac_status )
27506 if test "$ac_cv_type_double" = yes; then
27507 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27509 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27510 See \`config.log' for more details." >&5
27511 $as_echo "$as_me: error: cannot compute alignment of double
27512 See \`config.log' for more details." >&2;}
27513 { (exit 77); exit 77; }; }; }
27515 ac_cv_alignof_double=0
27518 rm -rf conftest.dSYM
27519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27523 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27524 $as_echo "$ac_cv_alignof_double" >&6; }
27528 cat >>confdefs.h <<_ACEOF
27529 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27534 # Compute maximum alignment of any basic type.
27535 # We assume long's alignment is at least as strong as char, short, or int;
27536 # but we must check long long (if it exists) and double.
27538 MAX_ALIGNOF=$ac_cv_alignof_long
27539 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27540 MAX_ALIGNOF=$ac_cv_alignof_double
27542 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27543 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27546 cat >>confdefs.h <<_ACEOF
27547 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27552 # Some platforms predefine the types int8, int16, etc. Only check
27553 # a (hopefully) representative subset.
27554 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27555 $as_echo_n "checking for int8... " >&6; }
27556 if test "${ac_cv_type_int8+set}" = set; then
27557 $as_echo_n "(cached) " >&6
27560 cat >conftest.$ac_ext <<_ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h. */
27567 #ifdef HAVE_SUPPORTDEFS_H
27568 #include <SupportDefs.h>
27580 rm -f conftest.$ac_objext
27581 if { (ac_try="$ac_compile"
27582 case "(($ac_try" in
27583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584 *) ac_try_echo=$ac_try;;
27586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27587 $as_echo "$ac_try_echo") >&5
27588 (eval "$ac_compile") 2>conftest.er1
27590 grep -v '^ *+' conftest.er1 >conftest.err
27592 cat conftest.err >&5
27593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); } && {
27595 test -z "$ac_c_werror_flag" ||
27596 test ! -s conftest.err
27597 } && test -s conftest.$ac_objext; then
27598 cat >conftest.$ac_ext <<_ACEOF
27601 cat confdefs.h >>conftest.$ac_ext
27602 cat >>conftest.$ac_ext <<_ACEOF
27603 /* end confdefs.h. */
27605 #ifdef HAVE_SUPPORTDEFS_H
27606 #include <SupportDefs.h>
27612 if (sizeof ((int8)))
27618 rm -f conftest.$ac_objext
27619 if { (ac_try="$ac_compile"
27620 case "(($ac_try" in
27621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27622 *) ac_try_echo=$ac_try;;
27624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27625 $as_echo "$ac_try_echo") >&5
27626 (eval "$ac_compile") 2>conftest.er1
27628 grep -v '^ *+' conftest.er1 >conftest.err
27630 cat conftest.err >&5
27631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); } && {
27633 test -z "$ac_c_werror_flag" ||
27634 test ! -s conftest.err
27635 } && test -s conftest.$ac_objext; then
27638 $as_echo "$as_me: failed program was:" >&5
27639 sed 's/^/| /' conftest.$ac_ext >&5
27641 ac_cv_type_int8=yes
27644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27646 $as_echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27654 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27655 $as_echo "$ac_cv_type_int8" >&6; }
27656 if test "x$ac_cv_type_int8" = x""yes; then
27658 cat >>confdefs.h <<_ACEOF
27659 #define HAVE_INT8 1
27664 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27665 $as_echo_n "checking for uint8... " >&6; }
27666 if test "${ac_cv_type_uint8+set}" = set; then
27667 $as_echo_n "(cached) " >&6
27669 ac_cv_type_uint8=no
27670 cat >conftest.$ac_ext <<_ACEOF
27673 cat confdefs.h >>conftest.$ac_ext
27674 cat >>conftest.$ac_ext <<_ACEOF
27675 /* end confdefs.h. */
27677 #ifdef HAVE_SUPPORTDEFS_H
27678 #include <SupportDefs.h>
27684 if (sizeof (uint8))
27690 rm -f conftest.$ac_objext
27691 if { (ac_try="$ac_compile"
27692 case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27697 $as_echo "$ac_try_echo") >&5
27698 (eval "$ac_compile") 2>conftest.er1
27700 grep -v '^ *+' conftest.er1 >conftest.err
27702 cat conftest.err >&5
27703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); } && {
27705 test -z "$ac_c_werror_flag" ||
27706 test ! -s conftest.err
27707 } && test -s conftest.$ac_objext; then
27708 cat >conftest.$ac_ext <<_ACEOF
27711 cat confdefs.h >>conftest.$ac_ext
27712 cat >>conftest.$ac_ext <<_ACEOF
27713 /* end confdefs.h. */
27715 #ifdef HAVE_SUPPORTDEFS_H
27716 #include <SupportDefs.h>
27722 if (sizeof ((uint8)))
27728 rm -f conftest.$ac_objext
27729 if { (ac_try="$ac_compile"
27730 case "(($ac_try" in
27731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732 *) ac_try_echo=$ac_try;;
27734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27735 $as_echo "$ac_try_echo") >&5
27736 (eval "$ac_compile") 2>conftest.er1
27738 grep -v '^ *+' conftest.er1 >conftest.err
27740 cat conftest.err >&5
27741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); } && {
27743 test -z "$ac_c_werror_flag" ||
27744 test ! -s conftest.err
27745 } && test -s conftest.$ac_objext; then
27748 $as_echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27751 ac_cv_type_uint8=yes
27754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27756 $as_echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27764 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27765 $as_echo "$ac_cv_type_uint8" >&6; }
27766 if test "x$ac_cv_type_uint8" = x""yes; then
27768 cat >>confdefs.h <<_ACEOF
27769 #define HAVE_UINT8 1
27774 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27775 $as_echo_n "checking for int64... " >&6; }
27776 if test "${ac_cv_type_int64+set}" = set; then
27777 $as_echo_n "(cached) " >&6
27779 ac_cv_type_int64=no
27780 cat >conftest.$ac_ext <<_ACEOF
27783 cat confdefs.h >>conftest.$ac_ext
27784 cat >>conftest.$ac_ext <<_ACEOF
27785 /* end confdefs.h. */
27787 #ifdef HAVE_SUPPORTDEFS_H
27788 #include <SupportDefs.h>
27794 if (sizeof (int64))
27800 rm -f conftest.$ac_objext
27801 if { (ac_try="$ac_compile"
27802 case "(($ac_try" in
27803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804 *) ac_try_echo=$ac_try;;
27806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27807 $as_echo "$ac_try_echo") >&5
27808 (eval "$ac_compile") 2>conftest.er1
27810 grep -v '^ *+' conftest.er1 >conftest.err
27812 cat conftest.err >&5
27813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); } && {
27815 test -z "$ac_c_werror_flag" ||
27816 test ! -s conftest.err
27817 } && test -s conftest.$ac_objext; then
27818 cat >conftest.$ac_ext <<_ACEOF
27821 cat confdefs.h >>conftest.$ac_ext
27822 cat >>conftest.$ac_ext <<_ACEOF
27823 /* end confdefs.h. */
27825 #ifdef HAVE_SUPPORTDEFS_H
27826 #include <SupportDefs.h>
27832 if (sizeof ((int64)))
27838 rm -f conftest.$ac_objext
27839 if { (ac_try="$ac_compile"
27840 case "(($ac_try" in
27841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842 *) ac_try_echo=$ac_try;;
27844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27845 $as_echo "$ac_try_echo") >&5
27846 (eval "$ac_compile") 2>conftest.er1
27848 grep -v '^ *+' conftest.er1 >conftest.err
27850 cat conftest.err >&5
27851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); } && {
27853 test -z "$ac_c_werror_flag" ||
27854 test ! -s conftest.err
27855 } && test -s conftest.$ac_objext; then
27858 $as_echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27861 ac_cv_type_int64=yes
27864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27866 $as_echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27874 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27875 $as_echo "$ac_cv_type_int64" >&6; }
27876 if test "x$ac_cv_type_int64" = x""yes; then
27878 cat >>confdefs.h <<_ACEOF
27879 #define HAVE_INT64 1
27884 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27885 $as_echo_n "checking for uint64... " >&6; }
27886 if test "${ac_cv_type_uint64+set}" = set; then
27887 $as_echo_n "(cached) " >&6
27889 ac_cv_type_uint64=no
27890 cat >conftest.$ac_ext <<_ACEOF
27893 cat confdefs.h >>conftest.$ac_ext
27894 cat >>conftest.$ac_ext <<_ACEOF
27895 /* end confdefs.h. */
27897 #ifdef HAVE_SUPPORTDEFS_H
27898 #include <SupportDefs.h>
27904 if (sizeof (uint64))
27910 rm -f conftest.$ac_objext
27911 if { (ac_try="$ac_compile"
27912 case "(($ac_try" in
27913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27914 *) ac_try_echo=$ac_try;;
27916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27917 $as_echo "$ac_try_echo") >&5
27918 (eval "$ac_compile") 2>conftest.er1
27920 grep -v '^ *+' conftest.er1 >conftest.err
27922 cat conftest.err >&5
27923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); } && {
27925 test -z "$ac_c_werror_flag" ||
27926 test ! -s conftest.err
27927 } && test -s conftest.$ac_objext; then
27928 cat >conftest.$ac_ext <<_ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h. */
27935 #ifdef HAVE_SUPPORTDEFS_H
27936 #include <SupportDefs.h>
27942 if (sizeof ((uint64)))
27948 rm -f conftest.$ac_objext
27949 if { (ac_try="$ac_compile"
27950 case "(($ac_try" in
27951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27952 *) ac_try_echo=$ac_try;;
27954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27955 $as_echo "$ac_try_echo") >&5
27956 (eval "$ac_compile") 2>conftest.er1
27958 grep -v '^ *+' conftest.er1 >conftest.err
27960 cat conftest.err >&5
27961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); } && {
27963 test -z "$ac_c_werror_flag" ||
27964 test ! -s conftest.err
27965 } && test -s conftest.$ac_objext; then
27968 $as_echo "$as_me: failed program was:" >&5
27969 sed 's/^/| /' conftest.$ac_ext >&5
27971 ac_cv_type_uint64=yes
27974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27976 $as_echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27984 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27985 $as_echo "$ac_cv_type_uint64" >&6; }
27986 if test "x$ac_cv_type_uint64" = x""yes; then
27988 cat >>confdefs.h <<_ACEOF
27989 #define HAVE_UINT64 1
27996 # We also check for sig_atomic_t, which *should* be defined per ANSI
27997 # C, but is missing on some old platforms.
27998 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27999 $as_echo_n "checking for sig_atomic_t... " >&6; }
28000 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28001 $as_echo_n "(cached) " >&6
28003 ac_cv_type_sig_atomic_t=no
28004 cat >conftest.$ac_ext <<_ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h. */
28010 #include <signal.h>
28015 if (sizeof (sig_atomic_t))
28021 rm -f conftest.$ac_objext
28022 if { (ac_try="$ac_compile"
28023 case "(($ac_try" in
28024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025 *) ac_try_echo=$ac_try;;
28027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28028 $as_echo "$ac_try_echo") >&5
28029 (eval "$ac_compile") 2>conftest.er1
28031 grep -v '^ *+' conftest.er1 >conftest.err
28033 cat conftest.err >&5
28034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); } && {
28036 test -z "$ac_c_werror_flag" ||
28037 test ! -s conftest.err
28038 } && test -s conftest.$ac_objext; then
28039 cat >conftest.$ac_ext <<_ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h. */
28045 #include <signal.h>
28050 if (sizeof ((sig_atomic_t)))
28056 rm -f conftest.$ac_objext
28057 if { (ac_try="$ac_compile"
28058 case "(($ac_try" in
28059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28060 *) ac_try_echo=$ac_try;;
28062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28063 $as_echo "$ac_try_echo") >&5
28064 (eval "$ac_compile") 2>conftest.er1
28066 grep -v '^ *+' conftest.er1 >conftest.err
28068 cat conftest.err >&5
28069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); } && {
28071 test -z "$ac_c_werror_flag" ||
28072 test ! -s conftest.err
28073 } && test -s conftest.$ac_objext; then
28076 $as_echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28079 ac_cv_type_sig_atomic_t=yes
28082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28084 $as_echo "$as_me: failed program was:" >&5
28085 sed 's/^/| /' conftest.$ac_ext >&5
28090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28092 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28093 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28094 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28096 cat >>confdefs.h <<_ACEOF
28097 #define HAVE_SIG_ATOMIC_T 1
28105 if test "$PORTNAME" != "win32"
28107 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28108 $as_echo_n "checking for POSIX signal interface... " >&6; }
28109 if test "${pgac_cv_func_posix_signals+set}" = set; then
28110 $as_echo_n "(cached) " >&6
28112 cat >conftest.$ac_ext <<_ACEOF
28115 cat confdefs.h >>conftest.$ac_ext
28116 cat >>conftest.$ac_ext <<_ACEOF
28117 /* end confdefs.h. */
28118 #include <signal.h>
28123 struct sigaction act, oact;
28124 sigemptyset(&act.sa_mask);
28125 act.sa_flags = SA_RESTART;
28126 sigaction(0, &act, &oact);
28131 rm -f conftest.$ac_objext conftest$ac_exeext
28132 if { (ac_try="$ac_link"
28133 case "(($ac_try" in
28134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28135 *) ac_try_echo=$ac_try;;
28137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28138 $as_echo "$ac_try_echo") >&5
28139 (eval "$ac_link") 2>conftest.er1
28141 grep -v '^ *+' conftest.er1 >conftest.err
28143 cat conftest.err >&5
28144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); } && {
28146 test -z "$ac_c_werror_flag" ||
28147 test ! -s conftest.err
28148 } && test -s conftest$ac_exeext && {
28149 test "$cross_compiling" = yes ||
28150 $as_test_x conftest$ac_exeext
28152 pgac_cv_func_posix_signals=yes
28154 $as_echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28157 pgac_cv_func_posix_signals=no
28160 rm -rf conftest.dSYM
28161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28162 conftest$ac_exeext conftest.$ac_ext
28164 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28165 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28166 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28168 cat >>confdefs.h <<\_ACEOF
28169 #define HAVE_POSIX_SIGNALS /**/
28173 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28175 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28176 { { $as_echo "$as_me:$LINENO: error:
28177 Thread-safety requires POSIX signals, which are not supported by this
28178 operating system; use --disable-thread-safety to disable thread safety." >&5
28179 $as_echo "$as_me: error:
28180 Thread-safety requires POSIX signals, which are not supported by this
28181 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28182 { (exit 1); exit 1; }; }
28186 # SunOS doesn't handle negative byte comparisons properly with +/- return
28187 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28188 $as_echo_n "checking for working memcmp... " >&6; }
28189 if test "${ac_cv_func_memcmp_working+set}" = set; then
28190 $as_echo_n "(cached) " >&6
28192 if test "$cross_compiling" = yes; then
28193 ac_cv_func_memcmp_working=no
28195 cat >conftest.$ac_ext <<_ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h. */
28201 $ac_includes_default
28206 /* Some versions of memcmp are not 8-bit clean. */
28207 char c0 = '\100', c1 = '\200', c2 = '\201';
28208 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28211 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28212 or more and with at least one buffer not starting on a 4-byte boundary.
28213 William Lewis provided this test program. */
28218 for (i = 0; i < 4; i++)
28222 strcpy (a, "--------01111111");
28223 strcpy (b, "--------10000000");
28224 if (memcmp (a, b, 16) >= 0)
28234 rm -f conftest$ac_exeext
28235 if { (ac_try="$ac_link"
28236 case "(($ac_try" in
28237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238 *) ac_try_echo=$ac_try;;
28240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28241 $as_echo "$ac_try_echo") >&5
28242 (eval "$ac_link") 2>&5
28244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28246 { (case "(($ac_try" in
28247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28248 *) ac_try_echo=$ac_try;;
28250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28251 $as_echo "$ac_try_echo") >&5
28252 (eval "$ac_try") 2>&5
28254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); }; }; then
28256 ac_cv_func_memcmp_working=yes
28258 $as_echo "$as_me: program exited with status $ac_status" >&5
28259 $as_echo "$as_me: failed program was:" >&5
28260 sed 's/^/| /' conftest.$ac_ext >&5
28262 ( exit $ac_status )
28263 ac_cv_func_memcmp_working=no
28265 rm -rf conftest.dSYM
28266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28271 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28272 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28273 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28274 *" memcmp.$ac_objext "* ) ;;
28275 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28282 # Select semaphore implementation type.
28283 if test "$PORTNAME" != "win32"; then
28284 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28286 cat >>confdefs.h <<\_ACEOF
28287 #define USE_NAMED_POSIX_SEMAPHORES 1
28290 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28292 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28294 cat >>confdefs.h <<\_ACEOF
28295 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28298 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28301 cat >>confdefs.h <<\_ACEOF
28302 #define USE_SYSV_SEMAPHORES 1
28305 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28310 cat >>confdefs.h <<\_ACEOF
28311 #define USE_WIN32_SEMAPHORES 1
28314 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28318 # Select shared-memory implementation type.
28319 if test "$PORTNAME" != "win32"; then
28321 cat >>confdefs.h <<\_ACEOF
28322 #define USE_SYSV_SHARED_MEMORY 1
28325 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28328 cat >>confdefs.h <<\_ACEOF
28329 #define USE_WIN32_SHARED_MEMORY 1
28332 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28335 # Select latch implementation type.
28336 if test "$PORTNAME" != "win32"; then
28337 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28339 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28342 # If not set in template file, set bytes to use libc memset()
28343 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28344 MEMSET_LOOP_LIMIT=1024
28347 cat >>confdefs.h <<_ACEOF
28348 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28353 if test "$enable_nls" = yes ; then
28355 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28356 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28357 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28358 $as_echo_n "(cached) " >&6
28360 ac_func_search_save_LIBS=$LIBS
28361 cat >conftest.$ac_ext <<_ACEOF
28364 cat confdefs.h >>conftest.$ac_ext
28365 cat >>conftest.$ac_ext <<_ACEOF
28366 /* end confdefs.h. */
28368 /* Override any GCC internal prototype to avoid an error.
28369 Use char because int might match the return type of a GCC
28370 builtin and then its argument prototype would still apply. */
28374 char bind_textdomain_codeset ();
28378 return bind_textdomain_codeset ();
28383 for ac_lib in '' intl; do
28384 if test -z "$ac_lib"; then
28385 ac_res="none required"
28388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28390 rm -f conftest.$ac_objext conftest$ac_exeext
28391 if { (ac_try="$ac_link"
28392 case "(($ac_try" in
28393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28394 *) ac_try_echo=$ac_try;;
28396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28397 $as_echo "$ac_try_echo") >&5
28398 (eval "$ac_link") 2>conftest.er1
28400 grep -v '^ *+' conftest.er1 >conftest.err
28402 cat conftest.err >&5
28403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); } && {
28405 test -z "$ac_c_werror_flag" ||
28406 test ! -s conftest.err
28407 } && test -s conftest$ac_exeext && {
28408 test "$cross_compiling" = yes ||
28409 $as_test_x conftest$ac_exeext
28411 ac_cv_search_bind_textdomain_codeset=$ac_res
28413 $as_echo "$as_me: failed program was:" >&5
28414 sed 's/^/| /' conftest.$ac_ext >&5
28419 rm -rf conftest.dSYM
28420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28422 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28426 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28429 ac_cv_search_bind_textdomain_codeset=no
28431 rm conftest.$ac_ext
28432 LIBS=$ac_func_search_save_LIBS
28434 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28435 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28436 ac_res=$ac_cv_search_bind_textdomain_codeset
28437 if test "$ac_res" != no; then
28438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28441 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28442 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28443 { (exit 1); exit 1; }; }
28446 if test "${ac_cv_header_libintl_h+set}" = set; then
28447 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28448 $as_echo_n "checking for libintl.h... " >&6; }
28449 if test "${ac_cv_header_libintl_h+set}" = set; then
28450 $as_echo_n "(cached) " >&6
28452 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28453 $as_echo "$ac_cv_header_libintl_h" >&6; }
28455 # Is the header compilable?
28456 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28457 $as_echo_n "checking libintl.h usability... " >&6; }
28458 cat >conftest.$ac_ext <<_ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h. */
28464 $ac_includes_default
28465 #include <libintl.h>
28467 rm -f conftest.$ac_objext
28468 if { (ac_try="$ac_compile"
28469 case "(($ac_try" in
28470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28471 *) ac_try_echo=$ac_try;;
28473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28474 $as_echo "$ac_try_echo") >&5
28475 (eval "$ac_compile") 2>conftest.er1
28477 grep -v '^ *+' conftest.er1 >conftest.err
28479 cat conftest.err >&5
28480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); } && {
28482 test -z "$ac_c_werror_flag" ||
28483 test ! -s conftest.err
28484 } && test -s conftest.$ac_objext; then
28485 ac_header_compiler=yes
28487 $as_echo "$as_me: failed program was:" >&5
28488 sed 's/^/| /' conftest.$ac_ext >&5
28490 ac_header_compiler=no
28493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28494 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28495 $as_echo "$ac_header_compiler" >&6; }
28497 # Is the header present?
28498 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28499 $as_echo_n "checking libintl.h presence... " >&6; }
28500 cat >conftest.$ac_ext <<_ACEOF
28503 cat confdefs.h >>conftest.$ac_ext
28504 cat >>conftest.$ac_ext <<_ACEOF
28505 /* end confdefs.h. */
28506 #include <libintl.h>
28508 if { (ac_try="$ac_cpp conftest.$ac_ext"
28509 case "(($ac_try" in
28510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511 *) ac_try_echo=$ac_try;;
28513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28514 $as_echo "$ac_try_echo") >&5
28515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28517 grep -v '^ *+' conftest.er1 >conftest.err
28519 cat conftest.err >&5
28520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } >/dev/null && {
28522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28523 test ! -s conftest.err
28525 ac_header_preproc=yes
28527 $as_echo "$as_me: failed program was:" >&5
28528 sed 's/^/| /' conftest.$ac_ext >&5
28530 ac_header_preproc=no
28533 rm -f conftest.err conftest.$ac_ext
28534 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28535 $as_echo "$ac_header_preproc" >&6; }
28537 # So? What about this header?
28538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28540 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28541 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28542 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28543 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28544 ac_header_preproc=yes
28547 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28548 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28549 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28550 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28551 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28552 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28553 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28554 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28555 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28556 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28557 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28558 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28560 ## ---------------------------------------- ##
28561 ## Report this to pgsql-bugs@postgresql.org ##
28562 ## ---------------------------------------- ##
28564 ) | sed "s/^/$as_me: WARNING: /" >&2
28567 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28568 $as_echo_n "checking for libintl.h... " >&6; }
28569 if test "${ac_cv_header_libintl_h+set}" = set; then
28570 $as_echo_n "(cached) " >&6
28572 ac_cv_header_libintl_h=$ac_header_preproc
28574 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28575 $as_echo "$ac_cv_header_libintl_h" >&6; }
28578 if test "x$ac_cv_header_libintl_h" = x""yes; then
28581 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28582 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28583 { (exit 1); exit 1; }; }
28587 for ac_prog in msgfmt
28589 # Extract the first word of "$ac_prog", so it can be a program name with args.
28590 set dummy $ac_prog; ac_word=$2
28591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28592 $as_echo_n "checking for $ac_word... " >&6; }
28593 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28594 $as_echo_n "(cached) " >&6
28596 if test -n "$MSGFMT"; then
28597 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28600 for as_dir in $PATH
28603 test -z "$as_dir" && as_dir=.
28604 for ac_exec_ext in '' $ac_executable_extensions; do
28605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28606 ac_cv_prog_MSGFMT="$ac_prog"
28607 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28616 MSGFMT=$ac_cv_prog_MSGFMT
28617 if test -n "$MSGFMT"; then
28618 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28619 $as_echo "$MSGFMT" >&6; }
28621 { $as_echo "$as_me:$LINENO: result: no" >&5
28622 $as_echo "no" >&6; }
28626 test -n "$MSGFMT" && break
28629 if test -z "$MSGFMT"; then
28630 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28631 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28632 { (exit 1); exit 1; }; }
28634 for ac_prog in msgmerge
28636 # Extract the first word of "$ac_prog", so it can be a program name with args.
28637 set dummy $ac_prog; ac_word=$2
28638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28639 $as_echo_n "checking for $ac_word... " >&6; }
28640 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28641 $as_echo_n "(cached) " >&6
28643 if test -n "$MSGMERGE"; then
28644 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28647 for as_dir in $PATH
28650 test -z "$as_dir" && as_dir=.
28651 for ac_exec_ext in '' $ac_executable_extensions; do
28652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28653 ac_cv_prog_MSGMERGE="$ac_prog"
28654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28663 MSGMERGE=$ac_cv_prog_MSGMERGE
28664 if test -n "$MSGMERGE"; then
28665 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28666 $as_echo "$MSGMERGE" >&6; }
28668 { $as_echo "$as_me:$LINENO: result: no" >&5
28669 $as_echo "no" >&6; }
28673 test -n "$MSGMERGE" && break
28676 for ac_prog in xgettext
28678 # Extract the first word of "$ac_prog", so it can be a program name with args.
28679 set dummy $ac_prog; ac_word=$2
28680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28681 $as_echo_n "checking for $ac_word... " >&6; }
28682 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28683 $as_echo_n "(cached) " >&6
28685 if test -n "$XGETTEXT"; then
28686 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28689 for as_dir in $PATH
28692 test -z "$as_dir" && as_dir=.
28693 for ac_exec_ext in '' $ac_executable_extensions; do
28694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28695 ac_cv_prog_XGETTEXT="$ac_prog"
28696 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28705 XGETTEXT=$ac_cv_prog_XGETTEXT
28706 if test -n "$XGETTEXT"; then
28707 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28708 $as_echo "$XGETTEXT" >&6; }
28710 { $as_echo "$as_me:$LINENO: result: no" >&5
28711 $as_echo "no" >&6; }
28715 test -n "$XGETTEXT" && break
28721 # Check for Tcl configuration script tclConfig.sh
28722 if test "$with_tcl" = yes; then
28723 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28725 # Extract the first word of "$ac_prog", so it can be a program name with args.
28726 set dummy $ac_prog; ac_word=$2
28727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28728 $as_echo_n "checking for $ac_word... " >&6; }
28729 if test "${ac_cv_path_TCLSH+set}" = set; then
28730 $as_echo_n "(cached) " >&6
28734 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28738 for as_dir in $PATH
28741 test -z "$as_dir" && as_dir=.
28742 for ac_exec_ext in '' $ac_executable_extensions; do
28743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28744 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28755 TCLSH=$ac_cv_path_TCLSH
28756 if test -n "$TCLSH"; then
28757 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28758 $as_echo "$TCLSH" >&6; }
28760 { $as_echo "$as_me:$LINENO: result: no" >&5
28761 $as_echo "no" >&6; }
28765 test -n "$TCLSH" && break
28768 if test x"$TCLSH" = x""; then
28769 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28770 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28771 { (exit 1); exit 1; }; }
28774 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28775 $as_echo_n "checking for tclConfig.sh... " >&6; }
28776 # Let user override test
28777 if test -z "$TCL_CONFIG_SH"; then
28778 pgac_test_dirs="$with_tclconfig"
28780 set X $pgac_test_dirs; shift
28781 if test $# -eq 0; then
28782 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28783 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28784 { (exit 1); exit 1; }; }
28785 set X `echo 'puts $auto_path' | $TCLSH`; shift
28789 if test -r "$pgac_dir/tclConfig.sh"; then
28790 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28796 if test -z "$TCL_CONFIG_SH"; then
28797 { $as_echo "$as_me:$LINENO: result: no" >&5
28798 $as_echo "no" >&6; }
28799 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28800 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28801 { (exit 1); exit 1; }; }
28803 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28804 $as_echo "$TCL_CONFIG_SH" >&6; }
28810 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28811 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28812 eval TCL_LIBS=\"$TCL_LIBS\"
28813 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28814 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28816 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28817 ac_save_CPPFLAGS=$CPPFLAGS
28818 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28819 if test "${ac_cv_header_tcl_h+set}" = set; then
28820 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28821 $as_echo_n "checking for tcl.h... " >&6; }
28822 if test "${ac_cv_header_tcl_h+set}" = set; then
28823 $as_echo_n "(cached) " >&6
28825 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28826 $as_echo "$ac_cv_header_tcl_h" >&6; }
28828 # Is the header compilable?
28829 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28830 $as_echo_n "checking tcl.h usability... " >&6; }
28831 cat >conftest.$ac_ext <<_ACEOF
28834 cat confdefs.h >>conftest.$ac_ext
28835 cat >>conftest.$ac_ext <<_ACEOF
28836 /* end confdefs.h. */
28837 $ac_includes_default
28840 rm -f conftest.$ac_objext
28841 if { (ac_try="$ac_compile"
28842 case "(($ac_try" in
28843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28847 $as_echo "$ac_try_echo") >&5
28848 (eval "$ac_compile") 2>conftest.er1
28850 grep -v '^ *+' conftest.er1 >conftest.err
28852 cat conftest.err >&5
28853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } && {
28855 test -z "$ac_c_werror_flag" ||
28856 test ! -s conftest.err
28857 } && test -s conftest.$ac_objext; then
28858 ac_header_compiler=yes
28860 $as_echo "$as_me: failed program was:" >&5
28861 sed 's/^/| /' conftest.$ac_ext >&5
28863 ac_header_compiler=no
28866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28868 $as_echo "$ac_header_compiler" >&6; }
28870 # Is the header present?
28871 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28872 $as_echo_n "checking tcl.h presence... " >&6; }
28873 cat >conftest.$ac_ext <<_ACEOF
28876 cat confdefs.h >>conftest.$ac_ext
28877 cat >>conftest.$ac_ext <<_ACEOF
28878 /* end confdefs.h. */
28881 if { (ac_try="$ac_cpp conftest.$ac_ext"
28882 case "(($ac_try" in
28883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28884 *) ac_try_echo=$ac_try;;
28886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28887 $as_echo "$ac_try_echo") >&5
28888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28890 grep -v '^ *+' conftest.er1 >conftest.err
28892 cat conftest.err >&5
28893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); } >/dev/null && {
28895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28896 test ! -s conftest.err
28898 ac_header_preproc=yes
28900 $as_echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28903 ac_header_preproc=no
28906 rm -f conftest.err conftest.$ac_ext
28907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28908 $as_echo "$ac_header_preproc" >&6; }
28910 # So? What about this header?
28911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28913 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28914 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28915 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28916 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28917 ac_header_preproc=yes
28920 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28921 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28922 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28923 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28924 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28925 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28926 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28927 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28928 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28929 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28930 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28931 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28933 ## ---------------------------------------- ##
28934 ## Report this to pgsql-bugs@postgresql.org ##
28935 ## ---------------------------------------- ##
28937 ) | sed "s/^/$as_me: WARNING: /" >&2
28940 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28941 $as_echo_n "checking for tcl.h... " >&6; }
28942 if test "${ac_cv_header_tcl_h+set}" = set; then
28943 $as_echo_n "(cached) " >&6
28945 ac_cv_header_tcl_h=$ac_header_preproc
28947 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28948 $as_echo "$ac_cv_header_tcl_h" >&6; }
28951 if test "x$ac_cv_header_tcl_h" = x""yes; then
28954 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28955 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28956 { (exit 1); exit 1; }; }
28960 CPPFLAGS=$ac_save_CPPFLAGS
28963 # check for <Python.h>
28964 if test "$with_python" = yes; then
28965 ac_save_CPPFLAGS=$CPPFLAGS
28966 CPPFLAGS="$python_includespec $CPPFLAGS"
28967 if test "${ac_cv_header_Python_h+set}" = set; then
28968 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28969 $as_echo_n "checking for Python.h... " >&6; }
28970 if test "${ac_cv_header_Python_h+set}" = set; then
28971 $as_echo_n "(cached) " >&6
28973 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28974 $as_echo "$ac_cv_header_Python_h" >&6; }
28976 # Is the header compilable?
28977 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
28978 $as_echo_n "checking Python.h usability... " >&6; }
28979 cat >conftest.$ac_ext <<_ACEOF
28982 cat confdefs.h >>conftest.$ac_ext
28983 cat >>conftest.$ac_ext <<_ACEOF
28984 /* end confdefs.h. */
28985 $ac_includes_default
28986 #include <Python.h>
28988 rm -f conftest.$ac_objext
28989 if { (ac_try="$ac_compile"
28990 case "(($ac_try" in
28991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992 *) ac_try_echo=$ac_try;;
28994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28995 $as_echo "$ac_try_echo") >&5
28996 (eval "$ac_compile") 2>conftest.er1
28998 grep -v '^ *+' conftest.er1 >conftest.err
29000 cat conftest.err >&5
29001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); } && {
29003 test -z "$ac_c_werror_flag" ||
29004 test ! -s conftest.err
29005 } && test -s conftest.$ac_objext; then
29006 ac_header_compiler=yes
29008 $as_echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29011 ac_header_compiler=no
29014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29015 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29016 $as_echo "$ac_header_compiler" >&6; }
29018 # Is the header present?
29019 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29020 $as_echo_n "checking Python.h presence... " >&6; }
29021 cat >conftest.$ac_ext <<_ACEOF
29024 cat confdefs.h >>conftest.$ac_ext
29025 cat >>conftest.$ac_ext <<_ACEOF
29026 /* end confdefs.h. */
29027 #include <Python.h>
29029 if { (ac_try="$ac_cpp conftest.$ac_ext"
29030 case "(($ac_try" in
29031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29032 *) ac_try_echo=$ac_try;;
29034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29035 $as_echo "$ac_try_echo") >&5
29036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29038 grep -v '^ *+' conftest.er1 >conftest.err
29040 cat conftest.err >&5
29041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); } >/dev/null && {
29043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29044 test ! -s conftest.err
29046 ac_header_preproc=yes
29048 $as_echo "$as_me: failed program was:" >&5
29049 sed 's/^/| /' conftest.$ac_ext >&5
29051 ac_header_preproc=no
29054 rm -f conftest.err conftest.$ac_ext
29055 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29056 $as_echo "$ac_header_preproc" >&6; }
29058 # So? What about this header?
29059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29061 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29062 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29063 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29064 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29065 ac_header_preproc=yes
29068 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29069 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29070 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29071 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29072 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29073 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29074 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29075 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29076 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29077 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29078 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29079 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29081 ## ---------------------------------------- ##
29082 ## Report this to pgsql-bugs@postgresql.org ##
29083 ## ---------------------------------------- ##
29085 ) | sed "s/^/$as_me: WARNING: /" >&2
29088 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29089 $as_echo_n "checking for Python.h... " >&6; }
29090 if test "${ac_cv_header_Python_h+set}" = set; then
29091 $as_echo_n "(cached) " >&6
29093 ac_cv_header_Python_h=$ac_header_preproc
29095 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29096 $as_echo "$ac_cv_header_Python_h" >&6; }
29099 if test "x$ac_cv_header_Python_h" = x""yes; then
29102 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29103 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29104 { (exit 1); exit 1; }; }
29108 CPPFLAGS=$ac_save_CPPFLAGS
29112 # Check for DocBook and tools
29114 for ac_prog in onsgmls nsgmls
29116 # Extract the first word of "$ac_prog", so it can be a program name with args.
29117 set dummy $ac_prog; ac_word=$2
29118 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29119 $as_echo_n "checking for $ac_word... " >&6; }
29120 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29121 $as_echo_n "(cached) " >&6
29123 if test -n "$NSGMLS"; then
29124 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29127 for as_dir in $PATH
29130 test -z "$as_dir" && as_dir=.
29131 for ac_exec_ext in '' $ac_executable_extensions; do
29132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29133 ac_cv_prog_NSGMLS="$ac_prog"
29134 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29143 NSGMLS=$ac_cv_prog_NSGMLS
29144 if test -n "$NSGMLS"; then
29145 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29146 $as_echo "$NSGMLS" >&6; }
29148 { $as_echo "$as_me:$LINENO: result: no" >&5
29149 $as_echo "no" >&6; }
29153 test -n "$NSGMLS" && break
29156 for ac_prog in openjade jade
29158 # Extract the first word of "$ac_prog", so it can be a program name with args.
29159 set dummy $ac_prog; ac_word=$2
29160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29161 $as_echo_n "checking for $ac_word... " >&6; }
29162 if test "${ac_cv_prog_JADE+set}" = set; then
29163 $as_echo_n "(cached) " >&6
29165 if test -n "$JADE"; then
29166 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29169 for as_dir in $PATH
29172 test -z "$as_dir" && as_dir=.
29173 for ac_exec_ext in '' $ac_executable_extensions; do
29174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29175 ac_cv_prog_JADE="$ac_prog"
29176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29185 JADE=$ac_cv_prog_JADE
29186 if test -n "$JADE"; then
29187 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29188 $as_echo "$JADE" >&6; }
29190 { $as_echo "$as_me:$LINENO: result: no" >&5
29191 $as_echo "no" >&6; }
29195 test -n "$JADE" && break
29199 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29200 $as_echo_n "checking for DocBook V4.2... " >&6; }
29201 if test "${pgac_cv_check_docbook+set}" = set; then
29202 $as_echo_n "(cached) " >&6
29204 cat >conftest.sgml <<EOF
29205 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29207 <title>test</title>
29209 <title>random</title>
29211 <title>testsect</title>
29218 pgac_cv_check_docbook=no
29220 if test -n "$NSGMLS"; then
29221 $NSGMLS -s conftest.sgml 1>&5 2>&1
29222 if test $? -eq 0; then
29223 pgac_cv_check_docbook=yes
29226 rm -f conftest.sgml
29228 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29229 $as_echo "$pgac_cv_check_docbook" >&6; }
29231 have_docbook=$pgac_cv_check_docbook
29234 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29235 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29236 if test "${pgac_cv_path_stylesheets+set}" = set; then
29237 $as_echo_n "(cached) " >&6
29239 if test -n "$DOCBOOKSTYLE"; then
29240 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29242 for pgac_prefix in /usr /usr/local /opt /sw; do
29243 for pgac_infix in share lib; do
29244 for pgac_postfix in \
29245 sgml/stylesheets/nwalsh-modular \
29246 sgml/stylesheets/docbook \
29247 sgml/stylesheets/dsssl/docbook \
29248 sgml/docbook-dsssl \
29249 sgml/docbook/dsssl/modular \
29250 sgml/docbook/stylesheet/dsssl/modular \
29251 sgml/docbook/dsssl-stylesheets \
29252 sgml/dsssl/docbook-dsssl-nwalsh
29254 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29255 if test -r "$pgac_candidate/html/docbook.dsl" \
29256 && test -r "$pgac_candidate/print/docbook.dsl"
29258 pgac_cv_path_stylesheets=$pgac_candidate
29267 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29269 if test -n "$DOCBOOKSTYLE"; then
29270 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29271 $as_echo "$DOCBOOKSTYLE" >&6; }
29273 { $as_echo "$as_me:$LINENO: result: no" >&5
29274 $as_echo "no" >&6; }
29276 if test -n "$DOCBOOKSTYLE"; then
29277 for ac_prog in collateindex.pl
29279 # Extract the first word of "$ac_prog", so it can be a program name with args.
29280 set dummy $ac_prog; ac_word=$2
29281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29282 $as_echo_n "checking for $ac_word... " >&6; }
29283 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29284 $as_echo_n "(cached) " >&6
29286 case $COLLATEINDEX in
29288 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29292 for as_dir in $DOCBOOKSTYLE/bin $PATH
29295 test -z "$as_dir" && as_dir=.
29296 for ac_exec_ext in '' $ac_executable_extensions; do
29297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29298 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29309 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29310 if test -n "$COLLATEINDEX"; then
29311 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29312 $as_echo "$COLLATEINDEX" >&6; }
29314 { $as_echo "$as_me:$LINENO: result: no" >&5
29315 $as_echo "no" >&6; }
29319 test -n "$COLLATEINDEX" && break
29323 for ac_prog in collateindex.pl
29325 # Extract the first word of "$ac_prog", so it can be a program name with args.
29326 set dummy $ac_prog; ac_word=$2
29327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29328 $as_echo_n "checking for $ac_word... " >&6; }
29329 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29330 $as_echo_n "(cached) " >&6
29332 case $COLLATEINDEX in
29334 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29338 for as_dir in $PATH
29341 test -z "$as_dir" && as_dir=.
29342 for ac_exec_ext in '' $ac_executable_extensions; do
29343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29344 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29355 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29356 if test -n "$COLLATEINDEX"; then
29357 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29358 $as_echo "$COLLATEINDEX" >&6; }
29360 { $as_echo "$as_me:$LINENO: result: no" >&5
29361 $as_echo "no" >&6; }
29365 test -n "$COLLATEINDEX" && break
29369 for ac_prog in xsltproc
29371 # Extract the first word of "$ac_prog", so it can be a program name with args.
29372 set dummy $ac_prog; ac_word=$2
29373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29374 $as_echo_n "checking for $ac_word... " >&6; }
29375 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29376 $as_echo_n "(cached) " >&6
29378 if test -n "$XSLTPROC"; then
29379 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29382 for as_dir in $PATH
29385 test -z "$as_dir" && as_dir=.
29386 for ac_exec_ext in '' $ac_executable_extensions; do
29387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29388 ac_cv_prog_XSLTPROC="$ac_prog"
29389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29398 XSLTPROC=$ac_cv_prog_XSLTPROC
29399 if test -n "$XSLTPROC"; then
29400 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29401 $as_echo "$XSLTPROC" >&6; }
29403 { $as_echo "$as_me:$LINENO: result: no" >&5
29404 $as_echo "no" >&6; }
29408 test -n "$XSLTPROC" && break
29411 for ac_prog in osx sgml2xml sx
29413 # Extract the first word of "$ac_prog", so it can be a program name with args.
29414 set dummy $ac_prog; ac_word=$2
29415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29416 $as_echo_n "checking for $ac_word... " >&6; }
29417 if test "${ac_cv_prog_OSX+set}" = set; then
29418 $as_echo_n "(cached) " >&6
29420 if test -n "$OSX"; then
29421 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29424 for as_dir in $PATH
29427 test -z "$as_dir" && as_dir=.
29428 for ac_exec_ext in '' $ac_executable_extensions; do
29429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29430 ac_cv_prog_OSX="$ac_prog"
29431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29440 OSX=$ac_cv_prog_OSX
29441 if test -n "$OSX"; then
29442 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29443 $as_echo "$OSX" >&6; }
29445 { $as_echo "$as_me:$LINENO: result: no" >&5
29446 $as_echo "no" >&6; }
29450 test -n "$OSX" && break
29456 # We have to run the thread test near the end so we have all our symbols
29457 # defined. Cross compiling throws a warning.
29459 if test "$enable_thread_safety" = yes; then
29460 if test "$PORTNAME" != "win32"
29462 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29463 $as_echo_n "checking thread safety of required library functions... " >&6; }
29467 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29468 LIBS="$LIBS $PTHREAD_LIBS"
29469 if test "$cross_compiling" = yes; then
29470 { $as_echo "$as_me:$LINENO: result: maybe" >&5
29471 $as_echo "maybe" >&6; }
29472 { $as_echo "$as_me:$LINENO: WARNING:
29473 *** Skipping thread test program because of cross-compile build.
29474 *** Run the program in src/test/thread on the target machine.
29476 $as_echo "$as_me: WARNING:
29477 *** Skipping thread test program because of cross-compile build.
29478 *** Run the program in src/test/thread on the target machine.
29481 cat >conftest.$ac_ext <<_ACEOF
29484 cat confdefs.h >>conftest.$ac_ext
29485 cat >>conftest.$ac_ext <<_ACEOF
29486 /* end confdefs.h. */
29487 #include "$srcdir/src/test/thread/thread_test.c"
29489 rm -f conftest$ac_exeext
29490 if { (ac_try="$ac_link"
29491 case "(($ac_try" in
29492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493 *) ac_try_echo=$ac_try;;
29495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29496 $as_echo "$ac_try_echo") >&5
29497 (eval "$ac_link") 2>&5
29499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29501 { (case "(($ac_try" in
29502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503 *) ac_try_echo=$ac_try;;
29505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29506 $as_echo "$ac_try_echo") >&5
29507 (eval "$ac_try") 2>&5
29509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); }; }; then
29511 { $as_echo "$as_me:$LINENO: result: yes" >&5
29512 $as_echo "yes" >&6; }
29514 $as_echo "$as_me: program exited with status $ac_status" >&5
29515 $as_echo "$as_me: failed program was:" >&5
29516 sed 's/^/| /' conftest.$ac_ext >&5
29518 ( exit $ac_status )
29519 { $as_echo "$as_me:$LINENO: result: no" >&5
29520 $as_echo "no" >&6; }
29521 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29522 This platform is not thread-safe. Check the file 'config.log' or compile
29523 and run src/test/thread/thread_test for the exact reason.
29524 Use --disable-thread-safety to disable thread safety." >&5
29525 $as_echo "$as_me: error: thread test program failed
29526 This platform is not thread-safe. Check the file 'config.log' or compile
29527 and run src/test/thread/thread_test for the exact reason.
29528 Use --disable-thread-safety to disable thread safety." >&2;}
29529 { (exit 1); exit 1; }; }
29531 rm -rf conftest.dSYM
29532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29539 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29540 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29544 # If compiler will take -Wl,--as-needed (or various platform-specific
29545 # spellings thereof) then add that to LDFLAGS. This is much easier than
29546 # trying to filter LIBS to the minimum for each executable.
29547 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29548 # libreadline; therefore we postpone testing it until we know what library
29549 # dependencies readline has. The test code will try to link with $LIBS.
29550 if test "$with_readline" = yes; then
29551 link_test_func=readline
29553 link_test_func=exit
29556 if test "$PORTNAME" = "darwin"; then
29557 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29558 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29559 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29560 $as_echo_n "(cached) " >&6
29562 pgac_save_LDFLAGS=$LDFLAGS
29563 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29564 if test "$cross_compiling" = yes; then
29565 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29567 cat >conftest.$ac_ext <<_ACEOF
29570 cat confdefs.h >>conftest.$ac_ext
29571 cat >>conftest.$ac_ext <<_ACEOF
29572 /* end confdefs.h. */
29573 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29582 rm -f conftest$ac_exeext
29583 if { (ac_try="$ac_link"
29584 case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29589 $as_echo "$ac_try_echo") >&5
29590 (eval "$ac_link") 2>&5
29592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29594 { (case "(($ac_try" in
29595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596 *) ac_try_echo=$ac_try;;
29598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29599 $as_echo "$ac_try_echo") >&5
29600 (eval "$ac_try") 2>&5
29602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); }; }; then
29604 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29606 $as_echo "$as_me: program exited with status $ac_status" >&5
29607 $as_echo "$as_me: failed program was:" >&5
29608 sed 's/^/| /' conftest.$ac_ext >&5
29610 ( exit $ac_status )
29611 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29613 rm -rf conftest.dSYM
29614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29618 LDFLAGS="$pgac_save_LDFLAGS"
29620 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29621 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29622 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29623 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29626 elif test "$PORTNAME" = "openbsd"; then
29627 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29628 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29629 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29630 $as_echo_n "(cached) " >&6
29632 pgac_save_LDFLAGS=$LDFLAGS
29633 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29634 if test "$cross_compiling" = yes; then
29635 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29637 cat >conftest.$ac_ext <<_ACEOF
29640 cat confdefs.h >>conftest.$ac_ext
29641 cat >>conftest.$ac_ext <<_ACEOF
29642 /* end confdefs.h. */
29643 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29652 rm -f conftest$ac_exeext
29653 if { (ac_try="$ac_link"
29654 case "(($ac_try" in
29655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656 *) ac_try_echo=$ac_try;;
29658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29659 $as_echo "$ac_try_echo") >&5
29660 (eval "$ac_link") 2>&5
29662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29664 { (case "(($ac_try" in
29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29669 $as_echo "$ac_try_echo") >&5
29670 (eval "$ac_try") 2>&5
29672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; }; then
29674 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29676 $as_echo "$as_me: program exited with status $ac_status" >&5
29677 $as_echo "$as_me: failed program was:" >&5
29678 sed 's/^/| /' conftest.$ac_ext >&5
29680 ( exit $ac_status )
29681 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29683 rm -rf conftest.dSYM
29684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29688 LDFLAGS="$pgac_save_LDFLAGS"
29690 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29691 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29692 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29693 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29697 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29698 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29699 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29700 $as_echo_n "(cached) " >&6
29702 pgac_save_LDFLAGS=$LDFLAGS
29703 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29704 if test "$cross_compiling" = yes; then
29705 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29707 cat >conftest.$ac_ext <<_ACEOF
29710 cat confdefs.h >>conftest.$ac_ext
29711 cat >>conftest.$ac_ext <<_ACEOF
29712 /* end confdefs.h. */
29713 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29722 rm -f conftest$ac_exeext
29723 if { (ac_try="$ac_link"
29724 case "(($ac_try" in
29725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29726 *) ac_try_echo=$ac_try;;
29728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29729 $as_echo "$ac_try_echo") >&5
29730 (eval "$ac_link") 2>&5
29732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29734 { (case "(($ac_try" in
29735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29736 *) ac_try_echo=$ac_try;;
29738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29739 $as_echo "$ac_try_echo") >&5
29740 (eval "$ac_try") 2>&5
29742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); }; }; then
29744 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29746 $as_echo "$as_me: program exited with status $ac_status" >&5
29747 $as_echo "$as_me: failed program was:" >&5
29748 sed 's/^/| /' conftest.$ac_ext >&5
29750 ( exit $ac_status )
29751 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29753 rm -rf conftest.dSYM
29754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29758 LDFLAGS="$pgac_save_LDFLAGS"
29760 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29761 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29762 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29763 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29768 # Create compiler version string
29769 if test x"$GCC" = x"yes" ; then
29770 cc_string=`${CC} --version | sed q`
29771 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29772 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29773 cc_string=`${CC} -V 2>&1 | sed q`
29779 cat >>confdefs.h <<_ACEOF
29780 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29784 # Supply a numeric version string for use by 3rd party add-ons
29785 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29786 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29788 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29790 cat >>confdefs.h <<_ACEOF
29791 #define PG_VERSION_NUM $PG_VERSION_NUM
29796 # Begin output steps
29798 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29799 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29800 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29801 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29802 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29803 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29804 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29805 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29807 # prepare build tree if outside source tree
29808 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29809 # Note 2: /bin/pwd might be better than shell's built-in at getting
29810 # a symlink-free name.
29811 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29815 if test "$no_create" != yes; then
29816 $as_echo_n "preparing build tree... " >&6
29817 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29818 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29819 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29820 $as_echo "$as_me: error: failed" >&2;}
29821 { (exit 1); exit 1; }; }
29822 { $as_echo "$as_me:$LINENO: result: done" >&5
29823 $as_echo "done" >&6; }
29829 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29832 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}"
29835 if test "$PORTNAME" = "win32"; then
29836 ac_config_commands="$ac_config_commands check_win32_symlinks"
29840 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29843 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29846 cat >confcache <<\_ACEOF
29847 # This file is a shell script that caches the results of configure
29848 # tests run on this system so they can be shared between configure
29849 # scripts and configure runs, see configure's option --config-cache.
29850 # It is not useful on other systems. If it contains results you don't
29851 # want to keep, you may remove or edit it.
29853 # config.status only pays attention to the cache file if you give it
29854 # the --recheck option to rerun configure.
29856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29858 # following values.
29862 # The following way of writing the cache mishandles newlines in values,
29863 # but we know of no workaround that is simple, portable, and efficient.
29864 # So, we kill variables containing newlines.
29865 # Ultrix sh set writes to stderr and can't be redirected directly,
29866 # and sets the high bit in the cache file unless we assign to the vars.
29868 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29869 eval ac_val=\$$ac_var
29873 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29877 _ | IFS | as_nl) ;; #(
29878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29879 *) $as_unset $ac_var ;;
29885 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29886 *${as_nl}ac_space=\ *)
29887 # `set' does not quote correctly, so add quotes (double-quote
29888 # substitution turns \\\\ into \\, and sed turns \\ into \).
29891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29894 # `set' quotes correctly as required by POSIX, so do not add quotes.
29895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29904 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29906 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29908 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29909 if test -w "$cache_file"; then
29910 test "x$cache_file" != "x/dev/null" &&
29911 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29912 $as_echo "$as_me: updating cache $cache_file" >&6;}
29913 cat confcache >$cache_file
29915 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29916 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29921 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29922 # Let make expand exec_prefix.
29923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29925 DEFS=-DHAVE_CONFIG_H
29929 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29930 # 1. Remove the extension, and $U if already installed.
29931 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29932 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29933 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29934 # will be set to the directory where LIBOBJS objects are built.
29935 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29936 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29938 LIBOBJS=$ac_libobjs
29940 LTLIBOBJS=$ac_ltlibobjs
29945 : ${CONFIG_STATUS=./config.status}
29947 ac_clean_files_save=$ac_clean_files
29948 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29949 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29950 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29951 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29953 # Generated by $as_me.
29954 # Run this file to recreate the current configuration.
29955 # Compiler output produced by configure, useful for debugging
29956 # configure, is in config.log if it exists.
29959 ac_cs_recheck=false
29961 SHELL=\${CONFIG_SHELL-$SHELL}
29964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29965 ## --------------------- ##
29966 ## M4sh Initialization. ##
29967 ## --------------------- ##
29969 # Be more Bourne compatible
29970 DUALCASE=1; export DUALCASE # for MKS sh
29971 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29974 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29975 # is contrary to our usage. Disable this feature.
29976 alias -g '${1+"$@"}'='"$@"'
29977 setopt NO_GLOB_SUBST
29979 case `(set -o) 2>/dev/null` in
29980 *posix*) set -o posix ;;
29989 # Avoid depending upon Character Ranges.
29990 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29991 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29992 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29993 as_cr_digits='0123456789'
29994 as_cr_alnum=$as_cr_Letters$as_cr_digits
29999 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30000 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30001 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30002 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30003 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30004 as_echo='printf %s\n'
30005 as_echo_n='printf %s'
30007 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30008 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30009 as_echo_n='/usr/ucb/echo -n'
30011 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30012 as_echo_n_body='eval
30016 expr "X$arg" : "X\\(.*\\)$as_nl";
30017 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30019 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30021 export as_echo_n_body
30022 as_echo_n='sh -c $as_echo_n_body as_echo'
30024 export as_echo_body
30025 as_echo='sh -c $as_echo_body as_echo'
30028 # The user is always right.
30029 if test "${PATH_SEPARATOR+set}" != set; then
30031 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30032 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30037 # Support unset when possible.
30038 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30046 # We need space, tab and new line, in precisely that order. Quoting is
30047 # there to prevent editors from complaining about space-tab.
30048 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30049 # splitting by setting IFS to empty value.)
30052 # Find who we are. Look in the path if we contain no directory separator.
30054 *[\\/]* ) as_myself=$0 ;;
30055 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30056 for as_dir in $PATH
30059 test -z "$as_dir" && as_dir=.
30060 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30066 # We did not find ourselves, most probably we were run as `sh COMMAND'
30067 # in which case we are not to be found in the path.
30068 if test "x$as_myself" = x; then
30071 if test ! -f "$as_myself"; then
30072 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30073 { (exit 1); exit 1; }
30076 # Work around bugs in pre-3.0 UWIN ksh.
30077 for as_var in ENV MAIL MAILPATH
30078 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30090 # Required to use basename.
30091 if expr a : '\(a\)' >/dev/null 2>&1 &&
30092 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30098 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30099 as_basename=basename
30105 # Name of the executable.
30106 as_me=`$as_basename -- "$0" ||
30107 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30108 X"$0" : 'X\(//\)$' \| \
30109 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30111 sed '/^.*\/\([^/][^/]*\)\/*$/{
30130 as_lineno_1=$LINENO
30131 as_lineno_2=$LINENO
30132 test "x$as_lineno_1" != "x$as_lineno_2" &&
30133 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30135 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30136 # uniformly replaced by the line number. The first 'sed' inserts a
30137 # line-number line after each line using $LINENO; the second 'sed'
30138 # does the real work. The second script uses 'N' to pair each
30139 # line-number line with the line containing $LINENO, and appends
30140 # trailing '-' during substitution so that $LINENO is not a special
30141 # case at line end.
30142 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30143 # scripts with optimization help from Paolo Bonzini. Blame Lee
30144 # E. McMahon (1931-1989) for sed's syntax. :-)
30156 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30159 ' >$as_me.lineno &&
30160 chmod +x "$as_me.lineno" ||
30161 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30162 { (exit 1); exit 1; }; }
30164 # Don't try to exec as it changes $[0], causing all sort of problems
30165 # (the dirname of $[0] is not the place where we might find the
30166 # original and so on. Autoconf is especially sensitive to this).
30167 . "./$as_me.lineno"
30168 # Exit status is that of the last command.
30173 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30179 ECHO_C= ECHO_N= ECHO_T=
30180 case `echo -n x` in
30182 case `echo 'x\c'` in
30183 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30189 if expr a : '\(a\)' >/dev/null 2>&1 &&
30190 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30196 rm -f conf$$ conf$$.exe conf$$.file
30197 if test -d conf$$.dir; then
30198 rm -f conf$$.dir/conf$$.file
30201 mkdir conf$$.dir 2>/dev/null
30203 if (echo >conf$$.file) 2>/dev/null; then
30204 if ln -s conf$$.file conf$$ 2>/dev/null; then
30206 # ... but there are two gotchas:
30207 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30208 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30209 # In both cases, we have to default to `cp -p'.
30210 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30212 elif ln conf$$.file conf$$ 2>/dev/null; then
30220 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30221 rmdir conf$$.dir 2>/dev/null
30223 if mkdir -p . 2>/dev/null; then
30226 test -d ./-p && rmdir ./-p
30230 if test -x / >/dev/null 2>&1; then
30231 as_test_x='test -x'
30233 if ls -dL / >/dev/null 2>&1; then
30240 if test -d "$1"; then
30246 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30247 ???[sx]*):;;*)false;;esac;fi
30251 as_executable_p=$as_test_x
30253 # Sed expression to map a string onto a valid CPP name.
30254 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30256 # Sed expression to map a string onto a valid variable name.
30257 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30262 # Save the log message, to keep $[0] and so on meaningful, and to
30263 # report actual input values of CONFIG_FILES etc. instead of their
30264 # values after options handling.
30266 This file was extended by PostgreSQL $as_me 9.2devel, which was
30267 generated by GNU Autoconf 2.63. Invocation command line was
30269 CONFIG_FILES = $CONFIG_FILES
30270 CONFIG_HEADERS = $CONFIG_HEADERS
30271 CONFIG_LINKS = $CONFIG_LINKS
30272 CONFIG_COMMANDS = $CONFIG_COMMANDS
30275 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30280 case $ac_config_files in *"
30281 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30284 case $ac_config_headers in *"
30285 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30290 # Files that config.status was made for.
30291 config_files="$ac_config_files"
30292 config_headers="$ac_config_headers"
30293 config_links="$ac_config_links"
30294 config_commands="$ac_config_commands"
30298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30300 \`$as_me' instantiates files from templates according to the
30301 current configuration.
30303 Usage: $0 [OPTION]... [FILE]...
30305 -h, --help print this help, then exit
30306 -V, --version print version number and configuration settings, then exit
30307 -q, --quiet, --silent
30308 do not print progress messages
30309 -d, --debug don't remove temporary files
30310 --recheck update $as_me by reconfiguring in the same conditions
30311 --file=FILE[:TEMPLATE]
30312 instantiate the configuration file FILE
30313 --header=FILE[:TEMPLATE]
30314 instantiate the configuration header FILE
30316 Configuration files:
30319 Configuration headers:
30322 Configuration links:
30325 Configuration commands:
30328 Report bugs to <bug-autoconf@gnu.org>."
30331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30333 PostgreSQL config.status 9.2devel
30334 configured by $0, generated by GNU Autoconf 2.63,
30335 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30337 Copyright (C) 2008 Free Software Foundation, Inc.
30338 This config.status script is free software; the Free Software Foundation
30339 gives unlimited permission to copy, distribute and modify it."
30345 test -n "\$AWK" || AWK=awk
30348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30349 # The default lists apply if the user does not specify any file.
30355 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30356 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30367 # Handling of the options.
30368 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30370 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30371 $as_echo "$ac_cs_version"; exit ;;
30372 --debug | --debu | --deb | --de | --d | -d )
30374 --file | --fil | --fi | --f )
30377 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30379 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30380 ac_need_defaults=false;;
30381 --header | --heade | --head | --hea )
30384 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30386 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30387 ac_need_defaults=false;;
30389 # Conflict between --help and --header
30390 { $as_echo "$as_me: error: ambiguous option: $1
30391 Try \`$0 --help' for more information." >&2
30392 { (exit 1); exit 1; }; };;
30393 --help | --hel | -h )
30394 $as_echo "$ac_cs_usage"; exit ;;
30395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30396 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30399 # This is an error.
30400 -*) { $as_echo "$as_me: error: unrecognized option: $1
30401 Try \`$0 --help' for more information." >&2
30402 { (exit 1); exit 1; }; } ;;
30404 *) ac_config_targets="$ac_config_targets $1"
30405 ac_need_defaults=false ;;
30411 ac_configure_extra_args=
30413 if $ac_cs_silent; then
30415 ac_configure_extra_args="$ac_configure_extra_args --silent"
30419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30420 if \$ac_cs_recheck; then
30421 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30423 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30424 CONFIG_SHELL='$SHELL'
30425 export CONFIG_SHELL
30430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30435 ## Running $as_me. ##
30441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30446 # Handling of arguments.
30447 for ac_config_target in $ac_config_targets
30449 case $ac_config_target in
30450 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30451 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30452 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30453 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30454 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30455 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30456 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30457 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30458 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30459 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30460 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30461 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30462 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30464 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30465 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30466 { (exit 1); exit 1; }; };;
30471 # If the user did not use the arguments to specify the items to instantiate,
30472 # then the envvar interface is used. Set only those that are not.
30473 # We use the long form for the default assignment because of an extremely
30474 # bizarre bug on SunOS 4.1.3.
30475 if $ac_need_defaults; then
30476 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30477 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30478 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30479 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30482 # Have a temporary directory for convenience. Make it in the build tree
30483 # simply because there is no reason against having it here, and in addition,
30484 # creating and moving files from /tmp can sometimes cause problems.
30485 # Hook for its removal unless debugging.
30486 # Note that there is a small window in which the directory will not be cleaned:
30487 # after its creation but before its name has been assigned to `$tmp'.
30491 trap 'exit_status=$?
30492 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30494 trap '{ (exit 1); exit 1; }' 1 2 13 15
30496 # Create a (secure) tmp directory for tmp files.
30499 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30500 test -n "$tmp" && test -d "$tmp"
30503 tmp=./conf$$-$RANDOM
30504 (umask 077 && mkdir "$tmp")
30507 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30508 { (exit 1); exit 1; }
30511 # Set up the scripts for CONFIG_FILES section.
30512 # No need to generate them if there are no CONFIG_FILES.
30513 # This happens for instance with `./config.status config.h'.
30514 if test -n "$CONFIG_FILES"; then
30518 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30519 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30522 ac_cs_awk_cr=$ac_cr
30525 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30530 echo "cat >conf$$subs.awk <<_ACEOF" &&
30531 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30533 } >conf$$subs.sh ||
30534 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30535 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30536 { (exit 1); exit 1; }; }
30537 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30539 for ac_last_try in false false false false false :; do
30540 . ./conf$$subs.sh ||
30541 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30542 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30543 { (exit 1); exit 1; }; }
30545 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30546 if test $ac_delim_n = $ac_delim_num; then
30548 elif $ac_last_try; then
30549 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30550 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30551 { (exit 1); exit 1; }; }
30553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30556 rm -f conf$$subs.sh
30558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30559 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30563 s/^/S["/; s/!.*/"]=/
30573 s/\(.\{148\}\).*/\1/
30575 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30580 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30587 s/\(.\{148\}\).*/\1/
30589 s/["\\]/\\&/g; s/^/"/; s/$/"/
30593 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30598 ' <conf$$subs.awk | sed '
30603 ' >>$CONFIG_STATUS || ac_write_fail=1
30604 rm -f conf$$subs.awk
30605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30607 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30608 for (key in S) S_is_set[key] = 1
30614 nfields = split(line, field, "@")
30616 len = length(field[1])
30617 for (i = 2; i < nfields; i++) {
30619 keylen = length(key)
30620 if (S_is_set[key]) {
30622 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30623 len += length(value) + length(field[++i])
30634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30635 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30636 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30639 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30640 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30641 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30642 { (exit 1); exit 1; }; }
30645 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30646 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30647 # trailing colons and then remove the whole line if VPATH becomes empty
30648 # (actually we leave an empty line to preserve line numbers).
30649 if test "x$srcdir" = x.; then
30650 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30651 s/:*\$(srcdir):*/:/
30652 s/:*\${srcdir}:*/:/
30654 s/^\([^=]*=[ ]*\):*/\1/
30660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30661 fi # test -n "$CONFIG_FILES"
30663 # Set up the scripts for CONFIG_HEADERS section.
30664 # No need to generate them if there are no CONFIG_HEADERS.
30665 # This happens for instance with `./config.status Makefile'.
30666 if test -n "$CONFIG_HEADERS"; then
30667 cat >"$tmp/defines.awk" <<\_ACAWK ||
30671 # Transform confdefs.h into an awk script `defines.awk', embedded as
30672 # here-document in config.status, that substitutes the proper values into
30673 # config.h.in to produce config.h.
30675 # Create a delimiter string that does not exist in confdefs.h, to ease
30676 # handling of long lines.
30678 for ac_last_try in false false :; do
30679 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30680 if test -z "$ac_t"; then
30682 elif $ac_last_try; then
30683 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30684 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30685 { (exit 1); exit 1; }; }
30687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30691 # For the awk script, D is an array of macro values keyed by name,
30692 # likewise P contains macro parameters if any. Preserve backslash
30693 # newline sequences.
30695 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30697 s/.\{148\}/&'"$ac_delim"'/g
30700 s/^[ ]*#[ ]*define[ ][ ]*/ /
30707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30709 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30713 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30714 D["\1"]=" \3\\\\\\n"\\/p
30716 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30721 s/.\{148\}/&'"$ac_delim"'/g
30726 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30729 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30731 ' <confdefs.h | sed '
30732 s/'"$ac_delim"'/"\\\
30733 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30736 for (key in D) D_is_set[key] = 1
30739 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30741 split(line, arg, " ")
30742 if (arg[1] == "#") {
30746 defundef = substr(arg[1], 2)
30749 split(mac1, mac2, "(") #)
30751 prefix = substr(line, 1, index(line, defundef) - 1)
30752 if (D_is_set[macro]) {
30753 # Preserve the white space surrounding the "#".
30754 print prefix "define", macro P[macro] D[macro]
30757 # Replace #undef with comments. This is necessary, for example,
30758 # in the case of _POSIX_SOURCE, which is predefined and required
30759 # on some systems where configure will not decide to define it.
30760 if (defundef == "undef") {
30761 print "/*", prefix defundef, macro, "*/"
30769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30770 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30771 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30772 { (exit 1); exit 1; }; }
30773 fi # test -n "$CONFIG_HEADERS"
30776 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30781 :[FHLC]) ac_mode=$ac_tag; continue;;
30783 case $ac_mode$ac_tag in
30785 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30786 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30787 { (exit 1); exit 1; }; };;
30788 :[FH]-) ac_tag=-:-;;
30789 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30806 -) ac_f="$tmp/stdin";;
30807 *) # Look for the file first in the build tree, then in the source tree
30808 # (if the path is not absolute). The absolute path cannot be DOS-style,
30809 # because $ac_f cannot contain `:'.
30813 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30815 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30816 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30817 { (exit 1); exit 1; }; };;
30819 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30820 ac_file_inputs="$ac_file_inputs '$ac_f'"
30823 # Let's still pretend it is `configure' which instantiates (i.e., don't
30824 # use $as_me), people would be surprised to read:
30825 # /* config.h. Generated by config.status. */
30826 configure_input='Generated from '`
30827 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30829 if test x"$ac_file" != x-; then
30830 configure_input="$ac_file. $configure_input"
30831 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30832 $as_echo "$as_me: creating $ac_file" >&6;}
30834 # Neutralize special characters interpreted by sed in replacement strings.
30835 case $configure_input in #(
30836 *\&* | *\|* | *\\* )
30837 ac_sed_conf_input=`$as_echo "$configure_input" |
30838 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30839 *) ac_sed_conf_input=$configure_input;;
30843 *:-:* | *:-) cat >"$tmp/stdin" \
30844 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30845 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30846 { (exit 1); exit 1; }; } ;;
30851 ac_dir=`$as_dirname -- "$ac_file" ||
30852 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30853 X"$ac_file" : 'X\(//\)[^/]' \| \
30854 X"$ac_file" : 'X\(//\)$' \| \
30855 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30856 $as_echo X"$ac_file" |
30857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30861 /^X\(\/\/\)[^/].*/{
30876 -*) as_dir=./$as_dir;;
30878 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30882 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30883 *) as_qdir=$as_dir;;
30885 as_dirs="'$as_qdir' $as_dirs"
30886 as_dir=`$as_dirname -- "$as_dir" ||
30887 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30888 X"$as_dir" : 'X\(//\)[^/]' \| \
30889 X"$as_dir" : 'X\(//\)$' \| \
30890 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30891 $as_echo X"$as_dir" |
30892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30896 /^X\(\/\/\)[^/].*/{
30909 test -d "$as_dir" && break
30911 test -z "$as_dirs" || eval "mkdir $as_dirs"
30912 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30913 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30914 { (exit 1); exit 1; }; }; }
30918 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30920 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30921 # A ".." for each directory in $ac_dir_suffix.
30922 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30923 case $ac_top_builddir_sub in
30924 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30925 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30928 ac_abs_top_builddir=$ac_pwd
30929 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30930 # for backward compatibility:
30931 ac_top_builddir=$ac_top_build_prefix
30934 .) # We are building in place.
30936 ac_top_srcdir=$ac_top_builddir_sub
30937 ac_abs_top_srcdir=$ac_pwd ;;
30938 [\\/]* | ?:[\\/]* ) # Absolute name.
30939 ac_srcdir=$srcdir$ac_dir_suffix;
30940 ac_top_srcdir=$srcdir
30941 ac_abs_top_srcdir=$srcdir ;;
30942 *) # Relative name.
30943 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30944 ac_top_srcdir=$ac_top_build_prefix$srcdir
30945 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30947 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30956 ac_MKDIR_P=$MKDIR_P
30958 [\\/$]* | ?:[\\/]* ) ;;
30959 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30964 # If the template does not know about datarootdir, expand it.
30965 # FIXME: This hack should be removed a few years after 2.60.
30966 ac_datarootdir_hack=; ac_datarootdir_seen=
30979 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30980 *datarootdir*) ac_datarootdir_seen=yes;;
30981 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30982 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30983 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30986 ac_datarootdir_hack='
30987 s&@datadir@&$datadir&g
30988 s&@docdir@&$docdir&g
30989 s&@infodir@&$infodir&g
30990 s&@localedir@&$localedir&g
30991 s&@mandir@&$mandir&g
30992 s&\\\${datarootdir}&$datarootdir&g' ;;
30996 # Neutralize VPATH when `$srcdir' = `.'.
30997 # Shell code in configure.ac might set extrasub.
30998 # FIXME: do we really want to maintain this feature?
30999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31000 ac_sed_extra="$ac_vpsub
31003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31006 s|@configure_input@|$ac_sed_conf_input|;t t
31007 s&@top_builddir@&$ac_top_builddir_sub&;t t
31008 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31009 s&@srcdir@&$ac_srcdir&;t t
31010 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31011 s&@top_srcdir@&$ac_top_srcdir&;t t
31012 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31013 s&@builddir@&$ac_builddir&;t t
31014 s&@abs_builddir@&$ac_abs_builddir&;t t
31015 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31016 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31017 $ac_datarootdir_hack
31019 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31020 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31021 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31022 { (exit 1); exit 1; }; }
31024 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31025 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31026 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31027 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31028 which seems to be undefined. Please make sure it is defined." >&5
31029 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31030 which seems to be undefined. Please make sure it is defined." >&2;}
31034 -) cat "$tmp/out" && rm -f "$tmp/out";;
31035 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31037 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31038 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31039 { (exit 1); exit 1; }; }
31045 if test x"$ac_file" != x-; then
31047 $as_echo "/* $configure_input */" \
31048 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31049 } >"$tmp/config.h" \
31050 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31051 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31052 { (exit 1); exit 1; }; }
31053 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31054 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31055 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31058 mv "$tmp/config.h" "$ac_file" \
31059 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31060 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31061 { (exit 1); exit 1; }; }
31064 $as_echo "/* $configure_input */" \
31065 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31066 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31067 $as_echo "$as_me: error: could not create -" >&2;}
31068 { (exit 1); exit 1; }; }
31076 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31079 # Prefer the file from the source tree if names are identical.
31080 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31081 ac_source=$srcdir/$ac_source
31084 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31085 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31087 if test ! -r "$ac_source"; then
31088 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31089 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31090 { (exit 1); exit 1; }; }
31094 # Try a relative symlink, then a hard link, then a copy.
31096 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31097 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31099 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31100 ln "$ac_source" "$ac_file" 2>/dev/null ||
31101 cp -p "$ac_source" "$ac_file" ||
31102 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31103 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31104 { (exit 1); exit 1; }; }
31107 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31108 $as_echo "$as_me: executing $ac_file commands" >&6;}
31113 case $ac_file$ac_mode in
31114 "check_win32_symlinks":C)
31115 # Links sometimes fail undetected on Mingw -
31116 # so here we detect it and warn the user
31117 for FILE in $CONFIG_LINKS
31119 # test -e works for symlinks in the MinGW console
31120 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31121 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31124 "src/include/pg_config.h":H)
31125 # Update timestamp for pg_config.h (see Makefile.global)
31126 echo >src/include/stamp-h
31128 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31134 { (exit 0); exit 0; }
31136 chmod +x $CONFIG_STATUS
31137 ac_clean_files=$ac_clean_files_save
31139 test $ac_write_fail = 0 ||
31140 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31141 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31142 { (exit 1); exit 1; }; }
31145 # configure is writing to config.log, and then calls config.status.
31146 # config.status does its own redirection, appending to config.log.
31147 # Unfortunately, on DOS this fails, as config.log is still kept open
31148 # by configure, so config.status won't be able to write to it; its
31149 # output is simply discarded. So we exec the FD to /dev/null,
31150 # effectively closing config.log, so it can be properly (re)opened and
31151 # appended to by config.status. When coming back to configure, we
31152 # need to make the FD available again.
31153 if test "$no_create" != yes; then
31155 ac_config_status_args=
31156 test "$silent" = yes &&
31157 ac_config_status_args="$ac_config_status_args --quiet"
31159 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31161 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31162 # would make configure fail if this is the last instruction.
31163 $ac_cs_success || { (exit 1); exit 1; }
31165 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31166 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31167 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}