2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.1beta1.
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.1beta1'
602 PACKAGE_STRING='PostgreSQL 9.1beta1'
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.1beta1 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.1beta1:";;
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.1beta1
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.1beta1, 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 cat >conftest.$ac_ext <<_ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4035 $as_echo "$ac_try_echo") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4038 grep -v '^ *+' conftest.er1 >conftest.err
4040 cat conftest.err >&5
4041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } && {
4043 test -z "$ac_c_werror_flag" ||
4044 test ! -s conftest.err
4045 } && test -s conftest.$ac_objext; then
4046 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4048 $as_echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 CFLAGS="$pgac_save_CFLAGS"
4057 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4058 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4059 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4060 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4063 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4064 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4065 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4066 $as_echo_n "(cached) " >&6
4068 pgac_save_CFLAGS=$CFLAGS
4069 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4070 cat >conftest.$ac_ext <<_ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4085 rm -f conftest.$ac_objext
4086 if { (ac_try="$ac_compile"
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4092 $as_echo "$ac_try_echo") >&5
4093 (eval "$ac_compile") 2>conftest.er1
4095 grep -v '^ *+' conftest.er1 >conftest.err
4097 cat conftest.err >&5
4098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } && {
4100 test -z "$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4102 } && test -s conftest.$ac_objext; then
4103 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4105 $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 pgac_cv_prog_cc_cflags__Wendif_labels=no
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 CFLAGS="$pgac_save_CFLAGS"
4114 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4115 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4116 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4117 CFLAGS="$CFLAGS -Wendif-labels"
4120 # This was included in -Wall/-Wformat in older GCC versions
4121 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4122 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4123 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4124 $as_echo_n "(cached) " >&6
4126 pgac_save_CFLAGS=$CFLAGS
4127 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4143 rm -f conftest.$ac_objext
4144 if { (ac_try="$ac_compile"
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4150 $as_echo "$ac_try_echo") >&5
4151 (eval "$ac_compile") 2>conftest.er1
4153 grep -v '^ *+' conftest.er1 >conftest.err
4155 cat conftest.err >&5
4156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } && {
4158 test -z "$ac_c_werror_flag" ||
4159 test ! -s conftest.err
4160 } && test -s conftest.$ac_objext; then
4161 pgac_cv_prog_cc_cflags__Wformat_security=yes
4163 $as_echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 pgac_cv_prog_cc_cflags__Wformat_security=no
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 CFLAGS="$pgac_save_CFLAGS"
4172 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4173 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4174 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4175 CFLAGS="$CFLAGS -Wformat-security"
4178 # Disable strict-aliasing rules; needed for gcc 3.3+
4179 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4180 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4181 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4182 $as_echo_n "(cached) " >&6
4184 pgac_save_CFLAGS=$CFLAGS
4185 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4201 rm -f conftest.$ac_objext
4202 if { (ac_try="$ac_compile"
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4208 $as_echo "$ac_try_echo") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && {
4216 test -z "$ac_c_werror_flag" ||
4217 test ! -s conftest.err
4218 } && test -s conftest.$ac_objext; then
4219 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4221 $as_echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 CFLAGS="$pgac_save_CFLAGS"
4230 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4231 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4232 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4233 CFLAGS="$CFLAGS -fno-strict-aliasing"
4236 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4237 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4238 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4239 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4240 $as_echo_n "(cached) " >&6
4242 pgac_save_CFLAGS=$CFLAGS
4243 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4259 rm -f conftest.$ac_objext
4260 if { (ac_try="$ac_compile"
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4266 $as_echo "$ac_try_echo") >&5
4267 (eval "$ac_compile") 2>conftest.er1
4269 grep -v '^ *+' conftest.er1 >conftest.err
4271 cat conftest.err >&5
4272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } && {
4274 test -z "$ac_c_werror_flag" ||
4275 test ! -s conftest.err
4276 } && test -s conftest.$ac_objext; then
4277 pgac_cv_prog_cc_cflags__fwrapv=yes
4279 $as_echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 pgac_cv_prog_cc_cflags__fwrapv=no
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 CFLAGS="$pgac_save_CFLAGS"
4288 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4289 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4290 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4291 CFLAGS="$CFLAGS -fwrapv"
4294 elif test "$ICC" = yes; then
4295 # Intel's compiler has a bug/misoptimization in checking for
4296 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4297 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4298 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4299 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4300 $as_echo_n "(cached) " >&6
4302 pgac_save_CFLAGS=$CFLAGS
4303 CFLAGS="$pgac_save_CFLAGS -mp1"
4304 cat >conftest.$ac_ext <<_ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4319 rm -f conftest.$ac_objext
4320 if { (ac_try="$ac_compile"
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4326 $as_echo "$ac_try_echo") >&5
4327 (eval "$ac_compile") 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && {
4334 test -z "$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4336 } && test -s conftest.$ac_objext; then
4337 pgac_cv_prog_cc_cflags__mp1=yes
4339 $as_echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 pgac_cv_prog_cc_cflags__mp1=no
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 CFLAGS="$pgac_save_CFLAGS"
4348 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4349 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4350 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4351 CFLAGS="$CFLAGS -mp1"
4354 # Make sure strict aliasing is off (though this is said to be the default)
4355 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4356 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4357 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4358 $as_echo_n "(cached) " >&6
4360 pgac_save_CFLAGS=$CFLAGS
4361 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4377 rm -f conftest.$ac_objext
4378 if { (ac_try="$ac_compile"
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4384 $as_echo "$ac_try_echo") >&5
4385 (eval "$ac_compile") 2>conftest.er1
4387 grep -v '^ *+' conftest.er1 >conftest.err
4389 cat conftest.err >&5
4390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } && {
4392 test -z "$ac_c_werror_flag" ||
4393 test ! -s conftest.err
4394 } && test -s conftest.$ac_objext; then
4395 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4397 $as_echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 CFLAGS="$pgac_save_CFLAGS"
4406 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4407 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4408 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4409 CFLAGS="$CFLAGS -fno-strict-aliasing"
4412 elif test "$PORTNAME" = "aix"; then
4413 # AIX's xlc has to have strict aliasing turned off too
4414 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4415 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4416 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4417 $as_echo_n "(cached) " >&6
4419 pgac_save_CFLAGS=$CFLAGS
4420 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4421 cat >conftest.$ac_ext <<_ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4436 rm -f conftest.$ac_objext
4437 if { (ac_try="$ac_compile"
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4443 $as_echo "$ac_try_echo") >&5
4444 (eval "$ac_compile") 2>conftest.er1
4446 grep -v '^ *+' conftest.er1 >conftest.err
4448 cat conftest.err >&5
4449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } && {
4451 test -z "$ac_c_werror_flag" ||
4452 test ! -s conftest.err
4453 } && test -s conftest.$ac_objext; then
4454 pgac_cv_prog_cc_cflags__qnoansialias=yes
4456 $as_echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 pgac_cv_prog_cc_cflags__qnoansialias=no
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 CFLAGS="$pgac_save_CFLAGS"
4465 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4466 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4467 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4468 CFLAGS="$CFLAGS -qnoansialias"
4473 # supply -g if --enable-debug
4474 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4478 # enable code coverage if --enable-coverage
4479 if test "$enable_coverage" = yes; then
4480 if test "$GCC" = yes; then
4481 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4483 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4484 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4485 { (exit 1); exit 1; }; }
4489 # enable profiling if --enable-profiling
4490 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4491 if test "$GCC" = yes; then
4493 cat >>confdefs.h <<\_ACEOF
4494 #define PROFILE_PID_DIR 1
4497 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4499 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4500 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4501 { (exit 1); exit 1; }; }
4505 # We already have this in Makefile.win32, but configure needs it too
4506 if test "$PORTNAME" = "win32"; then
4507 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4510 # Check if the compiler still works with the template settings
4511 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4512 $as_echo_n "checking whether the C compiler still works... " >&6; }
4513 cat >conftest.$ac_ext <<_ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4528 rm -f conftest.$ac_objext conftest$ac_exeext
4529 if { (ac_try="$ac_link"
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4535 $as_echo "$ac_try_echo") >&5
4536 (eval "$ac_link") 2>conftest.er1
4538 grep -v '^ *+' conftest.er1 >conftest.err
4540 cat conftest.err >&5
4541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } && {
4543 test -z "$ac_c_werror_flag" ||
4544 test ! -s conftest.err
4545 } && test -s conftest$ac_exeext && {
4546 test "$cross_compiling" = yes ||
4547 $as_test_x conftest$ac_exeext
4549 { $as_echo "$as_me:$LINENO: result: yes" >&5
4550 $as_echo "yes" >&6; }
4552 $as_echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4557 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4558 $as_echo "$as_me: error: cannot proceed" >&2;}
4559 { (exit 1); exit 1; }; }
4562 rm -rf conftest.dSYM
4563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4564 conftest$ac_exeext conftest.$ac_ext
4566 # Defend against gcc -ffast-math
4567 if test "$GCC" = yes; then
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4578 #ifdef __FAST_MATH__
4585 rm -f conftest.$ac_objext
4586 if { (ac_try="$ac_compile"
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4592 $as_echo "$ac_try_echo") >&5
4593 (eval "$ac_compile") 2>conftest.er1
4595 grep -v '^ *+' conftest.er1 >conftest.err
4597 cat conftest.err >&5
4598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } && {
4600 test -z "$ac_c_werror_flag" ||
4601 test ! -s conftest.err
4602 } && test -s conftest.$ac_objext; then
4605 $as_echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4608 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4609 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4610 { (exit 1); exit 1; }; }
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 ac_cpp='$CPP $CPPFLAGS'
4618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4621 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4622 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4623 # On Suns, sometimes $CPP names a directory.
4624 if test -n "$CPP" && test -d "$CPP"; then
4627 if test -z "$CPP"; then
4628 if test "${ac_cv_prog_CPP+set}" = set; then
4629 $as_echo_n "(cached) " >&6
4631 # Double quotes because CPP needs to be expanded
4632 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4635 for ac_c_preproc_warn_flag in '' yes
4637 # Use a header file that comes with gcc, so configuring glibc
4638 # with a fresh cross-compiler works.
4639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4640 # <limits.h> exists even on freestanding compilers.
4641 # On the NeXT, cc -E runs the code through the compiler's parser,
4642 # not just through cpp. "Syntax error" is here to catch this case.
4643 cat >conftest.$ac_ext <<_ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4650 # include <limits.h>
4652 # include <assert.h>
4656 if { (ac_try="$ac_cpp conftest.$ac_ext"
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4662 $as_echo "$ac_try_echo") >&5
4663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4665 grep -v '^ *+' conftest.er1 >conftest.err
4667 cat conftest.err >&5
4668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } >/dev/null && {
4670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4671 test ! -s conftest.err
4675 $as_echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 # Broken: fails on valid input.
4682 rm -f conftest.err conftest.$ac_ext
4684 # OK, works on sane cases. Now check whether nonexistent headers
4685 # can be detected and how.
4686 cat >conftest.$ac_ext <<_ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 #include <ac_nonexistent.h>
4694 if { (ac_try="$ac_cpp conftest.$ac_ext"
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4700 $as_echo "$ac_try_echo") >&5
4701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4703 grep -v '^ *+' conftest.er1 >conftest.err
4705 cat conftest.err >&5
4706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev/null && {
4708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4709 test ! -s conftest.err
4711 # Broken: success on invalid input.
4714 $as_echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 # Passes both tests.
4722 rm -f conftest.err conftest.$ac_ext
4725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4726 rm -f conftest.err conftest.$ac_ext
4727 if $ac_preproc_ok; then
4739 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4740 $as_echo "$CPP" >&6; }
4742 for ac_c_preproc_warn_flag in '' yes
4744 # Use a header file that comes with gcc, so configuring glibc
4745 # with a fresh cross-compiler works.
4746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4747 # <limits.h> exists even on freestanding compilers.
4748 # On the NeXT, cc -E runs the code through the compiler's parser,
4749 # not just through cpp. "Syntax error" is here to catch this case.
4750 cat >conftest.$ac_ext <<_ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4757 # include <limits.h>
4759 # include <assert.h>
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4769 $as_echo "$ac_try_echo") >&5
4770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4772 grep -v '^ *+' conftest.er1 >conftest.err
4774 cat conftest.err >&5
4775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } >/dev/null && {
4777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4778 test ! -s conftest.err
4782 $as_echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 # Broken: fails on valid input.
4789 rm -f conftest.err conftest.$ac_ext
4791 # OK, works on sane cases. Now check whether nonexistent headers
4792 # can be detected and how.
4793 cat >conftest.$ac_ext <<_ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 #include <ac_nonexistent.h>
4801 if { (ac_try="$ac_cpp conftest.$ac_ext"
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4807 $as_echo "$ac_try_echo") >&5
4808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4810 grep -v '^ *+' conftest.er1 >conftest.err
4812 cat conftest.err >&5
4813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } >/dev/null && {
4815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4818 # Broken: success on invalid input.
4821 $as_echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4824 # Passes both tests.
4829 rm -f conftest.err conftest.$ac_ext
4832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4833 rm -f conftest.err conftest.$ac_ext
4834 if $ac_preproc_ok; then
4837 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4839 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4840 See \`config.log' for more details." >&5
4841 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4842 See \`config.log' for more details." >&2;}
4843 { (exit 1); exit 1; }; }; }
4847 ac_cpp='$CPP $CPPFLAGS'
4848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856 # Set up TAS assembly code if needed; the template file has now had its
4857 # chance to request this.
4859 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4862 if test "$need_tas" = yes ; then
4871 # Automatic dependency tracking
4875 # Check whether --enable-depend was given.
4876 if test "${enable_depend+set}" = set; then
4877 enableval=$enable_depend;
4886 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4887 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4888 { (exit 1); exit 1; }; }
4902 # Enable assert checks
4906 # Check whether --enable-cassert was given.
4907 if test "${enable_cassert+set}" = set; then
4908 enableval=$enable_cassert;
4912 cat >>confdefs.h <<\_ACEOF
4913 #define USE_ASSERT_CHECKING 1
4921 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4922 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4923 { (exit 1); exit 1; }; }
4936 # Include directories
4939 IFS="${IFS}${PATH_SEPARATOR}"
4940 # SRCH_INC comes from the template file
4941 for dir in $with_includes $SRCH_INC; do
4942 if test -d "$dir"; then
4943 INCLUDES="$INCLUDES -I$dir"
4945 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4946 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4954 # Library directories
4957 IFS="${IFS}${PATH_SEPARATOR}"
4958 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4959 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4960 if test -d "$dir"; then
4961 LIBDIRS="$LIBDIRS -L$dir"
4963 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4964 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4970 # Enable thread-safe client libraries
4972 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4973 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4976 # Check whether --enable-thread-safety was given.
4977 if test "${enable_thread_safety+set}" = set; then
4978 enableval=$enable_thread_safety;
4987 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4988 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4989 { (exit 1); exit 1; }; }
4994 enable_thread_safety=yes
4999 if test "$enable_thread_safety" = yes; then
5001 cat >>confdefs.h <<\_ACEOF
5002 #define ENABLE_THREAD_SAFETY 1
5006 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5007 $as_echo "$enable_thread_safety" >&6; }
5011 # Optionally build Tcl modules (PL/Tcl)
5013 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5014 $as_echo_n "checking whether to build with Tcl... " >&6; }
5018 # Check whether --with-tcl was given.
5019 if test "${with_tcl+set}" = set; then
5029 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5030 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5031 { (exit 1); exit 1; }; }
5041 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5042 $as_echo "$with_tcl" >&6; }
5045 # We see if the path to the Tcl/Tk configuration scripts is specified.
5046 # This will override the use of tclsh to find the paths to search.
5051 # Check whether --with-tclconfig was given.
5052 if test "${with_tclconfig+set}" = set; then
5053 withval=$with_tclconfig;
5056 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5057 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5058 { (exit 1); exit 1; }; }
5061 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5062 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5063 { (exit 1); exit 1; }; }
5075 # Optionally build Perl modules (PL/Perl)
5077 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5078 $as_echo_n "checking whether to build Perl modules... " >&6; }
5082 # Check whether --with-perl was given.
5083 if test "${with_perl+set}" = set; then
5093 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5094 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5095 { (exit 1); exit 1; }; }
5105 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5106 $as_echo "$with_perl" >&6; }
5110 # Optionally build Python modules (PL/Python)
5112 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5113 $as_echo_n "checking whether to build Python modules... " >&6; }
5117 # Check whether --with-python was given.
5118 if test "${with_python+set}" = set; then
5119 withval=$with_python;
5128 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5129 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5130 { (exit 1); exit 1; }; }
5140 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5141 $as_echo "$with_python" >&6; }
5147 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5148 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5152 # Check whether --with-gssapi was given.
5153 if test "${with_gssapi+set}" = set; then
5154 withval=$with_gssapi;
5159 cat >>confdefs.h <<\_ACEOF
5160 #define ENABLE_GSS 1
5163 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5170 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5171 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5172 { (exit 1); exit 1; }; }
5182 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5183 $as_echo "$with_gssapi" >&6; }
5189 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5190 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5194 # Check whether --with-krb5 was given.
5195 if test "${with_krb5+set}" = set; then
5201 cat >>confdefs.h <<\_ACEOF
5205 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5212 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5213 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5214 { (exit 1); exit 1; }; }
5224 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5225 $as_echo "$with_krb5" >&6; }
5233 # Kerberos configuration parameters
5238 # Check whether --with-krb-srvnam was given.
5239 if test "${with_krb_srvnam+set}" = set; then
5240 withval=$with_krb_srvnam;
5243 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5244 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5245 { (exit 1); exit 1; }; }
5248 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5249 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5250 { (exit 1); exit 1; }; }
5258 with_krb_srvnam="postgres"
5263 cat >>confdefs.h <<_ACEOF
5264 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5272 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5273 $as_echo_n "checking whether to build with PAM support... " >&6; }
5277 # Check whether --with-pam was given.
5278 if test "${with_pam+set}" = set; then
5283 cat >>confdefs.h <<\_ACEOF
5292 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5293 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5294 { (exit 1); exit 1; }; }
5304 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5305 $as_echo "$with_pam" >&6; }
5312 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5313 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5317 # Check whether --with-ldap was given.
5318 if test "${with_ldap+set}" = set; then
5323 cat >>confdefs.h <<\_ACEOF
5332 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5333 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5334 { (exit 1); exit 1; }; }
5344 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5345 $as_echo "$with_ldap" >&6; }
5352 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5353 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5357 # Check whether --with-bonjour was given.
5358 if test "${with_bonjour+set}" = set; then
5359 withval=$with_bonjour;
5363 cat >>confdefs.h <<\_ACEOF
5364 #define USE_BONJOUR 1
5372 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5373 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5374 { (exit 1); exit 1; }; }
5384 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5385 $as_echo "$with_bonjour" >&6; }
5392 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5393 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5397 # Check whether --with-openssl was given.
5398 if test "${with_openssl+set}" = set; then
5399 withval=$with_openssl;
5403 cat >>confdefs.h <<\_ACEOF
5412 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5413 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5414 { (exit 1); exit 1; }; }
5424 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5425 $as_echo "$with_openssl" >&6; }
5431 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5432 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5436 # Check whether --with-selinux was given.
5437 if test "${with_selinux+set}" = set; then
5438 withval=$with_selinux;
5447 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5448 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5449 { (exit 1); exit 1; }; }
5460 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5461 $as_echo "$with_selinux" >&6; }
5469 # Check whether --with-readline was given.
5470 if test "${with_readline+set}" = set; then
5471 withval=$with_readline;
5480 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5481 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5482 { (exit 1); exit 1; }; }
5492 # readline on MinGW has problems with backslashes in psql and other bugs.
5493 # This is particularly a problem with non-US code pages.
5494 # Therefore disable its use until we understand the cause. 2004-07-20
5495 if test "$PORTNAME" = "win32"; then
5496 if test "$with_readline" = yes; then
5497 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5498 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5510 # Check whether --with-libedit-preferred was given.
5511 if test "${with_libedit_preferred+set}" = set; then
5512 withval=$with_libedit_preferred;
5521 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5522 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5523 { (exit 1); exit 1; }; }
5528 with_libedit_preferred=no
5541 # Check whether --with-ossp-uuid was given.
5542 if test "${with_ossp_uuid+set}" = set; then
5543 withval=$with_ossp_uuid;
5552 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5553 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5554 { (exit 1); exit 1; }; }
5573 # Check whether --with-libxml was given.
5574 if test "${with_libxml+set}" = set; then
5575 withval=$with_libxml;
5579 cat >>confdefs.h <<\_ACEOF
5580 #define USE_LIBXML 1
5588 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5589 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5590 { (exit 1); exit 1; }; }
5601 if test "$with_libxml" = yes ; then
5602 for ac_prog in xml2-config
5604 # Extract the first word of "$ac_prog", so it can be a program name with args.
5605 set dummy $ac_prog; ac_word=$2
5606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5609 $as_echo_n "(cached) " >&6
5611 if test -n "$XML2_CONFIG"; then
5612 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_prog_XML2_CONFIG="$ac_prog"
5622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5632 if test -n "$XML2_CONFIG"; then
5633 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5634 $as_echo "$XML2_CONFIG" >&6; }
5636 { $as_echo "$as_me:$LINENO: result: no" >&5
5637 $as_echo "no" >&6; }
5641 test -n "$XML2_CONFIG" && break
5644 if test -n "$XML2_CONFIG"; then
5645 for pgac_option in `$XML2_CONFIG --cflags`; do
5646 case $pgac_option in
5647 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5650 for pgac_option in `$XML2_CONFIG --libs`; do
5651 case $pgac_option in
5652 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5666 # Check whether --with-libxslt was given.
5667 if test "${with_libxslt+set}" = set; then
5668 withval=$with_libxslt;
5672 cat >>confdefs.h <<\_ACEOF
5673 #define USE_LIBXSLT 1
5681 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5682 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5683 { (exit 1); exit 1; }; }
5703 # Check whether --with-system-tzdata was given.
5704 if test "${with_system_tzdata+set}" = set; then
5705 withval=$with_system_tzdata;
5708 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5709 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5710 { (exit 1); exit 1; }; }
5713 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5714 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5715 { (exit 1); exit 1; }; }
5733 # Check whether --with-zlib was given.
5734 if test "${with_zlib+set}" = set; then
5744 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5745 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5746 { (exit 1); exit 1; }; }
5762 # Assume system is ELF if it predefines __ELF__ as 1,
5763 # otherwise believe host_os based default.
5765 freebsd1*|freebsd2*) elf=no;;
5766 freebsd3*|freebsd4*) elf=yes;;
5770 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5771 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5772 if test "${ac_cv_path_GREP+set}" = set; then
5773 $as_echo_n "(cached) " >&6
5775 if test -z "$GREP"; then
5776 ac_path_GREP_found=false
5777 # Loop through the user's path and test for each of PROGNAME-LIST
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5782 test -z "$as_dir" && as_dir=.
5783 for ac_prog in grep ggrep; do
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5786 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5787 # Check for GNU ac_path_GREP and select it if it is found.
5788 # Check for GNU $ac_path_GREP
5789 case `"$ac_path_GREP" --version 2>&1` in
5791 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5794 $as_echo_n 0123456789 >"conftest.in"
5797 cat "conftest.in" "conftest.in" >"conftest.tmp"
5798 mv "conftest.tmp" "conftest.in"
5799 cp "conftest.in" "conftest.nl"
5800 $as_echo 'GREP' >> "conftest.nl"
5801 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5803 ac_count=`expr $ac_count + 1`
5804 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5805 # Best one so far, save it but keep looking for a better one
5806 ac_cv_path_GREP="$ac_path_GREP"
5807 ac_path_GREP_max=$ac_count
5809 # 10*(2^10) chars as input seems more than enough
5810 test $ac_count -gt 10 && break
5812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5815 $ac_path_GREP_found && break 3
5820 if test -z "$ac_cv_path_GREP"; then
5821 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5822 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5823 { (exit 1); exit 1; }; }
5826 ac_cv_path_GREP=$GREP
5830 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5831 $as_echo "$ac_cv_path_GREP" >&6; }
5832 GREP="$ac_cv_path_GREP"
5835 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5836 $as_echo_n "checking for egrep... " >&6; }
5837 if test "${ac_cv_path_EGREP+set}" = set; then
5838 $as_echo_n "(cached) " >&6
5840 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5841 then ac_cv_path_EGREP="$GREP -E"
5843 if test -z "$EGREP"; then
5844 ac_path_EGREP_found=false
5845 # Loop through the user's path and test for each of PROGNAME-LIST
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5850 test -z "$as_dir" && as_dir=.
5851 for ac_prog in egrep; do
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5854 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5855 # Check for GNU ac_path_EGREP and select it if it is found.
5856 # Check for GNU $ac_path_EGREP
5857 case `"$ac_path_EGREP" --version 2>&1` in
5859 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5862 $as_echo_n 0123456789 >"conftest.in"
5865 cat "conftest.in" "conftest.in" >"conftest.tmp"
5866 mv "conftest.tmp" "conftest.in"
5867 cp "conftest.in" "conftest.nl"
5868 $as_echo 'EGREP' >> "conftest.nl"
5869 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5871 ac_count=`expr $ac_count + 1`
5872 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5873 # Best one so far, save it but keep looking for a better one
5874 ac_cv_path_EGREP="$ac_path_EGREP"
5875 ac_path_EGREP_max=$ac_count
5877 # 10*(2^10) chars as input seems more than enough
5878 test $ac_count -gt 10 && break
5880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5883 $ac_path_EGREP_found && break 3
5888 if test -z "$ac_cv_path_EGREP"; then
5889 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5890 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5891 { (exit 1); exit 1; }; }
5894 ac_cv_path_EGREP=$EGREP
5899 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5900 $as_echo "$ac_cv_path_EGREP" >&6; }
5901 EGREP="$ac_cv_path_EGREP"
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5916 $EGREP "yes" >/dev/null 2>&1; then
5919 if test "X$elf" = "Xyes" ; then
5933 CPPFLAGS="$CPPFLAGS $INCLUDES"
5934 LDFLAGS="$LDFLAGS $LIBDIRS"
5940 # Check whether --with-gnu-ld was given.
5941 if test "${with_gnu_ld+set}" = set; then
5942 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5948 if test "$GCC" = yes; then
5949 # Check if gcc -print-prog-name=ld gives a path.
5950 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5951 $as_echo_n "checking for ld used by GCC... " >&6; }
5954 # gcc leaves a trailing carriage return which upsets mingw
5955 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5957 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5960 # Accept absolute paths.
5961 [\\/]* | [A-Za-z]:[\\/]*)
5962 re_direlt='/[^/][^/]*/\.\./'
5963 # Canonicalize the path of ld
5964 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5965 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5966 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5968 test -z "$LD" && LD="$ac_prog"
5971 # If it fails, then pretend we aren't using GCC.
5975 # If it is relative, then search for the first ld in PATH.
5979 elif test "$with_gnu_ld" = yes; then
5980 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5981 $as_echo_n "checking for GNU ld... " >&6; }
5983 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5984 $as_echo_n "checking for non-GNU ld... " >&6; }
5986 if test "${ac_cv_path_LD+set}" = set; then
5987 $as_echo_n "(cached) " >&6
5989 if test -z "$LD"; then
5990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5991 for ac_dir in $PATH; do
5992 test -z "$ac_dir" && ac_dir=.
5993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5994 ac_cv_path_LD="$ac_dir/$ac_prog"
5995 # Check to see if the program is GNU ld. I'd rather use --version,
5996 # but apparently some GNU ld's only accept -v.
5997 # Break only if it was the GNU/non-GNU ld that we prefer.
5998 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5999 test "$with_gnu_ld" != no && break
6001 test "$with_gnu_ld" != yes && break
6007 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6012 if test -n "$LD"; then
6013 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6014 $as_echo "$LD" >&6; }
6016 { $as_echo "$as_me:$LINENO: result: no" >&5
6017 $as_echo "no" >&6; }
6019 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6020 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6021 { (exit 1); exit 1; }; }
6022 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6023 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6024 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6025 $as_echo_n "(cached) " >&6
6027 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6028 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6029 ac_cv_prog_gnu_ld=yes
6031 ac_cv_prog_gnu_ld=no
6034 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6035 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6036 with_gnu_ld=$ac_cv_prog_gnu_ld
6041 case $host_os in sysv5*)
6042 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6043 $as_echo_n "checking whether ld -R works... " >&6; }
6044 if test "${pgac_cv_prog_ld_R+set}" = set; then
6045 $as_echo_n "(cached) " >&6
6048 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6049 cat >conftest.$ac_ext <<_ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6064 rm -f conftest.$ac_objext conftest$ac_exeext
6065 if { (ac_try="$ac_link"
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6071 $as_echo "$ac_try_echo") >&5
6072 (eval "$ac_link") 2>conftest.er1
6074 grep -v '^ *+' conftest.er1 >conftest.err
6076 cat conftest.err >&5
6077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && {
6079 test -z "$ac_c_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest$ac_exeext && {
6082 test "$cross_compiling" = yes ||
6083 $as_test_x conftest$ac_exeext
6085 pgac_cv_prog_ld_R=yes
6087 $as_echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 pgac_cv_prog_ld_R=no
6093 rm -rf conftest.dSYM
6094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6095 conftest$ac_exeext conftest.$ac_ext
6096 LDFLAGS=$pgac_save_LDFLAGS
6099 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6100 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6101 ld_R_works=$pgac_cv_prog_ld_R
6104 if test -n "$ac_tool_prefix"; then
6105 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6106 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6107 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if test "${ac_cv_prog_RANLIB+set}" = set; then
6110 $as_echo_n "(cached) " >&6
6112 if test -n "$RANLIB"; then
6113 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 RANLIB=$ac_cv_prog_RANLIB
6133 if test -n "$RANLIB"; then
6134 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6135 $as_echo "$RANLIB" >&6; }
6137 { $as_echo "$as_me:$LINENO: result: no" >&5
6138 $as_echo "no" >&6; }
6143 if test -z "$ac_cv_prog_RANLIB"; then
6144 ac_ct_RANLIB=$RANLIB
6145 # Extract the first word of "ranlib", so it can be a program name with args.
6146 set dummy ranlib; ac_word=$2
6147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6150 $as_echo_n "(cached) " >&6
6152 if test -n "$ac_ct_RANLIB"; then
6153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_ac_ct_RANLIB="ranlib"
6163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6173 if test -n "$ac_ct_RANLIB"; then
6174 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6175 $as_echo "$ac_ct_RANLIB" >&6; }
6177 { $as_echo "$as_me:$LINENO: result: no" >&5
6178 $as_echo "no" >&6; }
6181 if test "x$ac_ct_RANLIB" = x; then
6184 case $cross_compiling:$ac_tool_warned in
6186 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188 ac_tool_warned=yes ;;
6190 RANLIB=$ac_ct_RANLIB
6193 RANLIB="$ac_cv_prog_RANLIB"
6197 if test -n "$ac_tool_prefix"; then
6198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6199 set dummy ${ac_tool_prefix}strip; ac_word=$2
6200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_STRIP+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6205 if test -n "$STRIP"; then
6206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 STRIP=$ac_cv_prog_STRIP
6226 if test -n "$STRIP"; then
6227 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6228 $as_echo "$STRIP" >&6; }
6230 { $as_echo "$as_me:$LINENO: result: no" >&5
6231 $as_echo "no" >&6; }
6236 if test -z "$ac_cv_prog_STRIP"; then
6238 # Extract the first word of "strip", so it can be a program name with args.
6239 set dummy strip; ac_word=$2
6240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6243 $as_echo_n "(cached) " >&6
6245 if test -n "$ac_ct_STRIP"; then
6246 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_prog_ac_ct_STRIP="strip"
6256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6266 if test -n "$ac_ct_STRIP"; then
6267 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6268 $as_echo "$ac_ct_STRIP" >&6; }
6270 { $as_echo "$as_me:$LINENO: result: no" >&5
6271 $as_echo "no" >&6; }
6274 if test "x$ac_ct_STRIP" = x; then
6277 case $cross_compiling:$ac_tool_warned in
6279 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned=yes ;;
6286 STRIP="$ac_cv_prog_STRIP"
6290 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6291 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6292 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6293 STRIP_STATIC_LIB="$STRIP -x"
6294 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6295 { $as_echo "$as_me:$LINENO: result: yes" >&5
6296 $as_echo "yes" >&6; }
6300 { $as_echo "$as_me:$LINENO: result: no" >&5
6301 $as_echo "no" >&6; }
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}ar; ac_word=$2
6309 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if test "${ac_cv_prog_AR+set}" = set; then
6312 $as_echo_n "(cached) " >&6
6314 if test -n "$AR"; then
6315 ac_cv_prog_AR="$AR" # Let the user override the test.
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_AR="${ac_tool_prefix}ar"
6325 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 if test -n "$AR"; then
6336 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6337 $as_echo "$AR" >&6; }
6339 { $as_echo "$as_me:$LINENO: result: no" >&5
6340 $as_echo "no" >&6; }
6345 if test -z "$ac_cv_prog_AR"; then
6347 # Extract the first word of "ar", so it can be a program name with args.
6348 set dummy ar; ac_word=$2
6349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6352 $as_echo_n "(cached) " >&6
6354 if test -n "$ac_ct_AR"; then
6355 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_ac_ct_AR="ar"
6365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6375 if test -n "$ac_ct_AR"; then
6376 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6377 $as_echo "$ac_ct_AR" >&6; }
6379 { $as_echo "$as_me:$LINENO: result: no" >&5
6380 $as_echo "no" >&6; }
6383 if test "x$ac_ct_AR" = x; then
6386 case $cross_compiling:$ac_tool_warned in
6388 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390 ac_tool_warned=yes ;;
6398 if test "$PORTNAME" = "win32"; then
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6405 $as_echo_n "(cached) " >&6
6407 if test -n "$DLLTOOL"; then
6408 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 DLLTOOL=$ac_cv_prog_DLLTOOL
6428 if test -n "$DLLTOOL"; then
6429 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6430 $as_echo "$DLLTOOL" >&6; }
6432 { $as_echo "$as_me:$LINENO: result: no" >&5
6433 $as_echo "no" >&6; }
6438 if test -z "$ac_cv_prog_DLLTOOL"; then
6439 ac_ct_DLLTOOL=$DLLTOOL
6440 # Extract the first word of "dlltool", so it can be a program name with args.
6441 set dummy dlltool; ac_word=$2
6442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6445 $as_echo_n "(cached) " >&6
6447 if test -n "$ac_ct_DLLTOOL"; then
6448 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6468 if test -n "$ac_ct_DLLTOOL"; then
6469 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6470 $as_echo "$ac_ct_DLLTOOL" >&6; }
6472 { $as_echo "$as_me:$LINENO: result: no" >&5
6473 $as_echo "no" >&6; }
6476 if test "x$ac_ct_DLLTOOL" = x; then
6479 case $cross_compiling:$ac_tool_warned in
6481 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6485 DLLTOOL=$ac_ct_DLLTOOL
6488 DLLTOOL="$ac_cv_prog_DLLTOOL"
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6497 $as_echo_n "(cached) " >&6
6499 if test -n "$DLLWRAP"; then
6500 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 DLLWRAP=$ac_cv_prog_DLLWRAP
6520 if test -n "$DLLWRAP"; then
6521 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6522 $as_echo "$DLLWRAP" >&6; }
6524 { $as_echo "$as_me:$LINENO: result: no" >&5
6525 $as_echo "no" >&6; }
6530 if test -z "$ac_cv_prog_DLLWRAP"; then
6531 ac_ct_DLLWRAP=$DLLWRAP
6532 # Extract the first word of "dllwrap", so it can be a program name with args.
6533 set dummy dllwrap; ac_word=$2
6534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6537 $as_echo_n "(cached) " >&6
6539 if test -n "$ac_ct_DLLWRAP"; then
6540 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6560 if test -n "$ac_ct_DLLWRAP"; then
6561 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6562 $as_echo "$ac_ct_DLLWRAP" >&6; }
6564 { $as_echo "$as_me:$LINENO: result: no" >&5
6565 $as_echo "no" >&6; }
6568 if test "x$ac_ct_DLLWRAP" = x; then
6571 case $cross_compiling:$ac_tool_warned in
6573 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6577 DLLWRAP=$ac_ct_DLLWRAP
6580 DLLWRAP="$ac_cv_prog_DLLWRAP"
6583 if test -n "$ac_tool_prefix"; then
6584 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6585 set dummy ${ac_tool_prefix}windres; ac_word=$2
6586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if test "${ac_cv_prog_WINDRES+set}" = set; then
6589 $as_echo_n "(cached) " >&6
6591 if test -n "$WINDRES"; then
6592 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 WINDRES=$ac_cv_prog_WINDRES
6612 if test -n "$WINDRES"; then
6613 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6614 $as_echo "$WINDRES" >&6; }
6616 { $as_echo "$as_me:$LINENO: result: no" >&5
6617 $as_echo "no" >&6; }
6622 if test -z "$ac_cv_prog_WINDRES"; then
6623 ac_ct_WINDRES=$WINDRES
6624 # Extract the first word of "windres", so it can be a program name with args.
6625 set dummy windres; ac_word=$2
6626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6629 $as_echo_n "(cached) " >&6
6631 if test -n "$ac_ct_WINDRES"; then
6632 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_prog_ac_ct_WINDRES="windres"
6642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6652 if test -n "$ac_ct_WINDRES"; then
6653 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6654 $as_echo "$ac_ct_WINDRES" >&6; }
6656 { $as_echo "$as_me:$LINENO: result: no" >&5
6657 $as_echo "no" >&6; }
6660 if test "x$ac_ct_WINDRES" = x; then
6663 case $cross_compiling:$ac_tool_warned in
6665 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667 ac_tool_warned=yes ;;
6669 WINDRES=$ac_ct_WINDRES
6672 WINDRES="$ac_cv_prog_WINDRES"
6677 # Extract the first word of "tar", so it can be a program name with args.
6678 set dummy tar; ac_word=$2
6679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if test "${ac_cv_path_TAR+set}" = set; then
6682 $as_echo_n "(cached) " >&6
6686 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
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_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 if test -n "$TAR"; then
6709 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6710 $as_echo "$TAR" >&6; }
6712 { $as_echo "$as_me:$LINENO: result: no" >&5
6713 $as_echo "no" >&6; }
6717 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6718 $as_echo_n "checking whether ln -s works... " >&6; }
6720 if test "$LN_S" = "ln -s"; then
6721 { $as_echo "$as_me:$LINENO: result: yes" >&5
6722 $as_echo "yes" >&6; }
6724 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6725 $as_echo "no, using $LN_S" >&6; }
6728 for ac_prog in gawk mawk nawk awk
6730 # Extract the first word of "$ac_prog", so it can be a program name with args.
6731 set dummy $ac_prog; ac_word=$2
6732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_AWK+set}" = set; then
6735 $as_echo_n "(cached) " >&6
6737 if test -n "$AWK"; then
6738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_AWK="$ac_prog"
6748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 if test -n "$AWK"; then
6759 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6760 $as_echo "$AWK" >&6; }
6762 { $as_echo "$as_me:$LINENO: result: no" >&5
6763 $as_echo "no" >&6; }
6767 test -n "$AWK" && break
6770 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6771 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6772 if test -z "$MKDIR_P"; then
6773 if test "${ac_cv_path_mkdir+set}" = set; then
6774 $as_echo_n "(cached) " >&6
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6780 test -z "$as_dir" && as_dir=.
6781 for ac_prog in mkdir gmkdir; do
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6784 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6785 'mkdir (GNU coreutils) '* | \
6786 'mkdir (coreutils) '* | \
6787 'mkdir (fileutils) '4.1*)
6788 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6798 if test "${ac_cv_path_mkdir+set}" = set; then
6799 MKDIR_P="$ac_cv_path_mkdir -p"
6801 # As a last resort, use the slow shell script. Don't cache a
6802 # value for MKDIR_P within a source directory, because that will
6803 # break other packages using the cache if that directory is
6804 # removed, or if the value is a relative name.
6805 test -d ./--version && rmdir ./--version
6806 MKDIR_P="$ac_install_sh -d"
6809 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6810 $as_echo "$MKDIR_P" >&6; }
6812 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6813 # a relative path to it in each makefile where it subsitutes it. This clashes
6814 # with our Makefile.global concept. This workaround helps.
6816 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6819 # Let the user override the search
6820 if test -z "$BISON"; then
6821 for ac_prog in bison
6823 # Extract the first word of "$ac_prog", so it can be a program name with args.
6824 set dummy $ac_prog; ac_word=$2
6825 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if test "${ac_cv_path_BISON+set}" = set; then
6828 $as_echo_n "(cached) " >&6
6832 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6843 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 BISON=$ac_cv_path_BISON
6854 if test -n "$BISON"; then
6855 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6856 $as_echo "$BISON" >&6; }
6858 { $as_echo "$as_me:$LINENO: result: no" >&5
6859 $as_echo "no" >&6; }
6863 test -n "$BISON" && break
6868 if test "$BISON"; then
6869 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6870 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6871 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6872 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6874 { $as_echo "$as_me:$LINENO: WARNING:
6875 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6876 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6877 $as_echo "$as_me: WARNING:
6878 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6879 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6884 if test -z "$BISON"; then
6885 { $as_echo "$as_me:$LINENO: WARNING:
6886 *** Without Bison you will not be able to build PostgreSQL from Git nor
6887 *** change any of the parser definition files. You can obtain Bison from
6888 *** a GNU mirror site. (If you are using the official distribution of
6889 *** PostgreSQL then you do not need to worry about this, because the Bison
6890 *** output is pre-generated.)" >&5
6891 $as_echo "$as_me: WARNING:
6892 *** Without Bison you will not be able to build PostgreSQL from Git nor
6893 *** change any of the parser definition files. You can obtain Bison from
6894 *** a GNU mirror site. (If you are using the official distribution of
6895 *** PostgreSQL then you do not need to worry about this, because the Bison
6896 *** output is pre-generated.)" >&2;}
6898 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6901 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6902 $as_echo_n "checking for flex... " >&6; }
6903 if test "${pgac_cv_path_flex+set}" = set; then
6904 $as_echo_n "(cached) " >&6
6906 # Let the user override the test
6907 if test -n "$FLEX"; then
6908 pgac_cv_path_flex=$FLEX
6912 for pgac_dir in $PATH; do
6914 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6917 for pgac_prog in flex lex; do
6918 pgac_candidate="$pgac_dir/$pgac_prog"
6919 if test -f "$pgac_candidate" \
6920 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6922 echo '%%' > conftest.l
6923 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6924 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6925 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6927 pgac_cv_path_flex=$pgac_candidate
6930 { $as_echo "$as_me:$LINENO: WARNING:
6931 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6932 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6933 $as_echo "$as_me: WARNING:
6934 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6935 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6941 rm -f conftest.l lex.yy.c
6942 : ${pgac_cv_path_flex=no}
6946 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6947 $as_echo "$pgac_cv_path_flex" >&6; }
6948 if test x"$pgac_cv_path_flex" = x"no"; then
6949 { $as_echo "$as_me:$LINENO: WARNING:
6950 *** Without Flex you will not be able to build PostgreSQL from Git nor
6951 *** change any of the scanner definition files. You can obtain Flex from
6952 *** a GNU mirror site. (If you are using the official distribution of
6953 *** PostgreSQL then you do not need to worry about this because the Flex
6954 *** output is pre-generated.)" >&5
6955 $as_echo "$as_me: WARNING:
6956 *** Without Flex you will not be able to build PostgreSQL from Git nor
6957 *** change any of the scanner definition files. You can obtain Flex from
6958 *** a GNU mirror site. (If you are using the official distribution of
6959 *** PostgreSQL then you do not need to worry about this because the Flex
6960 *** output is pre-generated.)" >&2;}
6964 FLEX=$pgac_cv_path_flex
6965 pgac_flex_version=`$FLEX --version 2>/dev/null`
6966 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6967 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6974 # Let the user override the search
6975 if test -z "$PERL"; then
6976 # Extract the first word of "perl", so it can be a program name with args.
6977 set dummy perl; ac_word=$2
6978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if test "${ac_cv_path_PERL+set}" = set; then
6981 $as_echo_n "(cached) " >&6
6985 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 PERL=$ac_cv_path_PERL
7007 if test -n "$PERL"; then
7008 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7009 $as_echo "$PERL" >&6; }
7011 { $as_echo "$as_me:$LINENO: result: no" >&5
7012 $as_echo "no" >&6; }
7018 if test "$PERL"; then
7019 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'`
7020 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7021 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7022 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7023 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7025 { $as_echo "$as_me:$LINENO: WARNING:
7026 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7027 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7028 $as_echo "$as_me: WARNING:
7029 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7030 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7035 if test -z "$PERL"; then
7036 { $as_echo "$as_me:$LINENO: WARNING:
7037 *** Without Perl you will not be able to build PostgreSQL from Git.
7038 *** You can obtain Perl from any CPAN mirror site.
7039 *** (If you are using the official distribution of PostgreSQL then you do not
7040 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7041 $as_echo "$as_me: WARNING:
7042 *** Without Perl you will not be able to build PostgreSQL from Git.
7043 *** You can obtain Perl from any CPAN mirror site.
7044 *** (If you are using the official distribution of PostgreSQL then you do not
7045 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7048 if test "$with_perl" = yes; then
7049 if test -z "$PERL"; then
7050 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7051 $as_echo "$as_me: error: Perl not found" >&2;}
7052 { (exit 1); exit 1; }; }
7055 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7056 $as_echo_n "checking for Perl archlibexp... " >&6; }
7057 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7058 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7059 $as_echo "$perl_archlibexp" >&6; }
7060 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7061 $as_echo_n "checking for Perl privlibexp... " >&6; }
7062 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7063 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7064 $as_echo "$perl_privlibexp" >&6; }
7065 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7066 $as_echo_n "checking for Perl useshrplib... " >&6; }
7067 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7068 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7069 $as_echo "$perl_useshrplib" >&6; }
7071 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7072 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7073 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7074 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7075 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7076 if test -z "$perl_embed_ldflags" ; then
7077 { $as_echo "$as_me:$LINENO: result: no" >&5
7078 $as_echo "no" >&6; }
7079 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7080 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7082 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7083 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7085 { (exit 1); exit 1; }; }
7087 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7088 $as_echo "$perl_embed_ldflags" >&6; }
7093 if test "$with_python" = yes; then
7094 # Extract the first word of "python", so it can be a program name with args.
7095 set dummy python; ac_word=$2
7096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_path_PYTHON+set}" = set; then
7099 $as_echo_n "(cached) " >&6
7103 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 PYTHON=$ac_cv_path_PYTHON
7125 if test -n "$PYTHON"; then
7126 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7127 $as_echo "$PYTHON" >&6; }
7129 { $as_echo "$as_me:$LINENO: result: no" >&5
7130 $as_echo "no" >&6; }
7134 if test x"$PYTHON" = x""; then
7135 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7136 $as_echo "$as_me: error: Python not found" >&2;}
7137 { (exit 1); exit 1; }; }
7141 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7142 $as_echo_n "checking for Python distutils module... " >&6; }
7143 if "${PYTHON}" -c 'import distutils' 2>&5
7145 { $as_echo "$as_me:$LINENO: result: yes" >&5
7146 $as_echo "yes" >&6; }
7148 { $as_echo "$as_me:$LINENO: result: no" >&5
7149 $as_echo "no" >&6; }
7150 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7151 $as_echo "$as_me: error: distutils module not found" >&2;}
7152 { (exit 1); exit 1; }; }
7154 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7155 $as_echo_n "checking Python configuration directory... " >&6; }
7156 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7157 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7158 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print(os.path.join(f(plat_specific=1,standard_lib=1),'config'))"`
7159 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7161 # This should be enough of a message.
7162 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7163 $as_echo "$python_configdir" >&6; }
7166 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7167 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7169 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7170 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7171 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7172 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7174 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7176 # New way: use the official shared library
7177 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7178 python_libspec="-L${python_libdir} -l${ldlibrary}"
7180 # Old way: use libpython from python_configdir
7181 python_libdir="${python_configdir}"
7182 python_libspec="-L${python_libdir} -lpython${python_version}"
7185 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7187 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7188 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7191 # threaded python is not supported on bsd's
7192 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7193 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7194 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7195 if test "$pythreads" = "1"; then
7196 { $as_echo "$as_me:$LINENO: result: yes" >&5
7197 $as_echo "yes" >&6; }
7200 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7201 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7202 { (exit 1); exit 1; }; }
7206 { $as_echo "$as_me:$LINENO: result: no" >&5
7207 $as_echo "no" >&6; }
7213 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7214 # Extract the first word of "zic", so it can be a program name with args.
7215 set dummy zic; ac_word=$2
7216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if test "${ac_cv_path_ZIC+set}" = set; then
7219 $as_echo_n "(cached) " >&6
7223 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 if test -n "$ZIC"; then
7246 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7247 $as_echo "$ZIC" >&6; }
7249 { $as_echo "$as_me:$LINENO: result: no" >&5
7250 $as_echo "no" >&6; }
7254 if test -z "$ZIC"; then
7255 { { $as_echo "$as_me:$LINENO: error:
7256 When cross-compiling, either use the option --with-system-tzdata to use
7257 existing time-zone data, or set the environment variable ZIC to a zic
7258 program to use during the build." >&5
7259 $as_echo "$as_me: error:
7260 When cross-compiling, either use the option --with-system-tzdata to use
7261 existing time-zone data, or set the environment variable ZIC to a zic
7262 program to use during the build." >&2;}
7263 { (exit 1); exit 1; }; }
7271 ## Most libraries are included only if they demonstrably provide a function
7272 ## we need, but libm is an exception: always include it, because there are
7273 ## too many compilers that play cute optimization games that will break
7274 ## probes for standard functions such as pow().
7278 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7279 $as_echo_n "checking for main in -lm... " >&6; }
7280 if test "${ac_cv_lib_m_main+set}" = set; then
7281 $as_echo_n "(cached) " >&6
7283 ac_check_lib_save_LIBS=$LIBS
7285 cat >conftest.$ac_ext <<_ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7301 rm -f conftest.$ac_objext conftest$ac_exeext
7302 if { (ac_try="$ac_link"
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7308 $as_echo "$ac_try_echo") >&5
7309 (eval "$ac_link") 2>conftest.er1
7311 grep -v '^ *+' conftest.er1 >conftest.err
7313 cat conftest.err >&5
7314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest$ac_exeext && {
7319 test "$cross_compiling" = yes ||
7320 $as_test_x conftest$ac_exeext
7322 ac_cv_lib_m_main=yes
7324 $as_echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7330 rm -rf conftest.dSYM
7331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7332 conftest$ac_exeext conftest.$ac_ext
7333 LIBS=$ac_check_lib_save_LIBS
7335 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7336 $as_echo "$ac_cv_lib_m_main" >&6; }
7337 if test "x$ac_cv_lib_m_main" = x""yes; then
7338 cat >>confdefs.h <<_ACEOF
7346 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7347 $as_echo_n "checking for library containing setproctitle... " >&6; }
7348 if test "${ac_cv_search_setproctitle+set}" = set; then
7349 $as_echo_n "(cached) " >&6
7351 ac_func_search_save_LIBS=$LIBS
7352 cat >conftest.$ac_ext <<_ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7359 /* Override any GCC internal prototype to avoid an error.
7360 Use char because int might match the return type of a GCC
7361 builtin and then its argument prototype would still apply. */
7365 char setproctitle ();
7369 return setproctitle ();
7374 for ac_lib in '' util; do
7375 if test -z "$ac_lib"; then
7376 ac_res="none required"
7379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7381 rm -f conftest.$ac_objext conftest$ac_exeext
7382 if { (ac_try="$ac_link"
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7388 $as_echo "$ac_try_echo") >&5
7389 (eval "$ac_link") 2>conftest.er1
7391 grep -v '^ *+' conftest.er1 >conftest.err
7393 cat conftest.err >&5
7394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } && {
7396 test -z "$ac_c_werror_flag" ||
7397 test ! -s conftest.err
7398 } && test -s conftest$ac_exeext && {
7399 test "$cross_compiling" = yes ||
7400 $as_test_x conftest$ac_exeext
7402 ac_cv_search_setproctitle=$ac_res
7404 $as_echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7410 rm -rf conftest.dSYM
7411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7413 if test "${ac_cv_search_setproctitle+set}" = set; then
7417 if test "${ac_cv_search_setproctitle+set}" = set; then
7420 ac_cv_search_setproctitle=no
7423 LIBS=$ac_func_search_save_LIBS
7425 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7426 $as_echo "$ac_cv_search_setproctitle" >&6; }
7427 ac_res=$ac_cv_search_setproctitle
7428 if test "$ac_res" != no; then
7429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7433 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7434 $as_echo_n "checking for library containing dlopen... " >&6; }
7435 if test "${ac_cv_search_dlopen+set}" = set; then
7436 $as_echo_n "(cached) " >&6
7438 ac_func_search_save_LIBS=$LIBS
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7446 /* Override any GCC internal prototype to avoid an error.
7447 Use char because int might match the return type of a GCC
7448 builtin and then its argument prototype would still apply. */
7461 for ac_lib in '' dl; do
7462 if test -z "$ac_lib"; then
7463 ac_res="none required"
7466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7468 rm -f conftest.$ac_objext conftest$ac_exeext
7469 if { (ac_try="$ac_link"
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475 $as_echo "$ac_try_echo") >&5
7476 (eval "$ac_link") 2>conftest.er1
7478 grep -v '^ *+' conftest.er1 >conftest.err
7480 cat conftest.err >&5
7481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest$ac_exeext && {
7486 test "$cross_compiling" = yes ||
7487 $as_test_x conftest$ac_exeext
7489 ac_cv_search_dlopen=$ac_res
7491 $as_echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7497 rm -rf conftest.dSYM
7498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7500 if test "${ac_cv_search_dlopen+set}" = set; then
7504 if test "${ac_cv_search_dlopen+set}" = set; then
7507 ac_cv_search_dlopen=no
7510 LIBS=$ac_func_search_save_LIBS
7512 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7513 $as_echo "$ac_cv_search_dlopen" >&6; }
7514 ac_res=$ac_cv_search_dlopen
7515 if test "$ac_res" != no; then
7516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7520 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7521 $as_echo_n "checking for library containing socket... " >&6; }
7522 if test "${ac_cv_search_socket+set}" = set; then
7523 $as_echo_n "(cached) " >&6
7525 ac_func_search_save_LIBS=$LIBS
7526 cat >conftest.$ac_ext <<_ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7533 /* Override any GCC internal prototype to avoid an error.
7534 Use char because int might match the return type of a GCC
7535 builtin and then its argument prototype would still apply. */
7548 for ac_lib in '' socket wsock32; do
7549 if test -z "$ac_lib"; then
7550 ac_res="none required"
7553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (ac_try="$ac_link"
7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7562 $as_echo "$ac_try_echo") >&5
7563 (eval "$ac_link") 2>conftest.er1
7565 grep -v '^ *+' conftest.er1 >conftest.err
7567 cat conftest.err >&5
7568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } && {
7570 test -z "$ac_c_werror_flag" ||
7571 test ! -s conftest.err
7572 } && test -s conftest$ac_exeext && {
7573 test "$cross_compiling" = yes ||
7574 $as_test_x conftest$ac_exeext
7576 ac_cv_search_socket=$ac_res
7578 $as_echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7584 rm -rf conftest.dSYM
7585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7587 if test "${ac_cv_search_socket+set}" = set; then
7591 if test "${ac_cv_search_socket+set}" = set; then
7594 ac_cv_search_socket=no
7597 LIBS=$ac_func_search_save_LIBS
7599 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7600 $as_echo "$ac_cv_search_socket" >&6; }
7601 ac_res=$ac_cv_search_socket
7602 if test "$ac_res" != no; then
7603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7607 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7608 $as_echo_n "checking for library containing shl_load... " >&6; }
7609 if test "${ac_cv_search_shl_load+set}" = set; then
7610 $as_echo_n "(cached) " >&6
7612 ac_func_search_save_LIBS=$LIBS
7613 cat >conftest.$ac_ext <<_ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7620 /* Override any GCC internal prototype to avoid an error.
7621 Use char because int might match the return type of a GCC
7622 builtin and then its argument prototype would still apply. */
7635 for ac_lib in '' dld; do
7636 if test -z "$ac_lib"; then
7637 ac_res="none required"
7640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649 $as_echo "$ac_try_echo") >&5
7650 (eval "$ac_link") 2>conftest.er1
7652 grep -v '^ *+' conftest.er1 >conftest.err
7654 cat conftest.err >&5
7655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest$ac_exeext && {
7660 test "$cross_compiling" = yes ||
7661 $as_test_x conftest$ac_exeext
7663 ac_cv_search_shl_load=$ac_res
7665 $as_echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7671 rm -rf conftest.dSYM
7672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7674 if test "${ac_cv_search_shl_load+set}" = set; then
7678 if test "${ac_cv_search_shl_load+set}" = set; then
7681 ac_cv_search_shl_load=no
7684 LIBS=$ac_func_search_save_LIBS
7686 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7687 $as_echo "$ac_cv_search_shl_load" >&6; }
7688 ac_res=$ac_cv_search_shl_load
7689 if test "$ac_res" != no; then
7690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7694 # We only use libld in port/dynloader/aix.c
7697 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7698 $as_echo_n "checking for library containing ldopen... " >&6; }
7699 if test "${ac_cv_search_ldopen+set}" = set; then
7700 $as_echo_n "(cached) " >&6
7702 ac_func_search_save_LIBS=$LIBS
7703 cat >conftest.$ac_ext <<_ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7710 /* Override any GCC internal prototype to avoid an error.
7711 Use char because int might match the return type of a GCC
7712 builtin and then its argument prototype would still apply. */
7725 for ac_lib in '' ld; do
7726 if test -z "$ac_lib"; then
7727 ac_res="none required"
7730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7732 rm -f conftest.$ac_objext conftest$ac_exeext
7733 if { (ac_try="$ac_link"
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7739 $as_echo "$ac_try_echo") >&5
7740 (eval "$ac_link") 2>conftest.er1
7742 grep -v '^ *+' conftest.er1 >conftest.err
7744 cat conftest.err >&5
7745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } && {
7747 test -z "$ac_c_werror_flag" ||
7748 test ! -s conftest.err
7749 } && test -s conftest$ac_exeext && {
7750 test "$cross_compiling" = yes ||
7751 $as_test_x conftest$ac_exeext
7753 ac_cv_search_ldopen=$ac_res
7755 $as_echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7761 rm -rf conftest.dSYM
7762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7764 if test "${ac_cv_search_ldopen+set}" = set; then
7768 if test "${ac_cv_search_ldopen+set}" = set; then
7771 ac_cv_search_ldopen=no
7774 LIBS=$ac_func_search_save_LIBS
7776 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7777 $as_echo "$ac_cv_search_ldopen" >&6; }
7778 ac_res=$ac_cv_search_ldopen
7779 if test "$ac_res" != no; then
7780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7786 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7787 $as_echo_n "checking for library containing getopt_long... " >&6; }
7788 if test "${ac_cv_search_getopt_long+set}" = set; then
7789 $as_echo_n "(cached) " >&6
7791 ac_func_search_save_LIBS=$LIBS
7792 cat >conftest.$ac_ext <<_ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7799 /* Override any GCC internal prototype to avoid an error.
7800 Use char because int might match the return type of a GCC
7801 builtin and then its argument prototype would still apply. */
7805 char getopt_long ();
7809 return getopt_long ();
7814 for ac_lib in '' getopt gnugetopt; do
7815 if test -z "$ac_lib"; then
7816 ac_res="none required"
7819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7821 rm -f conftest.$ac_objext conftest$ac_exeext
7822 if { (ac_try="$ac_link"
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7828 $as_echo "$ac_try_echo") >&5
7829 (eval "$ac_link") 2>conftest.er1
7831 grep -v '^ *+' conftest.er1 >conftest.err
7833 cat conftest.err >&5
7834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } && {
7836 test -z "$ac_c_werror_flag" ||
7837 test ! -s conftest.err
7838 } && test -s conftest$ac_exeext && {
7839 test "$cross_compiling" = yes ||
7840 $as_test_x conftest$ac_exeext
7842 ac_cv_search_getopt_long=$ac_res
7844 $as_echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7850 rm -rf conftest.dSYM
7851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7853 if test "${ac_cv_search_getopt_long+set}" = set; then
7857 if test "${ac_cv_search_getopt_long+set}" = set; then
7860 ac_cv_search_getopt_long=no
7863 LIBS=$ac_func_search_save_LIBS
7865 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7866 $as_echo "$ac_cv_search_getopt_long" >&6; }
7867 ac_res=$ac_cv_search_getopt_long
7868 if test "$ac_res" != no; then
7869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7873 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7874 $as_echo_n "checking for library containing crypt... " >&6; }
7875 if test "${ac_cv_search_crypt+set}" = set; then
7876 $as_echo_n "(cached) " >&6
7878 ac_func_search_save_LIBS=$LIBS
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7886 /* Override any GCC internal prototype to avoid an error.
7887 Use char because int might match the return type of a GCC
7888 builtin and then its argument prototype would still apply. */
7901 for ac_lib in '' crypt; do
7902 if test -z "$ac_lib"; then
7903 ac_res="none required"
7906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7908 rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (ac_try="$ac_link"
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7915 $as_echo "$ac_try_echo") >&5
7916 (eval "$ac_link") 2>conftest.er1
7918 grep -v '^ *+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && {
7923 test -z "$ac_c_werror_flag" ||
7924 test ! -s conftest.err
7925 } && test -s conftest$ac_exeext && {
7926 test "$cross_compiling" = yes ||
7927 $as_test_x conftest$ac_exeext
7929 ac_cv_search_crypt=$ac_res
7931 $as_echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7937 rm -rf conftest.dSYM
7938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7940 if test "${ac_cv_search_crypt+set}" = set; then
7944 if test "${ac_cv_search_crypt+set}" = set; then
7947 ac_cv_search_crypt=no
7950 LIBS=$ac_func_search_save_LIBS
7952 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7953 $as_echo "$ac_cv_search_crypt" >&6; }
7954 ac_res=$ac_cv_search_crypt
7955 if test "$ac_res" != no; then
7956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7961 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7962 $as_echo_n "checking for library containing fdatasync... " >&6; }
7963 if test "${ac_cv_search_fdatasync+set}" = set; then
7964 $as_echo_n "(cached) " >&6
7966 ac_func_search_save_LIBS=$LIBS
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7974 /* Override any GCC internal prototype to avoid an error.
7975 Use char because int might match the return type of a GCC
7976 builtin and then its argument prototype would still apply. */
7984 return fdatasync ();
7989 for ac_lib in '' rt posix4; do
7990 if test -z "$ac_lib"; then
7991 ac_res="none required"
7994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (ac_try="$ac_link"
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8003 $as_echo "$ac_try_echo") >&5
8004 (eval "$ac_link") 2>conftest.er1
8006 grep -v '^ *+' conftest.er1 >conftest.err
8008 cat conftest.err >&5
8009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } && {
8011 test -z "$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest$ac_exeext && {
8014 test "$cross_compiling" = yes ||
8015 $as_test_x conftest$ac_exeext
8017 ac_cv_search_fdatasync=$ac_res
8019 $as_echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8025 rm -rf conftest.dSYM
8026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8028 if test "${ac_cv_search_fdatasync+set}" = set; then
8032 if test "${ac_cv_search_fdatasync+set}" = set; then
8035 ac_cv_search_fdatasync=no
8038 LIBS=$ac_func_search_save_LIBS
8040 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8041 $as_echo "$ac_cv_search_fdatasync" >&6; }
8042 ac_res=$ac_cv_search_fdatasync
8043 if test "$ac_res" != no; then
8044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8048 # Required for thread_test.c on Solaris 2.5:
8049 # Other ports use it too (HP-UX) so test unconditionally
8050 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8051 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8052 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8053 $as_echo_n "(cached) " >&6
8055 ac_func_search_save_LIBS=$LIBS
8056 cat >conftest.$ac_ext <<_ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8063 /* Override any GCC internal prototype to avoid an error.
8064 Use char because int might match the return type of a GCC
8065 builtin and then its argument prototype would still apply. */
8069 char gethostbyname_r ();
8073 return gethostbyname_r ();
8078 for ac_lib in '' nsl; do
8079 if test -z "$ac_lib"; then
8080 ac_res="none required"
8083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8085 rm -f conftest.$ac_objext conftest$ac_exeext
8086 if { (ac_try="$ac_link"
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8092 $as_echo "$ac_try_echo") >&5
8093 (eval "$ac_link") 2>conftest.er1
8095 grep -v '^ *+' conftest.er1 >conftest.err
8097 cat conftest.err >&5
8098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } && {
8100 test -z "$ac_c_werror_flag" ||
8101 test ! -s conftest.err
8102 } && test -s conftest$ac_exeext && {
8103 test "$cross_compiling" = yes ||
8104 $as_test_x conftest$ac_exeext
8106 ac_cv_search_gethostbyname_r=$ac_res
8108 $as_echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8114 rm -rf conftest.dSYM
8115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8117 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8121 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8124 ac_cv_search_gethostbyname_r=no
8127 LIBS=$ac_func_search_save_LIBS
8129 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8130 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8131 ac_res=$ac_cv_search_gethostbyname_r
8132 if test "$ac_res" != no; then
8133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8138 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8139 $as_echo_n "checking for library containing shmget... " >&6; }
8140 if test "${ac_cv_search_shmget+set}" = set; then
8141 $as_echo_n "(cached) " >&6
8143 ac_func_search_save_LIBS=$LIBS
8144 cat >conftest.$ac_ext <<_ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8151 /* Override any GCC internal prototype to avoid an error.
8152 Use char because int might match the return type of a GCC
8153 builtin and then its argument prototype would still apply. */
8166 for ac_lib in '' cygipc; do
8167 if test -z "$ac_lib"; then
8168 ac_res="none required"
8171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (ac_try="$ac_link"
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8180 $as_echo "$ac_try_echo") >&5
8181 (eval "$ac_link") 2>conftest.er1
8183 grep -v '^ *+' conftest.er1 >conftest.err
8185 cat conftest.err >&5
8186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } && {
8188 test -z "$ac_c_werror_flag" ||
8189 test ! -s conftest.err
8190 } && test -s conftest$ac_exeext && {
8191 test "$cross_compiling" = yes ||
8192 $as_test_x conftest$ac_exeext
8194 ac_cv_search_shmget=$ac_res
8196 $as_echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8202 rm -rf conftest.dSYM
8203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8205 if test "${ac_cv_search_shmget+set}" = set; then
8209 if test "${ac_cv_search_shmget+set}" = set; then
8212 ac_cv_search_shmget=no
8215 LIBS=$ac_func_search_save_LIBS
8217 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8218 $as_echo "$ac_cv_search_shmget" >&6; }
8219 ac_res=$ac_cv_search_shmget
8220 if test "$ac_res" != no; then
8221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8226 if test "$with_readline" = yes; then
8229 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8230 $as_echo_n "checking for library containing readline... " >&6; }
8231 if test "${pgac_cv_check_readline+set}" = set; then
8232 $as_echo_n "(cached) " >&6
8234 pgac_cv_check_readline=no
8235 pgac_save_LIBS=$LIBS
8236 if test x"$with_libedit_preferred" != x"yes"
8237 then READLINE_ORDER="-lreadline -ledit"
8238 else READLINE_ORDER="-ledit -lreadline"
8240 for pgac_rllib in $READLINE_ORDER ; do
8241 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8242 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8243 cat >conftest.$ac_ext <<_ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8250 /* Override any GCC internal prototype to avoid an error.
8251 Use char because int might match the return type of a GCC
8252 builtin and then its argument prototype would still apply. */
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (ac_try="$ac_link"
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8272 $as_echo "$ac_try_echo") >&5
8273 (eval "$ac_link") 2>conftest.er1
8275 grep -v '^ *+' conftest.er1 >conftest.err
8277 cat conftest.err >&5
8278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest$ac_exeext && {
8283 test "$cross_compiling" = yes ||
8284 $as_test_x conftest$ac_exeext
8287 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8288 # recognize dependent libraries; assume curses is needed if we didn't
8289 # find any dependency.
8291 netbsd* | openbsd* | irix*)
8292 if test x"$pgac_lib" = x"" ; then
8293 pgac_lib=" -lcurses"
8297 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8301 $as_echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8307 rm -rf conftest.dSYM
8308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8309 conftest$ac_exeext conftest.$ac_ext
8311 if test "$pgac_cv_check_readline" != no ; then
8315 LIBS=$pgac_save_LIBS
8318 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8319 $as_echo "$pgac_cv_check_readline" >&6; }
8320 if test "$pgac_cv_check_readline" != no ; then
8321 LIBS="$pgac_cv_check_readline $LIBS"
8323 cat >>confdefs.h <<\_ACEOF
8324 #define HAVE_LIBREADLINE 1
8330 if test x"$pgac_cv_check_readline" = x"no"; then
8331 { { $as_echo "$as_me:$LINENO: error: readline library not found
8332 If you have readline already installed, see config.log for details on the
8333 failure. It is possible the compiler isn't looking in the proper directory.
8334 Use --without-readline to disable readline support." >&5
8335 $as_echo "$as_me: error: readline library not found
8336 If you have readline already installed, see config.log for details on the
8337 failure. It is possible the compiler isn't looking in the proper directory.
8338 Use --without-readline to disable readline support." >&2;}
8339 { (exit 1); exit 1; }; }
8343 if test "$with_zlib" = yes; then
8345 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8346 $as_echo_n "checking for inflate in -lz... " >&6; }
8347 if test "${ac_cv_lib_z_inflate+set}" = set; then
8348 $as_echo_n "(cached) " >&6
8350 ac_check_lib_save_LIBS=$LIBS
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8359 /* Override any GCC internal prototype to avoid an error.
8360 Use char because int might match the return type of a GCC
8361 builtin and then its argument prototype would still apply. */
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (ac_try="$ac_link"
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8381 $as_echo "$ac_try_echo") >&5
8382 (eval "$ac_link") 2>conftest.er1
8384 grep -v '^ *+' conftest.er1 >conftest.err
8386 cat conftest.err >&5
8387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } && {
8389 test -z "$ac_c_werror_flag" ||
8390 test ! -s conftest.err
8391 } && test -s conftest$ac_exeext && {
8392 test "$cross_compiling" = yes ||
8393 $as_test_x conftest$ac_exeext
8395 ac_cv_lib_z_inflate=yes
8397 $as_echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8400 ac_cv_lib_z_inflate=no
8403 rm -rf conftest.dSYM
8404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8405 conftest$ac_exeext conftest.$ac_ext
8406 LIBS=$ac_check_lib_save_LIBS
8408 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8409 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8410 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8411 cat >>confdefs.h <<_ACEOF
8418 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8419 If you have zlib already installed, see config.log for details on the
8420 failure. It is possible the compiler isn't looking in the proper directory.
8421 Use --without-zlib to disable zlib support." >&5
8422 $as_echo "$as_me: error: zlib library not found
8423 If you have zlib already installed, see config.log for details on the
8424 failure. It is possible the compiler isn't looking in the proper directory.
8425 Use --without-zlib to disable zlib support." >&2;}
8426 { (exit 1); exit 1; }; }
8431 if test "$enable_spinlocks" = yes; then
8433 cat >>confdefs.h <<\_ACEOF
8434 #define HAVE_SPINLOCKS 1
8438 { $as_echo "$as_me:$LINENO: WARNING:
8439 *** Not using spinlocks will cause poor performance." >&5
8440 $as_echo "$as_me: WARNING:
8441 *** Not using spinlocks will cause poor performance." >&2;}
8444 if test "$with_gssapi" = yes ; then
8445 if test "$PORTNAME" != "win32"; then
8446 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8447 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8448 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8449 $as_echo_n "(cached) " >&6
8451 ac_func_search_save_LIBS=$LIBS
8452 cat >conftest.$ac_ext <<_ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8459 /* Override any GCC internal prototype to avoid an error.
8460 Use char because int might match the return type of a GCC
8461 builtin and then its argument prototype would still apply. */
8465 char gss_init_sec_context ();
8469 return gss_init_sec_context ();
8474 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8475 if test -z "$ac_lib"; then
8476 ac_res="none required"
8479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (ac_try="$ac_link"
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8488 $as_echo "$ac_try_echo") >&5
8489 (eval "$ac_link") 2>conftest.er1
8491 grep -v '^ *+' conftest.er1 >conftest.err
8493 cat conftest.err >&5
8494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } && {
8496 test -z "$ac_c_werror_flag" ||
8497 test ! -s conftest.err
8498 } && test -s conftest$ac_exeext && {
8499 test "$cross_compiling" = yes ||
8500 $as_test_x conftest$ac_exeext
8502 ac_cv_search_gss_init_sec_context=$ac_res
8504 $as_echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8510 rm -rf conftest.dSYM
8511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8513 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8517 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8520 ac_cv_search_gss_init_sec_context=no
8523 LIBS=$ac_func_search_save_LIBS
8525 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8526 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8527 ac_res=$ac_cv_search_gss_init_sec_context
8528 if test "$ac_res" != no; then
8529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8532 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8533 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8534 { (exit 1); exit 1; }; }
8538 LIBS="$LIBS -lgssapi32"
8542 if test "$with_krb5" = yes ; then
8543 if test "$PORTNAME" != "win32"; then
8544 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8545 $as_echo_n "checking for library containing com_err... " >&6; }
8546 if test "${ac_cv_search_com_err+set}" = set; then
8547 $as_echo_n "(cached) " >&6
8549 ac_func_search_save_LIBS=$LIBS
8550 cat >conftest.$ac_ext <<_ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8557 /* Override any GCC internal prototype to avoid an error.
8558 Use char because int might match the return type of a GCC
8559 builtin and then its argument prototype would still apply. */
8572 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8573 if test -z "$ac_lib"; then
8574 ac_res="none required"
8577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (ac_try="$ac_link"
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8586 $as_echo "$ac_try_echo") >&5
8587 (eval "$ac_link") 2>conftest.er1
8589 grep -v '^ *+' conftest.er1 >conftest.err
8591 cat conftest.err >&5
8592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && {
8594 test -z "$ac_c_werror_flag" ||
8595 test ! -s conftest.err
8596 } && test -s conftest$ac_exeext && {
8597 test "$cross_compiling" = yes ||
8598 $as_test_x conftest$ac_exeext
8600 ac_cv_search_com_err=$ac_res
8602 $as_echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8608 rm -rf conftest.dSYM
8609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8611 if test "${ac_cv_search_com_err+set}" = set; then
8615 if test "${ac_cv_search_com_err+set}" = set; then
8618 ac_cv_search_com_err=no
8621 LIBS=$ac_func_search_save_LIBS
8623 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8624 $as_echo "$ac_cv_search_com_err" >&6; }
8625 ac_res=$ac_cv_search_com_err
8626 if test "$ac_res" != no; then
8627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8630 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8631 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8632 { (exit 1); exit 1; }; }
8635 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8636 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8637 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8638 $as_echo_n "(cached) " >&6
8640 ac_func_search_save_LIBS=$LIBS
8641 cat >conftest.$ac_ext <<_ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8648 /* Override any GCC internal prototype to avoid an error.
8649 Use char because int might match the return type of a GCC
8650 builtin and then its argument prototype would still apply. */
8654 char krb5_sendauth ();
8658 return krb5_sendauth ();
8663 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8664 if test -z "$ac_lib"; then
8665 ac_res="none required"
8668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (ac_try="$ac_link"
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8677 $as_echo "$ac_try_echo") >&5
8678 (eval "$ac_link") 2>conftest.er1
8680 grep -v '^ *+' conftest.er1 >conftest.err
8682 cat conftest.err >&5
8683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } && {
8685 test -z "$ac_c_werror_flag" ||
8686 test ! -s conftest.err
8687 } && test -s conftest$ac_exeext && {
8688 test "$cross_compiling" = yes ||
8689 $as_test_x conftest$ac_exeext
8691 ac_cv_search_krb5_sendauth=$ac_res
8693 $as_echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8699 rm -rf conftest.dSYM
8700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8702 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8706 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8709 ac_cv_search_krb5_sendauth=no
8712 LIBS=$ac_func_search_save_LIBS
8714 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8715 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8716 ac_res=$ac_cv_search_krb5_sendauth
8717 if test "$ac_res" != no; then
8718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8721 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8722 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8723 { (exit 1); exit 1; }; }
8727 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8728 $as_echo_n "checking for library containing com_err... " >&6; }
8729 if test "${ac_cv_search_com_err+set}" = set; then
8730 $as_echo_n "(cached) " >&6
8732 ac_func_search_save_LIBS=$LIBS
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8740 /* Override any GCC internal prototype to avoid an error.
8741 Use char because int might match the return type of a GCC
8742 builtin and then its argument prototype would still apply. */
8755 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8756 if test -z "$ac_lib"; then
8757 ac_res="none required"
8760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (ac_try="$ac_link"
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8769 $as_echo "$ac_try_echo") >&5
8770 (eval "$ac_link") 2>conftest.er1
8772 grep -v '^ *+' conftest.er1 >conftest.err
8774 cat conftest.err >&5
8775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest$ac_exeext && {
8780 test "$cross_compiling" = yes ||
8781 $as_test_x conftest$ac_exeext
8783 ac_cv_search_com_err=$ac_res
8785 $as_echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8791 rm -rf conftest.dSYM
8792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8794 if test "${ac_cv_search_com_err+set}" = set; then
8798 if test "${ac_cv_search_com_err+set}" = set; then
8801 ac_cv_search_com_err=no
8804 LIBS=$ac_func_search_save_LIBS
8806 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8807 $as_echo "$ac_cv_search_com_err" >&6; }
8808 ac_res=$ac_cv_search_com_err
8809 if test "$ac_res" != no; then
8810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8813 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8814 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8815 { (exit 1); exit 1; }; }
8821 if test "$with_openssl" = yes ; then
8822 if test "$PORTNAME" != "win32"; then
8824 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8825 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8826 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8827 $as_echo_n "(cached) " >&6
8829 ac_check_lib_save_LIBS=$LIBS
8830 LIBS="-lcrypto $LIBS"
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8838 /* Override any GCC internal prototype to avoid an error.
8839 Use char because int might match the return type of a GCC
8840 builtin and then its argument prototype would still apply. */
8844 char CRYPTO_new_ex_data ();
8848 return CRYPTO_new_ex_data ();
8853 rm -f conftest.$ac_objext conftest$ac_exeext
8854 if { (ac_try="$ac_link"
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8860 $as_echo "$ac_try_echo") >&5
8861 (eval "$ac_link") 2>conftest.er1
8863 grep -v '^ *+' conftest.er1 >conftest.err
8865 cat conftest.err >&5
8866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } && {
8868 test -z "$ac_c_werror_flag" ||
8869 test ! -s conftest.err
8870 } && test -s conftest$ac_exeext && {
8871 test "$cross_compiling" = yes ||
8872 $as_test_x conftest$ac_exeext
8874 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8876 $as_echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8882 rm -rf conftest.dSYM
8883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8884 conftest$ac_exeext conftest.$ac_ext
8885 LIBS=$ac_check_lib_save_LIBS
8887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8888 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8889 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8890 cat >>confdefs.h <<_ACEOF
8891 #define HAVE_LIBCRYPTO 1
8894 LIBS="-lcrypto $LIBS"
8897 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8898 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8899 { (exit 1); exit 1; }; }
8903 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8904 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8905 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8906 $as_echo_n "(cached) " >&6
8908 ac_check_lib_save_LIBS=$LIBS
8910 cat >conftest.$ac_ext <<_ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8917 /* Override any GCC internal prototype to avoid an error.
8918 Use char because int might match the return type of a GCC
8919 builtin and then its argument prototype would still apply. */
8923 char SSL_library_init ();
8927 return SSL_library_init ();
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (ac_try="$ac_link"
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8939 $as_echo "$ac_try_echo") >&5
8940 (eval "$ac_link") 2>conftest.er1
8942 grep -v '^ *+' conftest.er1 >conftest.err
8944 cat conftest.err >&5
8945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } && {
8947 test -z "$ac_c_werror_flag" ||
8948 test ! -s conftest.err
8949 } && test -s conftest$ac_exeext && {
8950 test "$cross_compiling" = yes ||
8951 $as_test_x conftest$ac_exeext
8953 ac_cv_lib_ssl_SSL_library_init=yes
8955 $as_echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8958 ac_cv_lib_ssl_SSL_library_init=no
8961 rm -rf conftest.dSYM
8962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8963 conftest$ac_exeext conftest.$ac_ext
8964 LIBS=$ac_check_lib_save_LIBS
8966 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8967 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8968 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8969 cat >>confdefs.h <<_ACEOF
8970 #define HAVE_LIBSSL 1
8976 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8977 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8978 { (exit 1); exit 1; }; }
8983 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8984 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8985 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8986 $as_echo_n "(cached) " >&6
8988 ac_check_lib_save_LIBS=$LIBS
8989 LIBS="-leay32 $LIBS"
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8997 /* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9003 char CRYPTO_new_ex_data ();
9007 return CRYPTO_new_ex_data ();
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (ac_try="$ac_link"
9015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9016 *) ac_try_echo=$ac_try;;
9018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9019 $as_echo "$ac_try_echo") >&5
9020 (eval "$ac_link") 2>conftest.er1
9022 grep -v '^ *+' conftest.er1 >conftest.err
9024 cat conftest.err >&5
9025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } && {
9027 test -z "$ac_c_werror_flag" ||
9028 test ! -s conftest.err
9029 } && test -s conftest$ac_exeext && {
9030 test "$cross_compiling" = yes ||
9031 $as_test_x conftest$ac_exeext
9033 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9035 $as_echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9038 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9041 rm -rf conftest.dSYM
9042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9043 conftest$ac_exeext conftest.$ac_ext
9044 LIBS=$ac_check_lib_save_LIBS
9046 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9047 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9048 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9049 cat >>confdefs.h <<_ACEOF
9050 #define HAVE_LIBEAY32 1
9053 LIBS="-leay32 $LIBS"
9056 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9057 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9058 { (exit 1); exit 1; }; }
9062 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9063 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9064 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9065 $as_echo_n "(cached) " >&6
9067 ac_check_lib_save_LIBS=$LIBS
9068 LIBS="-lssleay32 $LIBS"
9069 cat >conftest.$ac_ext <<_ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9076 /* Override any GCC internal prototype to avoid an error.
9077 Use char because int might match the return type of a GCC
9078 builtin and then its argument prototype would still apply. */
9082 char SSL_library_init ();
9086 return SSL_library_init ();
9091 rm -f conftest.$ac_objext conftest$ac_exeext
9092 if { (ac_try="$ac_link"
9094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9095 *) ac_try_echo=$ac_try;;
9097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9098 $as_echo "$ac_try_echo") >&5
9099 (eval "$ac_link") 2>conftest.er1
9101 grep -v '^ *+' conftest.er1 >conftest.err
9103 cat conftest.err >&5
9104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } && {
9106 test -z "$ac_c_werror_flag" ||
9107 test ! -s conftest.err
9108 } && test -s conftest$ac_exeext && {
9109 test "$cross_compiling" = yes ||
9110 $as_test_x conftest$ac_exeext
9112 ac_cv_lib_ssleay32_SSL_library_init=yes
9114 $as_echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9117 ac_cv_lib_ssleay32_SSL_library_init=no
9120 rm -rf conftest.dSYM
9121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9122 conftest$ac_exeext conftest.$ac_ext
9123 LIBS=$ac_check_lib_save_LIBS
9125 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9126 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9127 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9128 cat >>confdefs.h <<_ACEOF
9129 #define HAVE_LIBSSLEAY32 1
9132 LIBS="-lssleay32 $LIBS"
9135 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9136 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9137 { (exit 1); exit 1; }; }
9143 if test "$with_pam" = yes ; then
9145 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9146 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9147 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9148 $as_echo_n "(cached) " >&6
9150 ac_check_lib_save_LIBS=$LIBS
9152 cat >conftest.$ac_ext <<_ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9159 /* Override any GCC internal prototype to avoid an error.
9160 Use char because int might match the return type of a GCC
9161 builtin and then its argument prototype would still apply. */
9169 return pam_start ();
9174 rm -f conftest.$ac_objext conftest$ac_exeext
9175 if { (ac_try="$ac_link"
9177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178 *) ac_try_echo=$ac_try;;
9180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9181 $as_echo "$ac_try_echo") >&5
9182 (eval "$ac_link") 2>conftest.er1
9184 grep -v '^ *+' conftest.er1 >conftest.err
9186 cat conftest.err >&5
9187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } && {
9189 test -z "$ac_c_werror_flag" ||
9190 test ! -s conftest.err
9191 } && test -s conftest$ac_exeext && {
9192 test "$cross_compiling" = yes ||
9193 $as_test_x conftest$ac_exeext
9195 ac_cv_lib_pam_pam_start=yes
9197 $as_echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9200 ac_cv_lib_pam_pam_start=no
9203 rm -rf conftest.dSYM
9204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9205 conftest$ac_exeext conftest.$ac_ext
9206 LIBS=$ac_check_lib_save_LIBS
9208 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9209 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9210 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9211 cat >>confdefs.h <<_ACEOF
9212 #define HAVE_LIBPAM 1
9218 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9219 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9220 { (exit 1); exit 1; }; }
9225 if test "$with_libxml" = yes ; then
9227 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9228 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9229 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9230 $as_echo_n "(cached) " >&6
9232 ac_check_lib_save_LIBS=$LIBS
9234 cat >conftest.$ac_ext <<_ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9241 /* Override any GCC internal prototype to avoid an error.
9242 Use char because int might match the return type of a GCC
9243 builtin and then its argument prototype would still apply. */
9247 char xmlSaveToBuffer ();
9251 return xmlSaveToBuffer ();
9256 rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (ac_try="$ac_link"
9259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260 *) ac_try_echo=$ac_try;;
9262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9263 $as_echo "$ac_try_echo") >&5
9264 (eval "$ac_link") 2>conftest.er1
9266 grep -v '^ *+' conftest.er1 >conftest.err
9268 cat conftest.err >&5
9269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } && {
9271 test -z "$ac_c_werror_flag" ||
9272 test ! -s conftest.err
9273 } && test -s conftest$ac_exeext && {
9274 test "$cross_compiling" = yes ||
9275 $as_test_x conftest$ac_exeext
9277 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9279 $as_echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9282 ac_cv_lib_xml2_xmlSaveToBuffer=no
9285 rm -rf conftest.dSYM
9286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9287 conftest$ac_exeext conftest.$ac_ext
9288 LIBS=$ac_check_lib_save_LIBS
9290 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9291 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9292 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9293 cat >>confdefs.h <<_ACEOF
9294 #define HAVE_LIBXML2 1
9300 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9301 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9302 { (exit 1); exit 1; }; }
9307 if test "$with_libxslt" = yes ; then
9309 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9310 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9311 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9312 $as_echo_n "(cached) " >&6
9314 ac_check_lib_save_LIBS=$LIBS
9316 cat >conftest.$ac_ext <<_ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9323 /* Override any GCC internal prototype to avoid an error.
9324 Use char because int might match the return type of a GCC
9325 builtin and then its argument prototype would still apply. */
9329 char xsltCleanupGlobals ();
9333 return xsltCleanupGlobals ();
9338 rm -f conftest.$ac_objext conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9345 $as_echo "$ac_try_echo") >&5
9346 (eval "$ac_link") 2>conftest.er1
9348 grep -v '^ *+' conftest.er1 >conftest.err
9350 cat conftest.err >&5
9351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } && {
9353 test -z "$ac_c_werror_flag" ||
9354 test ! -s conftest.err
9355 } && test -s conftest$ac_exeext && {
9356 test "$cross_compiling" = yes ||
9357 $as_test_x conftest$ac_exeext
9359 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9361 $as_echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9364 ac_cv_lib_xslt_xsltCleanupGlobals=no
9367 rm -rf conftest.dSYM
9368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9369 conftest$ac_exeext conftest.$ac_ext
9370 LIBS=$ac_check_lib_save_LIBS
9372 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9373 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9374 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9375 cat >>confdefs.h <<_ACEOF
9376 #define HAVE_LIBXSLT 1
9382 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9383 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9384 { (exit 1); exit 1; }; }
9389 # for contrib/sepgsql
9390 if test "$with_selinux" = yes; then
9392 { $as_echo "$as_me:$LINENO: checking for selinux_sepgsql_context_path in -lselinux" >&5
9393 $as_echo_n "checking for selinux_sepgsql_context_path in -lselinux... " >&6; }
9394 if test "${ac_cv_lib_selinux_selinux_sepgsql_context_path+set}" = set; then
9395 $as_echo_n "(cached) " >&6
9397 ac_check_lib_save_LIBS=$LIBS
9398 LIBS="-lselinux $LIBS"
9399 cat >conftest.$ac_ext <<_ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9406 /* Override any GCC internal prototype to avoid an error.
9407 Use char because int might match the return type of a GCC
9408 builtin and then its argument prototype would still apply. */
9412 char selinux_sepgsql_context_path ();
9416 return selinux_sepgsql_context_path ();
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (ac_try="$ac_link"
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9428 $as_echo "$ac_try_echo") >&5
9429 (eval "$ac_link") 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest$ac_exeext && {
9439 test "$cross_compiling" = yes ||
9440 $as_test_x conftest$ac_exeext
9442 ac_cv_lib_selinux_selinux_sepgsql_context_path=yes
9444 $as_echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 ac_cv_lib_selinux_selinux_sepgsql_context_path=no
9450 rm -rf conftest.dSYM
9451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9452 conftest$ac_exeext conftest.$ac_ext
9453 LIBS=$ac_check_lib_save_LIBS
9455 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_sepgsql_context_path" >&5
9456 $as_echo "$ac_cv_lib_selinux_selinux_sepgsql_context_path" >&6; }
9457 if test "x$ac_cv_lib_selinux_selinux_sepgsql_context_path" = x""yes; then
9458 cat >>confdefs.h <<_ACEOF
9459 #define HAVE_LIBSELINUX 1
9462 LIBS="-lselinux $LIBS"
9465 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.93 or newer, is required for SELinux support" >&5
9466 $as_echo "$as_me: error: library 'libselinux', version 2.0.93 or newer, is required for SELinux support" >&2;}
9467 { (exit 1); exit 1; }; }
9472 # for contrib/uuid-ossp
9473 if test "$with_ossp_uuid" = yes ; then
9474 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9475 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9476 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9477 $as_echo_n "(cached) " >&6
9479 ac_check_lib_save_LIBS=$LIBS
9480 LIBS="-lossp-uuid $LIBS"
9481 cat >conftest.$ac_ext <<_ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9488 /* Override any GCC internal prototype to avoid an error.
9489 Use char because int might match the return type of a GCC
9490 builtin and then its argument prototype would still apply. */
9494 char uuid_export ();
9498 return uuid_export ();
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9510 $as_echo "$ac_try_echo") >&5
9511 (eval "$ac_link") 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && {
9518 test -z "$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 } && test -s conftest$ac_exeext && {
9521 test "$cross_compiling" = yes ||
9522 $as_test_x conftest$ac_exeext
9524 ac_cv_lib_ossp_uuid_uuid_export=yes
9526 $as_echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9529 ac_cv_lib_ossp_uuid_uuid_export=no
9532 rm -rf conftest.dSYM
9533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9534 conftest$ac_exeext conftest.$ac_ext
9535 LIBS=$ac_check_lib_save_LIBS
9537 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9538 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9539 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9540 OSSP_UUID_LIBS="-lossp-uuid"
9542 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9543 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9544 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9545 $as_echo_n "(cached) " >&6
9547 ac_check_lib_save_LIBS=$LIBS
9549 cat >conftest.$ac_ext <<_ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9556 /* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
9562 char uuid_export ();
9566 return uuid_export ();
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (ac_try="$ac_link"
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9578 $as_echo "$ac_try_echo") >&5
9579 (eval "$ac_link") 2>conftest.er1
9581 grep -v '^ *+' conftest.er1 >conftest.err
9583 cat conftest.err >&5
9584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } && {
9586 test -z "$ac_c_werror_flag" ||
9587 test ! -s conftest.err
9588 } && test -s conftest$ac_exeext && {
9589 test "$cross_compiling" = yes ||
9590 $as_test_x conftest$ac_exeext
9592 ac_cv_lib_uuid_uuid_export=yes
9594 $as_echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ac_cv_lib_uuid_uuid_export=no
9600 rm -rf conftest.dSYM
9601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9602 conftest$ac_exeext conftest.$ac_ext
9603 LIBS=$ac_check_lib_save_LIBS
9605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9606 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9607 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9608 OSSP_UUID_LIBS="-luuid"
9610 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9611 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9612 { (exit 1); exit 1; }; }
9625 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9626 $as_echo_n "checking for ANSI C header files... " >&6; }
9627 if test "${ac_cv_header_stdc+set}" = set; then
9628 $as_echo_n "(cached) " >&6
9630 cat >conftest.$ac_ext <<_ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9649 rm -f conftest.$ac_objext
9650 if { (ac_try="$ac_compile"
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9656 $as_echo "$ac_try_echo") >&5
9657 (eval "$ac_compile") 2>conftest.er1
9659 grep -v '^ *+' conftest.er1 >conftest.err
9661 cat conftest.err >&5
9662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && {
9664 test -z "$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 } && test -s conftest.$ac_objext; then
9667 ac_cv_header_stdc=yes
9669 $as_echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_cv_header_stdc=no
9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9677 if test $ac_cv_header_stdc = yes; then
9678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9689 $EGREP "memchr" >/dev/null 2>&1; then
9692 ac_cv_header_stdc=no
9698 if test $ac_cv_header_stdc = yes; then
9699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9700 cat >conftest.$ac_ext <<_ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9710 $EGREP "free" >/dev/null 2>&1; then
9713 ac_cv_header_stdc=no
9719 if test $ac_cv_header_stdc = yes; then
9720 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9721 if test "$cross_compiling" = yes; then
9724 cat >conftest.$ac_ext <<_ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9732 #if ((' ' & 0x0FF) == 0x020)
9733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9736 # define ISLOWER(c) \
9737 (('a' <= (c) && (c) <= 'i') \
9738 || ('j' <= (c) && (c) <= 'r') \
9739 || ('s' <= (c) && (c) <= 'z'))
9740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9748 for (i = 0; i < 256; i++)
9749 if (XOR (islower (i), ISLOWER (i))
9750 || toupper (i) != TOUPPER (i))
9755 rm -f conftest$ac_exeext
9756 if { (ac_try="$ac_link"
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9762 $as_echo "$ac_try_echo") >&5
9763 (eval "$ac_link") 2>&5
9765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9767 { (case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9772 $as_echo "$ac_try_echo") >&5
9773 (eval "$ac_try") 2>&5
9775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9779 $as_echo "$as_me: program exited with status $ac_status" >&5
9780 $as_echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9784 ac_cv_header_stdc=no
9786 rm -rf conftest.dSYM
9787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9793 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9794 $as_echo "$ac_cv_header_stdc" >&6; }
9795 if test $ac_cv_header_stdc = yes; then
9797 cat >>confdefs.h <<\_ACEOF
9798 #define STDC_HEADERS 1
9803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9813 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9814 inttypes.h stdint.h unistd.h
9816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9817 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9818 $as_echo_n "checking for $ac_header... " >&6; }
9819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9820 $as_echo_n "(cached) " >&6
9822 cat >conftest.$ac_ext <<_ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9828 $ac_includes_default
9830 #include <$ac_header>
9832 rm -f conftest.$ac_objext
9833 if { (ac_try="$ac_compile"
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9839 $as_echo "$ac_try_echo") >&5
9840 (eval "$ac_compile") 2>conftest.er1
9842 grep -v '^ *+' conftest.er1 >conftest.err
9844 cat conftest.err >&5
9845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest.$ac_objext; then
9850 eval "$as_ac_Header=yes"
9852 $as_echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 eval "$as_ac_Header=no"
9858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9860 ac_res=`eval 'as_val=${'$as_ac_Header'}
9861 $as_echo "$as_val"'`
9862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9863 $as_echo "$ac_res" >&6; }
9864 as_val=`eval 'as_val=${'$as_ac_Header'}
9865 $as_echo "$as_val"'`
9866 if test "x$as_val" = x""yes; then
9867 cat >>confdefs.h <<_ACEOF
9868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9906 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/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9910 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9911 $as_echo_n "checking for $ac_header... " >&6; }
9912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9913 $as_echo_n "(cached) " >&6
9915 ac_res=`eval 'as_val=${'$as_ac_Header'}
9916 $as_echo "$as_val"'`
9917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9918 $as_echo "$ac_res" >&6; }
9920 # Is the header compilable?
9921 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9922 $as_echo_n "checking $ac_header usability... " >&6; }
9923 cat >conftest.$ac_ext <<_ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 $ac_includes_default
9930 #include <$ac_header>
9932 rm -f conftest.$ac_objext
9933 if { (ac_try="$ac_compile"
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9939 $as_echo "$ac_try_echo") >&5
9940 (eval "$ac_compile") 2>conftest.er1
9942 grep -v '^ *+' conftest.er1 >conftest.err
9944 cat conftest.err >&5
9945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } && {
9947 test -z "$ac_c_werror_flag" ||
9948 test ! -s conftest.err
9949 } && test -s conftest.$ac_objext; then
9950 ac_header_compiler=yes
9952 $as_echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9955 ac_header_compiler=no
9958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9960 $as_echo "$ac_header_compiler" >&6; }
9962 # Is the header present?
9963 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9964 $as_echo_n "checking $ac_header presence... " >&6; }
9965 cat >conftest.$ac_ext <<_ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971 #include <$ac_header>
9973 if { (ac_try="$ac_cpp conftest.$ac_ext"
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9979 $as_echo "$ac_try_echo") >&5
9980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9982 grep -v '^ *+' conftest.er1 >conftest.err
9984 cat conftest.err >&5
9985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } >/dev/null && {
9987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9988 test ! -s conftest.err
9990 ac_header_preproc=yes
9992 $as_echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9995 ac_header_preproc=no
9998 rm -f conftest.err conftest.$ac_ext
9999 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10000 $as_echo "$ac_header_preproc" >&6; }
10002 # So? What about this header?
10003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10006 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10008 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10009 ac_header_preproc=yes
10012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10013 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10015 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10017 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10019 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10021 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10023 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10025 ## ---------------------------------------- ##
10026 ## Report this to pgsql-bugs@postgresql.org ##
10027 ## ---------------------------------------- ##
10029 ) | sed "s/^/$as_me: WARNING: /" >&2
10032 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10033 $as_echo_n "checking for $ac_header... " >&6; }
10034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10035 $as_echo_n "(cached) " >&6
10037 eval "$as_ac_Header=\$ac_header_preproc"
10039 ac_res=`eval 'as_val=${'$as_ac_Header'}
10040 $as_echo "$as_val"'`
10041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10042 $as_echo "$ac_res" >&6; }
10045 as_val=`eval 'as_val=${'$as_ac_Header'}
10046 $as_echo "$as_val"'`
10047 if test "x$as_val" = x""yes; then
10048 cat >>confdefs.h <<_ACEOF
10049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10057 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10058 # is included first.
10060 for ac_header in net/if.h
10062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 #ifdef HAVE_SYS_SOCKET_H
10076 #include <sys/socket.h>
10080 #include <$ac_header>
10082 rm -f conftest.$ac_objext
10083 if { (ac_try="$ac_compile"
10084 case "(($ac_try" in
10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10089 $as_echo "$ac_try_echo") >&5
10090 (eval "$ac_compile") 2>conftest.er1
10092 grep -v '^ *+' conftest.er1 >conftest.err
10094 cat conftest.err >&5
10095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } && {
10097 test -z "$ac_c_werror_flag" ||
10098 test ! -s conftest.err
10099 } && test -s conftest.$ac_objext; then
10100 eval "$as_ac_Header=yes"
10102 $as_echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10105 eval "$as_ac_Header=no"
10108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10110 ac_res=`eval 'as_val=${'$as_ac_Header'}
10111 $as_echo "$as_val"'`
10112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10113 $as_echo "$ac_res" >&6; }
10114 as_val=`eval 'as_val=${'$as_ac_Header'}
10115 $as_echo "$as_val"'`
10116 if test "x$as_val" = x""yes; then
10117 cat >>confdefs.h <<_ACEOF
10118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10126 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10127 # netinet/in.h is included first.
10129 for ac_header in netinet/in.h
10131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10134 $as_echo_n "checking for $ac_header... " >&6; }
10135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10136 $as_echo_n "(cached) " >&6
10138 ac_res=`eval 'as_val=${'$as_ac_Header'}
10139 $as_echo "$as_val"'`
10140 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10141 $as_echo "$ac_res" >&6; }
10143 # Is the header compilable?
10144 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10145 $as_echo_n "checking $ac_header usability... " >&6; }
10146 cat >conftest.$ac_ext <<_ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10152 $ac_includes_default
10153 #include <$ac_header>
10155 rm -f conftest.$ac_objext
10156 if { (ac_try="$ac_compile"
10157 case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10162 $as_echo "$ac_try_echo") >&5
10163 (eval "$ac_compile") 2>conftest.er1
10165 grep -v '^ *+' conftest.er1 >conftest.err
10167 cat conftest.err >&5
10168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } && {
10170 test -z "$ac_c_werror_flag" ||
10171 test ! -s conftest.err
10172 } && test -s conftest.$ac_objext; then
10173 ac_header_compiler=yes
10175 $as_echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 ac_header_compiler=no
10181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10183 $as_echo "$ac_header_compiler" >&6; }
10185 # Is the header present?
10186 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10187 $as_echo_n "checking $ac_header presence... " >&6; }
10188 cat >conftest.$ac_ext <<_ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h. */
10194 #include <$ac_header>
10196 if { (ac_try="$ac_cpp conftest.$ac_ext"
10197 case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10202 $as_echo "$ac_try_echo") >&5
10203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10205 grep -v '^ *+' conftest.er1 >conftest.err
10207 cat conftest.err >&5
10208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } >/dev/null && {
10210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10213 ac_header_preproc=yes
10215 $as_echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_header_preproc=no
10221 rm -f conftest.err conftest.$ac_ext
10222 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10223 $as_echo "$ac_header_preproc" >&6; }
10225 # So? What about this header?
10226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10229 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10232 ac_header_preproc=yes
10235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10236 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10238 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10240 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10242 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10246 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10248 ## ---------------------------------------- ##
10249 ## Report this to pgsql-bugs@postgresql.org ##
10250 ## ---------------------------------------- ##
10252 ) | sed "s/^/$as_me: WARNING: /" >&2
10255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10256 $as_echo_n "checking for $ac_header... " >&6; }
10257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10258 $as_echo_n "(cached) " >&6
10260 eval "$as_ac_Header=\$ac_header_preproc"
10262 ac_res=`eval 'as_val=${'$as_ac_Header'}
10263 $as_echo "$as_val"'`
10264 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10265 $as_echo "$ac_res" >&6; }
10268 as_val=`eval 'as_val=${'$as_ac_Header'}
10269 $as_echo "$as_val"'`
10270 if test "x$as_val" = x""yes; then
10271 cat >>confdefs.h <<_ACEOF
10272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10280 for ac_header in netinet/tcp.h
10282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10283 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10284 $as_echo_n "checking for $ac_header... " >&6; }
10285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10286 $as_echo_n "(cached) " >&6
10288 cat >conftest.$ac_ext <<_ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294 $ac_includes_default
10295 #ifdef HAVE_NETINET_IN_H
10296 #include <netinet/in.h>
10300 #include <$ac_header>
10302 rm -f conftest.$ac_objext
10303 if { (ac_try="$ac_compile"
10304 case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10309 $as_echo "$ac_try_echo") >&5
10310 (eval "$ac_compile") 2>conftest.er1
10312 grep -v '^ *+' conftest.er1 >conftest.err
10314 cat conftest.err >&5
10315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } && {
10317 test -z "$ac_c_werror_flag" ||
10318 test ! -s conftest.err
10319 } && test -s conftest.$ac_objext; then
10320 eval "$as_ac_Header=yes"
10322 $as_echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 eval "$as_ac_Header=no"
10328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10330 ac_res=`eval 'as_val=${'$as_ac_Header'}
10331 $as_echo "$as_val"'`
10332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10333 $as_echo "$ac_res" >&6; }
10334 as_val=`eval 'as_val=${'$as_ac_Header'}
10335 $as_echo "$as_val"'`
10336 if test "x$as_val" = x""yes; then
10337 cat >>confdefs.h <<_ACEOF
10338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10346 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10348 for ac_header in readline/readline.h
10350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10352 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10353 $as_echo_n "checking for $ac_header... " >&6; }
10354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10355 $as_echo_n "(cached) " >&6
10357 ac_res=`eval 'as_val=${'$as_ac_Header'}
10358 $as_echo "$as_val"'`
10359 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10360 $as_echo "$ac_res" >&6; }
10362 # Is the header compilable?
10363 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10364 $as_echo_n "checking $ac_header usability... " >&6; }
10365 cat >conftest.$ac_ext <<_ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 $ac_includes_default
10372 #include <$ac_header>
10374 rm -f conftest.$ac_objext
10375 if { (ac_try="$ac_compile"
10376 case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10381 $as_echo "$ac_try_echo") >&5
10382 (eval "$ac_compile") 2>conftest.er1
10384 grep -v '^ *+' conftest.er1 >conftest.err
10386 cat conftest.err >&5
10387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } && {
10389 test -z "$ac_c_werror_flag" ||
10390 test ! -s conftest.err
10391 } && test -s conftest.$ac_objext; then
10392 ac_header_compiler=yes
10394 $as_echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10397 ac_header_compiler=no
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10402 $as_echo "$ac_header_compiler" >&6; }
10404 # Is the header present?
10405 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10406 $as_echo_n "checking $ac_header presence... " >&6; }
10407 cat >conftest.$ac_ext <<_ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 #include <$ac_header>
10415 if { (ac_try="$ac_cpp conftest.$ac_ext"
10416 case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10421 $as_echo "$ac_try_echo") >&5
10422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10424 grep -v '^ *+' conftest.er1 >conftest.err
10426 cat conftest.err >&5
10427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } >/dev/null && {
10429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10432 ac_header_preproc=yes
10434 $as_echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10437 ac_header_preproc=no
10440 rm -f conftest.err conftest.$ac_ext
10441 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10442 $as_echo "$ac_header_preproc" >&6; }
10444 # So? What about this header?
10445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10448 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10451 ac_header_preproc=yes
10454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10455 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10457 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10459 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10461 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10465 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10467 ## ---------------------------------------- ##
10468 ## Report this to pgsql-bugs@postgresql.org ##
10469 ## ---------------------------------------- ##
10471 ) | sed "s/^/$as_me: WARNING: /" >&2
10474 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10475 $as_echo_n "checking for $ac_header... " >&6; }
10476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10477 $as_echo_n "(cached) " >&6
10479 eval "$as_ac_Header=\$ac_header_preproc"
10481 ac_res=`eval 'as_val=${'$as_ac_Header'}
10482 $as_echo "$as_val"'`
10483 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10484 $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
10496 for ac_header in readline.h
10498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10500 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10501 $as_echo_n "checking for $ac_header... " >&6; }
10502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10503 $as_echo_n "(cached) " >&6
10505 ac_res=`eval 'as_val=${'$as_ac_Header'}
10506 $as_echo "$as_val"'`
10507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10508 $as_echo "$ac_res" >&6; }
10510 # Is the header compilable?
10511 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10512 $as_echo_n "checking $ac_header usability... " >&6; }
10513 cat >conftest.$ac_ext <<_ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10519 $ac_includes_default
10520 #include <$ac_header>
10522 rm -f conftest.$ac_objext
10523 if { (ac_try="$ac_compile"
10524 case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10529 $as_echo "$ac_try_echo") >&5
10530 (eval "$ac_compile") 2>conftest.er1
10532 grep -v '^ *+' conftest.er1 >conftest.err
10534 cat conftest.err >&5
10535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } && {
10537 test -z "$ac_c_werror_flag" ||
10538 test ! -s conftest.err
10539 } && test -s conftest.$ac_objext; then
10540 ac_header_compiler=yes
10542 $as_echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10545 ac_header_compiler=no
10548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10550 $as_echo "$ac_header_compiler" >&6; }
10552 # Is the header present?
10553 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10554 $as_echo_n "checking $ac_header presence... " >&6; }
10555 cat >conftest.$ac_ext <<_ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 #include <$ac_header>
10563 if { (ac_try="$ac_cpp conftest.$ac_ext"
10564 case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10569 $as_echo "$ac_try_echo") >&5
10570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10572 grep -v '^ *+' conftest.er1 >conftest.err
10574 cat conftest.err >&5
10575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } >/dev/null && {
10577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10578 test ! -s conftest.err
10580 ac_header_preproc=yes
10582 $as_echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 ac_header_preproc=no
10588 rm -f conftest.err conftest.$ac_ext
10589 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10590 $as_echo "$ac_header_preproc" >&6; }
10592 # So? What about this header?
10593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10596 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10599 ac_header_preproc=yes
10602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10603 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10605 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10607 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10609 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10613 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10615 ## ---------------------------------------- ##
10616 ## Report this to pgsql-bugs@postgresql.org ##
10617 ## ---------------------------------------- ##
10619 ) | sed "s/^/$as_me: WARNING: /" >&2
10622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10623 $as_echo_n "checking for $ac_header... " >&6; }
10624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10625 $as_echo_n "(cached) " >&6
10627 eval "$as_ac_Header=\$ac_header_preproc"
10629 ac_res=`eval 'as_val=${'$as_ac_Header'}
10630 $as_echo "$as_val"'`
10631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10632 $as_echo "$ac_res" >&6; }
10635 as_val=`eval 'as_val=${'$as_ac_Header'}
10636 $as_echo "$as_val"'`
10637 if test "x$as_val" = x""yes; then
10638 cat >>confdefs.h <<_ACEOF
10639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10643 { { $as_echo "$as_me:$LINENO: error: readline header not found
10644 If you have readline already installed, see config.log for details on the
10645 failure. It is possible the compiler isn't looking in the proper directory.
10646 Use --without-readline to disable readline support." >&5
10647 $as_echo "$as_me: error: readline header not found
10648 If you have readline already installed, see config.log for details on the
10649 failure. It is possible the compiler isn't looking in the proper directory.
10650 Use --without-readline to disable readline support." >&2;}
10651 { (exit 1); exit 1; }; }
10661 for ac_header in readline/history.h
10663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10665 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10666 $as_echo_n "checking for $ac_header... " >&6; }
10667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10668 $as_echo_n "(cached) " >&6
10670 ac_res=`eval 'as_val=${'$as_ac_Header'}
10671 $as_echo "$as_val"'`
10672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10673 $as_echo "$ac_res" >&6; }
10675 # Is the header compilable?
10676 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10677 $as_echo_n "checking $ac_header usability... " >&6; }
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 $ac_includes_default
10685 #include <$ac_header>
10687 rm -f conftest.$ac_objext
10688 if { (ac_try="$ac_compile"
10689 case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10694 $as_echo "$ac_try_echo") >&5
10695 (eval "$ac_compile") 2>conftest.er1
10697 grep -v '^ *+' conftest.er1 >conftest.err
10699 cat conftest.err >&5
10700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } && {
10702 test -z "$ac_c_werror_flag" ||
10703 test ! -s conftest.err
10704 } && test -s conftest.$ac_objext; then
10705 ac_header_compiler=yes
10707 $as_echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10710 ac_header_compiler=no
10713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10714 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10715 $as_echo "$ac_header_compiler" >&6; }
10717 # Is the header present?
10718 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10719 $as_echo_n "checking $ac_header presence... " >&6; }
10720 cat >conftest.$ac_ext <<_ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 #include <$ac_header>
10728 if { (ac_try="$ac_cpp conftest.$ac_ext"
10729 case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10734 $as_echo "$ac_try_echo") >&5
10735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } >/dev/null && {
10742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10745 ac_header_preproc=yes
10747 $as_echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 ac_header_preproc=no
10753 rm -f conftest.err conftest.$ac_ext
10754 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10755 $as_echo "$ac_header_preproc" >&6; }
10757 # So? What about this header?
10758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10761 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10763 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10764 ac_header_preproc=yes
10767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10768 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10770 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10772 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10774 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10776 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10778 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10780 ## ---------------------------------------- ##
10781 ## Report this to pgsql-bugs@postgresql.org ##
10782 ## ---------------------------------------- ##
10784 ) | sed "s/^/$as_me: WARNING: /" >&2
10787 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10788 $as_echo_n "checking for $ac_header... " >&6; }
10789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10790 $as_echo_n "(cached) " >&6
10792 eval "$as_ac_Header=\$ac_header_preproc"
10794 ac_res=`eval 'as_val=${'$as_ac_Header'}
10795 $as_echo "$as_val"'`
10796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10797 $as_echo "$ac_res" >&6; }
10800 as_val=`eval 'as_val=${'$as_ac_Header'}
10801 $as_echo "$as_val"'`
10802 if test "x$as_val" = x""yes; then
10803 cat >>confdefs.h <<_ACEOF
10804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10809 for ac_header in history.h
10811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10813 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10814 $as_echo_n "checking for $ac_header... " >&6; }
10815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10816 $as_echo_n "(cached) " >&6
10818 ac_res=`eval 'as_val=${'$as_ac_Header'}
10819 $as_echo "$as_val"'`
10820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10821 $as_echo "$ac_res" >&6; }
10823 # Is the header compilable?
10824 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10825 $as_echo_n "checking $ac_header usability... " >&6; }
10826 cat >conftest.$ac_ext <<_ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 $ac_includes_default
10833 #include <$ac_header>
10835 rm -f conftest.$ac_objext
10836 if { (ac_try="$ac_compile"
10837 case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10842 $as_echo "$ac_try_echo") >&5
10843 (eval "$ac_compile") 2>conftest.er1
10845 grep -v '^ *+' conftest.er1 >conftest.err
10847 cat conftest.err >&5
10848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } && {
10850 test -z "$ac_c_werror_flag" ||
10851 test ! -s conftest.err
10852 } && test -s conftest.$ac_objext; then
10853 ac_header_compiler=yes
10855 $as_echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10858 ac_header_compiler=no
10861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10862 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10863 $as_echo "$ac_header_compiler" >&6; }
10865 # Is the header present?
10866 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10867 $as_echo_n "checking $ac_header presence... " >&6; }
10868 cat >conftest.$ac_ext <<_ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h. */
10874 #include <$ac_header>
10876 if { (ac_try="$ac_cpp conftest.$ac_ext"
10877 case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10882 $as_echo "$ac_try_echo") >&5
10883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10885 grep -v '^ *+' conftest.er1 >conftest.err
10887 cat conftest.err >&5
10888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } >/dev/null && {
10890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10891 test ! -s conftest.err
10893 ac_header_preproc=yes
10895 $as_echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10898 ac_header_preproc=no
10901 rm -f conftest.err conftest.$ac_ext
10902 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10903 $as_echo "$ac_header_preproc" >&6; }
10905 # So? What about this header?
10906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10909 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10911 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10912 ac_header_preproc=yes
10915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10916 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10918 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10920 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10922 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10924 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10926 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10928 ## ---------------------------------------- ##
10929 ## Report this to pgsql-bugs@postgresql.org ##
10930 ## ---------------------------------------- ##
10932 ) | sed "s/^/$as_me: WARNING: /" >&2
10935 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10936 $as_echo_n "checking for $ac_header... " >&6; }
10937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10938 $as_echo_n "(cached) " >&6
10940 eval "$as_ac_Header=\$ac_header_preproc"
10942 ac_res=`eval 'as_val=${'$as_ac_Header'}
10943 $as_echo "$as_val"'`
10944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10945 $as_echo "$ac_res" >&6; }
10948 as_val=`eval 'as_val=${'$as_ac_Header'}
10949 $as_echo "$as_val"'`
10950 if test "x$as_val" = x""yes; then
10951 cat >>confdefs.h <<_ACEOF
10952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10956 { { $as_echo "$as_me:$LINENO: error: history header not found
10957 If you have readline already installed, see config.log for details on the
10958 failure. It is possible the compiler isn't looking in the proper directory.
10959 Use --without-readline to disable readline support." >&5
10960 $as_echo "$as_me: error: history header not found
10961 If you have readline already installed, see config.log for details on the
10962 failure. It is possible the compiler isn't looking in the proper directory.
10963 Use --without-readline to disable readline support." >&2;}
10964 { (exit 1); exit 1; }; }
10975 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10976 # Some installations of libedit usurp /usr/include/readline/, which seems
10977 # bad practice, since in combined installations readline will have its headers
10978 # there. We might have to resort to AC_EGREP checks to make sure we found
10979 # the proper header...
10981 for ac_header in editline/readline.h
10983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10986 $as_echo_n "checking for $ac_header... " >&6; }
10987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10988 $as_echo_n "(cached) " >&6
10990 ac_res=`eval 'as_val=${'$as_ac_Header'}
10991 $as_echo "$as_val"'`
10992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10993 $as_echo "$ac_res" >&6; }
10995 # Is the header compilable?
10996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10997 $as_echo_n "checking $ac_header usability... " >&6; }
10998 cat >conftest.$ac_ext <<_ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11004 $ac_includes_default
11005 #include <$ac_header>
11007 rm -f conftest.$ac_objext
11008 if { (ac_try="$ac_compile"
11009 case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11014 $as_echo "$ac_try_echo") >&5
11015 (eval "$ac_compile") 2>conftest.er1
11017 grep -v '^ *+' conftest.er1 >conftest.err
11019 cat conftest.err >&5
11020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest.$ac_objext; then
11025 ac_header_compiler=yes
11027 $as_echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_header_compiler=no
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11035 $as_echo "$ac_header_compiler" >&6; }
11037 # Is the header present?
11038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11039 $as_echo_n "checking $ac_header presence... " >&6; }
11040 cat >conftest.$ac_ext <<_ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 #include <$ac_header>
11048 if { (ac_try="$ac_cpp conftest.$ac_ext"
11049 case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11054 $as_echo "$ac_try_echo") >&5
11055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11057 grep -v '^ *+' conftest.er1 >conftest.err
11059 cat conftest.err >&5
11060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } >/dev/null && {
11062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11063 test ! -s conftest.err
11065 ac_header_preproc=yes
11067 $as_echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11070 ac_header_preproc=no
11073 rm -f conftest.err conftest.$ac_ext
11074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11075 $as_echo "$ac_header_preproc" >&6; }
11077 # So? What about this header?
11078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11084 ac_header_preproc=yes
11087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11090 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11094 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11100 ## ---------------------------------------- ##
11101 ## Report this to pgsql-bugs@postgresql.org ##
11102 ## ---------------------------------------- ##
11104 ) | sed "s/^/$as_me: WARNING: /" >&2
11107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11108 $as_echo_n "checking for $ac_header... " >&6; }
11109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11110 $as_echo_n "(cached) " >&6
11112 eval "$as_ac_Header=\$ac_header_preproc"
11114 ac_res=`eval 'as_val=${'$as_ac_Header'}
11115 $as_echo "$as_val"'`
11116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11117 $as_echo "$ac_res" >&6; }
11120 as_val=`eval 'as_val=${'$as_ac_Header'}
11121 $as_echo "$as_val"'`
11122 if test "x$as_val" = x""yes; then
11123 cat >>confdefs.h <<_ACEOF
11124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11129 for ac_header in readline.h
11131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11134 $as_echo_n "checking for $ac_header... " >&6; }
11135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136 $as_echo_n "(cached) " >&6
11138 ac_res=`eval 'as_val=${'$as_ac_Header'}
11139 $as_echo "$as_val"'`
11140 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11141 $as_echo "$ac_res" >&6; }
11143 # Is the header compilable?
11144 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11145 $as_echo_n "checking $ac_header usability... " >&6; }
11146 cat >conftest.$ac_ext <<_ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11152 $ac_includes_default
11153 #include <$ac_header>
11155 rm -f conftest.$ac_objext
11156 if { (ac_try="$ac_compile"
11157 case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11162 $as_echo "$ac_try_echo") >&5
11163 (eval "$ac_compile") 2>conftest.er1
11165 grep -v '^ *+' conftest.er1 >conftest.err
11167 cat conftest.err >&5
11168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } && {
11170 test -z "$ac_c_werror_flag" ||
11171 test ! -s conftest.err
11172 } && test -s conftest.$ac_objext; then
11173 ac_header_compiler=yes
11175 $as_echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 ac_header_compiler=no
11181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11182 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11183 $as_echo "$ac_header_compiler" >&6; }
11185 # Is the header present?
11186 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11187 $as_echo_n "checking $ac_header presence... " >&6; }
11188 cat >conftest.$ac_ext <<_ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11194 #include <$ac_header>
11196 if { (ac_try="$ac_cpp conftest.$ac_ext"
11197 case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11202 $as_echo "$ac_try_echo") >&5
11203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11205 grep -v '^ *+' conftest.er1 >conftest.err
11207 cat conftest.err >&5
11208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } >/dev/null && {
11210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11211 test ! -s conftest.err
11213 ac_header_preproc=yes
11215 $as_echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11218 ac_header_preproc=no
11221 rm -f conftest.err conftest.$ac_ext
11222 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11223 $as_echo "$ac_header_preproc" >&6; }
11225 # So? What about this header?
11226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11229 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11232 ac_header_preproc=yes
11235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11236 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11238 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11240 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11242 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11246 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11248 ## ---------------------------------------- ##
11249 ## Report this to pgsql-bugs@postgresql.org ##
11250 ## ---------------------------------------- ##
11252 ) | sed "s/^/$as_me: WARNING: /" >&2
11255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11256 $as_echo_n "checking for $ac_header... " >&6; }
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258 $as_echo_n "(cached) " >&6
11260 eval "$as_ac_Header=\$ac_header_preproc"
11262 ac_res=`eval 'as_val=${'$as_ac_Header'}
11263 $as_echo "$as_val"'`
11264 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11265 $as_echo "$ac_res" >&6; }
11268 as_val=`eval 'as_val=${'$as_ac_Header'}
11269 $as_echo "$as_val"'`
11270 if test "x$as_val" = x""yes; then
11271 cat >>confdefs.h <<_ACEOF
11272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11277 for ac_header in readline/readline.h
11279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11282 $as_echo_n "checking for $ac_header... " >&6; }
11283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11284 $as_echo_n "(cached) " >&6
11286 ac_res=`eval 'as_val=${'$as_ac_Header'}
11287 $as_echo "$as_val"'`
11288 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11289 $as_echo "$ac_res" >&6; }
11291 # Is the header compilable?
11292 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11293 $as_echo_n "checking $ac_header usability... " >&6; }
11294 cat >conftest.$ac_ext <<_ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 $ac_includes_default
11301 #include <$ac_header>
11303 rm -f conftest.$ac_objext
11304 if { (ac_try="$ac_compile"
11305 case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11310 $as_echo "$ac_try_echo") >&5
11311 (eval "$ac_compile") 2>conftest.er1
11313 grep -v '^ *+' conftest.er1 >conftest.err
11315 cat conftest.err >&5
11316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } && {
11318 test -z "$ac_c_werror_flag" ||
11319 test ! -s conftest.err
11320 } && test -s conftest.$ac_objext; then
11321 ac_header_compiler=yes
11323 $as_echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11326 ac_header_compiler=no
11329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11331 $as_echo "$ac_header_compiler" >&6; }
11333 # Is the header present?
11334 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11335 $as_echo_n "checking $ac_header presence... " >&6; }
11336 cat >conftest.$ac_ext <<_ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 #include <$ac_header>
11344 if { (ac_try="$ac_cpp conftest.$ac_ext"
11345 case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11350 $as_echo "$ac_try_echo") >&5
11351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11353 grep -v '^ *+' conftest.er1 >conftest.err
11355 cat conftest.err >&5
11356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } >/dev/null && {
11358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11359 test ! -s conftest.err
11361 ac_header_preproc=yes
11363 $as_echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 ac_header_preproc=no
11369 rm -f conftest.err conftest.$ac_ext
11370 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11371 $as_echo "$ac_header_preproc" >&6; }
11373 # So? What about this header?
11374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11377 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11379 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11380 ac_header_preproc=yes
11383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11384 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11386 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11388 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11390 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11392 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11394 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11396 ## ---------------------------------------- ##
11397 ## Report this to pgsql-bugs@postgresql.org ##
11398 ## ---------------------------------------- ##
11400 ) | sed "s/^/$as_me: WARNING: /" >&2
11403 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11404 $as_echo_n "checking for $ac_header... " >&6; }
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406 $as_echo_n "(cached) " >&6
11408 eval "$as_ac_Header=\$ac_header_preproc"
11410 ac_res=`eval 'as_val=${'$as_ac_Header'}
11411 $as_echo "$as_val"'`
11412 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11413 $as_echo "$ac_res" >&6; }
11416 as_val=`eval 'as_val=${'$as_ac_Header'}
11417 $as_echo "$as_val"'`
11418 if test "x$as_val" = x""yes; then
11419 cat >>confdefs.h <<_ACEOF
11420 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11424 { { $as_echo "$as_me:$LINENO: error: readline header not found
11425 If you have libedit already installed, see config.log for details on the
11426 failure. It is possible the compiler isn't looking in the proper directory.
11427 Use --without-readline to disable libedit support." >&5
11428 $as_echo "$as_me: error: readline header not found
11429 If you have libedit already installed, see config.log for details on the
11430 failure. It is possible the compiler isn't looking in the proper directory.
11431 Use --without-readline to disable libedit support." >&2;}
11432 { (exit 1); exit 1; }; }
11445 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11446 # not be there at all. Hence, don't complain if not found. We must check
11447 # though, since in yet other versions it is an independent header.
11449 for ac_header in editline/history.h
11451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11453 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11454 $as_echo_n "checking for $ac_header... " >&6; }
11455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11456 $as_echo_n "(cached) " >&6
11458 ac_res=`eval 'as_val=${'$as_ac_Header'}
11459 $as_echo "$as_val"'`
11460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11461 $as_echo "$ac_res" >&6; }
11463 # Is the header compilable?
11464 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11465 $as_echo_n "checking $ac_header usability... " >&6; }
11466 cat >conftest.$ac_ext <<_ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 $ac_includes_default
11473 #include <$ac_header>
11475 rm -f conftest.$ac_objext
11476 if { (ac_try="$ac_compile"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11482 $as_echo "$ac_try_echo") >&5
11483 (eval "$ac_compile") 2>conftest.er1
11485 grep -v '^ *+' conftest.er1 >conftest.err
11487 cat conftest.err >&5
11488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && {
11490 test -z "$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11492 } && test -s conftest.$ac_objext; then
11493 ac_header_compiler=yes
11495 $as_echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11498 ac_header_compiler=no
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503 $as_echo "$ac_header_compiler" >&6; }
11505 # Is the header present?
11506 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507 $as_echo_n "checking $ac_header presence... " >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 #include <$ac_header>
11516 if { (ac_try="$ac_cpp conftest.$ac_ext"
11517 case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11522 $as_echo "$ac_try_echo") >&5
11523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11525 grep -v '^ *+' conftest.er1 >conftest.err
11527 cat conftest.err >&5
11528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } >/dev/null && {
11530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11531 test ! -s conftest.err
11533 ac_header_preproc=yes
11535 $as_echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11538 ac_header_preproc=no
11541 rm -f conftest.err conftest.$ac_ext
11542 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11543 $as_echo "$ac_header_preproc" >&6; }
11545 # So? What about this header?
11546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11549 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11551 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11552 ac_header_preproc=yes
11555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11556 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11558 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11560 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11562 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11564 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11566 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11568 ## ---------------------------------------- ##
11569 ## Report this to pgsql-bugs@postgresql.org ##
11570 ## ---------------------------------------- ##
11572 ) | sed "s/^/$as_me: WARNING: /" >&2
11575 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11576 $as_echo_n "checking for $ac_header... " >&6; }
11577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11578 $as_echo_n "(cached) " >&6
11580 eval "$as_ac_Header=\$ac_header_preproc"
11582 ac_res=`eval 'as_val=${'$as_ac_Header'}
11583 $as_echo "$as_val"'`
11584 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11585 $as_echo "$ac_res" >&6; }
11588 as_val=`eval 'as_val=${'$as_ac_Header'}
11589 $as_echo "$as_val"'`
11590 if test "x$as_val" = x""yes; then
11591 cat >>confdefs.h <<_ACEOF
11592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11597 for ac_header in history.h
11599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11601 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11602 $as_echo_n "checking for $ac_header... " >&6; }
11603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11604 $as_echo_n "(cached) " >&6
11606 ac_res=`eval 'as_val=${'$as_ac_Header'}
11607 $as_echo "$as_val"'`
11608 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11609 $as_echo "$ac_res" >&6; }
11611 # Is the header compilable?
11612 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11613 $as_echo_n "checking $ac_header usability... " >&6; }
11614 cat >conftest.$ac_ext <<_ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11620 $ac_includes_default
11621 #include <$ac_header>
11623 rm -f conftest.$ac_objext
11624 if { (ac_try="$ac_compile"
11625 case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11630 $as_echo "$ac_try_echo") >&5
11631 (eval "$ac_compile") 2>conftest.er1
11633 grep -v '^ *+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && {
11638 test -z "$ac_c_werror_flag" ||
11639 test ! -s conftest.err
11640 } && test -s conftest.$ac_objext; then
11641 ac_header_compiler=yes
11643 $as_echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 ac_header_compiler=no
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11651 $as_echo "$ac_header_compiler" >&6; }
11653 # Is the header present?
11654 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11655 $as_echo_n "checking $ac_header presence... " >&6; }
11656 cat >conftest.$ac_ext <<_ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11662 #include <$ac_header>
11664 if { (ac_try="$ac_cpp conftest.$ac_ext"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11670 $as_echo "$ac_try_echo") >&5
11671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11673 grep -v '^ *+' conftest.er1 >conftest.err
11675 cat conftest.err >&5
11676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } >/dev/null && {
11678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11679 test ! -s conftest.err
11681 ac_header_preproc=yes
11683 $as_echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11686 ac_header_preproc=no
11689 rm -f conftest.err conftest.$ac_ext
11690 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11691 $as_echo "$ac_header_preproc" >&6; }
11693 # So? What about this header?
11694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11697 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11700 ac_header_preproc=yes
11703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11704 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11706 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11708 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11710 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11712 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11714 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11716 ## ---------------------------------------- ##
11717 ## Report this to pgsql-bugs@postgresql.org ##
11718 ## ---------------------------------------- ##
11720 ) | sed "s/^/$as_me: WARNING: /" >&2
11723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11724 $as_echo_n "checking for $ac_header... " >&6; }
11725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11726 $as_echo_n "(cached) " >&6
11728 eval "$as_ac_Header=\$ac_header_preproc"
11730 ac_res=`eval 'as_val=${'$as_ac_Header'}
11731 $as_echo "$as_val"'`
11732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11733 $as_echo "$ac_res" >&6; }
11736 as_val=`eval 'as_val=${'$as_ac_Header'}
11737 $as_echo "$as_val"'`
11738 if test "x$as_val" = x""yes; then
11739 cat >>confdefs.h <<_ACEOF
11740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11745 for ac_header in readline/history.h
11747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 $as_echo_n "checking for $ac_header... " >&6; }
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 $as_echo_n "(cached) " >&6
11754 ac_res=`eval 'as_val=${'$as_ac_Header'}
11755 $as_echo "$as_val"'`
11756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11757 $as_echo "$ac_res" >&6; }
11759 # Is the header compilable?
11760 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11761 $as_echo_n "checking $ac_header usability... " >&6; }
11762 cat >conftest.$ac_ext <<_ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 $ac_includes_default
11769 #include <$ac_header>
11771 rm -f conftest.$ac_objext
11772 if { (ac_try="$ac_compile"
11773 case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11778 $as_echo "$ac_try_echo") >&5
11779 (eval "$ac_compile") 2>conftest.er1
11781 grep -v '^ *+' conftest.er1 >conftest.err
11783 cat conftest.err >&5
11784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest.$ac_objext; then
11789 ac_header_compiler=yes
11791 $as_echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 ac_header_compiler=no
11797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11799 $as_echo "$ac_header_compiler" >&6; }
11801 # Is the header present?
11802 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11803 $as_echo_n "checking $ac_header presence... " >&6; }
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include <$ac_header>
11812 if { (ac_try="$ac_cpp conftest.$ac_ext"
11813 case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11818 $as_echo "$ac_try_echo") >&5
11819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11821 grep -v '^ *+' conftest.er1 >conftest.err
11823 cat conftest.err >&5
11824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } >/dev/null && {
11826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11827 test ! -s conftest.err
11829 ac_header_preproc=yes
11831 $as_echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11834 ac_header_preproc=no
11837 rm -f conftest.err conftest.$ac_ext
11838 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11839 $as_echo "$ac_header_preproc" >&6; }
11841 # So? What about this header?
11842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11845 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11847 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11848 ac_header_preproc=yes
11851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11852 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11854 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11856 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11858 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11862 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11864 ## ---------------------------------------- ##
11865 ## Report this to pgsql-bugs@postgresql.org ##
11866 ## ---------------------------------------- ##
11868 ) | sed "s/^/$as_me: WARNING: /" >&2
11871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11872 $as_echo_n "checking for $ac_header... " >&6; }
11873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11874 $as_echo_n "(cached) " >&6
11876 eval "$as_ac_Header=\$ac_header_preproc"
11878 ac_res=`eval 'as_val=${'$as_ac_Header'}
11879 $as_echo "$as_val"'`
11880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11881 $as_echo "$ac_res" >&6; }
11884 as_val=`eval 'as_val=${'$as_ac_Header'}
11885 $as_echo "$as_val"'`
11886 if test "x$as_val" = x""yes; then
11887 cat >>confdefs.h <<_ACEOF
11888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11905 if test "$with_zlib" = yes; then
11906 if test "${ac_cv_header_zlib_h+set}" = set; then
11907 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11908 $as_echo_n "checking for zlib.h... " >&6; }
11909 if test "${ac_cv_header_zlib_h+set}" = set; then
11910 $as_echo_n "(cached) " >&6
11912 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11913 $as_echo "$ac_cv_header_zlib_h" >&6; }
11915 # Is the header compilable?
11916 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11917 $as_echo_n "checking zlib.h usability... " >&6; }
11918 cat >conftest.$ac_ext <<_ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 $ac_includes_default
11927 rm -f conftest.$ac_objext
11928 if { (ac_try="$ac_compile"
11929 case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11934 $as_echo "$ac_try_echo") >&5
11935 (eval "$ac_compile") 2>conftest.er1
11937 grep -v '^ *+' conftest.er1 >conftest.err
11939 cat conftest.err >&5
11940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } && {
11942 test -z "$ac_c_werror_flag" ||
11943 test ! -s conftest.err
11944 } && test -s conftest.$ac_objext; then
11945 ac_header_compiler=yes
11947 $as_echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11950 ac_header_compiler=no
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11955 $as_echo "$ac_header_compiler" >&6; }
11957 # Is the header present?
11958 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11959 $as_echo_n "checking zlib.h presence... " >&6; }
11960 cat >conftest.$ac_ext <<_ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11968 if { (ac_try="$ac_cpp conftest.$ac_ext"
11969 case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11974 $as_echo "$ac_try_echo") >&5
11975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11977 grep -v '^ *+' conftest.er1 >conftest.err
11979 cat conftest.err >&5
11980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } >/dev/null && {
11982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11983 test ! -s conftest.err
11985 ac_header_preproc=yes
11987 $as_echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 ac_header_preproc=no
11993 rm -f conftest.err conftest.$ac_ext
11994 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11995 $as_echo "$ac_header_preproc" >&6; }
11997 # So? What about this header?
11998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12000 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12001 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12002 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12003 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12004 ac_header_preproc=yes
12007 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12008 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12009 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12010 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12011 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12012 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12013 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12014 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12015 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12016 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12017 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12018 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12020 ## ---------------------------------------- ##
12021 ## Report this to pgsql-bugs@postgresql.org ##
12022 ## ---------------------------------------- ##
12024 ) | sed "s/^/$as_me: WARNING: /" >&2
12027 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12028 $as_echo_n "checking for zlib.h... " >&6; }
12029 if test "${ac_cv_header_zlib_h+set}" = set; then
12030 $as_echo_n "(cached) " >&6
12032 ac_cv_header_zlib_h=$ac_header_preproc
12034 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12035 $as_echo "$ac_cv_header_zlib_h" >&6; }
12038 if test "x$ac_cv_header_zlib_h" = x""yes; then
12041 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12042 If you have zlib already installed, see config.log for details on the
12043 failure. It is possible the compiler isn't looking in the proper directory.
12044 Use --without-zlib to disable zlib support." >&5
12045 $as_echo "$as_me: error: zlib header not found
12046 If you have zlib already installed, see config.log for details on the
12047 failure. It is possible the compiler isn't looking in the proper directory.
12048 Use --without-zlib to disable zlib support." >&2;}
12049 { (exit 1); exit 1; }; }
12055 if test "$with_gssapi" = yes ; then
12057 for ac_header in gssapi/gssapi.h
12059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12061 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12062 $as_echo_n "checking for $ac_header... " >&6; }
12063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12064 $as_echo_n "(cached) " >&6
12066 ac_res=`eval 'as_val=${'$as_ac_Header'}
12067 $as_echo "$as_val"'`
12068 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12069 $as_echo "$ac_res" >&6; }
12071 # Is the header compilable?
12072 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12073 $as_echo_n "checking $ac_header usability... " >&6; }
12074 cat >conftest.$ac_ext <<_ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h. */
12080 $ac_includes_default
12081 #include <$ac_header>
12083 rm -f conftest.$ac_objext
12084 if { (ac_try="$ac_compile"
12085 case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12090 $as_echo "$ac_try_echo") >&5
12091 (eval "$ac_compile") 2>conftest.er1
12093 grep -v '^ *+' conftest.er1 >conftest.err
12095 cat conftest.err >&5
12096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } && {
12098 test -z "$ac_c_werror_flag" ||
12099 test ! -s conftest.err
12100 } && test -s conftest.$ac_objext; then
12101 ac_header_compiler=yes
12103 $as_echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 ac_header_compiler=no
12109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12111 $as_echo "$ac_header_compiler" >&6; }
12113 # Is the header present?
12114 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12115 $as_echo_n "checking $ac_header presence... " >&6; }
12116 cat >conftest.$ac_ext <<_ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12122 #include <$ac_header>
12124 if { (ac_try="$ac_cpp conftest.$ac_ext"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12130 $as_echo "$ac_try_echo") >&5
12131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12133 grep -v '^ *+' conftest.er1 >conftest.err
12135 cat conftest.err >&5
12136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } >/dev/null && {
12138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12139 test ! -s conftest.err
12141 ac_header_preproc=yes
12143 $as_echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12146 ac_header_preproc=no
12149 rm -f conftest.err conftest.$ac_ext
12150 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12151 $as_echo "$ac_header_preproc" >&6; }
12153 # So? What about this header?
12154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12157 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12159 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12160 ac_header_preproc=yes
12163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12164 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12166 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12168 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12170 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12172 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12174 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12176 ## ---------------------------------------- ##
12177 ## Report this to pgsql-bugs@postgresql.org ##
12178 ## ---------------------------------------- ##
12180 ) | sed "s/^/$as_me: WARNING: /" >&2
12183 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12184 $as_echo_n "checking for $ac_header... " >&6; }
12185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12186 $as_echo_n "(cached) " >&6
12188 eval "$as_ac_Header=\$ac_header_preproc"
12190 ac_res=`eval 'as_val=${'$as_ac_Header'}
12191 $as_echo "$as_val"'`
12192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12193 $as_echo "$ac_res" >&6; }
12196 as_val=`eval 'as_val=${'$as_ac_Header'}
12197 $as_echo "$as_val"'`
12198 if test "x$as_val" = x""yes; then
12199 cat >>confdefs.h <<_ACEOF
12200 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12205 for ac_header in gssapi.h
12207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12210 $as_echo_n "checking for $ac_header... " >&6; }
12211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12212 $as_echo_n "(cached) " >&6
12214 ac_res=`eval 'as_val=${'$as_ac_Header'}
12215 $as_echo "$as_val"'`
12216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12217 $as_echo "$ac_res" >&6; }
12219 # Is the header compilable?
12220 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12221 $as_echo_n "checking $ac_header usability... " >&6; }
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 $ac_includes_default
12229 #include <$ac_header>
12231 rm -f conftest.$ac_objext
12232 if { (ac_try="$ac_compile"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12238 $as_echo "$ac_try_echo") >&5
12239 (eval "$ac_compile") 2>conftest.er1
12241 grep -v '^ *+' conftest.er1 >conftest.err
12243 cat conftest.err >&5
12244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } && {
12246 test -z "$ac_c_werror_flag" ||
12247 test ! -s conftest.err
12248 } && test -s conftest.$ac_objext; then
12249 ac_header_compiler=yes
12251 $as_echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12254 ac_header_compiler=no
12257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12258 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12259 $as_echo "$ac_header_compiler" >&6; }
12261 # Is the header present?
12262 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12263 $as_echo_n "checking $ac_header presence... " >&6; }
12264 cat >conftest.$ac_ext <<_ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12270 #include <$ac_header>
12272 if { (ac_try="$ac_cpp conftest.$ac_ext"
12273 case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12278 $as_echo "$ac_try_echo") >&5
12279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12281 grep -v '^ *+' conftest.er1 >conftest.err
12283 cat conftest.err >&5
12284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } >/dev/null && {
12286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12287 test ! -s conftest.err
12289 ac_header_preproc=yes
12291 $as_echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ac_header_preproc=no
12297 rm -f conftest.err conftest.$ac_ext
12298 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12299 $as_echo "$ac_header_preproc" >&6; }
12301 # So? What about this header?
12302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12305 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12307 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12308 ac_header_preproc=yes
12311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12312 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12314 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12316 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12318 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12322 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12324 ## ---------------------------------------- ##
12325 ## Report this to pgsql-bugs@postgresql.org ##
12326 ## ---------------------------------------- ##
12328 ) | sed "s/^/$as_me: WARNING: /" >&2
12331 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12332 $as_echo_n "checking for $ac_header... " >&6; }
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 $as_echo_n "(cached) " >&6
12336 eval "$as_ac_Header=\$ac_header_preproc"
12338 ac_res=`eval 'as_val=${'$as_ac_Header'}
12339 $as_echo "$as_val"'`
12340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12341 $as_echo "$ac_res" >&6; }
12344 as_val=`eval 'as_val=${'$as_ac_Header'}
12345 $as_echo "$as_val"'`
12346 if test "x$as_val" = x""yes; then
12347 cat >>confdefs.h <<_ACEOF
12348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12352 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12353 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12354 { (exit 1); exit 1; }; }
12365 if test "$with_krb5" = yes ; then
12366 if test "${ac_cv_header_krb5_h+set}" = set; then
12367 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12368 $as_echo_n "checking for krb5.h... " >&6; }
12369 if test "${ac_cv_header_krb5_h+set}" = set; then
12370 $as_echo_n "(cached) " >&6
12372 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12373 $as_echo "$ac_cv_header_krb5_h" >&6; }
12375 # Is the header compilable?
12376 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12377 $as_echo_n "checking krb5.h usability... " >&6; }
12378 cat >conftest.$ac_ext <<_ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h. */
12384 $ac_includes_default
12387 rm -f conftest.$ac_objext
12388 if { (ac_try="$ac_compile"
12389 case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12394 $as_echo "$ac_try_echo") >&5
12395 (eval "$ac_compile") 2>conftest.er1
12397 grep -v '^ *+' conftest.er1 >conftest.err
12399 cat conftest.err >&5
12400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } && {
12402 test -z "$ac_c_werror_flag" ||
12403 test ! -s conftest.err
12404 } && test -s conftest.$ac_objext; then
12405 ac_header_compiler=yes
12407 $as_echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12410 ac_header_compiler=no
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12415 $as_echo "$ac_header_compiler" >&6; }
12417 # Is the header present?
12418 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12419 $as_echo_n "checking krb5.h presence... " >&6; }
12420 cat >conftest.$ac_ext <<_ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12428 if { (ac_try="$ac_cpp conftest.$ac_ext"
12429 case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12434 $as_echo "$ac_try_echo") >&5
12435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12437 grep -v '^ *+' conftest.er1 >conftest.err
12439 cat conftest.err >&5
12440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } >/dev/null && {
12442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12443 test ! -s conftest.err
12445 ac_header_preproc=yes
12447 $as_echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12450 ac_header_preproc=no
12453 rm -f conftest.err conftest.$ac_ext
12454 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12455 $as_echo "$ac_header_preproc" >&6; }
12457 # So? What about this header?
12458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12460 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12461 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12462 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12463 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12464 ac_header_preproc=yes
12467 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12468 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12469 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12470 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12471 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12472 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12473 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12474 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12475 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12476 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12477 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12478 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12480 ## ---------------------------------------- ##
12481 ## Report this to pgsql-bugs@postgresql.org ##
12482 ## ---------------------------------------- ##
12484 ) | sed "s/^/$as_me: WARNING: /" >&2
12487 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12488 $as_echo_n "checking for krb5.h... " >&6; }
12489 if test "${ac_cv_header_krb5_h+set}" = set; then
12490 $as_echo_n "(cached) " >&6
12492 ac_cv_header_krb5_h=$ac_header_preproc
12494 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12495 $as_echo "$ac_cv_header_krb5_h" >&6; }
12498 if test "x$ac_cv_header_krb5_h" = x""yes; then
12501 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12502 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12503 { (exit 1); exit 1; }; }
12509 if test "$with_openssl" = yes ; then
12510 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12511 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12512 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12513 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12514 $as_echo_n "(cached) " >&6
12516 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12517 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12519 # Is the header compilable?
12520 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12521 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12522 cat >conftest.$ac_ext <<_ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 $ac_includes_default
12529 #include <openssl/ssl.h>
12531 rm -f conftest.$ac_objext
12532 if { (ac_try="$ac_compile"
12533 case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12538 $as_echo "$ac_try_echo") >&5
12539 (eval "$ac_compile") 2>conftest.er1
12541 grep -v '^ *+' conftest.er1 >conftest.err
12543 cat conftest.err >&5
12544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } && {
12546 test -z "$ac_c_werror_flag" ||
12547 test ! -s conftest.err
12548 } && test -s conftest.$ac_objext; then
12549 ac_header_compiler=yes
12551 $as_echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 ac_header_compiler=no
12557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12559 $as_echo "$ac_header_compiler" >&6; }
12561 # Is the header present?
12562 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12563 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12564 cat >conftest.$ac_ext <<_ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 #include <openssl/ssl.h>
12572 if { (ac_try="$ac_cpp conftest.$ac_ext"
12573 case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12578 $as_echo "$ac_try_echo") >&5
12579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12581 grep -v '^ *+' conftest.er1 >conftest.err
12583 cat conftest.err >&5
12584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } >/dev/null && {
12586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12587 test ! -s conftest.err
12589 ac_header_preproc=yes
12591 $as_echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 ac_header_preproc=no
12597 rm -f conftest.err conftest.$ac_ext
12598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12599 $as_echo "$ac_header_preproc" >&6; }
12601 # So? What about this header?
12602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12604 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12605 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12606 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12607 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12608 ac_header_preproc=yes
12611 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12612 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12613 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12614 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12615 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12616 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12617 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12618 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12619 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12620 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12621 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12622 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12624 ## ---------------------------------------- ##
12625 ## Report this to pgsql-bugs@postgresql.org ##
12626 ## ---------------------------------------- ##
12628 ) | sed "s/^/$as_me: WARNING: /" >&2
12631 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12632 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12633 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12634 $as_echo_n "(cached) " >&6
12636 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12638 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12639 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12642 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12645 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12646 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12647 { (exit 1); exit 1; }; }
12651 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12652 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12653 $as_echo_n "checking for openssl/err.h... " >&6; }
12654 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12655 $as_echo_n "(cached) " >&6
12657 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12658 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12660 # Is the header compilable?
12661 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12662 $as_echo_n "checking openssl/err.h usability... " >&6; }
12663 cat >conftest.$ac_ext <<_ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12669 $ac_includes_default
12670 #include <openssl/err.h>
12672 rm -f conftest.$ac_objext
12673 if { (ac_try="$ac_compile"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12679 $as_echo "$ac_try_echo") >&5
12680 (eval "$ac_compile") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
12690 ac_header_compiler=yes
12692 $as_echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 ac_header_compiler=no
12698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12700 $as_echo "$ac_header_compiler" >&6; }
12702 # Is the header present?
12703 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12704 $as_echo_n "checking openssl/err.h presence... " >&6; }
12705 cat >conftest.$ac_ext <<_ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include <openssl/err.h>
12713 if { (ac_try="$ac_cpp conftest.$ac_ext"
12714 case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12719 $as_echo "$ac_try_echo") >&5
12720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12722 grep -v '^ *+' conftest.er1 >conftest.err
12724 cat conftest.err >&5
12725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } >/dev/null && {
12727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12728 test ! -s conftest.err
12730 ac_header_preproc=yes
12732 $as_echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12735 ac_header_preproc=no
12738 rm -f conftest.err conftest.$ac_ext
12739 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12740 $as_echo "$ac_header_preproc" >&6; }
12742 # So? What about this header?
12743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12745 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12746 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12747 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12748 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12749 ac_header_preproc=yes
12752 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12753 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12754 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12755 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12756 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12757 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12758 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12759 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12760 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12761 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12762 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12763 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12765 ## ---------------------------------------- ##
12766 ## Report this to pgsql-bugs@postgresql.org ##
12767 ## ---------------------------------------- ##
12769 ) | sed "s/^/$as_me: WARNING: /" >&2
12772 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12773 $as_echo_n "checking for openssl/err.h... " >&6; }
12774 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12775 $as_echo_n "(cached) " >&6
12777 ac_cv_header_openssl_err_h=$ac_header_preproc
12779 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12780 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12783 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12786 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12787 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12788 { (exit 1); exit 1; }; }
12793 for ac_func in ERR_set_mark
12795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12796 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12797 $as_echo_n "checking for $ac_func... " >&6; }
12798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12799 $as_echo_n "(cached) " >&6
12801 cat >conftest.$ac_ext <<_ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12809 #define $ac_func innocuous_$ac_func
12811 /* System header to define __stub macros and hopefully few prototypes,
12812 which can conflict with char $ac_func (); below.
12813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12814 <limits.h> exists even on freestanding compilers. */
12817 # include <limits.h>
12819 # include <assert.h>
12824 /* Override any GCC internal prototype to avoid an error.
12825 Use char because int might match the return type of a GCC
12826 builtin and then its argument prototype would still apply. */
12831 /* The GNU C library defines this for functions which it implements
12832 to always fail with ENOSYS. Some functions are actually named
12833 something starting with __ and the normal name is an alias. */
12834 #if defined __stub_$ac_func || defined __stub___$ac_func
12841 return $ac_func ();
12846 rm -f conftest.$ac_objext conftest$ac_exeext
12847 if { (ac_try="$ac_link"
12848 case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12853 $as_echo "$ac_try_echo") >&5
12854 (eval "$ac_link") 2>conftest.er1
12856 grep -v '^ *+' conftest.er1 >conftest.err
12858 cat conftest.err >&5
12859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } && {
12861 test -z "$ac_c_werror_flag" ||
12862 test ! -s conftest.err
12863 } && test -s conftest$ac_exeext && {
12864 test "$cross_compiling" = yes ||
12865 $as_test_x conftest$ac_exeext
12867 eval "$as_ac_var=yes"
12869 $as_echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12872 eval "$as_ac_var=no"
12875 rm -rf conftest.dSYM
12876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12877 conftest$ac_exeext conftest.$ac_ext
12879 ac_res=`eval 'as_val=${'$as_ac_var'}
12880 $as_echo "$as_val"'`
12881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12882 $as_echo "$ac_res" >&6; }
12883 as_val=`eval 'as_val=${'$as_ac_var'}
12884 $as_echo "$as_val"'`
12885 if test "x$as_val" = x""yes; then
12886 cat >>confdefs.h <<_ACEOF
12887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12895 if test "$with_pam" = yes ; then
12897 for ac_header in security/pam_appl.h
12899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12901 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12902 $as_echo_n "checking for $ac_header... " >&6; }
12903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12904 $as_echo_n "(cached) " >&6
12906 ac_res=`eval 'as_val=${'$as_ac_Header'}
12907 $as_echo "$as_val"'`
12908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12909 $as_echo "$ac_res" >&6; }
12911 # Is the header compilable?
12912 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12913 $as_echo_n "checking $ac_header usability... " >&6; }
12914 cat >conftest.$ac_ext <<_ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 $ac_includes_default
12921 #include <$ac_header>
12923 rm -f conftest.$ac_objext
12924 if { (ac_try="$ac_compile"
12925 case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12930 $as_echo "$ac_try_echo") >&5
12931 (eval "$ac_compile") 2>conftest.er1
12933 grep -v '^ *+' conftest.er1 >conftest.err
12935 cat conftest.err >&5
12936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } && {
12938 test -z "$ac_c_werror_flag" ||
12939 test ! -s conftest.err
12940 } && test -s conftest.$ac_objext; then
12941 ac_header_compiler=yes
12943 $as_echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12946 ac_header_compiler=no
12949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12951 $as_echo "$ac_header_compiler" >&6; }
12953 # Is the header present?
12954 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12955 $as_echo_n "checking $ac_header presence... " >&6; }
12956 cat >conftest.$ac_ext <<_ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12962 #include <$ac_header>
12964 if { (ac_try="$ac_cpp conftest.$ac_ext"
12965 case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12970 $as_echo "$ac_try_echo") >&5
12971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12973 grep -v '^ *+' conftest.er1 >conftest.err
12975 cat conftest.err >&5
12976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } >/dev/null && {
12978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12979 test ! -s conftest.err
12981 ac_header_preproc=yes
12983 $as_echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12986 ac_header_preproc=no
12989 rm -f conftest.err conftest.$ac_ext
12990 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12991 $as_echo "$ac_header_preproc" >&6; }
12993 # So? What about this header?
12994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12997 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13000 ac_header_preproc=yes
13003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13004 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13006 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13008 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13010 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13012 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13014 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13016 ## ---------------------------------------- ##
13017 ## Report this to pgsql-bugs@postgresql.org ##
13018 ## ---------------------------------------- ##
13020 ) | sed "s/^/$as_me: WARNING: /" >&2
13023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13024 $as_echo_n "checking for $ac_header... " >&6; }
13025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13026 $as_echo_n "(cached) " >&6
13028 eval "$as_ac_Header=\$ac_header_preproc"
13030 ac_res=`eval 'as_val=${'$as_ac_Header'}
13031 $as_echo "$as_val"'`
13032 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13033 $as_echo "$ac_res" >&6; }
13036 as_val=`eval 'as_val=${'$as_ac_Header'}
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_header" | $as_tr_cpp` 1
13045 for ac_header in pam/pam_appl.h
13047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13049 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13050 $as_echo_n "checking for $ac_header... " >&6; }
13051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13052 $as_echo_n "(cached) " >&6
13054 ac_res=`eval 'as_val=${'$as_ac_Header'}
13055 $as_echo "$as_val"'`
13056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13057 $as_echo "$ac_res" >&6; }
13059 # Is the header compilable?
13060 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13061 $as_echo_n "checking $ac_header usability... " >&6; }
13062 cat >conftest.$ac_ext <<_ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 $ac_includes_default
13069 #include <$ac_header>
13071 rm -f conftest.$ac_objext
13072 if { (ac_try="$ac_compile"
13073 case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13078 $as_echo "$ac_try_echo") >&5
13079 (eval "$ac_compile") 2>conftest.er1
13081 grep -v '^ *+' conftest.er1 >conftest.err
13083 cat conftest.err >&5
13084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } && {
13086 test -z "$ac_c_werror_flag" ||
13087 test ! -s conftest.err
13088 } && test -s conftest.$ac_objext; then
13089 ac_header_compiler=yes
13091 $as_echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13094 ac_header_compiler=no
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13099 $as_echo "$ac_header_compiler" >&6; }
13101 # Is the header present?
13102 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13103 $as_echo_n "checking $ac_header presence... " >&6; }
13104 cat >conftest.$ac_ext <<_ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13110 #include <$ac_header>
13112 if { (ac_try="$ac_cpp conftest.$ac_ext"
13113 case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13118 $as_echo "$ac_try_echo") >&5
13119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13121 grep -v '^ *+' conftest.er1 >conftest.err
13123 cat conftest.err >&5
13124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } >/dev/null && {
13126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13127 test ! -s conftest.err
13129 ac_header_preproc=yes
13131 $as_echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13134 ac_header_preproc=no
13137 rm -f conftest.err conftest.$ac_ext
13138 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13139 $as_echo "$ac_header_preproc" >&6; }
13141 # So? What about this header?
13142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13145 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13147 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13148 ac_header_preproc=yes
13151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13152 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13154 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13156 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13158 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13160 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13162 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13164 ## ---------------------------------------- ##
13165 ## Report this to pgsql-bugs@postgresql.org ##
13166 ## ---------------------------------------- ##
13168 ) | sed "s/^/$as_me: WARNING: /" >&2
13171 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13172 $as_echo_n "checking for $ac_header... " >&6; }
13173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13174 $as_echo_n "(cached) " >&6
13176 eval "$as_ac_Header=\$ac_header_preproc"
13178 ac_res=`eval 'as_val=${'$as_ac_Header'}
13179 $as_echo "$as_val"'`
13180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13181 $as_echo "$ac_res" >&6; }
13184 as_val=`eval 'as_val=${'$as_ac_Header'}
13185 $as_echo "$as_val"'`
13186 if test "x$as_val" = x""yes; then
13187 cat >>confdefs.h <<_ACEOF
13188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13192 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13193 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13194 { (exit 1); exit 1; }; }
13205 if test "$with_libxml" = yes ; then
13206 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13207 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13208 $as_echo_n "checking for libxml/parser.h... " >&6; }
13209 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13210 $as_echo_n "(cached) " >&6
13212 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13213 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13215 # Is the header compilable?
13216 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13217 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13218 cat >conftest.$ac_ext <<_ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13224 $ac_includes_default
13225 #include <libxml/parser.h>
13227 rm -f conftest.$ac_objext
13228 if { (ac_try="$ac_compile"
13229 case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13234 $as_echo "$ac_try_echo") >&5
13235 (eval "$ac_compile") 2>conftest.er1
13237 grep -v '^ *+' conftest.er1 >conftest.err
13239 cat conftest.err >&5
13240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && {
13242 test -z "$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13244 } && test -s conftest.$ac_objext; then
13245 ac_header_compiler=yes
13247 $as_echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13250 ac_header_compiler=no
13253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13254 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13255 $as_echo "$ac_header_compiler" >&6; }
13257 # Is the header present?
13258 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13259 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13260 cat >conftest.$ac_ext <<_ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 #include <libxml/parser.h>
13268 if { (ac_try="$ac_cpp conftest.$ac_ext"
13269 case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13274 $as_echo "$ac_try_echo") >&5
13275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13277 grep -v '^ *+' conftest.er1 >conftest.err
13279 cat conftest.err >&5
13280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } >/dev/null && {
13282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13283 test ! -s conftest.err
13285 ac_header_preproc=yes
13287 $as_echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 ac_header_preproc=no
13293 rm -f conftest.err conftest.$ac_ext
13294 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13295 $as_echo "$ac_header_preproc" >&6; }
13297 # So? What about this header?
13298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13300 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13301 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13302 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13303 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13304 ac_header_preproc=yes
13307 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13308 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13309 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13310 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13311 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13312 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13313 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13314 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13315 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13316 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13317 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13318 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13320 ## ---------------------------------------- ##
13321 ## Report this to pgsql-bugs@postgresql.org ##
13322 ## ---------------------------------------- ##
13324 ) | sed "s/^/$as_me: WARNING: /" >&2
13327 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13328 $as_echo_n "checking for libxml/parser.h... " >&6; }
13329 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13330 $as_echo_n "(cached) " >&6
13332 ac_cv_header_libxml_parser_h=$ac_header_preproc
13334 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13335 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13338 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13341 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13342 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13343 { (exit 1); exit 1; }; }
13349 if test "$with_libxslt" = yes ; then
13350 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13351 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13352 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13353 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13354 $as_echo_n "(cached) " >&6
13356 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13357 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13359 # Is the header compilable?
13360 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13361 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13362 cat >conftest.$ac_ext <<_ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368 $ac_includes_default
13369 #include <libxslt/xslt.h>
13371 rm -f conftest.$ac_objext
13372 if { (ac_try="$ac_compile"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13378 $as_echo "$ac_try_echo") >&5
13379 (eval "$ac_compile") 2>conftest.er1
13381 grep -v '^ *+' conftest.er1 >conftest.err
13383 cat conftest.err >&5
13384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } && {
13386 test -z "$ac_c_werror_flag" ||
13387 test ! -s conftest.err
13388 } && test -s conftest.$ac_objext; then
13389 ac_header_compiler=yes
13391 $as_echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ac_header_compiler=no
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13399 $as_echo "$ac_header_compiler" >&6; }
13401 # Is the header present?
13402 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13403 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13404 cat >conftest.$ac_ext <<_ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 #include <libxslt/xslt.h>
13412 if { (ac_try="$ac_cpp conftest.$ac_ext"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13418 $as_echo "$ac_try_echo") >&5
13419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } >/dev/null && {
13426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13427 test ! -s conftest.err
13429 ac_header_preproc=yes
13431 $as_echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13434 ac_header_preproc=no
13437 rm -f conftest.err conftest.$ac_ext
13438 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13439 $as_echo "$ac_header_preproc" >&6; }
13441 # So? What about this header?
13442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13444 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13445 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13446 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13447 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13448 ac_header_preproc=yes
13451 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13452 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13453 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13454 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13455 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13456 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13457 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13458 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13459 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13460 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13461 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13462 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13464 ## ---------------------------------------- ##
13465 ## Report this to pgsql-bugs@postgresql.org ##
13466 ## ---------------------------------------- ##
13468 ) | sed "s/^/$as_me: WARNING: /" >&2
13471 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13472 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13473 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13474 $as_echo_n "(cached) " >&6
13476 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13478 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13479 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13482 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13485 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13486 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13487 { (exit 1); exit 1; }; }
13493 if test "$with_ldap" = yes ; then
13494 if test "$PORTNAME" != "win32"; then
13496 for ac_header in ldap.h
13498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13500 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13501 $as_echo_n "checking for $ac_header... " >&6; }
13502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13503 $as_echo_n "(cached) " >&6
13505 ac_res=`eval 'as_val=${'$as_ac_Header'}
13506 $as_echo "$as_val"'`
13507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13508 $as_echo "$ac_res" >&6; }
13510 # Is the header compilable?
13511 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13512 $as_echo_n "checking $ac_header usability... " >&6; }
13513 cat >conftest.$ac_ext <<_ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 $ac_includes_default
13520 #include <$ac_header>
13522 rm -f conftest.$ac_objext
13523 if { (ac_try="$ac_compile"
13524 case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13529 $as_echo "$ac_try_echo") >&5
13530 (eval "$ac_compile") 2>conftest.er1
13532 grep -v '^ *+' conftest.er1 >conftest.err
13534 cat conftest.err >&5
13535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } && {
13537 test -z "$ac_c_werror_flag" ||
13538 test ! -s conftest.err
13539 } && test -s conftest.$ac_objext; then
13540 ac_header_compiler=yes
13542 $as_echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13545 ac_header_compiler=no
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13550 $as_echo "$ac_header_compiler" >&6; }
13552 # Is the header present?
13553 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13554 $as_echo_n "checking $ac_header presence... " >&6; }
13555 cat >conftest.$ac_ext <<_ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561 #include <$ac_header>
13563 if { (ac_try="$ac_cpp conftest.$ac_ext"
13564 case "(($ac_try" in
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13569 $as_echo "$ac_try_echo") >&5
13570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13572 grep -v '^ *+' conftest.er1 >conftest.err
13574 cat conftest.err >&5
13575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } >/dev/null && {
13577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13578 test ! -s conftest.err
13580 ac_header_preproc=yes
13582 $as_echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13585 ac_header_preproc=no
13588 rm -f conftest.err conftest.$ac_ext
13589 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13590 $as_echo "$ac_header_preproc" >&6; }
13592 # So? What about this header?
13593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13596 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13599 ac_header_preproc=yes
13602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13603 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13605 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13607 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13609 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13613 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13615 ## ---------------------------------------- ##
13616 ## Report this to pgsql-bugs@postgresql.org ##
13617 ## ---------------------------------------- ##
13619 ) | sed "s/^/$as_me: WARNING: /" >&2
13622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13623 $as_echo_n "checking for $ac_header... " >&6; }
13624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13625 $as_echo_n "(cached) " >&6
13627 eval "$as_ac_Header=\$ac_header_preproc"
13629 ac_res=`eval 'as_val=${'$as_ac_Header'}
13630 $as_echo "$as_val"'`
13631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13632 $as_echo "$ac_res" >&6; }
13635 as_val=`eval 'as_val=${'$as_ac_Header'}
13636 $as_echo "$as_val"'`
13637 if test "x$as_val" = x""yes; then
13638 cat >>confdefs.h <<_ACEOF
13639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13643 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13644 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13645 { (exit 1); exit 1; }; }
13652 for ac_header in winldap.h
13654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13656 $as_echo_n "checking for $ac_header... " >&6; }
13657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13658 $as_echo_n "(cached) " >&6
13660 cat >conftest.$ac_ext <<_ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 $ac_includes_default
13667 #include <windows.h>
13670 #include <$ac_header>
13672 rm -f conftest.$ac_objext
13673 if { (ac_try="$ac_compile"
13674 case "(($ac_try" in
13675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676 *) ac_try_echo=$ac_try;;
13678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13679 $as_echo "$ac_try_echo") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
13684 cat conftest.err >&5
13685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } && {
13687 test -z "$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 } && test -s conftest.$ac_objext; then
13690 eval "$as_ac_Header=yes"
13692 $as_echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 eval "$as_ac_Header=no"
13698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 ac_res=`eval 'as_val=${'$as_ac_Header'}
13701 $as_echo "$as_val"'`
13702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13703 $as_echo "$ac_res" >&6; }
13704 as_val=`eval 'as_val=${'$as_ac_Header'}
13705 $as_echo "$as_val"'`
13706 if test "x$as_val" = x""yes; then
13707 cat >>confdefs.h <<_ACEOF
13708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13712 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13713 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13714 { (exit 1); exit 1; }; }
13722 if test "$with_bonjour" = yes ; then
13723 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13724 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13725 $as_echo_n "checking for dns_sd.h... " >&6; }
13726 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13727 $as_echo_n "(cached) " >&6
13729 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13730 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13732 # Is the header compilable?
13733 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13734 $as_echo_n "checking dns_sd.h usability... " >&6; }
13735 cat >conftest.$ac_ext <<_ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h. */
13741 $ac_includes_default
13742 #include <dns_sd.h>
13744 rm -f conftest.$ac_objext
13745 if { (ac_try="$ac_compile"
13746 case "(($ac_try" in
13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13751 $as_echo "$ac_try_echo") >&5
13752 (eval "$ac_compile") 2>conftest.er1
13754 grep -v '^ *+' conftest.er1 >conftest.err
13756 cat conftest.err >&5
13757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } && {
13759 test -z "$ac_c_werror_flag" ||
13760 test ! -s conftest.err
13761 } && test -s conftest.$ac_objext; then
13762 ac_header_compiler=yes
13764 $as_echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13767 ac_header_compiler=no
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13772 $as_echo "$ac_header_compiler" >&6; }
13774 # Is the header present?
13775 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13776 $as_echo_n "checking dns_sd.h presence... " >&6; }
13777 cat >conftest.$ac_ext <<_ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 #include <dns_sd.h>
13785 if { (ac_try="$ac_cpp conftest.$ac_ext"
13786 case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13791 $as_echo "$ac_try_echo") >&5
13792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13794 grep -v '^ *+' conftest.er1 >conftest.err
13796 cat conftest.err >&5
13797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } >/dev/null && {
13799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13800 test ! -s conftest.err
13802 ac_header_preproc=yes
13804 $as_echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13807 ac_header_preproc=no
13810 rm -f conftest.err conftest.$ac_ext
13811 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13812 $as_echo "$ac_header_preproc" >&6; }
13814 # So? What about this header?
13815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13817 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13818 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13819 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13820 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13821 ac_header_preproc=yes
13824 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13825 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13826 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
13827 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
13828 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13829 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13830 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
13831 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
13832 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13833 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13834 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13835 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13837 ## ---------------------------------------- ##
13838 ## Report this to pgsql-bugs@postgresql.org ##
13839 ## ---------------------------------------- ##
13841 ) | sed "s/^/$as_me: WARNING: /" >&2
13844 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13845 $as_echo_n "checking for dns_sd.h... " >&6; }
13846 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13847 $as_echo_n "(cached) " >&6
13849 ac_cv_header_dns_sd_h=$ac_header_preproc
13851 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13852 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13855 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13858 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13859 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13860 { (exit 1); exit 1; }; }
13866 # for contrib/uuid-ossp
13867 if test "$with_ossp_uuid" = yes ; then
13869 for ac_header in ossp/uuid.h
13871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13874 $as_echo_n "checking for $ac_header... " >&6; }
13875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13876 $as_echo_n "(cached) " >&6
13878 ac_res=`eval 'as_val=${'$as_ac_Header'}
13879 $as_echo "$as_val"'`
13880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13881 $as_echo "$ac_res" >&6; }
13883 # Is the header compilable?
13884 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13885 $as_echo_n "checking $ac_header usability... " >&6; }
13886 cat >conftest.$ac_ext <<_ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 $ac_includes_default
13893 #include <$ac_header>
13895 rm -f conftest.$ac_objext
13896 if { (ac_try="$ac_compile"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13902 $as_echo "$ac_try_echo") >&5
13903 (eval "$ac_compile") 2>conftest.er1
13905 grep -v '^ *+' conftest.er1 >conftest.err
13907 cat conftest.err >&5
13908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } && {
13910 test -z "$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 } && test -s conftest.$ac_objext; then
13913 ac_header_compiler=yes
13915 $as_echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13918 ac_header_compiler=no
13921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13923 $as_echo "$ac_header_compiler" >&6; }
13925 # Is the header present?
13926 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13927 $as_echo_n "checking $ac_header presence... " >&6; }
13928 cat >conftest.$ac_ext <<_ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 #include <$ac_header>
13936 if { (ac_try="$ac_cpp conftest.$ac_ext"
13937 case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13942 $as_echo "$ac_try_echo") >&5
13943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13945 grep -v '^ *+' conftest.er1 >conftest.err
13947 cat conftest.err >&5
13948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } >/dev/null && {
13950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13951 test ! -s conftest.err
13953 ac_header_preproc=yes
13955 $as_echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13958 ac_header_preproc=no
13961 rm -f conftest.err conftest.$ac_ext
13962 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13963 $as_echo "$ac_header_preproc" >&6; }
13965 # So? What about this header?
13966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13969 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13971 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13972 ac_header_preproc=yes
13975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13976 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13978 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13980 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13982 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13984 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13986 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13988 ## ---------------------------------------- ##
13989 ## Report this to pgsql-bugs@postgresql.org ##
13990 ## ---------------------------------------- ##
13992 ) | sed "s/^/$as_me: WARNING: /" >&2
13995 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13996 $as_echo_n "checking for $ac_header... " >&6; }
13997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13998 $as_echo_n "(cached) " >&6
14000 eval "$as_ac_Header=\$ac_header_preproc"
14002 ac_res=`eval 'as_val=${'$as_ac_Header'}
14003 $as_echo "$as_val"'`
14004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14005 $as_echo "$ac_res" >&6; }
14008 as_val=`eval 'as_val=${'$as_ac_Header'}
14009 $as_echo "$as_val"'`
14010 if test "x$as_val" = x""yes; then
14011 cat >>confdefs.h <<_ACEOF
14012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14018 for ac_header in uuid.h
14020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14022 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14023 $as_echo_n "checking for $ac_header... " >&6; }
14024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14025 $as_echo_n "(cached) " >&6
14027 ac_res=`eval 'as_val=${'$as_ac_Header'}
14028 $as_echo "$as_val"'`
14029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14030 $as_echo "$ac_res" >&6; }
14032 # Is the header compilable?
14033 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14034 $as_echo_n "checking $ac_header usability... " >&6; }
14035 cat >conftest.$ac_ext <<_ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041 $ac_includes_default
14042 #include <$ac_header>
14044 rm -f conftest.$ac_objext
14045 if { (ac_try="$ac_compile"
14046 case "(($ac_try" in
14047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048 *) ac_try_echo=$ac_try;;
14050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14051 $as_echo "$ac_try_echo") >&5
14052 (eval "$ac_compile") 2>conftest.er1
14054 grep -v '^ *+' conftest.er1 >conftest.err
14056 cat conftest.err >&5
14057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } && {
14059 test -z "$ac_c_werror_flag" ||
14060 test ! -s conftest.err
14061 } && test -s conftest.$ac_objext; then
14062 ac_header_compiler=yes
14064 $as_echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14067 ac_header_compiler=no
14070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14072 $as_echo "$ac_header_compiler" >&6; }
14074 # Is the header present?
14075 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14076 $as_echo_n "checking $ac_header presence... " >&6; }
14077 cat >conftest.$ac_ext <<_ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14083 #include <$ac_header>
14085 if { (ac_try="$ac_cpp conftest.$ac_ext"
14086 case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14091 $as_echo "$ac_try_echo") >&5
14092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14094 grep -v '^ *+' conftest.er1 >conftest.err
14096 cat conftest.err >&5
14097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } >/dev/null && {
14099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14102 ac_header_preproc=yes
14104 $as_echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14107 ac_header_preproc=no
14110 rm -f conftest.err conftest.$ac_ext
14111 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14112 $as_echo "$ac_header_preproc" >&6; }
14114 # So? What about this header?
14115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14118 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14121 ac_header_preproc=yes
14124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14125 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14127 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14129 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14131 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14133 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14135 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14137 ## ---------------------------------------- ##
14138 ## Report this to pgsql-bugs@postgresql.org ##
14139 ## ---------------------------------------- ##
14141 ) | sed "s/^/$as_me: WARNING: /" >&2
14144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14145 $as_echo_n "checking for $ac_header... " >&6; }
14146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14147 $as_echo_n "(cached) " >&6
14149 eval "$as_ac_Header=\$ac_header_preproc"
14151 ac_res=`eval 'as_val=${'$as_ac_Header'}
14152 $as_echo "$as_val"'`
14153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14154 $as_echo "$ac_res" >&6; }
14157 as_val=`eval 'as_val=${'$as_ac_Header'}
14158 $as_echo "$as_val"'`
14159 if test "x$as_val" = x""yes; then
14160 cat >>confdefs.h <<_ACEOF
14161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14165 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14166 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14167 { (exit 1); exit 1; }; }
14180 ## Types, structures, compiler characteristics
14184 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14185 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14186 if test "${ac_cv_c_bigendian+set}" = set; then
14187 $as_echo_n "(cached) " >&6
14189 ac_cv_c_bigendian=unknown
14190 # See if we're dealing with a universal compiler.
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #ifndef __APPLE_CC__
14198 not a universal capable compiler
14203 rm -f conftest.$ac_objext
14204 if { (ac_try="$ac_compile"
14205 case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14210 $as_echo "$ac_try_echo") >&5
14211 (eval "$ac_compile") 2>conftest.er1
14213 grep -v '^ *+' conftest.er1 >conftest.err
14215 cat conftest.err >&5
14216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } && {
14218 test -z "$ac_c_werror_flag" ||
14219 test ! -s conftest.err
14220 } && test -s conftest.$ac_objext; then
14222 # Check for potential -arch flags. It is not universal unless
14223 # there are some -arch flags. Note that *ppc* also matches
14224 # ppc64. This check is also rather less than ideal.
14225 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14226 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14229 $as_echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14236 if test $ac_cv_c_bigendian = unknown; then
14237 # See if sys/param.h defines the BYTE_ORDER macro.
14238 cat >conftest.$ac_ext <<_ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 #include <sys/types.h>
14245 #include <sys/param.h>
14250 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14251 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14253 bogus endian macros
14260 rm -f conftest.$ac_objext
14261 if { (ac_try="$ac_compile"
14262 case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14267 $as_echo "$ac_try_echo") >&5
14268 (eval "$ac_compile") 2>conftest.er1
14270 grep -v '^ *+' conftest.er1 >conftest.err
14272 cat conftest.err >&5
14273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } && {
14275 test -z "$ac_c_werror_flag" ||
14276 test ! -s conftest.err
14277 } && test -s conftest.$ac_objext; then
14278 # It does; now see whether it defined to BIG_ENDIAN or not.
14279 cat >conftest.$ac_ext <<_ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 #include <sys/types.h>
14286 #include <sys/param.h>
14291 #if BYTE_ORDER != BIG_ENDIAN
14299 rm -f conftest.$ac_objext
14300 if { (ac_try="$ac_compile"
14301 case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14306 $as_echo "$ac_try_echo") >&5
14307 (eval "$ac_compile") 2>conftest.er1
14309 grep -v '^ *+' conftest.er1 >conftest.err
14311 cat conftest.err >&5
14312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && {
14314 test -z "$ac_c_werror_flag" ||
14315 test ! -s conftest.err
14316 } && test -s conftest.$ac_objext; then
14317 ac_cv_c_bigendian=yes
14319 $as_echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14322 ac_cv_c_bigendian=no
14325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14327 $as_echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 if test $ac_cv_c_bigendian = unknown; then
14336 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 #include <limits.h>
14348 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14349 bogus endian macros
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
14374 # It does; now see whether it defined to _BIG_ENDIAN or not.
14375 cat >conftest.$ac_ext <<_ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 #include <limits.h>
14386 #ifndef _BIG_ENDIAN
14394 rm -f conftest.$ac_objext
14395 if { (ac_try="$ac_compile"
14396 case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14401 $as_echo "$ac_try_echo") >&5
14402 (eval "$ac_compile") 2>conftest.er1
14404 grep -v '^ *+' conftest.er1 >conftest.err
14406 cat conftest.err >&5
14407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } && {
14409 test -z "$ac_c_werror_flag" ||
14410 test ! -s conftest.err
14411 } && test -s conftest.$ac_objext; then
14412 ac_cv_c_bigendian=yes
14414 $as_echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14417 ac_cv_c_bigendian=no
14420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422 $as_echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430 if test $ac_cv_c_bigendian = unknown; then
14431 # Compile a test program.
14432 if test "$cross_compiling" = yes; then
14433 # Try to guess by grepping values from an object file.
14434 cat >conftest.$ac_ext <<_ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 short int ascii_mm[] =
14441 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14442 short int ascii_ii[] =
14443 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14444 int use_ascii (int i) {
14445 return ascii_mm[i] + ascii_ii[i];
14447 short int ebcdic_ii[] =
14448 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14449 short int ebcdic_mm[] =
14450 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14451 int use_ebcdic (int i) {
14452 return ebcdic_mm[i] + ebcdic_ii[i];
14459 return use_ascii (foo) == use_ebcdic (foo);
14464 rm -f conftest.$ac_objext
14465 if { (ac_try="$ac_compile"
14466 case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14471 $as_echo "$ac_try_echo") >&5
14472 (eval "$ac_compile") 2>conftest.er1
14474 grep -v '^ *+' conftest.er1 >conftest.err
14476 cat conftest.err >&5
14477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } && {
14479 test -z "$ac_c_werror_flag" ||
14480 test ! -s conftest.err
14481 } && test -s conftest.$ac_objext; then
14482 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14483 ac_cv_c_bigendian=yes
14485 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14486 if test "$ac_cv_c_bigendian" = unknown; then
14487 ac_cv_c_bigendian=no
14489 # finding both strings is unlikely to happen, but who knows?
14490 ac_cv_c_bigendian=unknown
14494 $as_echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14502 cat >conftest.$ac_ext <<_ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 $ac_includes_default
14513 /* Are we little or big endian? From Harbison&Steele. */
14517 char c[sizeof (long int)];
14520 return u.c[sizeof (long int) - 1] == 1;
14526 rm -f conftest$ac_exeext
14527 if { (ac_try="$ac_link"
14528 case "(($ac_try" in
14529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530 *) ac_try_echo=$ac_try;;
14532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14533 $as_echo "$ac_try_echo") >&5
14534 (eval "$ac_link") 2>&5
14536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14538 { (case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14543 $as_echo "$ac_try_echo") >&5
14544 (eval "$ac_try") 2>&5
14546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_cv_c_bigendian=no
14550 $as_echo "$as_me: program exited with status $ac_status" >&5
14551 $as_echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 ( exit $ac_status )
14555 ac_cv_c_bigendian=yes
14557 rm -rf conftest.dSYM
14558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14564 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14565 $as_echo "$ac_cv_c_bigendian" >&6; }
14566 case $ac_cv_c_bigendian in #(
14568 cat >>confdefs.h <<\_ACEOF
14569 #define WORDS_BIGENDIAN 1
14576 cat >>confdefs.h <<\_ACEOF
14577 #define AC_APPLE_UNIVERSAL_BUILD 1
14582 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14583 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14584 $as_echo "$as_me: error: unknown endianness
14585 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14586 { (exit 1); exit 1; }; } ;;
14589 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14590 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14591 if test "${ac_cv_c_const+set}" = set; then
14592 $as_echo_n "(cached) " >&6
14594 cat >conftest.$ac_ext <<_ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14604 /* FIXME: Include the comments suggested by Paul. */
14605 #ifndef __cplusplus
14606 /* Ultrix mips cc rejects this. */
14607 typedef int charset[2];
14609 /* SunOS 4.1.1 cc rejects this. */
14610 char const *const *pcpcc;
14612 /* NEC SVR4.0.2 mips cc rejects this. */
14613 struct point {int x, y;};
14614 static struct point const zero = {0,0};
14615 /* AIX XL C 1.02.0.0 rejects this.
14616 It does not let you subtract one const X* pointer from another in
14617 an arm of an if-expression whose if-part is not a constant
14619 const char *g = "string";
14620 pcpcc = &g + (g ? g-g : 0);
14621 /* HPUX 7.0 cc rejects these. */
14623 ppc = (char**) pcpcc;
14624 pcpcc = (char const *const *) ppc;
14625 { /* SCO 3.2v4 cc rejects this. */
14627 char const *s = 0 ? (char *) 0 : (char const *) 0;
14632 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14633 int x[] = {25, 17};
14634 const int *foo = &x[0];
14637 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14638 typedef const int *iptr;
14642 { /* AIX XL C 1.02.0.0 rejects this saying
14643 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14644 struct s { int j; const int *ap[3]; };
14645 struct s *b; b->j = 5;
14647 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14648 const int foo = 10;
14649 if (!foo) return 0;
14651 return !cs[0] && !zero.x;
14658 rm -f conftest.$ac_objext
14659 if { (ac_try="$ac_compile"
14660 case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14665 $as_echo "$ac_try_echo") >&5
14666 (eval "$ac_compile") 2>conftest.er1
14668 grep -v '^ *+' conftest.er1 >conftest.err
14670 cat conftest.err >&5
14671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest.$ac_objext; then
14678 $as_echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14686 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14687 $as_echo "$ac_cv_c_const" >&6; }
14688 if test $ac_cv_c_const = no; then
14690 cat >>confdefs.h <<\_ACEOF
14696 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14697 $as_echo_n "checking for inline... " >&6; }
14698 if test "${ac_cv_c_inline+set}" = set; then
14699 $as_echo_n "(cached) " >&6
14702 for ac_kw in inline __inline__ __inline; do
14703 cat >conftest.$ac_ext <<_ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709 #ifndef __cplusplus
14711 static $ac_kw foo_t static_foo () {return 0; }
14712 $ac_kw foo_t foo () {return 0; }
14716 rm -f conftest.$ac_objext
14717 if { (ac_try="$ac_compile"
14718 case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14723 $as_echo "$ac_try_echo") >&5
14724 (eval "$ac_compile") 2>conftest.er1
14726 grep -v '^ *+' conftest.er1 >conftest.err
14728 cat conftest.err >&5
14729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } && {
14731 test -z "$ac_c_werror_flag" ||
14732 test ! -s conftest.err
14733 } && test -s conftest.$ac_objext; then
14734 ac_cv_c_inline=$ac_kw
14736 $as_echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 test "$ac_cv_c_inline" != no && break
14747 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14748 $as_echo "$ac_cv_c_inline" >&6; }
14751 case $ac_cv_c_inline in
14754 case $ac_cv_c_inline in
14756 *) ac_val=$ac_cv_c_inline;;
14758 cat >>confdefs.h <<_ACEOF
14759 #ifndef __cplusplus
14760 #define inline $ac_val
14766 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14767 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14768 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14769 $as_echo_n "(cached) " >&6
14771 pgac_cv_c_inline_quietly=no
14772 if test "$ac_cv_c_inline" != no; then
14773 pgac_c_inline_save_werror=$ac_c_werror_flag
14774 ac_c_werror_flag=yes
14775 cat >conftest.$ac_ext <<_ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14781 static inline int fun () {return 0;}
14790 rm -f conftest.$ac_objext conftest$ac_exeext
14791 if { (ac_try="$ac_link"
14792 case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14797 $as_echo "$ac_try_echo") >&5
14798 (eval "$ac_link") 2>conftest.er1
14800 grep -v '^ *+' conftest.er1 >conftest.err
14802 cat conftest.err >&5
14803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } && {
14805 test -z "$ac_c_werror_flag" ||
14806 test ! -s conftest.err
14807 } && test -s conftest$ac_exeext && {
14808 test "$cross_compiling" = yes ||
14809 $as_test_x conftest$ac_exeext
14811 pgac_cv_c_inline_quietly=yes
14813 $as_echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14819 rm -rf conftest.dSYM
14820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14821 conftest$ac_exeext conftest.$ac_ext
14822 ac_c_werror_flag=$pgac_c_inline_save_werror
14825 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14826 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14827 if test "$pgac_cv_c_inline_quietly" != no; then
14829 cat >>confdefs.h <<_ACEOF
14830 #define USE_INLINE 1
14835 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14836 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14837 if test "${ac_cv_c_stringize+set}" = set; then
14838 $as_echo_n "(cached) " >&6
14840 cat >conftest.$ac_ext <<_ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14848 char *s = x(teststring);
14850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14851 $EGREP "#teststring" >/dev/null 2>&1; then
14852 ac_cv_c_stringize=no
14854 ac_cv_c_stringize=yes
14859 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14860 $as_echo "$ac_cv_c_stringize" >&6; }
14861 if test $ac_cv_c_stringize = yes; then
14863 cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_STRINGIZE 1
14869 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14870 $as_echo_n "checking for signed types... " >&6; }
14871 if test "${pgac_cv_c_signed+set}" = set; then
14872 $as_echo_n "(cached) " >&6
14874 cat >conftest.$ac_ext <<_ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14884 signed char c; signed short s; signed int i;
14889 rm -f conftest.$ac_objext
14890 if { (ac_try="$ac_compile"
14891 case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14896 $as_echo "$ac_try_echo") >&5
14897 (eval "$ac_compile") 2>conftest.er1
14899 grep -v '^ *+' conftest.er1 >conftest.err
14901 cat conftest.err >&5
14902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } && {
14904 test -z "$ac_c_werror_flag" ||
14905 test ! -s conftest.err
14906 } && test -s conftest.$ac_objext; then
14907 pgac_cv_c_signed=yes
14909 $as_echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 pgac_cv_c_signed=no
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14918 $as_echo "$pgac_cv_c_signed" >&6; }
14919 if test x"$pgac_cv_c_signed" = xno ; then
14921 cat >>confdefs.h <<\_ACEOF
14922 #define signed /**/
14926 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14927 $as_echo_n "checking for working volatile... " >&6; }
14928 if test "${ac_cv_c_volatile+set}" = set; then
14929 $as_echo_n "(cached) " >&6
14931 cat >conftest.$ac_ext <<_ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14943 int * volatile y = (int *) 0;
14949 rm -f conftest.$ac_objext
14950 if { (ac_try="$ac_compile"
14951 case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14956 $as_echo "$ac_try_echo") >&5
14957 (eval "$ac_compile") 2>conftest.er1
14959 grep -v '^ *+' conftest.er1 >conftest.err
14961 cat conftest.err >&5
14962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } && {
14964 test -z "$ac_c_werror_flag" ||
14965 test ! -s conftest.err
14966 } && test -s conftest.$ac_objext; then
14967 ac_cv_c_volatile=yes
14969 $as_echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.$ac_ext >&5
14972 ac_cv_c_volatile=no
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14978 $as_echo "$ac_cv_c_volatile" >&6; }
14979 if test $ac_cv_c_volatile = no; then
14981 cat >>confdefs.h <<\_ACEOF
14982 #define volatile /**/
14987 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14988 $as_echo_n "checking for __func__... " >&6; }
14989 if test "${pgac_cv_funcname_func_support+set}" = set; then
14990 $as_echo_n "(cached) " >&6
14992 cat >conftest.$ac_ext <<_ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h. */
15002 printf("%s\n", __func__);
15007 rm -f conftest.$ac_objext
15008 if { (ac_try="$ac_compile"
15009 case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15014 $as_echo "$ac_try_echo") >&5
15015 (eval "$ac_compile") 2>conftest.er1
15017 grep -v '^ *+' conftest.er1 >conftest.err
15019 cat conftest.err >&5
15020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } && {
15022 test -z "$ac_c_werror_flag" ||
15023 test ! -s conftest.err
15024 } && test -s conftest.$ac_objext; then
15025 pgac_cv_funcname_func_support=yes
15027 $as_echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 pgac_cv_funcname_func_support=no
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15035 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15036 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15037 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15039 cat >>confdefs.h <<\_ACEOF
15040 #define HAVE_FUNCNAME__FUNC 1
15044 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15045 $as_echo_n "checking for __FUNCTION__... " >&6; }
15046 if test "${pgac_cv_funcname_function_support+set}" = set; then
15047 $as_echo_n "(cached) " >&6
15049 cat >conftest.$ac_ext <<_ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15059 printf("%s\n", __FUNCTION__);
15064 rm -f conftest.$ac_objext
15065 if { (ac_try="$ac_compile"
15066 case "(($ac_try" in
15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068 *) ac_try_echo=$ac_try;;
15070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15071 $as_echo "$ac_try_echo") >&5
15072 (eval "$ac_compile") 2>conftest.er1
15074 grep -v '^ *+' conftest.er1 >conftest.err
15076 cat conftest.err >&5
15077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } && {
15079 test -z "$ac_c_werror_flag" ||
15080 test ! -s conftest.err
15081 } && test -s conftest.$ac_objext; then
15082 pgac_cv_funcname_function_support=yes
15084 $as_echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15087 pgac_cv_funcname_function_support=no
15090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15093 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15094 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15096 cat >>confdefs.h <<\_ACEOF
15097 #define HAVE_FUNCNAME__FUNCTION 1
15102 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15103 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15104 if test "${ac_cv_struct_tm+set}" = set; then
15105 $as_echo_n "(cached) " >&6
15107 cat >conftest.$ac_ext <<_ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 #include <sys/types.h>
15120 int *p = &tm.tm_sec;
15126 rm -f conftest.$ac_objext
15127 if { (ac_try="$ac_compile"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15133 $as_echo "$ac_try_echo") >&5
15134 (eval "$ac_compile") 2>conftest.er1
15136 grep -v '^ *+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && {
15141 test -z "$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15143 } && test -s conftest.$ac_objext; then
15144 ac_cv_struct_tm=time.h
15146 $as_echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15149 ac_cv_struct_tm=sys/time.h
15152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15154 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15155 $as_echo "$ac_cv_struct_tm" >&6; }
15156 if test $ac_cv_struct_tm = sys/time.h; then
15158 cat >>confdefs.h <<\_ACEOF
15159 #define TM_IN_SYS_TIME 1
15164 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15165 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15166 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15167 $as_echo_n "(cached) " >&6
15169 cat >conftest.$ac_ext <<_ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15175 #include <sys/types.h>
15176 #include <$ac_cv_struct_tm>
15182 static struct tm ac_aggr;
15183 if (ac_aggr.tm_zone)
15189 rm -f conftest.$ac_objext
15190 if { (ac_try="$ac_compile"
15191 case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15196 $as_echo "$ac_try_echo") >&5
15197 (eval "$ac_compile") 2>conftest.er1
15199 grep -v '^ *+' conftest.er1 >conftest.err
15201 cat conftest.err >&5
15202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } && {
15204 test -z "$ac_c_werror_flag" ||
15205 test ! -s conftest.err
15206 } && test -s conftest.$ac_objext; then
15207 ac_cv_member_struct_tm_tm_zone=yes
15209 $as_echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15212 cat >conftest.$ac_ext <<_ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 #include <sys/types.h>
15219 #include <$ac_cv_struct_tm>
15225 static struct tm ac_aggr;
15226 if (sizeof ac_aggr.tm_zone)
15232 rm -f conftest.$ac_objext
15233 if { (ac_try="$ac_compile"
15234 case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15239 $as_echo "$ac_try_echo") >&5
15240 (eval "$ac_compile") 2>conftest.er1
15242 grep -v '^ *+' conftest.er1 >conftest.err
15244 cat conftest.err >&5
15245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } && {
15247 test -z "$ac_c_werror_flag" ||
15248 test ! -s conftest.err
15249 } && test -s conftest.$ac_objext; then
15250 ac_cv_member_struct_tm_tm_zone=yes
15252 $as_echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_cv_member_struct_tm_tm_zone=no
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15264 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15265 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15267 cat >>confdefs.h <<_ACEOF
15268 #define HAVE_STRUCT_TM_TM_ZONE 1
15274 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15276 cat >>confdefs.h <<\_ACEOF
15277 #define HAVE_TM_ZONE 1
15281 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15282 $as_echo_n "checking for tzname... " >&6; }
15283 if test "${ac_cv_var_tzname+set}" = set; then
15284 $as_echo_n "(cached) " >&6
15286 cat >conftest.$ac_ext <<_ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15293 #ifndef tzname /* For SGI. */
15294 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15305 rm -f conftest.$ac_objext conftest$ac_exeext
15306 if { (ac_try="$ac_link"
15307 case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15312 $as_echo "$ac_try_echo") >&5
15313 (eval "$ac_link") 2>conftest.er1
15315 grep -v '^ *+' conftest.er1 >conftest.err
15317 cat conftest.err >&5
15318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } && {
15320 test -z "$ac_c_werror_flag" ||
15321 test ! -s conftest.err
15322 } && test -s conftest$ac_exeext && {
15323 test "$cross_compiling" = yes ||
15324 $as_test_x conftest$ac_exeext
15326 ac_cv_var_tzname=yes
15328 $as_echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 ac_cv_var_tzname=no
15334 rm -rf conftest.dSYM
15335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15336 conftest$ac_exeext conftest.$ac_ext
15338 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15339 $as_echo "$ac_cv_var_tzname" >&6; }
15340 if test $ac_cv_var_tzname = yes; then
15342 cat >>confdefs.h <<\_ACEOF
15343 #define HAVE_TZNAME 1
15348 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15349 $as_echo_n "checking for union semun... " >&6; }
15350 if test "${ac_cv_type_union_semun+set}" = set; then
15351 $as_echo_n "(cached) " >&6
15353 ac_cv_type_union_semun=no
15354 cat >conftest.$ac_ext <<_ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360 #include <sys/types.h>
15361 #include <sys/ipc.h>
15362 #include <sys/sem.h>
15367 if (sizeof (union semun))
15373 rm -f conftest.$ac_objext
15374 if { (ac_try="$ac_compile"
15375 case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15380 $as_echo "$ac_try_echo") >&5
15381 (eval "$ac_compile") 2>conftest.er1
15383 grep -v '^ *+' conftest.er1 >conftest.err
15385 cat conftest.err >&5
15386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } && {
15388 test -z "$ac_c_werror_flag" ||
15389 test ! -s conftest.err
15390 } && test -s conftest.$ac_objext; then
15391 cat >conftest.$ac_ext <<_ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h. */
15397 #include <sys/types.h>
15398 #include <sys/ipc.h>
15399 #include <sys/sem.h>
15404 if (sizeof ((union semun)))
15410 rm -f conftest.$ac_objext
15411 if { (ac_try="$ac_compile"
15412 case "(($ac_try" in
15413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414 *) ac_try_echo=$ac_try;;
15416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15417 $as_echo "$ac_try_echo") >&5
15418 (eval "$ac_compile") 2>conftest.er1
15420 grep -v '^ *+' conftest.er1 >conftest.err
15422 cat conftest.err >&5
15423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } && {
15425 test -z "$ac_c_werror_flag" ||
15426 test ! -s conftest.err
15427 } && test -s conftest.$ac_objext; then
15430 $as_echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 ac_cv_type_union_semun=yes
15436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15438 $as_echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15446 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15447 $as_echo "$ac_cv_type_union_semun" >&6; }
15448 if test "x$ac_cv_type_union_semun" = x""yes; then
15450 cat >>confdefs.h <<_ACEOF
15451 #define HAVE_UNION_SEMUN 1
15457 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15458 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15459 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15460 $as_echo_n "(cached) " >&6
15462 ac_cv_type_struct_sockaddr_un=no
15463 cat >conftest.$ac_ext <<_ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 #include <sys/types.h>
15470 #ifdef HAVE_SYS_UN_H
15471 #include <sys/un.h>
15478 if (sizeof (struct sockaddr_un))
15484 rm -f conftest.$ac_objext
15485 if { (ac_try="$ac_compile"
15486 case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15491 $as_echo "$ac_try_echo") >&5
15492 (eval "$ac_compile") 2>conftest.er1
15494 grep -v '^ *+' conftest.er1 >conftest.err
15496 cat conftest.err >&5
15497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } && {
15499 test -z "$ac_c_werror_flag" ||
15500 test ! -s conftest.err
15501 } && test -s conftest.$ac_objext; then
15502 cat >conftest.$ac_ext <<_ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
15508 #include <sys/types.h>
15509 #ifdef HAVE_SYS_UN_H
15510 #include <sys/un.h>
15517 if (sizeof ((struct sockaddr_un)))
15523 rm -f conftest.$ac_objext
15524 if { (ac_try="$ac_compile"
15525 case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15530 $as_echo "$ac_try_echo") >&5
15531 (eval "$ac_compile") 2>conftest.er1
15533 grep -v '^ *+' conftest.er1 >conftest.err
15535 cat conftest.err >&5
15536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } && {
15538 test -z "$ac_c_werror_flag" ||
15539 test ! -s conftest.err
15540 } && test -s conftest.$ac_objext; then
15543 $as_echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15546 ac_cv_type_struct_sockaddr_un=yes
15549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551 $as_echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15559 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15560 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15561 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15563 cat >>confdefs.h <<_ACEOF
15564 #define HAVE_STRUCT_SOCKADDR_UN 1
15568 cat >>confdefs.h <<\_ACEOF
15569 #define HAVE_UNIX_SOCKETS 1
15574 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15575 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15576 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15577 $as_echo_n "(cached) " >&6
15579 ac_cv_type_struct_sockaddr_storage=no
15580 cat >conftest.$ac_ext <<_ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15586 #include <sys/types.h>
15587 #ifdef HAVE_SYS_SOCKET_H
15588 #include <sys/socket.h>
15595 if (sizeof (struct sockaddr_storage))
15601 rm -f conftest.$ac_objext
15602 if { (ac_try="$ac_compile"
15603 case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15608 $as_echo "$ac_try_echo") >&5
15609 (eval "$ac_compile") 2>conftest.er1
15611 grep -v '^ *+' conftest.er1 >conftest.err
15613 cat conftest.err >&5
15614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } && {
15616 test -z "$ac_c_werror_flag" ||
15617 test ! -s conftest.err
15618 } && test -s conftest.$ac_objext; then
15619 cat >conftest.$ac_ext <<_ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15625 #include <sys/types.h>
15626 #ifdef HAVE_SYS_SOCKET_H
15627 #include <sys/socket.h>
15634 if (sizeof ((struct sockaddr_storage)))
15640 rm -f conftest.$ac_objext
15641 if { (ac_try="$ac_compile"
15642 case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15647 $as_echo "$ac_try_echo") >&5
15648 (eval "$ac_compile") 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } && {
15655 test -z "$ac_c_werror_flag" ||
15656 test ! -s conftest.err
15657 } && test -s conftest.$ac_objext; then
15660 $as_echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15663 ac_cv_type_struct_sockaddr_storage=yes
15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15668 $as_echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15677 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15678 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15680 cat >>confdefs.h <<_ACEOF
15681 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15687 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15688 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15689 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15690 $as_echo_n "(cached) " >&6
15692 cat >conftest.$ac_ext <<_ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 #include <sys/types.h>
15699 #ifdef HAVE_SYS_SOCKET_H
15700 #include <sys/socket.h>
15707 static struct sockaddr_storage ac_aggr;
15708 if (ac_aggr.ss_family)
15714 rm -f conftest.$ac_objext
15715 if { (ac_try="$ac_compile"
15716 case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15721 $as_echo "$ac_try_echo") >&5
15722 (eval "$ac_compile") 2>conftest.er1
15724 grep -v '^ *+' conftest.er1 >conftest.err
15726 cat conftest.err >&5
15727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } && {
15729 test -z "$ac_c_werror_flag" ||
15730 test ! -s conftest.err
15731 } && test -s conftest.$ac_objext; then
15732 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15734 $as_echo "$as_me: failed program was:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15737 cat >conftest.$ac_ext <<_ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h. */
15743 #include <sys/types.h>
15744 #ifdef HAVE_SYS_SOCKET_H
15745 #include <sys/socket.h>
15752 static struct sockaddr_storage ac_aggr;
15753 if (sizeof ac_aggr.ss_family)
15759 rm -f conftest.$ac_objext
15760 if { (ac_try="$ac_compile"
15761 case "(($ac_try" in
15762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763 *) ac_try_echo=$ac_try;;
15765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15766 $as_echo "$ac_try_echo") >&5
15767 (eval "$ac_compile") 2>conftest.er1
15769 grep -v '^ *+' conftest.er1 >conftest.err
15771 cat conftest.err >&5
15772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); } && {
15774 test -z "$ac_c_werror_flag" ||
15775 test ! -s conftest.err
15776 } && test -s conftest.$ac_objext; then
15777 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15779 $as_echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15782 ac_cv_member_struct_sockaddr_storage_ss_family=no
15785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15790 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15791 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15792 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15794 cat >>confdefs.h <<_ACEOF
15795 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15800 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15801 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15802 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15803 $as_echo_n "(cached) " >&6
15805 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 #include <sys/types.h>
15812 #ifdef HAVE_SYS_SOCKET_H
15813 #include <sys/socket.h>
15820 static struct sockaddr_storage ac_aggr;
15821 if (ac_aggr.__ss_family)
15827 rm -f conftest.$ac_objext
15828 if { (ac_try="$ac_compile"
15829 case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15834 $as_echo "$ac_try_echo") >&5
15835 (eval "$ac_compile") 2>conftest.er1
15837 grep -v '^ *+' conftest.er1 >conftest.err
15839 cat conftest.err >&5
15840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } && {
15842 test -z "$ac_c_werror_flag" ||
15843 test ! -s conftest.err
15844 } && test -s conftest.$ac_objext; then
15845 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15847 $as_echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15850 cat >conftest.$ac_ext <<_ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 #include <sys/types.h>
15857 #ifdef HAVE_SYS_SOCKET_H
15858 #include <sys/socket.h>
15865 static struct sockaddr_storage ac_aggr;
15866 if (sizeof ac_aggr.__ss_family)
15872 rm -f conftest.$ac_objext
15873 if { (ac_try="$ac_compile"
15874 case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15879 $as_echo "$ac_try_echo") >&5
15880 (eval "$ac_compile") 2>conftest.er1
15882 grep -v '^ *+' conftest.er1 >conftest.err
15884 cat conftest.err >&5
15885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } && {
15887 test -z "$ac_c_werror_flag" ||
15888 test ! -s conftest.err
15889 } && test -s conftest.$ac_objext; then
15890 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15892 $as_echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15895 ac_cv_member_struct_sockaddr_storage___ss_family=no
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15904 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15905 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15907 cat >>confdefs.h <<_ACEOF
15908 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15913 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15914 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15915 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15916 $as_echo_n "(cached) " >&6
15918 cat >conftest.$ac_ext <<_ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15924 #include <sys/types.h>
15925 #ifdef HAVE_SYS_SOCKET_H
15926 #include <sys/socket.h>
15933 static struct sockaddr_storage ac_aggr;
15934 if (ac_aggr.ss_len)
15940 rm -f conftest.$ac_objext
15941 if { (ac_try="$ac_compile"
15942 case "(($ac_try" in
15943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944 *) ac_try_echo=$ac_try;;
15946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15947 $as_echo "$ac_try_echo") >&5
15948 (eval "$ac_compile") 2>conftest.er1
15950 grep -v '^ *+' conftest.er1 >conftest.err
15952 cat conftest.err >&5
15953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } && {
15955 test -z "$ac_c_werror_flag" ||
15956 test ! -s conftest.err
15957 } && test -s conftest.$ac_objext; then
15958 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15960 $as_echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 cat >conftest.$ac_ext <<_ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15969 #include <sys/types.h>
15970 #ifdef HAVE_SYS_SOCKET_H
15971 #include <sys/socket.h>
15978 static struct sockaddr_storage ac_aggr;
15979 if (sizeof ac_aggr.ss_len)
15985 rm -f conftest.$ac_objext
15986 if { (ac_try="$ac_compile"
15987 case "(($ac_try" in
15988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989 *) ac_try_echo=$ac_try;;
15991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15992 $as_echo "$ac_try_echo") >&5
15993 (eval "$ac_compile") 2>conftest.er1
15995 grep -v '^ *+' conftest.er1 >conftest.err
15997 cat conftest.err >&5
15998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } && {
16000 test -z "$ac_c_werror_flag" ||
16001 test ! -s conftest.err
16002 } && test -s conftest.$ac_objext; then
16003 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16005 $as_echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16008 ac_cv_member_struct_sockaddr_storage_ss_len=no
16011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16017 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16018 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16020 cat >>confdefs.h <<_ACEOF
16021 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16026 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16027 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16028 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16029 $as_echo_n "(cached) " >&6
16031 cat >conftest.$ac_ext <<_ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 #include <sys/types.h>
16038 #ifdef HAVE_SYS_SOCKET_H
16039 #include <sys/socket.h>
16046 static struct sockaddr_storage ac_aggr;
16047 if (ac_aggr.__ss_len)
16053 rm -f conftest.$ac_objext
16054 if { (ac_try="$ac_compile"
16055 case "(($ac_try" in
16056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057 *) ac_try_echo=$ac_try;;
16059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16060 $as_echo "$ac_try_echo") >&5
16061 (eval "$ac_compile") 2>conftest.er1
16063 grep -v '^ *+' conftest.er1 >conftest.err
16065 cat conftest.err >&5
16066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } && {
16068 test -z "$ac_c_werror_flag" ||
16069 test ! -s conftest.err
16070 } && test -s conftest.$ac_objext; then
16071 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16073 $as_echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16076 cat >conftest.$ac_ext <<_ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 #include <sys/types.h>
16083 #ifdef HAVE_SYS_SOCKET_H
16084 #include <sys/socket.h>
16091 static struct sockaddr_storage ac_aggr;
16092 if (sizeof ac_aggr.__ss_len)
16098 rm -f conftest.$ac_objext
16099 if { (ac_try="$ac_compile"
16100 case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16105 $as_echo "$ac_try_echo") >&5
16106 (eval "$ac_compile") 2>conftest.er1
16108 grep -v '^ *+' conftest.er1 >conftest.err
16110 cat conftest.err >&5
16111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } && {
16113 test -z "$ac_c_werror_flag" ||
16114 test ! -s conftest.err
16115 } && test -s conftest.$ac_objext; then
16116 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16118 $as_echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16121 ac_cv_member_struct_sockaddr_storage___ss_len=no
16124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16130 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16131 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16139 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16140 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16141 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16142 $as_echo_n "(cached) " >&6
16144 cat >conftest.$ac_ext <<_ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 #include <sys/types.h>
16151 #ifdef HAVE_SYS_SOCKET_H
16152 #include <sys/socket.h>
16159 static struct sockaddr ac_aggr;
16160 if (ac_aggr.sa_len)
16166 rm -f conftest.$ac_objext
16167 if { (ac_try="$ac_compile"
16168 case "(($ac_try" in
16169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170 *) ac_try_echo=$ac_try;;
16172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16173 $as_echo "$ac_try_echo") >&5
16174 (eval "$ac_compile") 2>conftest.er1
16176 grep -v '^ *+' conftest.er1 >conftest.err
16178 cat conftest.err >&5
16179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && {
16181 test -z "$ac_c_werror_flag" ||
16182 test ! -s conftest.err
16183 } && test -s conftest.$ac_objext; then
16184 ac_cv_member_struct_sockaddr_sa_len=yes
16186 $as_echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16189 cat >conftest.$ac_ext <<_ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 #include <sys/types.h>
16196 #ifdef HAVE_SYS_SOCKET_H
16197 #include <sys/socket.h>
16204 static struct sockaddr ac_aggr;
16205 if (sizeof ac_aggr.sa_len)
16211 rm -f conftest.$ac_objext
16212 if { (ac_try="$ac_compile"
16213 case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16218 $as_echo "$ac_try_echo") >&5
16219 (eval "$ac_compile") 2>conftest.er1
16221 grep -v '^ *+' conftest.er1 >conftest.err
16223 cat conftest.err >&5
16224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } && {
16226 test -z "$ac_c_werror_flag" ||
16227 test ! -s conftest.err
16228 } && test -s conftest.$ac_objext; then
16229 ac_cv_member_struct_sockaddr_sa_len=yes
16231 $as_echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16234 ac_cv_member_struct_sockaddr_sa_len=no
16237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16242 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16243 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16244 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16246 cat >>confdefs.h <<_ACEOF
16247 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16253 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16254 $as_echo_n "checking for struct addrinfo... " >&6; }
16255 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16256 $as_echo_n "(cached) " >&6
16258 ac_cv_type_struct_addrinfo=no
16259 cat >conftest.$ac_ext <<_ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h. */
16265 #include <sys/types.h>
16266 #include <sys/socket.h>
16273 if (sizeof (struct addrinfo))
16279 rm -f conftest.$ac_objext
16280 if { (ac_try="$ac_compile"
16281 case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16286 $as_echo "$ac_try_echo") >&5
16287 (eval "$ac_compile") 2>conftest.er1
16289 grep -v '^ *+' conftest.er1 >conftest.err
16291 cat conftest.err >&5
16292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } && {
16294 test -z "$ac_c_werror_flag" ||
16295 test ! -s conftest.err
16296 } && test -s conftest.$ac_objext; then
16297 cat >conftest.$ac_ext <<_ACEOF
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h. */
16303 #include <sys/types.h>
16304 #include <sys/socket.h>
16311 if (sizeof ((struct addrinfo)))
16317 rm -f conftest.$ac_objext
16318 if { (ac_try="$ac_compile"
16319 case "(($ac_try" in
16320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16321 *) ac_try_echo=$ac_try;;
16323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16324 $as_echo "$ac_try_echo") >&5
16325 (eval "$ac_compile") 2>conftest.er1
16327 grep -v '^ *+' conftest.er1 >conftest.err
16329 cat conftest.err >&5
16330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } && {
16332 test -z "$ac_c_werror_flag" ||
16333 test ! -s conftest.err
16334 } && test -s conftest.$ac_objext; then
16337 $as_echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ac_cv_type_struct_addrinfo=yes
16343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345 $as_echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16354 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16355 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_STRUCT_ADDRINFO 1
16365 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16366 $as_echo_n "checking for intptr_t... " >&6; }
16367 if test "${ac_cv_type_intptr_t+set}" = set; then
16368 $as_echo_n "(cached) " >&6
16370 ac_cv_type_intptr_t=no
16371 cat >conftest.$ac_ext <<_ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 $ac_includes_default
16381 if (sizeof (intptr_t))
16387 rm -f conftest.$ac_objext
16388 if { (ac_try="$ac_compile"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16394 $as_echo "$ac_try_echo") >&5
16395 (eval "$ac_compile") 2>conftest.er1
16397 grep -v '^ *+' conftest.er1 >conftest.err
16399 cat conftest.err >&5
16400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } && {
16402 test -z "$ac_c_werror_flag" ||
16403 test ! -s conftest.err
16404 } && test -s conftest.$ac_objext; then
16405 cat >conftest.$ac_ext <<_ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16411 $ac_includes_default
16415 if (sizeof ((intptr_t)))
16421 rm -f conftest.$ac_objext
16422 if { (ac_try="$ac_compile"
16423 case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16428 $as_echo "$ac_try_echo") >&5
16429 (eval "$ac_compile") 2>conftest.er1
16431 grep -v '^ *+' conftest.er1 >conftest.err
16433 cat conftest.err >&5
16434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } && {
16436 test -z "$ac_c_werror_flag" ||
16437 test ! -s conftest.err
16438 } && test -s conftest.$ac_objext; then
16441 $as_echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16444 ac_cv_type_intptr_t=yes
16447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16449 $as_echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16457 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16458 $as_echo "$ac_cv_type_intptr_t" >&6; }
16459 if test "x$ac_cv_type_intptr_t" = x""yes; then
16461 cat >>confdefs.h <<\_ACEOF
16462 #define HAVE_INTPTR_T 1
16466 for ac_type in 'int' 'long int' 'long long int'; do
16467 cat >conftest.$ac_ext <<_ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16473 $ac_includes_default
16477 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16484 rm -f conftest.$ac_objext
16485 if { (ac_try="$ac_compile"
16486 case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16491 $as_echo "$ac_try_echo") >&5
16492 (eval "$ac_compile") 2>conftest.er1
16494 grep -v '^ *+' conftest.er1 >conftest.err
16496 cat conftest.err >&5
16497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } && {
16499 test -z "$ac_c_werror_flag" ||
16500 test ! -s conftest.err
16501 } && test -s conftest.$ac_objext; then
16503 cat >>confdefs.h <<_ACEOF
16504 #define intptr_t $ac_type
16509 $as_echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516 test -z "$ac_type" && break
16522 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16523 $as_echo_n "checking for uintptr_t... " >&6; }
16524 if test "${ac_cv_type_uintptr_t+set}" = set; then
16525 $as_echo_n "(cached) " >&6
16527 ac_cv_type_uintptr_t=no
16528 cat >conftest.$ac_ext <<_ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16534 $ac_includes_default
16538 if (sizeof (uintptr_t))
16544 rm -f conftest.$ac_objext
16545 if { (ac_try="$ac_compile"
16546 case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16551 $as_echo "$ac_try_echo") >&5
16552 (eval "$ac_compile") 2>conftest.er1
16554 grep -v '^ *+' conftest.er1 >conftest.err
16556 cat conftest.err >&5
16557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } && {
16559 test -z "$ac_c_werror_flag" ||
16560 test ! -s conftest.err
16561 } && test -s conftest.$ac_objext; then
16562 cat >conftest.$ac_ext <<_ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h. */
16568 $ac_includes_default
16572 if (sizeof ((uintptr_t)))
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16585 $as_echo "$ac_try_echo") >&5
16586 (eval "$ac_compile") 2>conftest.er1
16588 grep -v '^ *+' conftest.er1 >conftest.err
16590 cat conftest.err >&5
16591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } && {
16593 test -z "$ac_c_werror_flag" ||
16594 test ! -s conftest.err
16595 } && test -s conftest.$ac_objext; then
16598 $as_echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16601 ac_cv_type_uintptr_t=yes
16604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606 $as_echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16615 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16616 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16618 cat >>confdefs.h <<\_ACEOF
16619 #define HAVE_UINTPTR_T 1
16623 for ac_type in 'unsigned int' 'unsigned long int' \
16624 'unsigned long long int'; do
16625 cat >conftest.$ac_ext <<_ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 $ac_includes_default
16635 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16642 rm -f conftest.$ac_objext
16643 if { (ac_try="$ac_compile"
16644 case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16649 $as_echo "$ac_try_echo") >&5
16650 (eval "$ac_compile") 2>conftest.er1
16652 grep -v '^ *+' conftest.er1 >conftest.err
16654 cat conftest.err >&5
16655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } && {
16657 test -z "$ac_c_werror_flag" ||
16658 test ! -s conftest.err
16659 } && test -s conftest.$ac_objext; then
16661 cat >>confdefs.h <<_ACEOF
16662 #define uintptr_t $ac_type
16667 $as_echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674 test -z "$ac_type" && break
16680 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16681 $as_echo_n "checking for long long int... " >&6; }
16682 if test "${ac_cv_type_long_long_int+set}" = set; then
16683 $as_echo_n "(cached) " >&6
16685 cat >conftest.$ac_ext <<_ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692 /* For now, do not test the preprocessor; as of 2007 there are too many
16693 implementations with broken preprocessors. Perhaps this can
16694 be revisited in 2012. In the meantime, code should not expect
16695 #if to work with literals wider than 32 bits. */
16696 /* Test literals. */
16697 long long int ll = 9223372036854775807ll;
16698 long long int nll = -9223372036854775807LL;
16699 unsigned long long int ull = 18446744073709551615ULL;
16700 /* Test constant expressions. */
16701 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16703 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16709 /* Test availability of runtime routines for shift and division. */
16710 long long int llmax = 9223372036854775807ll;
16711 unsigned long long int ullmax = 18446744073709551615ull;
16712 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16713 | (llmax / ll) | (llmax % ll)
16714 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16715 | (ullmax / ull) | (ullmax % ull));
16721 rm -f conftest.$ac_objext conftest$ac_exeext
16722 if { (ac_try="$ac_link"
16723 case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16728 $as_echo "$ac_try_echo") >&5
16729 (eval "$ac_link") 2>conftest.er1
16731 grep -v '^ *+' conftest.er1 >conftest.err
16733 cat conftest.err >&5
16734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } && {
16736 test -z "$ac_c_werror_flag" ||
16737 test ! -s conftest.err
16738 } && test -s conftest$ac_exeext && {
16739 test "$cross_compiling" = yes ||
16740 $as_test_x conftest$ac_exeext
16742 if test "$cross_compiling" = yes; then
16743 ac_cv_type_long_long_int=yes
16745 cat >conftest.$ac_ext <<_ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h. */
16751 #include <limits.h>
16754 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16755 # define LLONG_MAX (HALF - 1 + HALF)
16760 long long int n = 1;
16764 long long int m = n << i;
16767 if (LLONG_MAX / 2 < m)
16775 rm -f conftest$ac_exeext
16776 if { (ac_try="$ac_link"
16777 case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16782 $as_echo "$ac_try_echo") >&5
16783 (eval "$ac_link") 2>&5
16785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16787 { (case "(($ac_try" in
16788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789 *) ac_try_echo=$ac_try;;
16791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16792 $as_echo "$ac_try_echo") >&5
16793 (eval "$ac_try") 2>&5
16795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16797 ac_cv_type_long_long_int=yes
16799 $as_echo "$as_me: program exited with status $ac_status" >&5
16800 $as_echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 ( exit $ac_status )
16804 ac_cv_type_long_long_int=no
16806 rm -rf conftest.dSYM
16807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16812 $as_echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16815 ac_cv_type_long_long_int=no
16818 rm -rf conftest.dSYM
16819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16820 conftest$ac_exeext conftest.$ac_ext
16822 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16823 $as_echo "$ac_cv_type_long_long_int" >&6; }
16824 if test $ac_cv_type_long_long_int = yes; then
16826 cat >>confdefs.h <<\_ACEOF
16827 #define HAVE_LONG_LONG_INT 1
16833 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
16834 $as_echo_n "checking for locale_t... " >&6; }
16835 if test "${pgac_cv_type_locale_t+set}" = set; then
16836 $as_echo_n "(cached) " >&6
16838 cat >conftest.$ac_ext <<_ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16844 #include <locale.h>
16854 rm -f conftest.$ac_objext
16855 if { (ac_try="$ac_compile"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16861 $as_echo "$ac_try_echo") >&5
16862 (eval "$ac_compile") 2>conftest.er1
16864 grep -v '^ *+' conftest.er1 >conftest.err
16866 cat conftest.err >&5
16867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } && {
16869 test -z "$ac_c_werror_flag" ||
16870 test ! -s conftest.err
16871 } && test -s conftest.$ac_objext; then
16872 pgac_cv_type_locale_t=yes
16874 $as_echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 cat >conftest.$ac_ext <<_ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16883 #include <xlocale.h>
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16900 $as_echo "$ac_try_echo") >&5
16901 (eval "$ac_compile") 2>conftest.er1
16903 grep -v '^ *+' conftest.er1 >conftest.err
16905 cat conftest.err >&5
16906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } && {
16908 test -z "$ac_c_werror_flag" ||
16909 test ! -s conftest.err
16910 } && test -s conftest.$ac_objext; then
16911 pgac_cv_type_locale_t='yes (in xlocale.h)'
16913 $as_echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 pgac_cv_type_locale_t=no
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16924 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
16925 $as_echo "$pgac_cv_type_locale_t" >&6; }
16926 if test "$pgac_cv_type_locale_t" != no; then
16928 cat >>confdefs.h <<\_ACEOF
16929 #define HAVE_LOCALE_T 1
16933 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
16935 cat >>confdefs.h <<\_ACEOF
16936 #define LOCALE_T_IN_XLOCALE 1
16941 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16942 $as_echo_n "checking for struct cmsgcred... " >&6; }
16943 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16944 $as_echo_n "(cached) " >&6
16946 ac_cv_type_struct_cmsgcred=no
16947 cat >conftest.$ac_ext <<_ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #include <sys/param.h>
16954 #include <sys/types.h>
16955 #include <sys/socket.h>
16956 #include <sys/ucred.h>
16961 if (sizeof (struct cmsgcred))
16967 rm -f conftest.$ac_objext
16968 if { (ac_try="$ac_compile"
16969 case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16974 $as_echo "$ac_try_echo") >&5
16975 (eval "$ac_compile") 2>conftest.er1
16977 grep -v '^ *+' conftest.er1 >conftest.err
16979 cat conftest.err >&5
16980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } && {
16982 test -z "$ac_c_werror_flag" ||
16983 test ! -s conftest.err
16984 } && test -s conftest.$ac_objext; then
16985 cat >conftest.$ac_ext <<_ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991 #include <sys/param.h>
16992 #include <sys/types.h>
16993 #include <sys/socket.h>
16994 #include <sys/ucred.h>
16999 if (sizeof ((struct cmsgcred)))
17005 rm -f conftest.$ac_objext
17006 if { (ac_try="$ac_compile"
17007 case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17012 $as_echo "$ac_try_echo") >&5
17013 (eval "$ac_compile") 2>conftest.er1
17015 grep -v '^ *+' conftest.er1 >conftest.err
17017 cat conftest.err >&5
17018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } && {
17020 test -z "$ac_c_werror_flag" ||
17021 test ! -s conftest.err
17022 } && test -s conftest.$ac_objext; then
17025 $as_echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17028 ac_cv_type_struct_cmsgcred=yes
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17033 $as_echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17042 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17043 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17045 cat >>confdefs.h <<_ACEOF
17046 #define HAVE_STRUCT_CMSGCRED 1
17051 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
17052 $as_echo_n "checking for struct fcred... " >&6; }
17053 if test "${ac_cv_type_struct_fcred+set}" = set; then
17054 $as_echo_n "(cached) " >&6
17056 ac_cv_type_struct_fcred=no
17057 cat >conftest.$ac_ext <<_ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 #include <sys/param.h>
17064 #include <sys/types.h>
17065 #include <sys/socket.h>
17066 #include <sys/ucred.h>
17071 if (sizeof (struct fcred))
17077 rm -f conftest.$ac_objext
17078 if { (ac_try="$ac_compile"
17079 case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17084 $as_echo "$ac_try_echo") >&5
17085 (eval "$ac_compile") 2>conftest.er1
17087 grep -v '^ *+' conftest.er1 >conftest.err
17089 cat conftest.err >&5
17090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } && {
17092 test -z "$ac_c_werror_flag" ||
17093 test ! -s conftest.err
17094 } && test -s conftest.$ac_objext; then
17095 cat >conftest.$ac_ext <<_ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17101 #include <sys/param.h>
17102 #include <sys/types.h>
17103 #include <sys/socket.h>
17104 #include <sys/ucred.h>
17109 if (sizeof ((struct fcred)))
17115 rm -f conftest.$ac_objext
17116 if { (ac_try="$ac_compile"
17117 case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17122 $as_echo "$ac_try_echo") >&5
17123 (eval "$ac_compile") 2>conftest.er1
17125 grep -v '^ *+' conftest.er1 >conftest.err
17127 cat conftest.err >&5
17128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } && {
17130 test -z "$ac_c_werror_flag" ||
17131 test ! -s conftest.err
17132 } && test -s conftest.$ac_objext; then
17135 $as_echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17138 ac_cv_type_struct_fcred=yes
17141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17143 $as_echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17151 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
17152 $as_echo "$ac_cv_type_struct_fcred" >&6; }
17153 if test "x$ac_cv_type_struct_fcred" = x""yes; then
17155 cat >>confdefs.h <<_ACEOF
17156 #define HAVE_STRUCT_FCRED 1
17161 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
17162 $as_echo_n "checking for struct sockcred... " >&6; }
17163 if test "${ac_cv_type_struct_sockcred+set}" = set; then
17164 $as_echo_n "(cached) " >&6
17166 ac_cv_type_struct_sockcred=no
17167 cat >conftest.$ac_ext <<_ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 #include <sys/param.h>
17174 #include <sys/types.h>
17175 #include <sys/socket.h>
17176 #include <sys/ucred.h>
17181 if (sizeof (struct sockcred))
17187 rm -f conftest.$ac_objext
17188 if { (ac_try="$ac_compile"
17189 case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17194 $as_echo "$ac_try_echo") >&5
17195 (eval "$ac_compile") 2>conftest.er1
17197 grep -v '^ *+' conftest.er1 >conftest.err
17199 cat conftest.err >&5
17200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } && {
17202 test -z "$ac_c_werror_flag" ||
17203 test ! -s conftest.err
17204 } && test -s conftest.$ac_objext; then
17205 cat >conftest.$ac_ext <<_ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211 #include <sys/param.h>
17212 #include <sys/types.h>
17213 #include <sys/socket.h>
17214 #include <sys/ucred.h>
17219 if (sizeof ((struct sockcred)))
17225 rm -f conftest.$ac_objext
17226 if { (ac_try="$ac_compile"
17227 case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17232 $as_echo "$ac_try_echo") >&5
17233 (eval "$ac_compile") 2>conftest.er1
17235 grep -v '^ *+' conftest.er1 >conftest.err
17237 cat conftest.err >&5
17238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } && {
17240 test -z "$ac_c_werror_flag" ||
17241 test ! -s conftest.err
17242 } && test -s conftest.$ac_objext; then
17245 $as_echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 ac_cv_type_struct_sockcred=yes
17251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253 $as_echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17261 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
17262 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
17263 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
17265 cat >>confdefs.h <<_ACEOF
17266 #define HAVE_STRUCT_SOCKCRED 1
17273 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17274 $as_echo_n "checking for struct option... " >&6; }
17275 if test "${ac_cv_type_struct_option+set}" = set; then
17276 $as_echo_n "(cached) " >&6
17278 ac_cv_type_struct_option=no
17279 cat >conftest.$ac_ext <<_ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 #ifdef HAVE_GETOPT_H
17286 #include <getopt.h>
17292 if (sizeof (struct option))
17298 rm -f conftest.$ac_objext
17299 if { (ac_try="$ac_compile"
17300 case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17305 $as_echo "$ac_try_echo") >&5
17306 (eval "$ac_compile") 2>conftest.er1
17308 grep -v '^ *+' conftest.er1 >conftest.err
17310 cat conftest.err >&5
17311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } && {
17313 test -z "$ac_c_werror_flag" ||
17314 test ! -s conftest.err
17315 } && test -s conftest.$ac_objext; then
17316 cat >conftest.$ac_ext <<_ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17322 #ifdef HAVE_GETOPT_H
17323 #include <getopt.h>
17329 if (sizeof ((struct option)))
17335 rm -f conftest.$ac_objext
17336 if { (ac_try="$ac_compile"
17337 case "(($ac_try" in
17338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339 *) ac_try_echo=$ac_try;;
17341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17342 $as_echo "$ac_try_echo") >&5
17343 (eval "$ac_compile") 2>conftest.er1
17345 grep -v '^ *+' conftest.er1 >conftest.err
17347 cat conftest.err >&5
17348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); } && {
17350 test -z "$ac_c_werror_flag" ||
17351 test ! -s conftest.err
17352 } && test -s conftest.$ac_objext; then
17355 $as_echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17358 ac_cv_type_struct_option=yes
17361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17363 $as_echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17372 $as_echo "$ac_cv_type_struct_option" >&6; }
17373 if test "x$ac_cv_type_struct_option" = x""yes; then
17375 cat >>confdefs.h <<_ACEOF
17376 #define HAVE_STRUCT_OPTION 1
17383 if test "$with_zlib" = yes; then
17384 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17385 # did not). While we could work around the lack of z_streamp, it
17386 # seems unwise to encourage people to use such old zlib versions...
17387 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17388 $as_echo_n "checking for z_streamp... " >&6; }
17389 if test "${ac_cv_type_z_streamp+set}" = set; then
17390 $as_echo_n "(cached) " >&6
17392 ac_cv_type_z_streamp=no
17393 cat >conftest.$ac_ext <<_ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17404 if (sizeof (z_streamp))
17410 rm -f conftest.$ac_objext
17411 if { (ac_try="$ac_compile"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17417 $as_echo "$ac_try_echo") >&5
17418 (eval "$ac_compile") 2>conftest.er1
17420 grep -v '^ *+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } && {
17425 test -z "$ac_c_werror_flag" ||
17426 test ! -s conftest.err
17427 } && test -s conftest.$ac_objext; then
17428 cat >conftest.$ac_ext <<_ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17439 if (sizeof ((z_streamp)))
17445 rm -f conftest.$ac_objext
17446 if { (ac_try="$ac_compile"
17447 case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17452 $as_echo "$ac_try_echo") >&5
17453 (eval "$ac_compile") 2>conftest.er1
17455 grep -v '^ *+' conftest.er1 >conftest.err
17457 cat conftest.err >&5
17458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } && {
17460 test -z "$ac_c_werror_flag" ||
17461 test ! -s conftest.err
17462 } && test -s conftest.$ac_objext; then
17465 $as_echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17468 ac_cv_type_z_streamp=yes
17471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473 $as_echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17481 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17482 $as_echo "$ac_cv_type_z_streamp" >&6; }
17483 if test "x$ac_cv_type_z_streamp" = x""yes; then
17486 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17487 Use --without-zlib to disable zlib support." >&5
17488 $as_echo "$as_me: error: zlib version is too old
17489 Use --without-zlib to disable zlib support." >&2;}
17490 { (exit 1); exit 1; }; }
17495 if test "$with_krb5" = yes; then
17496 # Check for differences between MIT and Heimdal (KTH) releases
17497 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17498 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17499 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17500 $as_echo_n "(cached) " >&6
17502 cat >conftest.$ac_ext <<_ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17513 static krb5_ticket ac_aggr;
17514 if (ac_aggr.enc_part2)
17520 rm -f conftest.$ac_objext
17521 if { (ac_try="$ac_compile"
17522 case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17527 $as_echo "$ac_try_echo") >&5
17528 (eval "$ac_compile") 2>conftest.er1
17530 grep -v '^ *+' conftest.er1 >conftest.err
17532 cat conftest.err >&5
17533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } && {
17535 test -z "$ac_c_werror_flag" ||
17536 test ! -s conftest.err
17537 } && test -s conftest.$ac_objext; then
17538 ac_cv_member_krb5_ticket_enc_part2=yes
17540 $as_echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 cat >conftest.$ac_ext <<_ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17554 static krb5_ticket ac_aggr;
17555 if (sizeof ac_aggr.enc_part2)
17561 rm -f conftest.$ac_objext
17562 if { (ac_try="$ac_compile"
17563 case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17568 $as_echo "$ac_try_echo") >&5
17569 (eval "$ac_compile") 2>conftest.er1
17571 grep -v '^ *+' conftest.er1 >conftest.err
17573 cat conftest.err >&5
17574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } && {
17576 test -z "$ac_c_werror_flag" ||
17577 test ! -s conftest.err
17578 } && test -s conftest.$ac_objext; then
17579 ac_cv_member_krb5_ticket_enc_part2=yes
17581 $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17584 ac_cv_member_krb5_ticket_enc_part2=no
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17593 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17594 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17596 cat >>confdefs.h <<_ACEOF
17597 #define HAVE_KRB5_TICKET_ENC_PART2 1
17602 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17603 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17604 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17605 $as_echo_n "(cached) " >&6
17607 cat >conftest.$ac_ext <<_ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17618 static krb5_ticket ac_aggr;
17619 if (ac_aggr.client)
17625 rm -f conftest.$ac_objext
17626 if { (ac_try="$ac_compile"
17627 case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17632 $as_echo "$ac_try_echo") >&5
17633 (eval "$ac_compile") 2>conftest.er1
17635 grep -v '^ *+' conftest.er1 >conftest.err
17637 cat conftest.err >&5
17638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } && {
17640 test -z "$ac_c_werror_flag" ||
17641 test ! -s conftest.err
17642 } && test -s conftest.$ac_objext; then
17643 ac_cv_member_krb5_ticket_client=yes
17645 $as_echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17648 cat >conftest.$ac_ext <<_ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h. */
17659 static krb5_ticket ac_aggr;
17660 if (sizeof ac_aggr.client)
17666 rm -f conftest.$ac_objext
17667 if { (ac_try="$ac_compile"
17668 case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17673 $as_echo "$ac_try_echo") >&5
17674 (eval "$ac_compile") 2>conftest.er1
17676 grep -v '^ *+' conftest.er1 >conftest.err
17678 cat conftest.err >&5
17679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } && {
17681 test -z "$ac_c_werror_flag" ||
17682 test ! -s conftest.err
17683 } && test -s conftest.$ac_objext; then
17684 ac_cv_member_krb5_ticket_client=yes
17686 $as_echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 ac_cv_member_krb5_ticket_client=no
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17697 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17698 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17699 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17701 cat >>confdefs.h <<_ACEOF
17702 #define HAVE_KRB5_TICKET_CLIENT 1
17707 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17708 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17709 { (exit 1); exit 1; }; }
17714 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17715 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17716 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17717 $as_echo_n "(cached) " >&6
17719 cat >conftest.$ac_ext <<_ACEOF
17722 cat confdefs.h >>conftest.$ac_ext
17723 cat >>conftest.$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17730 static krb5_error ac_aggr;
17731 if (ac_aggr.text.data)
17737 rm -f conftest.$ac_objext
17738 if { (ac_try="$ac_compile"
17739 case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17744 $as_echo "$ac_try_echo") >&5
17745 (eval "$ac_compile") 2>conftest.er1
17747 grep -v '^ *+' conftest.er1 >conftest.err
17749 cat conftest.err >&5
17750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } && {
17752 test -z "$ac_c_werror_flag" ||
17753 test ! -s conftest.err
17754 } && test -s conftest.$ac_objext; then
17755 ac_cv_member_krb5_error_text_data=yes
17757 $as_echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 cat >conftest.$ac_ext <<_ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17771 static krb5_error ac_aggr;
17772 if (sizeof ac_aggr.text.data)
17778 rm -f conftest.$ac_objext
17779 if { (ac_try="$ac_compile"
17780 case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17785 $as_echo "$ac_try_echo") >&5
17786 (eval "$ac_compile") 2>conftest.er1
17788 grep -v '^ *+' conftest.er1 >conftest.err
17790 cat conftest.err >&5
17791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } && {
17793 test -z "$ac_c_werror_flag" ||
17794 test ! -s conftest.err
17795 } && test -s conftest.$ac_objext; then
17796 ac_cv_member_krb5_error_text_data=yes
17798 $as_echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17801 ac_cv_member_krb5_error_text_data=no
17804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17810 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17811 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17813 cat >>confdefs.h <<_ACEOF
17814 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17819 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17820 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17821 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17822 $as_echo_n "(cached) " >&6
17824 cat >conftest.$ac_ext <<_ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17835 static krb5_error ac_aggr;
17836 if (ac_aggr.e_data)
17842 rm -f conftest.$ac_objext
17843 if { (ac_try="$ac_compile"
17844 case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17849 $as_echo "$ac_try_echo") >&5
17850 (eval "$ac_compile") 2>conftest.er1
17852 grep -v '^ *+' conftest.er1 >conftest.err
17854 cat conftest.err >&5
17855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } && {
17857 test -z "$ac_c_werror_flag" ||
17858 test ! -s conftest.err
17859 } && test -s conftest.$ac_objext; then
17860 ac_cv_member_krb5_error_e_data=yes
17862 $as_echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 cat >conftest.$ac_ext <<_ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17876 static krb5_error ac_aggr;
17877 if (sizeof ac_aggr.e_data)
17883 rm -f conftest.$ac_objext
17884 if { (ac_try="$ac_compile"
17885 case "(($ac_try" in
17886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887 *) ac_try_echo=$ac_try;;
17889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17890 $as_echo "$ac_try_echo") >&5
17891 (eval "$ac_compile") 2>conftest.er1
17893 grep -v '^ *+' conftest.er1 >conftest.err
17895 cat conftest.err >&5
17896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } && {
17898 test -z "$ac_c_werror_flag" ||
17899 test ! -s conftest.err
17900 } && test -s conftest.$ac_objext; then
17901 ac_cv_member_krb5_error_e_data=yes
17903 $as_echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17906 ac_cv_member_krb5_error_e_data=no
17909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17914 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17915 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17916 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17918 cat >>confdefs.h <<_ACEOF
17919 #define HAVE_KRB5_ERROR_E_DATA 1
17924 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17925 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17926 { (exit 1); exit 1; }; }
17932 # Win32 requires headers to be loaded for __stdcall, so can't use
17933 # AC_CHECK_FUNCS here.
17934 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17935 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17936 cat >conftest.$ac_ext <<_ACEOF
17939 cat confdefs.h >>conftest.$ac_ext
17940 cat >>conftest.$ac_ext <<_ACEOF
17941 /* end confdefs.h. */
17946 krb5_free_unparsed_name(NULL,NULL);
17951 rm -f conftest.$ac_objext conftest$ac_exeext
17952 if { (ac_try="$ac_link"
17953 case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17958 $as_echo "$ac_try_echo") >&5
17959 (eval "$ac_link") 2>conftest.er1
17961 grep -v '^ *+' conftest.er1 >conftest.err
17963 cat conftest.err >&5
17964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } && {
17966 test -z "$ac_c_werror_flag" ||
17967 test ! -s conftest.err
17968 } && test -s conftest$ac_exeext && {
17969 test "$cross_compiling" = yes ||
17970 $as_test_x conftest$ac_exeext
17973 cat >>confdefs.h <<\_ACEOF
17974 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17977 { $as_echo "$as_me:$LINENO: result: yes" >&5
17978 $as_echo "yes" >&6; }
17980 $as_echo "$as_me: failed program was:" >&5
17981 sed 's/^/| /' conftest.$ac_ext >&5
17983 { $as_echo "$as_me:$LINENO: result: no" >&5
17984 $as_echo "no" >&6; }
17987 rm -rf conftest.dSYM
17988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17989 conftest$ac_exeext conftest.$ac_ext
17992 # Check largefile support. You might think this is a system service not a
17993 # compiler characteristic, but you'd be wrong. We must check this before
17994 # probing existence of related functions such as fseeko, since the largefile
17995 # defines can affect what is generated for that.
17996 # Check whether --enable-largefile was given.
17997 if test "${enable_largefile+set}" = set; then
17998 enableval=$enable_largefile;
18001 if test "$enable_largefile" != no; then
18003 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18004 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18005 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18006 $as_echo_n "(cached) " >&6
18008 ac_cv_sys_largefile_CC=no
18009 if test "$GCC" != yes; then
18012 # IRIX 6.2 and later do not support large files by default,
18013 # so use the C compiler's -n32 option if that helps.
18014 cat >conftest.$ac_ext <<_ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18020 #include <sys/types.h>
18021 /* Check that off_t can represent 2**63 - 1 correctly.
18022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18023 since some C++ compilers masquerading as C compilers
18024 incorrectly reject 9223372036854775807. */
18025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18027 && LARGE_OFF_T % 2147483647 == 1)
18037 rm -f conftest.$ac_objext
18038 if { (ac_try="$ac_compile"
18039 case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18044 $as_echo "$ac_try_echo") >&5
18045 (eval "$ac_compile") 2>conftest.er1
18047 grep -v '^ *+' conftest.er1 >conftest.err
18049 cat conftest.err >&5
18050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } && {
18052 test -z "$ac_c_werror_flag" ||
18053 test ! -s conftest.err
18054 } && test -s conftest.$ac_objext; then
18057 $as_echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18063 rm -f core conftest.err conftest.$ac_objext
18065 rm -f conftest.$ac_objext
18066 if { (ac_try="$ac_compile"
18067 case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18072 $as_echo "$ac_try_echo") >&5
18073 (eval "$ac_compile") 2>conftest.er1
18075 grep -v '^ *+' conftest.er1 >conftest.err
18077 cat conftest.err >&5
18078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } && {
18080 test -z "$ac_c_werror_flag" ||
18081 test ! -s conftest.err
18082 } && test -s conftest.$ac_objext; then
18083 ac_cv_sys_largefile_CC=' -n32'; break
18085 $as_echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18091 rm -f core conftest.err conftest.$ac_objext
18095 rm -f conftest.$ac_ext
18098 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18099 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18100 if test "$ac_cv_sys_largefile_CC" != no; then
18101 CC=$CC$ac_cv_sys_largefile_CC
18104 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18105 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18106 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18107 $as_echo_n "(cached) " >&6
18110 cat >conftest.$ac_ext <<_ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h. */
18116 #include <sys/types.h>
18117 /* Check that off_t can represent 2**63 - 1 correctly.
18118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18119 since some C++ compilers masquerading as C compilers
18120 incorrectly reject 9223372036854775807. */
18121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18123 && LARGE_OFF_T % 2147483647 == 1)
18133 rm -f conftest.$ac_objext
18134 if { (ac_try="$ac_compile"
18135 case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18140 $as_echo "$ac_try_echo") >&5
18141 (eval "$ac_compile") 2>conftest.er1
18143 grep -v '^ *+' conftest.er1 >conftest.err
18145 cat conftest.err >&5
18146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } && {
18148 test -z "$ac_c_werror_flag" ||
18149 test ! -s conftest.err
18150 } && test -s conftest.$ac_objext; then
18151 ac_cv_sys_file_offset_bits=no; break
18153 $as_echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18160 cat >conftest.$ac_ext <<_ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18166 #define _FILE_OFFSET_BITS 64
18167 #include <sys/types.h>
18168 /* Check that off_t can represent 2**63 - 1 correctly.
18169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18170 since some C++ compilers masquerading as C compilers
18171 incorrectly reject 9223372036854775807. */
18172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18174 && LARGE_OFF_T % 2147483647 == 1)
18184 rm -f conftest.$ac_objext
18185 if { (ac_try="$ac_compile"
18186 case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18191 $as_echo "$ac_try_echo") >&5
18192 (eval "$ac_compile") 2>conftest.er1
18194 grep -v '^ *+' conftest.er1 >conftest.err
18196 cat conftest.err >&5
18197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } && {
18199 test -z "$ac_c_werror_flag" ||
18200 test ! -s conftest.err
18201 } && test -s conftest.$ac_objext; then
18202 ac_cv_sys_file_offset_bits=64; break
18204 $as_echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18211 ac_cv_sys_file_offset_bits=unknown
18215 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18216 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18217 case $ac_cv_sys_file_offset_bits in #(
18220 cat >>confdefs.h <<_ACEOF
18221 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18226 if test $ac_cv_sys_file_offset_bits = unknown; then
18227 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18228 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18229 if test "${ac_cv_sys_large_files+set}" = set; then
18230 $as_echo_n "(cached) " >&6
18233 cat >conftest.$ac_ext <<_ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18239 #include <sys/types.h>
18240 /* Check that off_t can represent 2**63 - 1 correctly.
18241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18242 since some C++ compilers masquerading as C compilers
18243 incorrectly reject 9223372036854775807. */
18244 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18246 && LARGE_OFF_T % 2147483647 == 1)
18256 rm -f conftest.$ac_objext
18257 if { (ac_try="$ac_compile"
18258 case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18263 $as_echo "$ac_try_echo") >&5
18264 (eval "$ac_compile") 2>conftest.er1
18266 grep -v '^ *+' conftest.er1 >conftest.err
18268 cat conftest.err >&5
18269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } && {
18271 test -z "$ac_c_werror_flag" ||
18272 test ! -s conftest.err
18273 } && test -s conftest.$ac_objext; then
18274 ac_cv_sys_large_files=no; break
18276 $as_echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18283 cat >conftest.$ac_ext <<_ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18289 #define _LARGE_FILES 1
18290 #include <sys/types.h>
18291 /* Check that off_t can represent 2**63 - 1 correctly.
18292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18293 since some C++ compilers masquerading as C compilers
18294 incorrectly reject 9223372036854775807. */
18295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18297 && LARGE_OFF_T % 2147483647 == 1)
18307 rm -f conftest.$ac_objext
18308 if { (ac_try="$ac_compile"
18309 case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18314 $as_echo "$ac_try_echo") >&5
18315 (eval "$ac_compile") 2>conftest.er1
18317 grep -v '^ *+' conftest.er1 >conftest.err
18319 cat conftest.err >&5
18320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } && {
18322 test -z "$ac_c_werror_flag" ||
18323 test ! -s conftest.err
18324 } && test -s conftest.$ac_objext; then
18325 ac_cv_sys_large_files=1; break
18327 $as_echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334 ac_cv_sys_large_files=unknown
18338 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18339 $as_echo "$ac_cv_sys_large_files" >&6; }
18340 case $ac_cv_sys_large_files in #(
18343 cat >>confdefs.h <<_ACEOF
18344 #define _LARGE_FILES $ac_cv_sys_large_files
18353 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18354 # The cast to long int works around a bug in the HP C Compiler
18355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18357 # This bug is HP SR number 8606223364.
18358 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18359 $as_echo_n "checking size of off_t... " >&6; }
18360 if test "${ac_cv_sizeof_off_t+set}" = set; then
18361 $as_echo_n "(cached) " >&6
18363 if test "$cross_compiling" = yes; then
18364 # Depending upon the size, compute the lo and hi bounds.
18365 cat >conftest.$ac_ext <<_ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 $ac_includes_default
18375 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18382 rm -f conftest.$ac_objext
18383 if { (ac_try="$ac_compile"
18384 case "(($ac_try" in
18385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386 *) ac_try_echo=$ac_try;;
18388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18389 $as_echo "$ac_try_echo") >&5
18390 (eval "$ac_compile") 2>conftest.er1
18392 grep -v '^ *+' conftest.er1 >conftest.err
18394 cat conftest.err >&5
18395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } && {
18397 test -z "$ac_c_werror_flag" ||
18398 test ! -s conftest.err
18399 } && test -s conftest.$ac_objext; then
18402 cat >conftest.$ac_ext <<_ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 $ac_includes_default
18412 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18419 rm -f conftest.$ac_objext
18420 if { (ac_try="$ac_compile"
18421 case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18426 $as_echo "$ac_try_echo") >&5
18427 (eval "$ac_compile") 2>conftest.er1
18429 grep -v '^ *+' conftest.er1 >conftest.err
18431 cat conftest.err >&5
18432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } && {
18434 test -z "$ac_c_werror_flag" ||
18435 test ! -s conftest.err
18436 } && test -s conftest.$ac_objext; then
18437 ac_hi=$ac_mid; break
18439 $as_echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18442 ac_lo=`expr $ac_mid + 1`
18443 if test $ac_lo -le $ac_mid; then
18447 ac_mid=`expr 2 '*' $ac_mid + 1`
18450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18453 $as_echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18456 cat >conftest.$ac_ext <<_ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18462 $ac_includes_default
18466 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18473 rm -f conftest.$ac_objext
18474 if { (ac_try="$ac_compile"
18475 case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18480 $as_echo "$ac_try_echo") >&5
18481 (eval "$ac_compile") 2>conftest.er1
18483 grep -v '^ *+' conftest.er1 >conftest.err
18485 cat conftest.err >&5
18486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } && {
18488 test -z "$ac_c_werror_flag" ||
18489 test ! -s conftest.err
18490 } && test -s conftest.$ac_objext; then
18493 cat >conftest.$ac_ext <<_ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18499 $ac_includes_default
18503 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18510 rm -f conftest.$ac_objext
18511 if { (ac_try="$ac_compile"
18512 case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18517 $as_echo "$ac_try_echo") >&5
18518 (eval "$ac_compile") 2>conftest.er1
18520 grep -v '^ *+' conftest.er1 >conftest.err
18522 cat conftest.err >&5
18523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } && {
18525 test -z "$ac_c_werror_flag" ||
18526 test ! -s conftest.err
18527 } && test -s conftest.$ac_objext; then
18528 ac_lo=$ac_mid; break
18530 $as_echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18533 ac_hi=`expr '(' $ac_mid ')' - 1`
18534 if test $ac_mid -le $ac_hi; then
18538 ac_mid=`expr 2 '*' $ac_mid`
18541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18544 $as_echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18554 # Binary search between lo and hi bounds.
18555 while test "x$ac_lo" != "x$ac_hi"; do
18556 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18557 cat >conftest.$ac_ext <<_ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18563 $ac_includes_default
18567 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18574 rm -f conftest.$ac_objext
18575 if { (ac_try="$ac_compile"
18576 case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18581 $as_echo "$ac_try_echo") >&5
18582 (eval "$ac_compile") 2>conftest.er1
18584 grep -v '^ *+' conftest.er1 >conftest.err
18586 cat conftest.err >&5
18587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } && {
18589 test -z "$ac_c_werror_flag" ||
18590 test ! -s conftest.err
18591 } && test -s conftest.$ac_objext; then
18594 $as_echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18597 ac_lo=`expr '(' $ac_mid ')' + 1`
18600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18603 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18604 '') if test "$ac_cv_type_off_t" = yes; then
18605 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18607 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18608 See \`config.log' for more details." >&5
18609 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18610 See \`config.log' for more details." >&2;}
18611 { (exit 77); exit 77; }; }; }
18613 ac_cv_sizeof_off_t=0
18617 cat >conftest.$ac_ext <<_ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18623 $ac_includes_default
18624 static long int longval () { return (long int) (sizeof (off_t)); }
18625 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18627 #include <stdlib.h>
18632 FILE *f = fopen ("conftest.val", "w");
18635 if (((long int) (sizeof (off_t))) < 0)
18637 long int i = longval ();
18638 if (i != ((long int) (sizeof (off_t))))
18640 fprintf (f, "%ld", i);
18644 unsigned long int i = ulongval ();
18645 if (i != ((long int) (sizeof (off_t))))
18647 fprintf (f, "%lu", i);
18649 /* Do not output a trailing newline, as this causes \r\n confusion
18650 on some platforms. */
18651 return ferror (f) || fclose (f) != 0;
18657 rm -f conftest$ac_exeext
18658 if { (ac_try="$ac_link"
18659 case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18664 $as_echo "$ac_try_echo") >&5
18665 (eval "$ac_link") 2>&5
18667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18669 { (case "(($ac_try" in
18670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671 *) ac_try_echo=$ac_try;;
18673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18674 $as_echo "$ac_try_echo") >&5
18675 (eval "$ac_try") 2>&5
18677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18679 ac_cv_sizeof_off_t=`cat conftest.val`
18681 $as_echo "$as_me: program exited with status $ac_status" >&5
18682 $as_echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18685 ( exit $ac_status )
18686 if test "$ac_cv_type_off_t" = yes; then
18687 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18689 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18690 See \`config.log' for more details." >&5
18691 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18692 See \`config.log' for more details." >&2;}
18693 { (exit 77); exit 77; }; }; }
18695 ac_cv_sizeof_off_t=0
18698 rm -rf conftest.dSYM
18699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18703 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18704 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18708 cat >>confdefs.h <<_ACEOF
18709 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18714 # If we don't have largefile support, can't handle segsize >= 2GB.
18715 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18716 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18717 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18718 { (exit 1); exit 1; }; }
18723 ## Functions, global variables
18726 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18727 $as_echo_n "checking for int timezone... " >&6; }
18728 if test "${pgac_cv_var_int_timezone+set}" = set; then
18729 $as_echo_n "(cached) " >&6
18731 cat >conftest.$ac_ext <<_ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18743 res = timezone / 60;
18745 res = _timezone / 60;
18751 rm -f conftest.$ac_objext conftest$ac_exeext
18752 if { (ac_try="$ac_link"
18753 case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18758 $as_echo "$ac_try_echo") >&5
18759 (eval "$ac_link") 2>conftest.er1
18761 grep -v '^ *+' conftest.er1 >conftest.err
18763 cat conftest.err >&5
18764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); } && {
18766 test -z "$ac_c_werror_flag" ||
18767 test ! -s conftest.err
18768 } && test -s conftest$ac_exeext && {
18769 test "$cross_compiling" = yes ||
18770 $as_test_x conftest$ac_exeext
18772 pgac_cv_var_int_timezone=yes
18774 $as_echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 pgac_cv_var_int_timezone=no
18780 rm -rf conftest.dSYM
18781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18782 conftest$ac_exeext conftest.$ac_ext
18784 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18785 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18786 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18788 cat >>confdefs.h <<\_ACEOF
18789 #define HAVE_INT_TIMEZONE /**/
18793 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18794 $as_echo_n "checking types of arguments for accept()... " >&6; }
18795 if test "${ac_cv_func_accept_return+set}" = set; then
18796 $as_echo_n "(cached) " >&6
18798 if test "${ac_cv_func_accept_arg1+set}" = set; then
18799 $as_echo_n "(cached) " >&6
18801 if test "${ac_cv_func_accept_arg2+set}" = set; then
18802 $as_echo_n "(cached) " >&6
18804 if test "${ac_cv_func_accept_arg3+set}" = set; then
18805 $as_echo_n "(cached) " >&6
18807 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
18808 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
18809 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18810 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18811 cat >conftest.$ac_ext <<_ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18817 #ifdef HAVE_SYS_TYPES_H
18818 #include <sys/types.h>
18820 #ifdef HAVE_SYS_SOCKET_H
18821 #include <sys/socket.h>
18823 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18832 rm -f conftest.$ac_objext
18833 if { (ac_try="$ac_compile"
18834 case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18839 $as_echo "$ac_try_echo") >&5
18840 (eval "$ac_compile") 2>conftest.er1
18842 grep -v '^ *+' conftest.er1 >conftest.err
18844 cat conftest.err >&5
18845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } && {
18847 test -z "$ac_c_werror_flag" ||
18848 test ! -s conftest.err
18849 } && test -s conftest.$ac_objext; then
18850 ac_not_found=no; break 4
18852 $as_echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18863 if test "$ac_not_found" = yes; then
18864 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18865 $as_echo "$as_me: error: could not determine argument types" >&2;}
18866 { (exit 1); exit 1; }; }
18868 if test "$ac_cv_func_accept_arg3" = "void"; then
18869 ac_cv_func_accept_arg3=int
18879 { $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
18880 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18882 cat >>confdefs.h <<_ACEOF
18883 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18887 cat >>confdefs.h <<_ACEOF
18888 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18892 cat >>confdefs.h <<_ACEOF
18893 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18897 cat >>confdefs.h <<_ACEOF
18898 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18902 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18903 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18904 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18905 $as_echo_n "(cached) " >&6
18907 cat >conftest.$ac_ext <<_ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h. */
18913 #include <sys/time.h>
18917 struct timeval *tp;
18918 struct timezone *tzp;
18919 gettimeofday(tp,tzp);
18924 rm -f conftest.$ac_objext
18925 if { (ac_try="$ac_compile"
18926 case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18931 $as_echo "$ac_try_echo") >&5
18932 (eval "$ac_compile") 2>conftest.er1
18934 grep -v '^ *+' conftest.er1 >conftest.err
18936 cat conftest.err >&5
18937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); } && {
18939 test -z "$ac_c_werror_flag" ||
18940 test ! -s conftest.err
18941 } && test -s conftest.$ac_objext; then
18942 pgac_cv_func_gettimeofday_1arg=no
18944 $as_echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18947 pgac_cv_func_gettimeofday_1arg=yes
18950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18953 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18954 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18956 cat >>confdefs.h <<\_ACEOF
18957 #define GETTIMEOFDAY_1ARG /**/
18988 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
18990 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18991 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18992 $as_echo_n "checking for $ac_func... " >&6; }
18993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18994 $as_echo_n "(cached) " >&6
18996 cat >conftest.$ac_ext <<_ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19004 #define $ac_func innocuous_$ac_func
19006 /* System header to define __stub macros and hopefully few prototypes,
19007 which can conflict with char $ac_func (); below.
19008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19009 <limits.h> exists even on freestanding compilers. */
19012 # include <limits.h>
19014 # include <assert.h>
19019 /* Override any GCC internal prototype to avoid an error.
19020 Use char because int might match the return type of a GCC
19021 builtin and then its argument prototype would still apply. */
19026 /* The GNU C library defines this for functions which it implements
19027 to always fail with ENOSYS. Some functions are actually named
19028 something starting with __ and the normal name is an alias. */
19029 #if defined __stub_$ac_func || defined __stub___$ac_func
19036 return $ac_func ();
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (ac_try="$ac_link"
19043 case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19048 $as_echo "$ac_try_echo") >&5
19049 (eval "$ac_link") 2>conftest.er1
19051 grep -v '^ *+' conftest.er1 >conftest.err
19053 cat conftest.err >&5
19054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } && {
19056 test -z "$ac_c_werror_flag" ||
19057 test ! -s conftest.err
19058 } && test -s conftest$ac_exeext && {
19059 test "$cross_compiling" = yes ||
19060 $as_test_x conftest$ac_exeext
19062 eval "$as_ac_var=yes"
19064 $as_echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 eval "$as_ac_var=no"
19070 rm -rf conftest.dSYM
19071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19072 conftest$ac_exeext conftest.$ac_ext
19074 ac_res=`eval 'as_val=${'$as_ac_var'}
19075 $as_echo "$as_val"'`
19076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19077 $as_echo "$ac_res" >&6; }
19078 as_val=`eval 'as_val=${'$as_ac_var'}
19079 $as_echo "$as_val"'`
19080 if test "x$as_val" = x""yes; then
19081 cat >>confdefs.h <<_ACEOF
19082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19090 for ac_func in fseeko
19092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19093 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19094 $as_echo_n "checking for $ac_func... " >&6; }
19095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19096 $as_echo_n "(cached) " >&6
19098 cat >conftest.$ac_ext <<_ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19106 #define $ac_func innocuous_$ac_func
19108 /* System header to define __stub macros and hopefully few prototypes,
19109 which can conflict with char $ac_func (); below.
19110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19111 <limits.h> exists even on freestanding compilers. */
19114 # include <limits.h>
19116 # include <assert.h>
19121 /* Override any GCC internal prototype to avoid an error.
19122 Use char because int might match the return type of a GCC
19123 builtin and then its argument prototype would still apply. */
19128 /* The GNU C library defines this for functions which it implements
19129 to always fail with ENOSYS. Some functions are actually named
19130 something starting with __ and the normal name is an alias. */
19131 #if defined __stub_$ac_func || defined __stub___$ac_func
19138 return $ac_func ();
19143 rm -f conftest.$ac_objext conftest$ac_exeext
19144 if { (ac_try="$ac_link"
19145 case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19150 $as_echo "$ac_try_echo") >&5
19151 (eval "$ac_link") 2>conftest.er1
19153 grep -v '^ *+' conftest.er1 >conftest.err
19155 cat conftest.err >&5
19156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } && {
19158 test -z "$ac_c_werror_flag" ||
19159 test ! -s conftest.err
19160 } && test -s conftest$ac_exeext && {
19161 test "$cross_compiling" = yes ||
19162 $as_test_x conftest$ac_exeext
19164 eval "$as_ac_var=yes"
19166 $as_echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19169 eval "$as_ac_var=no"
19172 rm -rf conftest.dSYM
19173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19174 conftest$ac_exeext conftest.$ac_ext
19176 ac_res=`eval 'as_val=${'$as_ac_var'}
19177 $as_echo "$as_val"'`
19178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19179 $as_echo "$ac_res" >&6; }
19180 as_val=`eval 'as_val=${'$as_ac_var'}
19181 $as_echo "$as_val"'`
19182 if test "x$as_val" = x""yes; then
19183 cat >>confdefs.h <<_ACEOF
19184 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19188 case " $LIBOBJS " in
19189 *" $ac_func.$ac_objext "* ) ;;
19190 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19199 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19200 # Mingw uses macros to access Win32 API calls
19201 bsdi*|netbsd*|mingw*)
19203 cat >>confdefs.h <<\_ACEOF
19204 #define HAVE_FSEEKO 1
19207 ac_cv_func_fseeko=yes;;
19209 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19210 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19211 if test "${ac_cv_sys_largefile_source+set}" = set; then
19212 $as_echo_n "(cached) " >&6
19215 cat >conftest.$ac_ext <<_ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19221 #include <sys/types.h> /* for off_t */
19226 int (*fp) (FILE *, off_t, int) = fseeko;
19227 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19232 rm -f conftest.$ac_objext conftest$ac_exeext
19233 if { (ac_try="$ac_link"
19234 case "(($ac_try" in
19235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236 *) ac_try_echo=$ac_try;;
19238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19239 $as_echo "$ac_try_echo") >&5
19240 (eval "$ac_link") 2>conftest.er1
19242 grep -v '^ *+' conftest.er1 >conftest.err
19244 cat conftest.err >&5
19245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } && {
19247 test -z "$ac_c_werror_flag" ||
19248 test ! -s conftest.err
19249 } && test -s conftest$ac_exeext && {
19250 test "$cross_compiling" = yes ||
19251 $as_test_x conftest$ac_exeext
19253 ac_cv_sys_largefile_source=no; break
19255 $as_echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19261 rm -rf conftest.dSYM
19262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19263 conftest$ac_exeext conftest.$ac_ext
19264 cat >conftest.$ac_ext <<_ACEOF
19267 cat confdefs.h >>conftest.$ac_ext
19268 cat >>conftest.$ac_ext <<_ACEOF
19269 /* end confdefs.h. */
19270 #define _LARGEFILE_SOURCE 1
19271 #include <sys/types.h> /* for off_t */
19276 int (*fp) (FILE *, off_t, int) = fseeko;
19277 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (ac_try="$ac_link"
19284 case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19289 $as_echo "$ac_try_echo") >&5
19290 (eval "$ac_link") 2>conftest.er1
19292 grep -v '^ *+' conftest.er1 >conftest.err
19294 cat conftest.err >&5
19295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } && {
19297 test -z "$ac_c_werror_flag" ||
19298 test ! -s conftest.err
19299 } && test -s conftest$ac_exeext && {
19300 test "$cross_compiling" = yes ||
19301 $as_test_x conftest$ac_exeext
19303 ac_cv_sys_largefile_source=1; break
19305 $as_echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19311 rm -rf conftest.dSYM
19312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19313 conftest$ac_exeext conftest.$ac_ext
19314 ac_cv_sys_largefile_source=unknown
19318 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19319 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19320 case $ac_cv_sys_largefile_source in #(
19323 cat >>confdefs.h <<_ACEOF
19324 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19330 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19331 # in glibc 2.1.3, but that breaks too many other things.
19332 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19333 if test $ac_cv_sys_largefile_source != unknown; then
19335 cat >>confdefs.h <<\_ACEOF
19336 #define HAVE_FSEEKO 1
19343 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19344 # by calling it, 2009-04-02
19345 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19346 if test "$PORTNAME" != "solaris"; then
19348 for ac_func in posix_fadvise
19350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19351 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19352 $as_echo_n "checking for $ac_func... " >&6; }
19353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19354 $as_echo_n "(cached) " >&6
19356 cat >conftest.$ac_ext <<_ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19364 #define $ac_func innocuous_$ac_func
19366 /* System header to define __stub macros and hopefully few prototypes,
19367 which can conflict with char $ac_func (); below.
19368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19369 <limits.h> exists even on freestanding compilers. */
19372 # include <limits.h>
19374 # include <assert.h>
19379 /* Override any GCC internal prototype to avoid an error.
19380 Use char because int might match the return type of a GCC
19381 builtin and then its argument prototype would still apply. */
19386 /* The GNU C library defines this for functions which it implements
19387 to always fail with ENOSYS. Some functions are actually named
19388 something starting with __ and the normal name is an alias. */
19389 #if defined __stub_$ac_func || defined __stub___$ac_func
19396 return $ac_func ();
19401 rm -f conftest.$ac_objext conftest$ac_exeext
19402 if { (ac_try="$ac_link"
19403 case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19408 $as_echo "$ac_try_echo") >&5
19409 (eval "$ac_link") 2>conftest.er1
19411 grep -v '^ *+' conftest.er1 >conftest.err
19413 cat conftest.err >&5
19414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } && {
19416 test -z "$ac_c_werror_flag" ||
19417 test ! -s conftest.err
19418 } && test -s conftest$ac_exeext && {
19419 test "$cross_compiling" = yes ||
19420 $as_test_x conftest$ac_exeext
19422 eval "$as_ac_var=yes"
19424 $as_echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19427 eval "$as_ac_var=no"
19430 rm -rf conftest.dSYM
19431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19432 conftest$ac_exeext conftest.$ac_ext
19434 ac_res=`eval 'as_val=${'$as_ac_var'}
19435 $as_echo "$as_val"'`
19436 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19437 $as_echo "$ac_res" >&6; }
19438 as_val=`eval 'as_val=${'$as_ac_var'}
19439 $as_echo "$as_val"'`
19440 if test "x$as_val" = x""yes; then
19441 cat >>confdefs.h <<_ACEOF
19442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19448 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19449 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19450 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19451 $as_echo_n "(cached) " >&6
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19464 #ifndef posix_fadvise
19465 (void) posix_fadvise;
19472 rm -f conftest.$ac_objext
19473 if { (ac_try="$ac_compile"
19474 case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19479 $as_echo "$ac_try_echo") >&5
19480 (eval "$ac_compile") 2>conftest.er1
19482 grep -v '^ *+' conftest.er1 >conftest.err
19484 cat conftest.err >&5
19485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } && {
19487 test -z "$ac_c_werror_flag" ||
19488 test ! -s conftest.err
19489 } && test -s conftest.$ac_objext; then
19490 ac_cv_have_decl_posix_fadvise=yes
19492 $as_echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19495 ac_cv_have_decl_posix_fadvise=no
19498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19500 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19501 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19502 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19504 cat >>confdefs.h <<_ACEOF
19505 #define HAVE_DECL_POSIX_FADVISE 1
19510 cat >>confdefs.h <<_ACEOF
19511 #define HAVE_DECL_POSIX_FADVISE 0
19520 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19521 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19522 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19523 $as_echo_n "(cached) " >&6
19525 cat >conftest.$ac_ext <<_ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19531 #include <unistd.h>
19544 rm -f conftest.$ac_objext
19545 if { (ac_try="$ac_compile"
19546 case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19551 $as_echo "$ac_try_echo") >&5
19552 (eval "$ac_compile") 2>conftest.er1
19554 grep -v '^ *+' conftest.er1 >conftest.err
19556 cat conftest.err >&5
19557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } && {
19559 test -z "$ac_c_werror_flag" ||
19560 test ! -s conftest.err
19561 } && test -s conftest.$ac_objext; then
19562 ac_cv_have_decl_fdatasync=yes
19564 $as_echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19567 ac_cv_have_decl_fdatasync=no
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19572 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19573 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19574 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19576 cat >>confdefs.h <<_ACEOF
19577 #define HAVE_DECL_FDATASYNC 1
19582 cat >>confdefs.h <<_ACEOF
19583 #define HAVE_DECL_FDATASYNC 0
19590 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19591 $as_echo_n "checking whether strlcat is declared... " >&6; }
19592 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19593 $as_echo_n "(cached) " >&6
19595 cat >conftest.$ac_ext <<_ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h. */
19601 $ac_includes_default
19613 rm -f conftest.$ac_objext
19614 if { (ac_try="$ac_compile"
19615 case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19620 $as_echo "$ac_try_echo") >&5
19621 (eval "$ac_compile") 2>conftest.er1
19623 grep -v '^ *+' conftest.er1 >conftest.err
19625 cat conftest.err >&5
19626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } && {
19628 test -z "$ac_c_werror_flag" ||
19629 test ! -s conftest.err
19630 } && test -s conftest.$ac_objext; then
19631 ac_cv_have_decl_strlcat=yes
19633 $as_echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19636 ac_cv_have_decl_strlcat=no
19639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19641 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19642 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19643 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19645 cat >>confdefs.h <<_ACEOF
19646 #define HAVE_DECL_STRLCAT 1
19651 cat >>confdefs.h <<_ACEOF
19652 #define HAVE_DECL_STRLCAT 0
19657 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19658 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19659 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19660 $as_echo_n "(cached) " >&6
19662 cat >conftest.$ac_ext <<_ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h. */
19668 $ac_includes_default
19680 rm -f conftest.$ac_objext
19681 if { (ac_try="$ac_compile"
19682 case "(($ac_try" in
19683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684 *) ac_try_echo=$ac_try;;
19686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19687 $as_echo "$ac_try_echo") >&5
19688 (eval "$ac_compile") 2>conftest.er1
19690 grep -v '^ *+' conftest.er1 >conftest.err
19692 cat conftest.err >&5
19693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && {
19695 test -z "$ac_c_werror_flag" ||
19696 test ! -s conftest.err
19697 } && test -s conftest.$ac_objext; then
19698 ac_cv_have_decl_strlcpy=yes
19700 $as_echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19703 ac_cv_have_decl_strlcpy=no
19706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19709 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19710 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19712 cat >>confdefs.h <<_ACEOF
19713 #define HAVE_DECL_STRLCPY 1
19718 cat >>confdefs.h <<_ACEOF
19719 #define HAVE_DECL_STRLCPY 0
19726 # This is probably only present on Darwin, but may as well check always
19727 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19728 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19729 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19730 $as_echo_n "(cached) " >&6
19732 cat >conftest.$ac_ext <<_ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19743 #ifndef F_FULLFSYNC
19744 (void) F_FULLFSYNC;
19751 rm -f conftest.$ac_objext
19752 if { (ac_try="$ac_compile"
19753 case "(($ac_try" in
19754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19758 $as_echo "$ac_try_echo") >&5
19759 (eval "$ac_compile") 2>conftest.er1
19761 grep -v '^ *+' conftest.er1 >conftest.err
19763 cat conftest.err >&5
19764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } && {
19766 test -z "$ac_c_werror_flag" ||
19767 test ! -s conftest.err
19768 } && test -s conftest.$ac_objext; then
19769 ac_cv_have_decl_F_FULLFSYNC=yes
19771 $as_echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.$ac_ext >&5
19774 ac_cv_have_decl_F_FULLFSYNC=no
19777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19779 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19780 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19781 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19783 cat >>confdefs.h <<_ACEOF
19784 #define HAVE_DECL_F_FULLFSYNC 1
19789 cat >>confdefs.h <<_ACEOF
19790 #define HAVE_DECL_F_FULLFSYNC 0
19799 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19800 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19801 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19802 $as_echo_n "(cached) " >&6
19804 ac_cv_type_struct_sockaddr_in6=no
19805 cat >conftest.$ac_ext <<_ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19811 $ac_includes_default
19812 #include <netinet/in.h>
19817 if (sizeof (struct sockaddr_in6))
19823 rm -f conftest.$ac_objext
19824 if { (ac_try="$ac_compile"
19825 case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19830 $as_echo "$ac_try_echo") >&5
19831 (eval "$ac_compile") 2>conftest.er1
19833 grep -v '^ *+' conftest.er1 >conftest.err
19835 cat conftest.err >&5
19836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); } && {
19838 test -z "$ac_c_werror_flag" ||
19839 test ! -s conftest.err
19840 } && test -s conftest.$ac_objext; then
19841 cat >conftest.$ac_ext <<_ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19847 $ac_includes_default
19848 #include <netinet/in.h>
19853 if (sizeof ((struct sockaddr_in6)))
19859 rm -f conftest.$ac_objext
19860 if { (ac_try="$ac_compile"
19861 case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19866 $as_echo "$ac_try_echo") >&5
19867 (eval "$ac_compile") 2>conftest.er1
19869 grep -v '^ *+' conftest.er1 >conftest.err
19871 cat conftest.err >&5
19872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } && {
19874 test -z "$ac_c_werror_flag" ||
19875 test ! -s conftest.err
19876 } && test -s conftest.$ac_objext; then
19879 $as_echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19882 ac_cv_type_struct_sockaddr_in6=yes
19885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19887 $as_echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19895 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19896 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19897 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_IPV6 1
19908 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19909 $as_echo_n "checking for PS_STRINGS... " >&6; }
19910 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19911 $as_echo_n "(cached) " >&6
19913 cat >conftest.$ac_ext <<_ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 #include <machine/vmparam.h>
19920 #include <sys/exec.h>
19925 PS_STRINGS->ps_nargvstr = 1;
19926 PS_STRINGS->ps_argvstr = "foo";
19931 rm -f conftest.$ac_objext conftest$ac_exeext
19932 if { (ac_try="$ac_link"
19933 case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19938 $as_echo "$ac_try_echo") >&5
19939 (eval "$ac_link") 2>conftest.er1
19941 grep -v '^ *+' conftest.er1 >conftest.err
19943 cat conftest.err >&5
19944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } && {
19946 test -z "$ac_c_werror_flag" ||
19947 test ! -s conftest.err
19948 } && test -s conftest$ac_exeext && {
19949 test "$cross_compiling" = yes ||
19950 $as_test_x conftest$ac_exeext
19952 pgac_cv_var_PS_STRINGS=yes
19954 $as_echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 pgac_cv_var_PS_STRINGS=no
19960 rm -rf conftest.dSYM
19961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19962 conftest$ac_exeext conftest.$ac_ext
19964 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19965 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19966 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19968 cat >>confdefs.h <<\_ACEOF
19969 #define HAVE_PS_STRINGS /**/
19975 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19976 # is missing. Yes, there are machines that have only one. We may
19977 # also decide to use snprintf.c if snprintf() is present but does not
19978 # have all the features we need --- see below.
19980 if test "$PORTNAME" = "win32"; then
19981 # Win32 gets snprintf.c built unconditionally.
19983 # To properly translate all NLS languages strings, we must support the
19984 # *printf() %$ format, which allows *printf() arguments to be selected
19985 # by position in the translated string.
19987 # libintl versions < 0.13 use the native *printf() functions, and Win32
19988 # *printf() doesn't understand %$, so we must use our /port versions,
19989 # which do understand %$. libintl versions >= 0.13 include their own
19990 # *printf versions on Win32. The libintl 0.13 release note text is:
19992 # C format strings with positions, as they arise when a translator
19993 # needs to reorder a sentence, are now supported on all platforms.
19994 # On those few platforms (NetBSD and Woe32) for which the native
19995 # printf()/fprintf()/... functions don't support such format
19996 # strings, replacements are provided through <libintl.h>.
19998 # We could use libintl >= 0.13's *printf() if we were sure that we had
19999 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20000 # to guarantee that, it is best to just use our own, so we are sure to
20001 # get %$ support. In include/port.h we disable the *printf() macros
20002 # that might have been defined by libintl.
20004 # We do this unconditionally whether NLS is used or not so we are sure
20005 # that all Win32 libraries and binaries behave the same.
20006 pgac_need_repl_snprintf=yes
20008 pgac_need_repl_snprintf=no
20010 for ac_func in snprintf
20012 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20013 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20014 $as_echo_n "checking for $ac_func... " >&6; }
20015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20016 $as_echo_n "(cached) " >&6
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20026 #define $ac_func innocuous_$ac_func
20028 /* System header to define __stub macros and hopefully few prototypes,
20029 which can conflict with char $ac_func (); below.
20030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20031 <limits.h> exists even on freestanding compilers. */
20034 # include <limits.h>
20036 # include <assert.h>
20041 /* Override any GCC internal prototype to avoid an error.
20042 Use char because int might match the return type of a GCC
20043 builtin and then its argument prototype would still apply. */
20048 /* The GNU C library defines this for functions which it implements
20049 to always fail with ENOSYS. Some functions are actually named
20050 something starting with __ and the normal name is an alias. */
20051 #if defined __stub_$ac_func || defined __stub___$ac_func
20058 return $ac_func ();
20063 rm -f conftest.$ac_objext conftest$ac_exeext
20064 if { (ac_try="$ac_link"
20065 case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20070 $as_echo "$ac_try_echo") >&5
20071 (eval "$ac_link") 2>conftest.er1
20073 grep -v '^ *+' conftest.er1 >conftest.err
20075 cat conftest.err >&5
20076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } && {
20078 test -z "$ac_c_werror_flag" ||
20079 test ! -s conftest.err
20080 } && test -s conftest$ac_exeext && {
20081 test "$cross_compiling" = yes ||
20082 $as_test_x conftest$ac_exeext
20084 eval "$as_ac_var=yes"
20086 $as_echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20089 eval "$as_ac_var=no"
20092 rm -rf conftest.dSYM
20093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20094 conftest$ac_exeext conftest.$ac_ext
20096 ac_res=`eval 'as_val=${'$as_ac_var'}
20097 $as_echo "$as_val"'`
20098 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20099 $as_echo "$ac_res" >&6; }
20100 as_val=`eval 'as_val=${'$as_ac_var'}
20101 $as_echo "$as_val"'`
20102 if test "x$as_val" = x""yes; then
20103 cat >>confdefs.h <<_ACEOF
20104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20108 pgac_need_repl_snprintf=yes
20113 for ac_func in vsnprintf
20115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20116 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20117 $as_echo_n "checking for $ac_func... " >&6; }
20118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20119 $as_echo_n "(cached) " >&6
20121 cat >conftest.$ac_ext <<_ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h. */
20127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20129 #define $ac_func innocuous_$ac_func
20131 /* System header to define __stub macros and hopefully few prototypes,
20132 which can conflict with char $ac_func (); below.
20133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20134 <limits.h> exists even on freestanding compilers. */
20137 # include <limits.h>
20139 # include <assert.h>
20144 /* Override any GCC internal prototype to avoid an error.
20145 Use char because int might match the return type of a GCC
20146 builtin and then its argument prototype would still apply. */
20151 /* The GNU C library defines this for functions which it implements
20152 to always fail with ENOSYS. Some functions are actually named
20153 something starting with __ and the normal name is an alias. */
20154 #if defined __stub_$ac_func || defined __stub___$ac_func
20161 return $ac_func ();
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (ac_try="$ac_link"
20168 case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20173 $as_echo "$ac_try_echo") >&5
20174 (eval "$ac_link") 2>conftest.er1
20176 grep -v '^ *+' conftest.er1 >conftest.err
20178 cat conftest.err >&5
20179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } && {
20181 test -z "$ac_c_werror_flag" ||
20182 test ! -s conftest.err
20183 } && test -s conftest$ac_exeext && {
20184 test "$cross_compiling" = yes ||
20185 $as_test_x conftest$ac_exeext
20187 eval "$as_ac_var=yes"
20189 $as_echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192 eval "$as_ac_var=no"
20195 rm -rf conftest.dSYM
20196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20197 conftest$ac_exeext conftest.$ac_ext
20199 ac_res=`eval 'as_val=${'$as_ac_var'}
20200 $as_echo "$as_val"'`
20201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20202 $as_echo "$ac_res" >&6; }
20203 as_val=`eval 'as_val=${'$as_ac_var'}
20204 $as_echo "$as_val"'`
20205 if test "x$as_val" = x""yes; then
20206 cat >>confdefs.h <<_ACEOF
20207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20211 pgac_need_repl_snprintf=yes
20218 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20219 # include/c.h will provide declarations. Note this is a separate test
20220 # from whether the functions exist in the C library --- there are
20221 # systems that have the functions but don't bother to declare them :-(
20223 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20224 $as_echo_n "checking whether snprintf is declared... " >&6; }
20225 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20226 $as_echo_n "(cached) " >&6
20228 cat >conftest.$ac_ext <<_ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h. */
20234 $ac_includes_default
20246 rm -f conftest.$ac_objext
20247 if { (ac_try="$ac_compile"
20248 case "(($ac_try" in
20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250 *) ac_try_echo=$ac_try;;
20252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20253 $as_echo "$ac_try_echo") >&5
20254 (eval "$ac_compile") 2>conftest.er1
20256 grep -v '^ *+' conftest.er1 >conftest.err
20258 cat conftest.err >&5
20259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } && {
20261 test -z "$ac_c_werror_flag" ||
20262 test ! -s conftest.err
20263 } && test -s conftest.$ac_objext; then
20264 ac_cv_have_decl_snprintf=yes
20266 $as_echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20269 ac_cv_have_decl_snprintf=no
20272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20275 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20276 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20278 cat >>confdefs.h <<_ACEOF
20279 #define HAVE_DECL_SNPRINTF 1
20284 cat >>confdefs.h <<_ACEOF
20285 #define HAVE_DECL_SNPRINTF 0
20290 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20291 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20292 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20293 $as_echo_n "(cached) " >&6
20295 cat >conftest.$ac_ext <<_ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20301 $ac_includes_default
20313 rm -f conftest.$ac_objext
20314 if { (ac_try="$ac_compile"
20315 case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20320 $as_echo "$ac_try_echo") >&5
20321 (eval "$ac_compile") 2>conftest.er1
20323 grep -v '^ *+' conftest.er1 >conftest.err
20325 cat conftest.err >&5
20326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && {
20328 test -z "$ac_c_werror_flag" ||
20329 test ! -s conftest.err
20330 } && test -s conftest.$ac_objext; then
20331 ac_cv_have_decl_vsnprintf=yes
20333 $as_echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20336 ac_cv_have_decl_vsnprintf=no
20339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20341 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20342 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20343 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20345 cat >>confdefs.h <<_ACEOF
20346 #define HAVE_DECL_VSNPRINTF 1
20351 cat >>confdefs.h <<_ACEOF
20352 #define HAVE_DECL_VSNPRINTF 0
20361 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20362 $as_echo_n "checking for isinf... " >&6; }
20363 if test "${ac_cv_func_isinf+set}" = set; then
20364 $as_echo_n "(cached) " >&6
20366 cat >conftest.$ac_ext <<_ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20374 double glob_double;
20379 return isinf(glob_double) ? 0 : 1;
20384 rm -f conftest.$ac_objext conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20391 $as_echo "$ac_try_echo") >&5
20392 (eval "$ac_link") 2>conftest.er1
20394 grep -v '^ *+' conftest.er1 >conftest.err
20396 cat conftest.err >&5
20397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } && {
20399 test -z "$ac_c_werror_flag" ||
20400 test ! -s conftest.err
20401 } && test -s conftest$ac_exeext && {
20402 test "$cross_compiling" = yes ||
20403 $as_test_x conftest$ac_exeext
20405 ac_cv_func_isinf=yes
20407 $as_echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ac_cv_func_isinf=no
20413 rm -rf conftest.dSYM
20414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20415 conftest$ac_exeext conftest.$ac_ext
20417 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20418 $as_echo "$ac_cv_func_isinf" >&6; }
20420 if test $ac_cv_func_isinf = yes ; then
20422 cat >>confdefs.h <<\_ACEOF
20423 #define HAVE_ISINF 1
20427 case " $LIBOBJS " in
20428 *" isinf.$ac_objext "* ) ;;
20429 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20433 # Look for a way to implement a substitute for isinf()
20438 for ac_func in fpclass fp_class fp_class_d class
20440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20441 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20442 $as_echo_n "checking for $ac_func... " >&6; }
20443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20444 $as_echo_n "(cached) " >&6
20446 cat >conftest.$ac_ext <<_ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20454 #define $ac_func innocuous_$ac_func
20456 /* System header to define __stub macros and hopefully few prototypes,
20457 which can conflict with char $ac_func (); below.
20458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20459 <limits.h> exists even on freestanding compilers. */
20462 # include <limits.h>
20464 # include <assert.h>
20469 /* Override any GCC internal prototype to avoid an error.
20470 Use char because int might match the return type of a GCC
20471 builtin and then its argument prototype would still apply. */
20476 /* The GNU C library defines this for functions which it implements
20477 to always fail with ENOSYS. Some functions are actually named
20478 something starting with __ and the normal name is an alias. */
20479 #if defined __stub_$ac_func || defined __stub___$ac_func
20486 return $ac_func ();
20491 rm -f conftest.$ac_objext conftest$ac_exeext
20492 if { (ac_try="$ac_link"
20493 case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20498 $as_echo "$ac_try_echo") >&5
20499 (eval "$ac_link") 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && {
20506 test -z "$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20508 } && test -s conftest$ac_exeext && {
20509 test "$cross_compiling" = yes ||
20510 $as_test_x conftest$ac_exeext
20512 eval "$as_ac_var=yes"
20514 $as_echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 eval "$as_ac_var=no"
20520 rm -rf conftest.dSYM
20521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20522 conftest$ac_exeext conftest.$ac_ext
20524 ac_res=`eval 'as_val=${'$as_ac_var'}
20525 $as_echo "$as_val"'`
20526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20527 $as_echo "$ac_res" >&6; }
20528 as_val=`eval 'as_val=${'$as_ac_var'}
20529 $as_echo "$as_val"'`
20530 if test "x$as_val" = x""yes; then
20531 cat >>confdefs.h <<_ACEOF
20532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20540 # Some versions of libedit contain strlcpy(); so disregard that library while
20541 # checking for these standard libc functions.
20542 pgac_save_LIBS="$LIBS"
20543 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20559 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20562 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20563 $as_echo_n "checking for $ac_func... " >&6; }
20564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20565 $as_echo_n "(cached) " >&6
20567 cat >conftest.$ac_ext <<_ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20575 #define $ac_func innocuous_$ac_func
20577 /* System header to define __stub macros and hopefully few prototypes,
20578 which can conflict with char $ac_func (); below.
20579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20580 <limits.h> exists even on freestanding compilers. */
20583 # include <limits.h>
20585 # include <assert.h>
20590 /* Override any GCC internal prototype to avoid an error.
20591 Use char because int might match the return type of a GCC
20592 builtin and then its argument prototype would still apply. */
20597 /* The GNU C library defines this for functions which it implements
20598 to always fail with ENOSYS. Some functions are actually named
20599 something starting with __ and the normal name is an alias. */
20600 #if defined __stub_$ac_func || defined __stub___$ac_func
20607 return $ac_func ();
20612 rm -f conftest.$ac_objext conftest$ac_exeext
20613 if { (ac_try="$ac_link"
20614 case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20619 $as_echo "$ac_try_echo") >&5
20620 (eval "$ac_link") 2>conftest.er1
20622 grep -v '^ *+' conftest.er1 >conftest.err
20624 cat conftest.err >&5
20625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } && {
20627 test -z "$ac_c_werror_flag" ||
20628 test ! -s conftest.err
20629 } && test -s conftest$ac_exeext && {
20630 test "$cross_compiling" = yes ||
20631 $as_test_x conftest$ac_exeext
20633 eval "$as_ac_var=yes"
20635 $as_echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 eval "$as_ac_var=no"
20641 rm -rf conftest.dSYM
20642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20643 conftest$ac_exeext conftest.$ac_ext
20645 ac_res=`eval 'as_val=${'$as_ac_var'}
20646 $as_echo "$as_val"'`
20647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20648 $as_echo "$ac_res" >&6; }
20649 as_val=`eval 'as_val=${'$as_ac_var'}
20650 $as_echo "$as_val"'`
20651 if test "x$as_val" = x""yes; then
20652 cat >>confdefs.h <<_ACEOF
20653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20657 case " $LIBOBJS " in
20658 *" $ac_func.$ac_objext "* ) ;;
20659 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20670 # Windows uses a specialised env handler
20673 cat >>confdefs.h <<\_ACEOF
20674 #define HAVE_UNSETENV 1
20677 ac_cv_func_unsetenv=yes;;
20680 for ac_func in unsetenv
20682 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20683 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20684 $as_echo_n "checking for $ac_func... " >&6; }
20685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20686 $as_echo_n "(cached) " >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20696 #define $ac_func innocuous_$ac_func
20698 /* System header to define __stub macros and hopefully few prototypes,
20699 which can conflict with char $ac_func (); below.
20700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20701 <limits.h> exists even on freestanding compilers. */
20704 # include <limits.h>
20706 # include <assert.h>
20711 /* Override any GCC internal prototype to avoid an error.
20712 Use char because int might match the return type of a GCC
20713 builtin and then its argument prototype would still apply. */
20718 /* The GNU C library defines this for functions which it implements
20719 to always fail with ENOSYS. Some functions are actually named
20720 something starting with __ and the normal name is an alias. */
20721 #if defined __stub_$ac_func || defined __stub___$ac_func
20728 return $ac_func ();
20733 rm -f conftest.$ac_objext conftest$ac_exeext
20734 if { (ac_try="$ac_link"
20735 case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20740 $as_echo "$ac_try_echo") >&5
20741 (eval "$ac_link") 2>conftest.er1
20743 grep -v '^ *+' conftest.er1 >conftest.err
20745 cat conftest.err >&5
20746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } && {
20748 test -z "$ac_c_werror_flag" ||
20749 test ! -s conftest.err
20750 } && test -s conftest$ac_exeext && {
20751 test "$cross_compiling" = yes ||
20752 $as_test_x conftest$ac_exeext
20754 eval "$as_ac_var=yes"
20756 $as_echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 eval "$as_ac_var=no"
20762 rm -rf conftest.dSYM
20763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20764 conftest$ac_exeext conftest.$ac_ext
20766 ac_res=`eval 'as_val=${'$as_ac_var'}
20767 $as_echo "$as_val"'`
20768 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20769 $as_echo "$ac_res" >&6; }
20770 as_val=`eval 'as_val=${'$as_ac_var'}
20771 $as_echo "$as_val"'`
20772 if test "x$as_val" = x""yes; then
20773 cat >>confdefs.h <<_ACEOF
20774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20778 case " $LIBOBJS " in
20779 *" $ac_func.$ac_objext "* ) ;;
20780 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20792 LIBS="$pgac_save_LIBS"
20794 # System's version of getaddrinfo(), if any, may be used only if we found
20795 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20796 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20797 # versions of getaddrinfo don't follow normal C call protocol. This is OK
20798 # because we want to use our own getaddrinfo.c on Windows anyway.)
20799 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20801 for ac_func in getaddrinfo
20803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20804 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20805 $as_echo_n "checking for $ac_func... " >&6; }
20806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20807 $as_echo_n "(cached) " >&6
20809 cat >conftest.$ac_ext <<_ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h. */
20815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20817 #define $ac_func innocuous_$ac_func
20819 /* System header to define __stub macros and hopefully few prototypes,
20820 which can conflict with char $ac_func (); below.
20821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20822 <limits.h> exists even on freestanding compilers. */
20825 # include <limits.h>
20827 # include <assert.h>
20832 /* Override any GCC internal prototype to avoid an error.
20833 Use char because int might match the return type of a GCC
20834 builtin and then its argument prototype would still apply. */
20839 /* The GNU C library defines this for functions which it implements
20840 to always fail with ENOSYS. Some functions are actually named
20841 something starting with __ and the normal name is an alias. */
20842 #if defined __stub_$ac_func || defined __stub___$ac_func
20849 return $ac_func ();
20854 rm -f conftest.$ac_objext conftest$ac_exeext
20855 if { (ac_try="$ac_link"
20856 case "(($ac_try" in
20857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858 *) ac_try_echo=$ac_try;;
20860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20861 $as_echo "$ac_try_echo") >&5
20862 (eval "$ac_link") 2>conftest.er1
20864 grep -v '^ *+' conftest.er1 >conftest.err
20866 cat conftest.err >&5
20867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } && {
20869 test -z "$ac_c_werror_flag" ||
20870 test ! -s conftest.err
20871 } && test -s conftest$ac_exeext && {
20872 test "$cross_compiling" = yes ||
20873 $as_test_x conftest$ac_exeext
20875 eval "$as_ac_var=yes"
20877 $as_echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 eval "$as_ac_var=no"
20883 rm -rf conftest.dSYM
20884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20885 conftest$ac_exeext conftest.$ac_ext
20887 ac_res=`eval 'as_val=${'$as_ac_var'}
20888 $as_echo "$as_val"'`
20889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20890 $as_echo "$ac_res" >&6; }
20891 as_val=`eval 'as_val=${'$as_ac_var'}
20892 $as_echo "$as_val"'`
20893 if test "x$as_val" = x""yes; then
20894 cat >>confdefs.h <<_ACEOF
20895 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20899 case " $LIBOBJS " in
20900 *" $ac_func.$ac_objext "* ) ;;
20901 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20910 case " $LIBOBJS " in
20911 *" getaddrinfo.$ac_objext "* ) ;;
20912 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20918 # Similarly, use system's getopt_long() only if system provides struct option.
20919 if test x"$ac_cv_type_struct_option" = xyes ; then
20921 for ac_func in getopt_long
20923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20924 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20925 $as_echo_n "checking for $ac_func... " >&6; }
20926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20927 $as_echo_n "(cached) " >&6
20929 cat >conftest.$ac_ext <<_ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20937 #define $ac_func innocuous_$ac_func
20939 /* System header to define __stub macros and hopefully few prototypes,
20940 which can conflict with char $ac_func (); below.
20941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20942 <limits.h> exists even on freestanding compilers. */
20945 # include <limits.h>
20947 # include <assert.h>
20952 /* Override any GCC internal prototype to avoid an error.
20953 Use char because int might match the return type of a GCC
20954 builtin and then its argument prototype would still apply. */
20959 /* The GNU C library defines this for functions which it implements
20960 to always fail with ENOSYS. Some functions are actually named
20961 something starting with __ and the normal name is an alias. */
20962 #if defined __stub_$ac_func || defined __stub___$ac_func
20969 return $ac_func ();
20974 rm -f conftest.$ac_objext conftest$ac_exeext
20975 if { (ac_try="$ac_link"
20976 case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20981 $as_echo "$ac_try_echo") >&5
20982 (eval "$ac_link") 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } && {
20989 test -z "$ac_c_werror_flag" ||
20990 test ! -s conftest.err
20991 } && test -s conftest$ac_exeext && {
20992 test "$cross_compiling" = yes ||
20993 $as_test_x conftest$ac_exeext
20995 eval "$as_ac_var=yes"
20997 $as_echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
21000 eval "$as_ac_var=no"
21003 rm -rf conftest.dSYM
21004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21005 conftest$ac_exeext conftest.$ac_ext
21007 ac_res=`eval 'as_val=${'$as_ac_var'}
21008 $as_echo "$as_val"'`
21009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21010 $as_echo "$ac_res" >&6; }
21011 as_val=`eval 'as_val=${'$as_ac_var'}
21012 $as_echo "$as_val"'`
21013 if test "x$as_val" = x""yes; then
21014 cat >>confdefs.h <<_ACEOF
21015 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21019 case " $LIBOBJS " in
21020 *" $ac_func.$ac_objext "* ) ;;
21021 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21030 case " $LIBOBJS " in
21031 *" getopt_long.$ac_objext "* ) ;;
21032 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21038 # Solaris' getopt() doesn't do what we want for long options, so always use
21039 # our version on that platform.
21040 if test "$PORTNAME" = "solaris"; then
21041 case " $LIBOBJS " in
21042 *" getopt.$ac_objext "* ) ;;
21043 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21049 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21050 # so always use our version on Windows.
21051 if test "$PORTNAME" = "win32"; then
21052 case " $LIBOBJS " in
21053 *" getopt.$ac_objext "* ) ;;
21054 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21058 case " $LIBOBJS " in
21059 *" getopt_long.$ac_objext "* ) ;;
21060 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21066 # Cygwin's erand48() is broken (always returns zero) in some releases,
21067 # so force use of ours.
21068 if test "$PORTNAME" = "cygwin"; then
21069 case " $LIBOBJS " in
21070 *" erand48.$ac_objext "* ) ;;
21071 *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
21078 if test "$PORTNAME" = "win32"; then
21080 for ac_func in gettimeofday
21082 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21083 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21084 $as_echo_n "checking for $ac_func... " >&6; }
21085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21086 $as_echo_n "(cached) " >&6
21088 cat >conftest.$ac_ext <<_ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21096 #define $ac_func innocuous_$ac_func
21098 /* System header to define __stub macros and hopefully few prototypes,
21099 which can conflict with char $ac_func (); below.
21100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21101 <limits.h> exists even on freestanding compilers. */
21104 # include <limits.h>
21106 # include <assert.h>
21111 /* Override any GCC internal prototype to avoid an error.
21112 Use char because int might match the return type of a GCC
21113 builtin and then its argument prototype would still apply. */
21118 /* The GNU C library defines this for functions which it implements
21119 to always fail with ENOSYS. Some functions are actually named
21120 something starting with __ and the normal name is an alias. */
21121 #if defined __stub_$ac_func || defined __stub___$ac_func
21128 return $ac_func ();
21133 rm -f conftest.$ac_objext conftest$ac_exeext
21134 if { (ac_try="$ac_link"
21135 case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21140 $as_echo "$ac_try_echo") >&5
21141 (eval "$ac_link") 2>conftest.er1
21143 grep -v '^ *+' conftest.er1 >conftest.err
21145 cat conftest.err >&5
21146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && {
21148 test -z "$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21150 } && test -s conftest$ac_exeext && {
21151 test "$cross_compiling" = yes ||
21152 $as_test_x conftest$ac_exeext
21154 eval "$as_ac_var=yes"
21156 $as_echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 eval "$as_ac_var=no"
21162 rm -rf conftest.dSYM
21163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21164 conftest$ac_exeext conftest.$ac_ext
21166 ac_res=`eval 'as_val=${'$as_ac_var'}
21167 $as_echo "$as_val"'`
21168 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21169 $as_echo "$ac_res" >&6; }
21170 as_val=`eval 'as_val=${'$as_ac_var'}
21171 $as_echo "$as_val"'`
21172 if test "x$as_val" = x""yes; then
21173 cat >>confdefs.h <<_ACEOF
21174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21178 case " $LIBOBJS " in
21179 *" $ac_func.$ac_objext "* ) ;;
21180 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21188 case " $LIBOBJS " in
21189 *" kill.$ac_objext "* ) ;;
21190 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21194 case " $LIBOBJS " in
21195 *" open.$ac_objext "* ) ;;
21196 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21200 case " $LIBOBJS " in
21201 *" win32env.$ac_objext "* ) ;;
21202 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21206 case " $LIBOBJS " in
21207 *" win32error.$ac_objext "* ) ;;
21208 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21213 cat >>confdefs.h <<\_ACEOF
21214 #define HAVE_SYMLINK 1
21217 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21218 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21219 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21220 $as_echo_n "(cached) " >&6
21222 ac_cv_type_MINIDUMP_TYPE=no
21223 cat >conftest.$ac_ext <<_ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21230 #define WIN32_LEAN_AND_MEAN
21231 #include <windows.h>
21232 #include <string.h>
21233 #include <dbghelp.h>
21238 if (sizeof (MINIDUMP_TYPE))
21244 rm -f conftest.$ac_objext
21245 if { (ac_try="$ac_compile"
21246 case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21251 $as_echo "$ac_try_echo") >&5
21252 (eval "$ac_compile") 2>conftest.er1
21254 grep -v '^ *+' conftest.er1 >conftest.err
21256 cat conftest.err >&5
21257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } && {
21259 test -z "$ac_c_werror_flag" ||
21260 test ! -s conftest.err
21261 } && test -s conftest.$ac_objext; then
21262 cat >conftest.$ac_ext <<_ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21269 #define WIN32_LEAN_AND_MEAN
21270 #include <windows.h>
21271 #include <string.h>
21272 #include <dbghelp.h>
21277 if (sizeof ((MINIDUMP_TYPE)))
21283 rm -f conftest.$ac_objext
21284 if { (ac_try="$ac_compile"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21290 $as_echo "$ac_try_echo") >&5
21291 (eval "$ac_compile") 2>conftest.er1
21293 grep -v '^ *+' conftest.er1 >conftest.err
21295 cat conftest.err >&5
21296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } && {
21298 test -z "$ac_c_werror_flag" ||
21299 test ! -s conftest.err
21300 } && test -s conftest.$ac_objext; then
21303 $as_echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 ac_cv_type_MINIDUMP_TYPE=yes
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311 $as_echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21320 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21321 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21323 cat >>confdefs.h <<_ACEOF
21324 #define HAVE_MINIDUMP_TYPE 1
21327 pgac_minidump_type=yes
21329 pgac_minidump_type=no
21333 if test x"$pgac_minidump_type" = x"yes" ; then
21334 have_win32_dbghelp=yes
21337 have_win32_dbghelp=no
21341 if test "$with_readline" = yes; then
21342 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21343 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21344 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21345 $as_echo_n "(cached) " >&6
21347 cat >conftest.$ac_ext <<_ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21354 #ifdef HAVE_READLINE_READLINE_H
21355 # include <readline/readline.h>
21356 #elif defined(HAVE_READLINE_H)
21357 # include <readline.h>
21363 rl_completion_append_character = 'x';
21368 rm -f conftest.$ac_objext conftest$ac_exeext
21369 if { (ac_try="$ac_link"
21370 case "(($ac_try" in
21371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21372 *) ac_try_echo=$ac_try;;
21374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21375 $as_echo "$ac_try_echo") >&5
21376 (eval "$ac_link") 2>conftest.er1
21378 grep -v '^ *+' conftest.er1 >conftest.err
21380 cat conftest.err >&5
21381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } && {
21383 test -z "$ac_c_werror_flag" ||
21384 test ! -s conftest.err
21385 } && test -s conftest$ac_exeext && {
21386 test "$cross_compiling" = yes ||
21387 $as_test_x conftest$ac_exeext
21389 pgac_cv_var_rl_completion_append_character=yes
21391 $as_echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21394 pgac_cv_var_rl_completion_append_character=no
21397 rm -rf conftest.dSYM
21398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21399 conftest$ac_exeext conftest.$ac_ext
21401 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21402 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21403 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21405 cat >>confdefs.h <<\_ACEOF
21406 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21412 for ac_func in rl_completion_matches rl_filename_completion_function
21414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21415 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21416 $as_echo_n "checking for $ac_func... " >&6; }
21417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21418 $as_echo_n "(cached) " >&6
21420 cat >conftest.$ac_ext <<_ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21428 #define $ac_func innocuous_$ac_func
21430 /* System header to define __stub macros and hopefully few prototypes,
21431 which can conflict with char $ac_func (); below.
21432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21433 <limits.h> exists even on freestanding compilers. */
21436 # include <limits.h>
21438 # include <assert.h>
21443 /* Override any GCC internal prototype to avoid an error.
21444 Use char because int might match the return type of a GCC
21445 builtin and then its argument prototype would still apply. */
21450 /* The GNU C library defines this for functions which it implements
21451 to always fail with ENOSYS. Some functions are actually named
21452 something starting with __ and the normal name is an alias. */
21453 #if defined __stub_$ac_func || defined __stub___$ac_func
21460 return $ac_func ();
21465 rm -f conftest.$ac_objext conftest$ac_exeext
21466 if { (ac_try="$ac_link"
21467 case "(($ac_try" in
21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469 *) ac_try_echo=$ac_try;;
21471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21472 $as_echo "$ac_try_echo") >&5
21473 (eval "$ac_link") 2>conftest.er1
21475 grep -v '^ *+' conftest.er1 >conftest.err
21477 cat conftest.err >&5
21478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } && {
21480 test -z "$ac_c_werror_flag" ||
21481 test ! -s conftest.err
21482 } && test -s conftest$ac_exeext && {
21483 test "$cross_compiling" = yes ||
21484 $as_test_x conftest$ac_exeext
21486 eval "$as_ac_var=yes"
21488 $as_echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 eval "$as_ac_var=no"
21494 rm -rf conftest.dSYM
21495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21496 conftest$ac_exeext conftest.$ac_ext
21498 ac_res=`eval 'as_val=${'$as_ac_var'}
21499 $as_echo "$as_val"'`
21500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21501 $as_echo "$ac_res" >&6; }
21502 as_val=`eval 'as_val=${'$as_ac_var'}
21503 $as_echo "$as_val"'`
21504 if test "x$as_val" = x""yes; then
21505 cat >>confdefs.h <<_ACEOF
21506 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21514 for ac_func in append_history history_truncate_file
21516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21518 $as_echo_n "checking for $ac_func... " >&6; }
21519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21520 $as_echo_n "(cached) " >&6
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21530 #define $ac_func innocuous_$ac_func
21532 /* System header to define __stub macros and hopefully few prototypes,
21533 which can conflict with char $ac_func (); below.
21534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21535 <limits.h> exists even on freestanding compilers. */
21538 # include <limits.h>
21540 # include <assert.h>
21545 /* Override any GCC internal prototype to avoid an error.
21546 Use char because int might match the return type of a GCC
21547 builtin and then its argument prototype would still apply. */
21552 /* The GNU C library defines this for functions which it implements
21553 to always fail with ENOSYS. Some functions are actually named
21554 something starting with __ and the normal name is an alias. */
21555 #if defined __stub_$ac_func || defined __stub___$ac_func
21562 return $ac_func ();
21567 rm -f conftest.$ac_objext conftest$ac_exeext
21568 if { (ac_try="$ac_link"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21574 $as_echo "$ac_try_echo") >&5
21575 (eval "$ac_link") 2>conftest.er1
21577 grep -v '^ *+' conftest.er1 >conftest.err
21579 cat conftest.err >&5
21580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && {
21582 test -z "$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21584 } && test -s conftest$ac_exeext && {
21585 test "$cross_compiling" = yes ||
21586 $as_test_x conftest$ac_exeext
21588 eval "$as_ac_var=yes"
21590 $as_echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 eval "$as_ac_var=no"
21596 rm -rf conftest.dSYM
21597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21598 conftest$ac_exeext conftest.$ac_ext
21600 ac_res=`eval 'as_val=${'$as_ac_var'}
21601 $as_echo "$as_val"'`
21602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21603 $as_echo "$ac_res" >&6; }
21604 as_val=`eval 'as_val=${'$as_ac_var'}
21605 $as_echo "$as_val"'`
21606 if test "x$as_val" = x""yes; then
21607 cat >>confdefs.h <<_ACEOF
21608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21617 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21618 $as_echo_n "checking for sigsetjmp... " >&6; }
21619 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21620 $as_echo_n "(cached) " >&6
21622 cat >conftest.$ac_ext <<_ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 #include <setjmp.h>
21632 sigjmp_buf x; sigsetjmp(x, 1);
21637 rm -f conftest.$ac_objext conftest$ac_exeext
21638 if { (ac_try="$ac_link"
21639 case "(($ac_try" in
21640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641 *) ac_try_echo=$ac_try;;
21643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21644 $as_echo "$ac_try_echo") >&5
21645 (eval "$ac_link") 2>conftest.er1
21647 grep -v '^ *+' conftest.er1 >conftest.err
21649 cat conftest.err >&5
21650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && {
21652 test -z "$ac_c_werror_flag" ||
21653 test ! -s conftest.err
21654 } && test -s conftest$ac_exeext && {
21655 test "$cross_compiling" = yes ||
21656 $as_test_x conftest$ac_exeext
21658 pgac_cv_func_sigsetjmp=yes
21660 $as_echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21663 pgac_cv_func_sigsetjmp=no
21666 rm -rf conftest.dSYM
21667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21668 conftest$ac_exeext conftest.$ac_ext
21670 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21671 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21672 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21674 cat >>confdefs.h <<\_ACEOF
21675 #define HAVE_SIGSETJMP 1
21680 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21681 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21682 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21683 $as_echo_n "(cached) " >&6
21685 cat >conftest.$ac_ext <<_ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 #include <signal.h>
21692 /* NetBSD declares sys_siglist in unistd.h. */
21693 #ifdef HAVE_UNISTD_H
21694 # include <unistd.h>
21701 #ifndef sys_siglist
21702 (void) sys_siglist;
21709 rm -f conftest.$ac_objext
21710 if { (ac_try="$ac_compile"
21711 case "(($ac_try" in
21712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713 *) ac_try_echo=$ac_try;;
21715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21716 $as_echo "$ac_try_echo") >&5
21717 (eval "$ac_compile") 2>conftest.er1
21719 grep -v '^ *+' conftest.er1 >conftest.err
21721 cat conftest.err >&5
21722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } && {
21724 test -z "$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21726 } && test -s conftest.$ac_objext; then
21727 ac_cv_have_decl_sys_siglist=yes
21729 $as_echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21732 ac_cv_have_decl_sys_siglist=no
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21737 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21738 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21739 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21741 cat >>confdefs.h <<_ACEOF
21742 #define HAVE_DECL_SYS_SIGLIST 1
21747 cat >>confdefs.h <<_ACEOF
21748 #define HAVE_DECL_SYS_SIGLIST 0
21757 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21758 $as_echo_n "checking for syslog... " >&6; }
21759 if test "${ac_cv_func_syslog+set}" = set; then
21760 $as_echo_n "(cached) " >&6
21762 cat >conftest.$ac_ext <<_ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h. */
21768 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21770 #define syslog innocuous_syslog
21772 /* System header to define __stub macros and hopefully few prototypes,
21773 which can conflict with char syslog (); below.
21774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21775 <limits.h> exists even on freestanding compilers. */
21778 # include <limits.h>
21780 # include <assert.h>
21785 /* Override any GCC internal prototype to avoid an error.
21786 Use char because int might match the return type of a GCC
21787 builtin and then its argument prototype would still apply. */
21792 /* The GNU C library defines this for functions which it implements
21793 to always fail with ENOSYS. Some functions are actually named
21794 something starting with __ and the normal name is an alias. */
21795 #if defined __stub_syslog || defined __stub___syslog
21807 rm -f conftest.$ac_objext conftest$ac_exeext
21808 if { (ac_try="$ac_link"
21809 case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21814 $as_echo "$ac_try_echo") >&5
21815 (eval "$ac_link") 2>conftest.er1
21817 grep -v '^ *+' conftest.er1 >conftest.err
21819 cat conftest.err >&5
21820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && {
21822 test -z "$ac_c_werror_flag" ||
21823 test ! -s conftest.err
21824 } && test -s conftest$ac_exeext && {
21825 test "$cross_compiling" = yes ||
21826 $as_test_x conftest$ac_exeext
21828 ac_cv_func_syslog=yes
21830 $as_echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21833 ac_cv_func_syslog=no
21836 rm -rf conftest.dSYM
21837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21838 conftest$ac_exeext conftest.$ac_ext
21840 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21841 $as_echo "$ac_cv_func_syslog" >&6; }
21842 if test "x$ac_cv_func_syslog" = x""yes; then
21843 if test "${ac_cv_header_syslog_h+set}" = set; then
21844 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21845 $as_echo_n "checking for syslog.h... " >&6; }
21846 if test "${ac_cv_header_syslog_h+set}" = set; then
21847 $as_echo_n "(cached) " >&6
21849 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21850 $as_echo "$ac_cv_header_syslog_h" >&6; }
21852 # Is the header compilable?
21853 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21854 $as_echo_n "checking syslog.h usability... " >&6; }
21855 cat >conftest.$ac_ext <<_ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h. */
21861 $ac_includes_default
21862 #include <syslog.h>
21864 rm -f conftest.$ac_objext
21865 if { (ac_try="$ac_compile"
21866 case "(($ac_try" in
21867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868 *) ac_try_echo=$ac_try;;
21870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21871 $as_echo "$ac_try_echo") >&5
21872 (eval "$ac_compile") 2>conftest.er1
21874 grep -v '^ *+' conftest.er1 >conftest.err
21876 cat conftest.err >&5
21877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } && {
21879 test -z "$ac_c_werror_flag" ||
21880 test ! -s conftest.err
21881 } && test -s conftest.$ac_objext; then
21882 ac_header_compiler=yes
21884 $as_echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21887 ac_header_compiler=no
21890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21891 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21892 $as_echo "$ac_header_compiler" >&6; }
21894 # Is the header present?
21895 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21896 $as_echo_n "checking syslog.h presence... " >&6; }
21897 cat >conftest.$ac_ext <<_ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 #include <syslog.h>
21905 if { (ac_try="$ac_cpp conftest.$ac_ext"
21906 case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21911 $as_echo "$ac_try_echo") >&5
21912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21914 grep -v '^ *+' conftest.er1 >conftest.err
21916 cat conftest.err >&5
21917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } >/dev/null && {
21919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21920 test ! -s conftest.err
21922 ac_header_preproc=yes
21924 $as_echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21927 ac_header_preproc=no
21930 rm -f conftest.err conftest.$ac_ext
21931 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21932 $as_echo "$ac_header_preproc" >&6; }
21934 # So? What about this header?
21935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21937 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21938 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21939 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21940 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21941 ac_header_preproc=yes
21944 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21945 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21946 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
21947 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
21948 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21949 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21950 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
21951 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
21952 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21953 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21954 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21955 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21957 ## ---------------------------------------- ##
21958 ## Report this to pgsql-bugs@postgresql.org ##
21959 ## ---------------------------------------- ##
21961 ) | sed "s/^/$as_me: WARNING: /" >&2
21964 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21965 $as_echo_n "checking for syslog.h... " >&6; }
21966 if test "${ac_cv_header_syslog_h+set}" = set; then
21967 $as_echo_n "(cached) " >&6
21969 ac_cv_header_syslog_h=$ac_header_preproc
21971 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21972 $as_echo "$ac_cv_header_syslog_h" >&6; }
21975 if test "x$ac_cv_header_syslog_h" = x""yes; then
21977 cat >>confdefs.h <<\_ACEOF
21978 #define HAVE_SYSLOG 1
21987 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21988 $as_echo_n "checking for opterr... " >&6; }
21989 if test "${pgac_cv_var_int_opterr+set}" = set; then
21990 $as_echo_n "(cached) " >&6
21992 cat >conftest.$ac_ext <<_ACEOF
21995 cat confdefs.h >>conftest.$ac_ext
21996 cat >>conftest.$ac_ext <<_ACEOF
21997 /* end confdefs.h. */
21998 #include <unistd.h>
22002 extern int opterr; opterr = 1;
22007 rm -f conftest.$ac_objext conftest$ac_exeext
22008 if { (ac_try="$ac_link"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22014 $as_echo "$ac_try_echo") >&5
22015 (eval "$ac_link") 2>conftest.er1
22017 grep -v '^ *+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest$ac_exeext && {
22025 test "$cross_compiling" = yes ||
22026 $as_test_x conftest$ac_exeext
22028 pgac_cv_var_int_opterr=yes
22030 $as_echo "$as_me: failed program was:" >&5
22031 sed 's/^/| /' conftest.$ac_ext >&5
22033 pgac_cv_var_int_opterr=no
22036 rm -rf conftest.dSYM
22037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22038 conftest$ac_exeext conftest.$ac_ext
22040 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22041 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22042 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22044 cat >>confdefs.h <<\_ACEOF
22045 #define HAVE_INT_OPTERR 1
22050 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22051 $as_echo_n "checking for optreset... " >&6; }
22052 if test "${pgac_cv_var_int_optreset+set}" = set; then
22053 $as_echo_n "(cached) " >&6
22055 cat >conftest.$ac_ext <<_ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22061 #include <unistd.h>
22065 extern int optreset; optreset = 1;
22070 rm -f conftest.$ac_objext conftest$ac_exeext
22071 if { (ac_try="$ac_link"
22072 case "(($ac_try" in
22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074 *) ac_try_echo=$ac_try;;
22076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22077 $as_echo "$ac_try_echo") >&5
22078 (eval "$ac_link") 2>conftest.er1
22080 grep -v '^ *+' conftest.er1 >conftest.err
22082 cat conftest.err >&5
22083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } && {
22085 test -z "$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22087 } && test -s conftest$ac_exeext && {
22088 test "$cross_compiling" = yes ||
22089 $as_test_x conftest$ac_exeext
22091 pgac_cv_var_int_optreset=yes
22093 $as_echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22096 pgac_cv_var_int_optreset=no
22099 rm -rf conftest.dSYM
22100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22101 conftest$ac_exeext conftest.$ac_ext
22103 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22104 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22105 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22107 cat >>confdefs.h <<\_ACEOF
22108 #define HAVE_INT_OPTRESET 1
22115 for ac_func in strtoll strtoq
22117 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22118 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22119 $as_echo_n "checking for $ac_func... " >&6; }
22120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22121 $as_echo_n "(cached) " >&6
22123 cat >conftest.$ac_ext <<_ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22131 #define $ac_func innocuous_$ac_func
22133 /* System header to define __stub macros and hopefully few prototypes,
22134 which can conflict with char $ac_func (); below.
22135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22136 <limits.h> exists even on freestanding compilers. */
22139 # include <limits.h>
22141 # include <assert.h>
22146 /* Override any GCC internal prototype to avoid an error.
22147 Use char because int might match the return type of a GCC
22148 builtin and then its argument prototype would still apply. */
22153 /* The GNU C library defines this for functions which it implements
22154 to always fail with ENOSYS. Some functions are actually named
22155 something starting with __ and the normal name is an alias. */
22156 #if defined __stub_$ac_func || defined __stub___$ac_func
22163 return $ac_func ();
22168 rm -f conftest.$ac_objext conftest$ac_exeext
22169 if { (ac_try="$ac_link"
22170 case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22175 $as_echo "$ac_try_echo") >&5
22176 (eval "$ac_link") 2>conftest.er1
22178 grep -v '^ *+' conftest.er1 >conftest.err
22180 cat conftest.err >&5
22181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } && {
22183 test -z "$ac_c_werror_flag" ||
22184 test ! -s conftest.err
22185 } && test -s conftest$ac_exeext && {
22186 test "$cross_compiling" = yes ||
22187 $as_test_x conftest$ac_exeext
22189 eval "$as_ac_var=yes"
22191 $as_echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22194 eval "$as_ac_var=no"
22197 rm -rf conftest.dSYM
22198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22199 conftest$ac_exeext conftest.$ac_ext
22201 ac_res=`eval 'as_val=${'$as_ac_var'}
22202 $as_echo "$as_val"'`
22203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22204 $as_echo "$ac_res" >&6; }
22205 as_val=`eval 'as_val=${'$as_ac_var'}
22206 $as_echo "$as_val"'`
22207 if test "x$as_val" = x""yes; then
22208 cat >>confdefs.h <<_ACEOF
22209 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22217 for ac_func in strtoull strtouq
22219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22220 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22221 $as_echo_n "checking for $ac_func... " >&6; }
22222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22223 $as_echo_n "(cached) " >&6
22225 cat >conftest.$ac_ext <<_ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h. */
22231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22233 #define $ac_func innocuous_$ac_func
22235 /* System header to define __stub macros and hopefully few prototypes,
22236 which can conflict with char $ac_func (); below.
22237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22238 <limits.h> exists even on freestanding compilers. */
22241 # include <limits.h>
22243 # include <assert.h>
22248 /* Override any GCC internal prototype to avoid an error.
22249 Use char because int might match the return type of a GCC
22250 builtin and then its argument prototype would still apply. */
22255 /* The GNU C library defines this for functions which it implements
22256 to always fail with ENOSYS. Some functions are actually named
22257 something starting with __ and the normal name is an alias. */
22258 #if defined __stub_$ac_func || defined __stub___$ac_func
22265 return $ac_func ();
22270 rm -f conftest.$ac_objext conftest$ac_exeext
22271 if { (ac_try="$ac_link"
22272 case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22277 $as_echo "$ac_try_echo") >&5
22278 (eval "$ac_link") 2>conftest.er1
22280 grep -v '^ *+' conftest.er1 >conftest.err
22282 cat conftest.err >&5
22283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } && {
22285 test -z "$ac_c_werror_flag" ||
22286 test ! -s conftest.err
22287 } && test -s conftest$ac_exeext && {
22288 test "$cross_compiling" = yes ||
22289 $as_test_x conftest$ac_exeext
22291 eval "$as_ac_var=yes"
22293 $as_echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22296 eval "$as_ac_var=no"
22299 rm -rf conftest.dSYM
22300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22301 conftest$ac_exeext conftest.$ac_ext
22303 ac_res=`eval 'as_val=${'$as_ac_var'}
22304 $as_echo "$as_val"'`
22305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22306 $as_echo "$ac_res" >&6; }
22307 as_val=`eval 'as_val=${'$as_ac_var'}
22308 $as_echo "$as_val"'`
22309 if test "x$as_val" = x""yes; then
22310 cat >>confdefs.h <<_ACEOF
22311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22318 # Check for one of atexit() or on_exit()
22320 for ac_func in atexit
22322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22323 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22324 $as_echo_n "checking for $ac_func... " >&6; }
22325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22326 $as_echo_n "(cached) " >&6
22328 cat >conftest.$ac_ext <<_ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h. */
22334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22336 #define $ac_func innocuous_$ac_func
22338 /* System header to define __stub macros and hopefully few prototypes,
22339 which can conflict with char $ac_func (); below.
22340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22341 <limits.h> exists even on freestanding compilers. */
22344 # include <limits.h>
22346 # include <assert.h>
22351 /* Override any GCC internal prototype to avoid an error.
22352 Use char because int might match the return type of a GCC
22353 builtin and then its argument prototype would still apply. */
22358 /* The GNU C library defines this for functions which it implements
22359 to always fail with ENOSYS. Some functions are actually named
22360 something starting with __ and the normal name is an alias. */
22361 #if defined __stub_$ac_func || defined __stub___$ac_func
22368 return $ac_func ();
22373 rm -f conftest.$ac_objext conftest$ac_exeext
22374 if { (ac_try="$ac_link"
22375 case "(($ac_try" in
22376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377 *) ac_try_echo=$ac_try;;
22379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22380 $as_echo "$ac_try_echo") >&5
22381 (eval "$ac_link") 2>conftest.er1
22383 grep -v '^ *+' conftest.er1 >conftest.err
22385 cat conftest.err >&5
22386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } && {
22388 test -z "$ac_c_werror_flag" ||
22389 test ! -s conftest.err
22390 } && test -s conftest$ac_exeext && {
22391 test "$cross_compiling" = yes ||
22392 $as_test_x conftest$ac_exeext
22394 eval "$as_ac_var=yes"
22396 $as_echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 eval "$as_ac_var=no"
22402 rm -rf conftest.dSYM
22403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22404 conftest$ac_exeext conftest.$ac_ext
22406 ac_res=`eval 'as_val=${'$as_ac_var'}
22407 $as_echo "$as_val"'`
22408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22409 $as_echo "$ac_res" >&6; }
22410 as_val=`eval 'as_val=${'$as_ac_var'}
22411 $as_echo "$as_val"'`
22412 if test "x$as_val" = x""yes; then
22413 cat >>confdefs.h <<_ACEOF
22414 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22419 for ac_func in on_exit
22421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22423 $as_echo_n "checking for $ac_func... " >&6; }
22424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22425 $as_echo_n "(cached) " >&6
22427 cat >conftest.$ac_ext <<_ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h. */
22433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22435 #define $ac_func innocuous_$ac_func
22437 /* System header to define __stub macros and hopefully few prototypes,
22438 which can conflict with char $ac_func (); below.
22439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22440 <limits.h> exists even on freestanding compilers. */
22443 # include <limits.h>
22445 # include <assert.h>
22450 /* Override any GCC internal prototype to avoid an error.
22451 Use char because int might match the return type of a GCC
22452 builtin and then its argument prototype would still apply. */
22457 /* The GNU C library defines this for functions which it implements
22458 to always fail with ENOSYS. Some functions are actually named
22459 something starting with __ and the normal name is an alias. */
22460 #if defined __stub_$ac_func || defined __stub___$ac_func
22467 return $ac_func ();
22472 rm -f conftest.$ac_objext conftest$ac_exeext
22473 if { (ac_try="$ac_link"
22474 case "(($ac_try" in
22475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476 *) ac_try_echo=$ac_try;;
22478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22479 $as_echo "$ac_try_echo") >&5
22480 (eval "$ac_link") 2>conftest.er1
22482 grep -v '^ *+' conftest.er1 >conftest.err
22484 cat conftest.err >&5
22485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } && {
22487 test -z "$ac_c_werror_flag" ||
22488 test ! -s conftest.err
22489 } && test -s conftest$ac_exeext && {
22490 test "$cross_compiling" = yes ||
22491 $as_test_x conftest$ac_exeext
22493 eval "$as_ac_var=yes"
22495 $as_echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22498 eval "$as_ac_var=no"
22501 rm -rf conftest.dSYM
22502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22503 conftest$ac_exeext conftest.$ac_ext
22505 ac_res=`eval 'as_val=${'$as_ac_var'}
22506 $as_echo "$as_val"'`
22507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22508 $as_echo "$ac_res" >&6; }
22509 as_val=`eval 'as_val=${'$as_ac_var'}
22510 $as_echo "$as_val"'`
22511 if test "x$as_val" = x""yes; then
22512 cat >>confdefs.h <<_ACEOF
22513 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22517 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22518 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22519 { (exit 1); exit 1; }; }
22531 # For each platform, we need to know about any special compile and link
22532 # libraries, and whether the normal C function names are thread-safe.
22533 # See the comment at the top of src/port/thread.c for more information.
22534 # WIN32 doesn't need the pthread tests; it always uses threads
22535 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22540 ac_cpp='$CPP $CPPFLAGS'
22541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22547 # We used to check for pthread.h first, but this fails if pthread.h
22548 # requires special compiler flags (e.g. on True64 or Sequent).
22549 # It gets checked for in the link test anyway.
22551 # First of all, check if the user has set any of the PTHREAD_LIBS,
22552 # etcetera environment variables, and if threads linking works using
22554 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22555 save_CFLAGS="$CFLAGS"
22556 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22558 LIBS="$PTHREAD_LIBS $LIBS"
22559 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22560 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22561 cat >conftest.$ac_ext <<_ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h. */
22568 /* Override any GCC internal prototype to avoid an error.
22569 Use char because int might match the return type of a GCC
22570 builtin and then its argument prototype would still apply. */
22574 char pthread_join ();
22578 return pthread_join ();
22583 rm -f conftest.$ac_objext conftest$ac_exeext
22584 if { (ac_try="$ac_link"
22585 case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22590 $as_echo "$ac_try_echo") >&5
22591 (eval "$ac_link") 2>conftest.er1
22593 grep -v '^ *+' conftest.er1 >conftest.err
22595 cat conftest.err >&5
22596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); } && {
22598 test -z "$ac_c_werror_flag" ||
22599 test ! -s conftest.err
22600 } && test -s conftest$ac_exeext && {
22601 test "$cross_compiling" = yes ||
22602 $as_test_x conftest$ac_exeext
22606 $as_echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22612 rm -rf conftest.dSYM
22613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22614 conftest$ac_exeext conftest.$ac_ext
22615 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22616 $as_echo "$acx_pthread_ok" >&6; }
22617 if test x"$acx_pthread_ok" = xno; then
22622 CFLAGS="$save_CFLAGS"
22625 # We must check for the threads library under a number of different
22626 # names; the ordering is very important because some systems
22627 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22628 # libraries is broken (non-POSIX).
22630 # Create a list of thread flags to try. Items starting with a "-" are
22631 # C compiler flags, and other items are library names, except for "none"
22632 # which indicates that we try without any flags at all, and "pthread-config"
22633 # which is a program returning the flags for the Pth emulation library.
22635 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22637 # The ordering *is* (sometimes) important. Some notes on the
22638 # individual items follow:
22640 # pthreads: AIX (must check this before -lpthread)
22641 # none: in case threads are in libc; should be tried before -Kthread and
22642 # other compiler flags to prevent continual compiler warnings
22643 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22644 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22645 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22646 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22647 # -pthreads: Solaris/gcc
22648 # -mthreads: Mingw32/gcc, Lynx/gcc
22649 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22650 # doesn't hurt to check since this sometimes defines pthreads too;
22651 # also defines -D_REENTRANT)
22652 # pthread: Linux, etcetera
22653 # --thread-safe: KAI C++
22654 # pthread-config: use pthread-config program (for GNU Pth library)
22656 case "${host_cpu}-${host_os}" in
22659 # On Solaris (at least, for some versions), libc contains stubbed
22660 # (non-functional) versions of the pthreads routines, so link-based
22661 # tests will erroneously succeed. (We need to link with -pthread or
22662 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22663 # a function called by this macro, so we could check for that, but
22664 # who knows whether they'll stub that too in a future libc.) So,
22665 # we'll just look for -pthreads and -lpthread first:
22667 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22671 if test x"$acx_pthread_ok" = xno; then
22672 for flag in $acx_pthread_flags; do
22674 tryPTHREAD_CFLAGS=""
22678 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22679 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22683 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22684 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22685 tryPTHREAD_CFLAGS="$flag"
22689 # skip this if we already have flags defined, for PostgreSQL
22690 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22691 # Extract the first word of "pthread-config", so it can be a program name with args.
22692 set dummy pthread-config; ac_word=$2
22693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22694 $as_echo_n "checking for $ac_word... " >&6; }
22695 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22696 $as_echo_n "(cached) " >&6
22698 if test -n "$acx_pthread_config"; then
22699 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22702 for as_dir in $PATH
22705 test -z "$as_dir" && as_dir=.
22706 for ac_exec_ext in '' $ac_executable_extensions; do
22707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22708 ac_cv_prog_acx_pthread_config="yes"
22709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22716 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22719 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22720 if test -n "$acx_pthread_config"; then
22721 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22722 $as_echo "$acx_pthread_config" >&6; }
22724 { $as_echo "$as_me:$LINENO: result: no" >&5
22725 $as_echo "no" >&6; }
22729 if test x"$acx_pthread_config" = xno; then continue; fi
22730 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22731 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22735 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22736 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22737 tryPTHREAD_LIBS="-l$flag"
22742 save_CFLAGS="$CFLAGS"
22743 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22744 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22746 # Check for various functions. We must include pthread.h,
22747 # since some functions may be macros. (On the Sequent, we
22748 # need a special flag -Kthread to make this header compile.)
22749 # We check for pthread_join because it is in -lpthread on IRIX
22750 # while pthread_create is in libc. We check for pthread_attr_init
22751 # due to DEC craziness with -lpthreads. We check for
22752 # pthread_cleanup_push because it is one of the few pthread
22753 # functions on Solaris that doesn't have a non-functional libc stub.
22754 # We try pthread_create on general principles.
22755 cat >conftest.$ac_ext <<_ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22761 #include <pthread.h>
22765 pthread_t th; pthread_join(th, 0);
22766 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22767 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22772 rm -f conftest.$ac_objext conftest$ac_exeext
22773 if { (ac_try="$ac_link"
22774 case "(($ac_try" in
22775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22779 $as_echo "$ac_try_echo") >&5
22780 (eval "$ac_link") 2>conftest.er1
22782 grep -v '^ *+' conftest.er1 >conftest.err
22784 cat conftest.err >&5
22785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } && {
22787 test -z "$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22789 } && test -s conftest$ac_exeext && {
22790 test "$cross_compiling" = yes ||
22791 $as_test_x conftest$ac_exeext
22795 $as_echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22801 rm -rf conftest.dSYM
22802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22803 conftest$ac_exeext conftest.$ac_ext
22805 if test "x$acx_pthread_ok" = xyes; then
22806 # Don't use options that are ignored by the compiler.
22807 # We find them by checking stderror.
22808 cat >conftest.$ac_ext <<_ACEOF
22810 main (int argc, char **argv)
22817 rm -f conftest.$ac_objext conftest$ac_exeext
22818 # Check both linking and compiling, because they might tolerate different options.
22819 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22820 # we continue with more flags because Linux needs -lpthread
22821 # for libpq builds on PostgreSQL. The test above only
22822 # tests for building binaries, not shared libraries.
22823 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22824 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22825 else acx_pthread_ok=no
22830 CFLAGS="$save_CFLAGS"
22832 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22833 $as_echo "$acx_pthread_ok" >&6; }
22837 # Various other checks:
22838 if test "x$acx_pthread_ok" = xyes; then
22840 LIBS="$PTHREAD_LIBS $LIBS"
22841 save_CFLAGS="$CFLAGS"
22842 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22844 # Detect AIX lossage: threads are created detached by default
22845 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22846 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22847 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22848 cat >conftest.$ac_ext <<_ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h. */
22854 #include <pthread.h>
22858 int attr=PTHREAD_CREATE_JOINABLE;
22863 rm -f conftest.$ac_objext conftest$ac_exeext
22864 if { (ac_try="$ac_link"
22865 case "(($ac_try" in
22866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867 *) ac_try_echo=$ac_try;;
22869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22870 $as_echo "$ac_try_echo") >&5
22871 (eval "$ac_link") 2>conftest.er1
22873 grep -v '^ *+' conftest.er1 >conftest.err
22875 cat conftest.err >&5
22876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); } && {
22878 test -z "$ac_c_werror_flag" ||
22879 test ! -s conftest.err
22880 } && test -s conftest$ac_exeext && {
22881 test "$cross_compiling" = yes ||
22882 $as_test_x conftest$ac_exeext
22884 ok=PTHREAD_CREATE_JOINABLE
22886 $as_echo "$as_me: failed program was:" >&5
22887 sed 's/^/| /' conftest.$ac_ext >&5
22892 rm -rf conftest.dSYM
22893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22894 conftest$ac_exeext conftest.$ac_ext
22895 if test x"$ok" = xunknown; then
22896 cat >conftest.$ac_ext <<_ACEOF
22899 cat confdefs.h >>conftest.$ac_ext
22900 cat >>conftest.$ac_ext <<_ACEOF
22901 /* end confdefs.h. */
22902 #include <pthread.h>
22906 int attr=PTHREAD_CREATE_UNDETACHED;
22911 rm -f conftest.$ac_objext conftest$ac_exeext
22912 if { (ac_try="$ac_link"
22913 case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22918 $as_echo "$ac_try_echo") >&5
22919 (eval "$ac_link") 2>conftest.er1
22921 grep -v '^ *+' conftest.er1 >conftest.err
22923 cat conftest.err >&5
22924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } && {
22926 test -z "$ac_c_werror_flag" ||
22927 test ! -s conftest.err
22928 } && test -s conftest$ac_exeext && {
22929 test "$cross_compiling" = yes ||
22930 $as_test_x conftest$ac_exeext
22932 ok=PTHREAD_CREATE_UNDETACHED
22934 $as_echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22940 rm -rf conftest.dSYM
22941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22942 conftest$ac_exeext conftest.$ac_ext
22944 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22946 cat >>confdefs.h <<\_ACEOF
22947 #define PTHREAD_CREATE_JOINABLE $ok
22951 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22952 $as_echo "${ok}" >&6; }
22953 if test x"$ok" = xunknown; then
22954 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22955 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22958 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22959 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22961 # We always add these in PostgreSQL
22962 # case "${host_cpu}-${host_os}" in
22963 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22964 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22966 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22967 $as_echo "${flag}" >&6; }
22968 if test "x$flag" != xno; then
22969 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22973 CFLAGS="$save_CFLAGS"
22975 # Supporting cc_r would require a special CC in all places that
22976 # use libpq, and that is ugly, so we don't do it. Users can still
22977 # define their compiler as cc_r to do thread builds of everything.
22978 # More AIX lossage: must compile with cc_r
22979 # Extract the first word of "cc_r", so it can be a program name with args.
22980 set dummy cc_r; ac_word=$2
22981 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22982 $as_echo_n "checking for $ac_word... " >&6; }
22983 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22984 $as_echo_n "(cached) " >&6
22986 if test -n "$PTHREAD_CC"; then
22987 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22990 for as_dir in $PATH
22993 test -z "$as_dir" && as_dir=.
22994 for ac_exec_ext in '' $ac_executable_extensions; do
22995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22996 ac_cv_prog_PTHREAD_CC="cc_r"
22997 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23004 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23007 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23008 if test -n "$PTHREAD_CC"; then
23009 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23010 $as_echo "$PTHREAD_CC" >&6; }
23012 { $as_echo "$as_me:$LINENO: result: no" >&5
23013 $as_echo "no" >&6; }
23025 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23026 if test x"$acx_pthread_ok" = xyes; then
23028 cat >>confdefs.h <<\_ACEOF
23029 #define HAVE_PTHREAD 1
23038 ac_cpp='$CPP $CPPFLAGS'
23039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23045 # Some platforms use these, so just define them. They can't hurt if they
23046 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23047 # enables 5-arg getpwuid_r, among other things.
23048 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23051 # At this point, we don't want to muck with the compiler name for threading.
23052 # Let's see who fails, perhaps AIX. 2004-04-23
23053 if test "$PTHREAD_CC" != "$CC"; then
23054 { { $as_echo "$as_me:$LINENO: error:
23055 PostgreSQL does not support platforms that require a special compiler
23056 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23057 $as_echo "$as_me: error:
23058 PostgreSQL does not support platforms that require a special compiler
23059 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23060 { (exit 1); exit 1; }; }
23063 # Check for *_r functions
23066 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23067 LIBS="$LIBS $PTHREAD_LIBS"
23069 if test "$PORTNAME" != "win32"; then
23070 if test "${ac_cv_header_pthread_h+set}" = set; then
23071 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23072 $as_echo_n "checking for pthread.h... " >&6; }
23073 if test "${ac_cv_header_pthread_h+set}" = set; then
23074 $as_echo_n "(cached) " >&6
23076 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23077 $as_echo "$ac_cv_header_pthread_h" >&6; }
23079 # Is the header compilable?
23080 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23081 $as_echo_n "checking pthread.h usability... " >&6; }
23082 cat >conftest.$ac_ext <<_ACEOF
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h. */
23088 $ac_includes_default
23089 #include <pthread.h>
23091 rm -f conftest.$ac_objext
23092 if { (ac_try="$ac_compile"
23093 case "(($ac_try" in
23094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095 *) ac_try_echo=$ac_try;;
23097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23098 $as_echo "$ac_try_echo") >&5
23099 (eval "$ac_compile") 2>conftest.er1
23101 grep -v '^ *+' conftest.er1 >conftest.err
23103 cat conftest.err >&5
23104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } && {
23106 test -z "$ac_c_werror_flag" ||
23107 test ! -s conftest.err
23108 } && test -s conftest.$ac_objext; then
23109 ac_header_compiler=yes
23111 $as_echo "$as_me: failed program was:" >&5
23112 sed 's/^/| /' conftest.$ac_ext >&5
23114 ac_header_compiler=no
23117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23118 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23119 $as_echo "$ac_header_compiler" >&6; }
23121 # Is the header present?
23122 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23123 $as_echo_n "checking pthread.h presence... " >&6; }
23124 cat >conftest.$ac_ext <<_ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23130 #include <pthread.h>
23132 if { (ac_try="$ac_cpp conftest.$ac_ext"
23133 case "(($ac_try" in
23134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135 *) ac_try_echo=$ac_try;;
23137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23138 $as_echo "$ac_try_echo") >&5
23139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23141 grep -v '^ *+' conftest.er1 >conftest.err
23143 cat conftest.err >&5
23144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } >/dev/null && {
23146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23147 test ! -s conftest.err
23149 ac_header_preproc=yes
23151 $as_echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 ac_header_preproc=no
23157 rm -f conftest.err conftest.$ac_ext
23158 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23159 $as_echo "$ac_header_preproc" >&6; }
23161 # So? What about this header?
23162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23164 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23165 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23166 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23167 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23168 ac_header_preproc=yes
23171 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23172 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23173 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23174 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23175 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23176 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23177 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23178 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23179 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23180 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23181 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23182 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23184 ## ---------------------------------------- ##
23185 ## Report this to pgsql-bugs@postgresql.org ##
23186 ## ---------------------------------------- ##
23188 ) | sed "s/^/$as_me: WARNING: /" >&2
23191 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23192 $as_echo_n "checking for pthread.h... " >&6; }
23193 if test "${ac_cv_header_pthread_h+set}" = set; then
23194 $as_echo_n "(cached) " >&6
23196 ac_cv_header_pthread_h=$ac_header_preproc
23198 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23199 $as_echo "$ac_cv_header_pthread_h" >&6; }
23202 if test "x$ac_cv_header_pthread_h" = x""yes; then
23205 { { $as_echo "$as_me:$LINENO: error:
23206 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23207 $as_echo "$as_me: error:
23208 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23209 { (exit 1); exit 1; }; }
23218 for ac_func in strerror_r getpwuid_r gethostbyname_r
23220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23221 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23222 $as_echo_n "checking for $ac_func... " >&6; }
23223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23224 $as_echo_n "(cached) " >&6
23226 cat >conftest.$ac_ext <<_ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23234 #define $ac_func innocuous_$ac_func
23236 /* System header to define __stub macros and hopefully few prototypes,
23237 which can conflict with char $ac_func (); below.
23238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23239 <limits.h> exists even on freestanding compilers. */
23242 # include <limits.h>
23244 # include <assert.h>
23249 /* Override any GCC internal prototype to avoid an error.
23250 Use char because int might match the return type of a GCC
23251 builtin and then its argument prototype would still apply. */
23256 /* The GNU C library defines this for functions which it implements
23257 to always fail with ENOSYS. Some functions are actually named
23258 something starting with __ and the normal name is an alias. */
23259 #if defined __stub_$ac_func || defined __stub___$ac_func
23266 return $ac_func ();
23271 rm -f conftest.$ac_objext conftest$ac_exeext
23272 if { (ac_try="$ac_link"
23273 case "(($ac_try" in
23274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275 *) ac_try_echo=$ac_try;;
23277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23278 $as_echo "$ac_try_echo") >&5
23279 (eval "$ac_link") 2>conftest.er1
23281 grep -v '^ *+' conftest.er1 >conftest.err
23283 cat conftest.err >&5
23284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); } && {
23286 test -z "$ac_c_werror_flag" ||
23287 test ! -s conftest.err
23288 } && test -s conftest$ac_exeext && {
23289 test "$cross_compiling" = yes ||
23290 $as_test_x conftest$ac_exeext
23292 eval "$as_ac_var=yes"
23294 $as_echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23297 eval "$as_ac_var=no"
23300 rm -rf conftest.dSYM
23301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23302 conftest$ac_exeext conftest.$ac_ext
23304 ac_res=`eval 'as_val=${'$as_ac_var'}
23305 $as_echo "$as_val"'`
23306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23307 $as_echo "$ac_res" >&6; }
23308 as_val=`eval 'as_val=${'$as_ac_var'}
23309 $as_echo "$as_val"'`
23310 if test "x$as_val" = x""yes; then
23311 cat >>confdefs.h <<_ACEOF
23312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23319 # Do test here with the proper thread flags
23320 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23321 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23322 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23323 $as_echo_n "(cached) " >&6
23325 cat >conftest.$ac_ext <<_ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h. */
23331 #include <sys/types.h>
23337 struct passwd *space;
23340 struct passwd **result;
23341 getpwuid_r(uid, space, buf, bufsize, result);
23346 rm -f conftest.$ac_objext
23347 if { (ac_try="$ac_compile"
23348 case "(($ac_try" in
23349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23350 *) ac_try_echo=$ac_try;;
23352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23353 $as_echo "$ac_try_echo") >&5
23354 (eval "$ac_compile") 2>conftest.er1
23356 grep -v '^ *+' conftest.er1 >conftest.err
23358 cat conftest.err >&5
23359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } && {
23361 test -z "$ac_c_werror_flag" ||
23362 test ! -s conftest.err
23363 } && test -s conftest.$ac_objext; then
23364 pgac_cv_func_getpwuid_r_5arg=yes
23366 $as_echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23369 pgac_cv_func_getpwuid_r_5arg=no
23372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23374 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23375 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23376 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23378 cat >>confdefs.h <<\_ACEOF
23379 #define GETPWUID_R_5ARG /**/
23384 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23385 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23386 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23387 $as_echo_n "(cached) " >&6
23389 cat >conftest.$ac_ext <<_ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23395 #include <string.h>
23400 int strerror_r(int, char *, size_t);
23402 /* Older AIX has 'int' for the third argument so we don't test the args. */
23409 rm -f conftest.$ac_objext
23410 if { (ac_try="$ac_compile"
23411 case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23416 $as_echo "$ac_try_echo") >&5
23417 (eval "$ac_compile") 2>conftest.er1
23419 grep -v '^ *+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } && {
23424 test -z "$ac_c_werror_flag" ||
23425 test ! -s conftest.err
23426 } && test -s conftest.$ac_objext; then
23427 pgac_cv_func_strerror_r_int=yes
23429 $as_echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 pgac_cv_func_strerror_r_int=no
23435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23437 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23438 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23439 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23441 cat >>confdefs.h <<\_ACEOF
23442 #define STRERROR_R_INT /**/
23452 # do not use values from template file
23461 # We can test for libldap_r only after we know PTHREAD_LIBS
23462 if test "$with_ldap" = yes ; then
23464 if test "$PORTNAME" != "win32"; then
23466 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23467 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23468 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23469 $as_echo_n "(cached) " >&6
23471 ac_check_lib_save_LIBS=$LIBS
23472 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23473 cat >conftest.$ac_ext <<_ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h. */
23480 /* Override any GCC internal prototype to avoid an error.
23481 Use char because int might match the return type of a GCC
23482 builtin and then its argument prototype would still apply. */
23490 return ldap_bind ();
23495 rm -f conftest.$ac_objext conftest$ac_exeext
23496 if { (ac_try="$ac_link"
23497 case "(($ac_try" in
23498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499 *) ac_try_echo=$ac_try;;
23501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23502 $as_echo "$ac_try_echo") >&5
23503 (eval "$ac_link") 2>conftest.er1
23505 grep -v '^ *+' conftest.er1 >conftest.err
23507 cat conftest.err >&5
23508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); } && {
23510 test -z "$ac_c_werror_flag" ||
23511 test ! -s conftest.err
23512 } && test -s conftest$ac_exeext && {
23513 test "$cross_compiling" = yes ||
23514 $as_test_x conftest$ac_exeext
23516 ac_cv_lib_ldap_ldap_bind=yes
23518 $as_echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ac_cv_lib_ldap_ldap_bind=no
23524 rm -rf conftest.dSYM
23525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23526 conftest$ac_exeext conftest.$ac_ext
23527 LIBS=$ac_check_lib_save_LIBS
23529 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23530 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23531 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23532 cat >>confdefs.h <<_ACEOF
23533 #define HAVE_LIBLDAP 1
23536 LIBS="-lldap $LIBS"
23539 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23540 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23541 { (exit 1); exit 1; }; }
23544 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23545 if test "$enable_thread_safety" = yes; then
23546 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23548 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23549 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23550 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23551 $as_echo_n "(cached) " >&6
23553 ac_check_lib_save_LIBS=$LIBS
23554 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23555 cat >conftest.$ac_ext <<_ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h. */
23562 /* Override any GCC internal prototype to avoid an error.
23563 Use char because int might match the return type of a GCC
23564 builtin and then its argument prototype would still apply. */
23568 char ldap_simple_bind ();
23572 return ldap_simple_bind ();
23577 rm -f conftest.$ac_objext conftest$ac_exeext
23578 if { (ac_try="$ac_link"
23579 case "(($ac_try" in
23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581 *) ac_try_echo=$ac_try;;
23583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23584 $as_echo "$ac_try_echo") >&5
23585 (eval "$ac_link") 2>conftest.er1
23587 grep -v '^ *+' conftest.er1 >conftest.err
23589 cat conftest.err >&5
23590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } && {
23592 test -z "$ac_c_werror_flag" ||
23593 test ! -s conftest.err
23594 } && test -s conftest$ac_exeext && {
23595 test "$cross_compiling" = yes ||
23596 $as_test_x conftest$ac_exeext
23598 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23600 $as_echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23603 ac_cv_lib_ldap_r_ldap_simple_bind=no
23606 rm -rf conftest.dSYM
23607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23608 conftest$ac_exeext conftest.$ac_ext
23609 LIBS=$ac_check_lib_save_LIBS
23611 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23612 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23613 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23614 cat >>confdefs.h <<_ACEOF
23615 #define HAVE_LIBLDAP_R 1
23618 LIBS="-lldap_r $LIBS"
23621 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23622 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23623 { (exit 1); exit 1; }; }
23626 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23628 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23632 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23633 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23634 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23635 $as_echo_n "(cached) " >&6
23637 ac_check_lib_save_LIBS=$LIBS
23638 LIBS="-lwldap32 $LIBS"
23639 cat >conftest.$ac_ext <<_ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h. */
23646 /* Override any GCC internal prototype to avoid an error.
23647 Use char because int might match the return type of a GCC
23648 builtin and then its argument prototype would still apply. */
23656 return ldap_bind ();
23661 rm -f conftest.$ac_objext conftest$ac_exeext
23662 if { (ac_try="$ac_link"
23663 case "(($ac_try" in
23664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665 *) ac_try_echo=$ac_try;;
23667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23668 $as_echo "$ac_try_echo") >&5
23669 (eval "$ac_link") 2>conftest.er1
23671 grep -v '^ *+' conftest.er1 >conftest.err
23673 cat conftest.err >&5
23674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } && {
23676 test -z "$ac_c_werror_flag" ||
23677 test ! -s conftest.err
23678 } && test -s conftest$ac_exeext && {
23679 test "$cross_compiling" = yes ||
23680 $as_test_x conftest$ac_exeext
23682 ac_cv_lib_wldap32_ldap_bind=yes
23684 $as_echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23687 ac_cv_lib_wldap32_ldap_bind=no
23690 rm -rf conftest.dSYM
23691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23692 conftest$ac_exeext conftest.$ac_ext
23693 LIBS=$ac_check_lib_save_LIBS
23695 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23696 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23697 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23698 cat >>confdefs.h <<_ACEOF
23699 #define HAVE_LIBWLDAP32 1
23702 LIBS="-lwldap32 $LIBS"
23705 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23706 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23707 { (exit 1); exit 1; }; }
23710 LDAP_LIBS_FE="-lwldap32"
23711 LDAP_LIBS_BE="-lwldap32"
23719 # This test makes sure that run tests work at all. Sometimes a shared
23720 # library is found by the linker, but the runtime linker can't find it.
23721 # This check should come after all modifications of compiler or linker
23722 # variables, and before any other run tests.
23723 { $as_echo "$as_me:$LINENO: checking test program" >&5
23724 $as_echo_n "checking test program... " >&6; }
23725 if test "$cross_compiling" = yes; then
23726 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23727 $as_echo "cross-compiling" >&6; }
23729 cat >conftest.$ac_ext <<_ACEOF
23732 cat confdefs.h >>conftest.$ac_ext
23733 cat >>conftest.$ac_ext <<_ACEOF
23734 /* end confdefs.h. */
23735 int main() { return 0; }
23737 rm -f conftest$ac_exeext
23738 if { (ac_try="$ac_link"
23739 case "(($ac_try" in
23740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23741 *) ac_try_echo=$ac_try;;
23743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23744 $as_echo "$ac_try_echo") >&5
23745 (eval "$ac_link") 2>&5
23747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23749 { (case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23754 $as_echo "$ac_try_echo") >&5
23755 (eval "$ac_try") 2>&5
23757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); }; }; then
23759 { $as_echo "$as_me:$LINENO: result: ok" >&5
23760 $as_echo "ok" >&6; }
23762 $as_echo "$as_me: program exited with status $ac_status" >&5
23763 $as_echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23766 ( exit $ac_status )
23767 { $as_echo "$as_me:$LINENO: result: failed" >&5
23768 $as_echo "failed" >&6; }
23769 { { $as_echo "$as_me:$LINENO: error:
23770 Could not execute a simple test program. This may be a problem
23771 related to locating shared libraries. Check the file 'config.log'
23772 for the exact reason." >&5
23773 $as_echo "$as_me: error:
23774 Could not execute a simple test program. This may be a problem
23775 related to locating shared libraries. Check the file 'config.log'
23776 for the exact reason." >&2;}
23777 { (exit 1); exit 1; }; }
23779 rm -rf conftest.dSYM
23780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23785 # --------------------
23786 # Run tests below here
23787 # --------------------
23789 # Force use of our snprintf if system's doesn't do arg control
23790 # See comment above at snprintf test for details.
23791 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23792 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23793 $as_echo_n "checking whether printf supports argument control... " >&6; }
23794 if test "${pgac_cv_printf_arg_control+set}" = set; then
23795 $as_echo_n "(cached) " >&6
23797 if test "$cross_compiling" = yes; then
23798 pgac_cv_printf_arg_control=cross
23800 cat >conftest.$ac_ext <<_ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h. */
23807 #include <string.h>
23813 /* can it swap arguments? */
23814 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23815 if (strcmp(buf, "4 3") != 0)
23820 rm -f conftest$ac_exeext
23821 if { (ac_try="$ac_link"
23822 case "(($ac_try" in
23823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824 *) ac_try_echo=$ac_try;;
23826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23827 $as_echo "$ac_try_echo") >&5
23828 (eval "$ac_link") 2>&5
23830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23832 { (case "(($ac_try" in
23833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834 *) ac_try_echo=$ac_try;;
23836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23837 $as_echo "$ac_try_echo") >&5
23838 (eval "$ac_try") 2>&5
23840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); }; }; then
23842 pgac_cv_printf_arg_control=yes
23844 $as_echo "$as_me: program exited with status $ac_status" >&5
23845 $as_echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23848 ( exit $ac_status )
23849 pgac_cv_printf_arg_control=no
23851 rm -rf conftest.dSYM
23852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23858 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23859 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23861 if test $pgac_cv_printf_arg_control != yes ; then
23862 pgac_need_repl_snprintf=yes
23869 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23870 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23871 if test "${pgac_cv_type_long_int_64+set}" = set; then
23872 $as_echo_n "(cached) " >&6
23874 if test "$cross_compiling" = yes; then
23875 # If cross-compiling, check the size reported by the compiler and
23876 # trust that the arithmetic works.
23877 cat >conftest.$ac_ext <<_ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h. */
23887 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23894 rm -f conftest.$ac_objext
23895 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23904 grep -v '^ *+' conftest.er1 >conftest.err
23906 cat conftest.err >&5
23907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); } && {
23909 test -z "$ac_c_werror_flag" ||
23910 test ! -s conftest.err
23911 } && test -s conftest.$ac_objext; then
23912 pgac_cv_type_long_int_64=yes
23914 $as_echo "$as_me: failed program was:" >&5
23915 sed 's/^/| /' conftest.$ac_ext >&5
23917 pgac_cv_type_long_int_64=no
23920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23922 cat >conftest.$ac_ext <<_ACEOF
23925 cat confdefs.h >>conftest.$ac_ext
23926 cat >>conftest.$ac_ext <<_ACEOF
23927 /* end confdefs.h. */
23928 typedef long int ac_int64;
23931 * These are globals to discourage the compiler from folding all the
23932 * arithmetic tests down to compile-time constants.
23934 ac_int64 a = 20000001;
23935 ac_int64 b = 40000005;
23937 int does_int64_work()
23941 if (sizeof(ac_int64) != 8)
23942 return 0; /* definitely not the right size */
23944 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23952 exit(! does_int64_work());
23955 rm -f conftest$ac_exeext
23956 if { (ac_try="$ac_link"
23957 case "(($ac_try" in
23958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23959 *) ac_try_echo=$ac_try;;
23961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23962 $as_echo "$ac_try_echo") >&5
23963 (eval "$ac_link") 2>&5
23965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23967 { (case "(($ac_try" in
23968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23969 *) ac_try_echo=$ac_try;;
23971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23972 $as_echo "$ac_try_echo") >&5
23973 (eval "$ac_try") 2>&5
23975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; }; then
23977 pgac_cv_type_long_int_64=yes
23979 $as_echo "$as_me: program exited with status $ac_status" >&5
23980 $as_echo "$as_me: failed program was:" >&5
23981 sed 's/^/| /' conftest.$ac_ext >&5
23983 ( exit $ac_status )
23984 pgac_cv_type_long_int_64=no
23986 rm -rf conftest.dSYM
23987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23992 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23993 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23995 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23996 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23998 cat >>confdefs.h <<\_ACEOF
23999 #define HAVE_LONG_INT_64 1
24005 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24006 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24007 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24008 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24009 $as_echo_n "(cached) " >&6
24011 if test "$cross_compiling" = yes; then
24012 # If cross-compiling, check the size reported by the compiler and
24013 # trust that the arithmetic works.
24014 cat >conftest.$ac_ext <<_ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h. */
24024 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24031 rm -f conftest.$ac_objext
24032 if { (ac_try="$ac_compile"
24033 case "(($ac_try" in
24034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035 *) ac_try_echo=$ac_try;;
24037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24038 $as_echo "$ac_try_echo") >&5
24039 (eval "$ac_compile") 2>conftest.er1
24041 grep -v '^ *+' conftest.er1 >conftest.err
24043 cat conftest.err >&5
24044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); } && {
24046 test -z "$ac_c_werror_flag" ||
24047 test ! -s conftest.err
24048 } && test -s conftest.$ac_objext; then
24049 pgac_cv_type_long_long_int_64=yes
24051 $as_echo "$as_me: failed program was:" >&5
24052 sed 's/^/| /' conftest.$ac_ext >&5
24054 pgac_cv_type_long_long_int_64=no
24057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059 cat >conftest.$ac_ext <<_ACEOF
24062 cat confdefs.h >>conftest.$ac_ext
24063 cat >>conftest.$ac_ext <<_ACEOF
24064 /* end confdefs.h. */
24065 typedef long long int ac_int64;
24068 * These are globals to discourage the compiler from folding all the
24069 * arithmetic tests down to compile-time constants.
24071 ac_int64 a = 20000001;
24072 ac_int64 b = 40000005;
24074 int does_int64_work()
24078 if (sizeof(ac_int64) != 8)
24079 return 0; /* definitely not the right size */
24081 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24089 exit(! does_int64_work());
24092 rm -f conftest$ac_exeext
24093 if { (ac_try="$ac_link"
24094 case "(($ac_try" in
24095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096 *) ac_try_echo=$ac_try;;
24098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24099 $as_echo "$ac_try_echo") >&5
24100 (eval "$ac_link") 2>&5
24102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24104 { (case "(($ac_try" in
24105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24106 *) ac_try_echo=$ac_try;;
24108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24109 $as_echo "$ac_try_echo") >&5
24110 (eval "$ac_try") 2>&5
24112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); }; }; then
24114 pgac_cv_type_long_long_int_64=yes
24116 $as_echo "$as_me: program exited with status $ac_status" >&5
24117 $as_echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24120 ( exit $ac_status )
24121 pgac_cv_type_long_long_int_64=no
24123 rm -rf conftest.dSYM
24124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24129 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24130 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24132 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24133 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24135 cat >>confdefs.h <<\_ACEOF
24136 #define HAVE_LONG_LONG_INT_64 1
24141 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24142 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24143 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24144 { (exit 1); exit 1; }; }
24150 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24151 cat >conftest.$ac_ext <<_ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h. */
24158 #define INT64CONST(x) x##LL
24159 long long int foo = INT64CONST(0x1234567890123456);
24169 rm -f conftest.$ac_objext
24170 if { (ac_try="$ac_compile"
24171 case "(($ac_try" in
24172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24173 *) ac_try_echo=$ac_try;;
24175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24176 $as_echo "$ac_try_echo") >&5
24177 (eval "$ac_compile") 2>conftest.er1
24179 grep -v '^ *+' conftest.er1 >conftest.err
24181 cat conftest.err >&5
24182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); } && {
24184 test -z "$ac_c_werror_flag" ||
24185 test ! -s conftest.err
24186 } && test -s conftest.$ac_objext; then
24188 cat >>confdefs.h <<\_ACEOF
24189 #define HAVE_LL_CONSTANTS 1
24193 $as_echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24203 # If we found "long int" is 64 bits, assume snprintf handles it. If
24204 # we found we need to use "long long int", better check. We cope with
24205 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24206 # work, fall back to our own snprintf emulation (which we know uses %lld).
24208 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24209 if test $pgac_need_repl_snprintf = no; then
24210 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24211 $as_echo_n "checking snprintf format for long long int... " >&6; }
24212 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24213 $as_echo_n "(cached) " >&6
24215 for pgac_format in '%lld' '%qd' '%I64d'; do
24216 if test "$cross_compiling" = yes; then
24217 pgac_cv_snprintf_long_long_int_format=cross; break
24219 cat >conftest.$ac_ext <<_ACEOF
24222 cat confdefs.h >>conftest.$ac_ext
24223 cat >>conftest.$ac_ext <<_ACEOF
24224 /* end confdefs.h. */
24226 typedef long long int ac_int64;
24227 #define INT64_FORMAT "$pgac_format"
24229 ac_int64 a = 20000001;
24230 ac_int64 b = 40000005;
24232 int does_int64_snprintf_work()
24237 if (sizeof(ac_int64) != 8)
24238 return 0; /* doesn't look like the right size */
24241 snprintf(buf, 100, INT64_FORMAT, c);
24242 if (strcmp(buf, "800000140000005") != 0)
24243 return 0; /* either multiply or snprintf is busted */
24247 exit(! does_int64_snprintf_work());
24250 rm -f conftest$ac_exeext
24251 if { (ac_try="$ac_link"
24252 case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24257 $as_echo "$ac_try_echo") >&5
24258 (eval "$ac_link") 2>&5
24260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24262 { (case "(($ac_try" in
24263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24264 *) ac_try_echo=$ac_try;;
24266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24267 $as_echo "$ac_try_echo") >&5
24268 (eval "$ac_try") 2>&5
24270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); }; }; then
24272 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24274 $as_echo "$as_me: program exited with status $ac_status" >&5
24275 $as_echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.$ac_ext >&5
24279 rm -rf conftest.dSYM
24280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24287 LONG_LONG_INT_FORMAT=''
24289 case $pgac_cv_snprintf_long_long_int_format in
24290 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24291 $as_echo "cannot test (not on host machine)" >&6; };;
24292 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24293 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24294 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24295 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24296 $as_echo "none" >&6; };;
24298 if test "$LONG_LONG_INT_FORMAT" = ""; then
24299 # Force usage of our own snprintf, since system snprintf is broken
24300 pgac_need_repl_snprintf=yes
24301 LONG_LONG_INT_FORMAT='%lld'
24304 # Here if we previously decided we needed to use our own snprintf
24305 LONG_LONG_INT_FORMAT='%lld'
24307 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24308 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24309 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24311 # Here if we are not using 'long long int' at all
24312 INT64_FORMAT='"%ld"'
24313 UINT64_FORMAT='"%lu"'
24317 cat >>confdefs.h <<_ACEOF
24318 #define INT64_FORMAT $INT64_FORMAT
24323 cat >>confdefs.h <<_ACEOF
24324 #define UINT64_FORMAT $UINT64_FORMAT
24328 # Now we have checked all the reasons to replace snprintf
24329 if test $pgac_need_repl_snprintf = yes; then
24331 cat >>confdefs.h <<\_ACEOF
24332 #define USE_REPL_SNPRINTF 1
24335 case " $LIBOBJS " in
24336 *" snprintf.$ac_objext "* ) ;;
24337 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24343 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24344 # The cast to long int works around a bug in the HP C Compiler
24345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24347 # This bug is HP SR number 8606223364.
24348 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24349 $as_echo_n "checking size of void *... " >&6; }
24350 if test "${ac_cv_sizeof_void_p+set}" = set; then
24351 $as_echo_n "(cached) " >&6
24353 if test "$cross_compiling" = yes; then
24354 # Depending upon the size, compute the lo and hi bounds.
24355 cat >conftest.$ac_ext <<_ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24361 $ac_includes_default
24365 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24372 rm -f conftest.$ac_objext
24373 if { (ac_try="$ac_compile"
24374 case "(($ac_try" in
24375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376 *) ac_try_echo=$ac_try;;
24378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24379 $as_echo "$ac_try_echo") >&5
24380 (eval "$ac_compile") 2>conftest.er1
24382 grep -v '^ *+' conftest.er1 >conftest.err
24384 cat conftest.err >&5
24385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); } && {
24387 test -z "$ac_c_werror_flag" ||
24388 test ! -s conftest.err
24389 } && test -s conftest.$ac_objext; then
24392 cat >conftest.$ac_ext <<_ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h. */
24398 $ac_includes_default
24402 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24409 rm -f conftest.$ac_objext
24410 if { (ac_try="$ac_compile"
24411 case "(($ac_try" in
24412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413 *) ac_try_echo=$ac_try;;
24415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24416 $as_echo "$ac_try_echo") >&5
24417 (eval "$ac_compile") 2>conftest.er1
24419 grep -v '^ *+' conftest.er1 >conftest.err
24421 cat conftest.err >&5
24422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } && {
24424 test -z "$ac_c_werror_flag" ||
24425 test ! -s conftest.err
24426 } && test -s conftest.$ac_objext; then
24427 ac_hi=$ac_mid; break
24429 $as_echo "$as_me: failed program was:" >&5
24430 sed 's/^/| /' conftest.$ac_ext >&5
24432 ac_lo=`expr $ac_mid + 1`
24433 if test $ac_lo -le $ac_mid; then
24437 ac_mid=`expr 2 '*' $ac_mid + 1`
24440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24443 $as_echo "$as_me: failed program was:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24446 cat >conftest.$ac_ext <<_ACEOF
24449 cat confdefs.h >>conftest.$ac_ext
24450 cat >>conftest.$ac_ext <<_ACEOF
24451 /* end confdefs.h. */
24452 $ac_includes_default
24456 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24463 rm -f conftest.$ac_objext
24464 if { (ac_try="$ac_compile"
24465 case "(($ac_try" in
24466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467 *) ac_try_echo=$ac_try;;
24469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24470 $as_echo "$ac_try_echo") >&5
24471 (eval "$ac_compile") 2>conftest.er1
24473 grep -v '^ *+' conftest.er1 >conftest.err
24475 cat conftest.err >&5
24476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); } && {
24478 test -z "$ac_c_werror_flag" ||
24479 test ! -s conftest.err
24480 } && test -s conftest.$ac_objext; then
24483 cat >conftest.$ac_ext <<_ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 $ac_includes_default
24493 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24500 rm -f conftest.$ac_objext
24501 if { (ac_try="$ac_compile"
24502 case "(($ac_try" in
24503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504 *) ac_try_echo=$ac_try;;
24506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24507 $as_echo "$ac_try_echo") >&5
24508 (eval "$ac_compile") 2>conftest.er1
24510 grep -v '^ *+' conftest.er1 >conftest.err
24512 cat conftest.err >&5
24513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514 (exit $ac_status); } && {
24515 test -z "$ac_c_werror_flag" ||
24516 test ! -s conftest.err
24517 } && test -s conftest.$ac_objext; then
24518 ac_lo=$ac_mid; break
24520 $as_echo "$as_me: failed program was:" >&5
24521 sed 's/^/| /' conftest.$ac_ext >&5
24523 ac_hi=`expr '(' $ac_mid ')' - 1`
24524 if test $ac_mid -le $ac_hi; then
24528 ac_mid=`expr 2 '*' $ac_mid`
24531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24534 $as_echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24544 # Binary search between lo and hi bounds.
24545 while test "x$ac_lo" != "x$ac_hi"; do
24546 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24547 cat >conftest.$ac_ext <<_ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h. */
24553 $ac_includes_default
24557 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24564 rm -f conftest.$ac_objext
24565 if { (ac_try="$ac_compile"
24566 case "(($ac_try" in
24567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568 *) ac_try_echo=$ac_try;;
24570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24571 $as_echo "$ac_try_echo") >&5
24572 (eval "$ac_compile") 2>conftest.er1
24574 grep -v '^ *+' conftest.er1 >conftest.err
24576 cat conftest.err >&5
24577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578 (exit $ac_status); } && {
24579 test -z "$ac_c_werror_flag" ||
24580 test ! -s conftest.err
24581 } && test -s conftest.$ac_objext; then
24584 $as_echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24587 ac_lo=`expr '(' $ac_mid ')' + 1`
24590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24593 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24594 '') if test "$ac_cv_type_void_p" = yes; then
24595 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24597 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24598 See \`config.log' for more details." >&5
24599 $as_echo "$as_me: error: cannot compute sizeof (void *)
24600 See \`config.log' for more details." >&2;}
24601 { (exit 77); exit 77; }; }; }
24603 ac_cv_sizeof_void_p=0
24607 cat >conftest.$ac_ext <<_ACEOF
24610 cat confdefs.h >>conftest.$ac_ext
24611 cat >>conftest.$ac_ext <<_ACEOF
24612 /* end confdefs.h. */
24613 $ac_includes_default
24614 static long int longval () { return (long int) (sizeof (void *)); }
24615 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24617 #include <stdlib.h>
24622 FILE *f = fopen ("conftest.val", "w");
24625 if (((long int) (sizeof (void *))) < 0)
24627 long int i = longval ();
24628 if (i != ((long int) (sizeof (void *))))
24630 fprintf (f, "%ld", i);
24634 unsigned long int i = ulongval ();
24635 if (i != ((long int) (sizeof (void *))))
24637 fprintf (f, "%lu", i);
24639 /* Do not output a trailing newline, as this causes \r\n confusion
24640 on some platforms. */
24641 return ferror (f) || fclose (f) != 0;
24647 rm -f conftest$ac_exeext
24648 if { (ac_try="$ac_link"
24649 case "(($ac_try" in
24650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24651 *) ac_try_echo=$ac_try;;
24653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24654 $as_echo "$ac_try_echo") >&5
24655 (eval "$ac_link") 2>&5
24657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24659 { (case "(($ac_try" in
24660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24661 *) ac_try_echo=$ac_try;;
24663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24664 $as_echo "$ac_try_echo") >&5
24665 (eval "$ac_try") 2>&5
24667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; }; then
24669 ac_cv_sizeof_void_p=`cat conftest.val`
24671 $as_echo "$as_me: program exited with status $ac_status" >&5
24672 $as_echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24675 ( exit $ac_status )
24676 if test "$ac_cv_type_void_p" = yes; then
24677 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24679 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24680 See \`config.log' for more details." >&5
24681 $as_echo "$as_me: error: cannot compute sizeof (void *)
24682 See \`config.log' for more details." >&2;}
24683 { (exit 77); exit 77; }; }; }
24685 ac_cv_sizeof_void_p=0
24688 rm -rf conftest.dSYM
24689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24693 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24694 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24698 cat >>confdefs.h <<_ACEOF
24699 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24703 # The cast to long int works around a bug in the HP C Compiler
24704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24706 # This bug is HP SR number 8606223364.
24707 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24708 $as_echo_n "checking size of size_t... " >&6; }
24709 if test "${ac_cv_sizeof_size_t+set}" = set; then
24710 $as_echo_n "(cached) " >&6
24712 if test "$cross_compiling" = yes; then
24713 # Depending upon the size, compute the lo and hi bounds.
24714 cat >conftest.$ac_ext <<_ACEOF
24717 cat confdefs.h >>conftest.$ac_ext
24718 cat >>conftest.$ac_ext <<_ACEOF
24719 /* end confdefs.h. */
24720 $ac_includes_default
24724 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24731 rm -f conftest.$ac_objext
24732 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24741 grep -v '^ *+' conftest.er1 >conftest.err
24743 cat conftest.err >&5
24744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); } && {
24746 test -z "$ac_c_werror_flag" ||
24747 test ! -s conftest.err
24748 } && test -s conftest.$ac_objext; then
24751 cat >conftest.$ac_ext <<_ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24757 $ac_includes_default
24761 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24768 rm -f conftest.$ac_objext
24769 if { (ac_try="$ac_compile"
24770 case "(($ac_try" in
24771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24772 *) ac_try_echo=$ac_try;;
24774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24775 $as_echo "$ac_try_echo") >&5
24776 (eval "$ac_compile") 2>conftest.er1
24778 grep -v '^ *+' conftest.er1 >conftest.err
24780 cat conftest.err >&5
24781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } && {
24783 test -z "$ac_c_werror_flag" ||
24784 test ! -s conftest.err
24785 } && test -s conftest.$ac_objext; then
24786 ac_hi=$ac_mid; break
24788 $as_echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24791 ac_lo=`expr $ac_mid + 1`
24792 if test $ac_lo -le $ac_mid; then
24796 ac_mid=`expr 2 '*' $ac_mid + 1`
24799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24802 $as_echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24805 cat >conftest.$ac_ext <<_ACEOF
24808 cat confdefs.h >>conftest.$ac_ext
24809 cat >>conftest.$ac_ext <<_ACEOF
24810 /* end confdefs.h. */
24811 $ac_includes_default
24815 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24822 rm -f conftest.$ac_objext
24823 if { (ac_try="$ac_compile"
24824 case "(($ac_try" in
24825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826 *) ac_try_echo=$ac_try;;
24828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24829 $as_echo "$ac_try_echo") >&5
24830 (eval "$ac_compile") 2>conftest.er1
24832 grep -v '^ *+' conftest.er1 >conftest.err
24834 cat conftest.err >&5
24835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836 (exit $ac_status); } && {
24837 test -z "$ac_c_werror_flag" ||
24838 test ! -s conftest.err
24839 } && test -s conftest.$ac_objext; then
24842 cat >conftest.$ac_ext <<_ACEOF
24845 cat confdefs.h >>conftest.$ac_ext
24846 cat >>conftest.$ac_ext <<_ACEOF
24847 /* end confdefs.h. */
24848 $ac_includes_default
24852 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24859 rm -f conftest.$ac_objext
24860 if { (ac_try="$ac_compile"
24861 case "(($ac_try" in
24862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24863 *) ac_try_echo=$ac_try;;
24865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24866 $as_echo "$ac_try_echo") >&5
24867 (eval "$ac_compile") 2>conftest.er1
24869 grep -v '^ *+' conftest.er1 >conftest.err
24871 cat conftest.err >&5
24872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); } && {
24874 test -z "$ac_c_werror_flag" ||
24875 test ! -s conftest.err
24876 } && test -s conftest.$ac_objext; then
24877 ac_lo=$ac_mid; break
24879 $as_echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24882 ac_hi=`expr '(' $ac_mid ')' - 1`
24883 if test $ac_mid -le $ac_hi; then
24887 ac_mid=`expr 2 '*' $ac_mid`
24890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24893 $as_echo "$as_me: failed program was:" >&5
24894 sed 's/^/| /' conftest.$ac_ext >&5
24899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24903 # Binary search between lo and hi bounds.
24904 while test "x$ac_lo" != "x$ac_hi"; do
24905 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24906 cat >conftest.$ac_ext <<_ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h. */
24912 $ac_includes_default
24916 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24923 rm -f conftest.$ac_objext
24924 if { (ac_try="$ac_compile"
24925 case "(($ac_try" in
24926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24927 *) ac_try_echo=$ac_try;;
24929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24930 $as_echo "$ac_try_echo") >&5
24931 (eval "$ac_compile") 2>conftest.er1
24933 grep -v '^ *+' conftest.er1 >conftest.err
24935 cat conftest.err >&5
24936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } && {
24938 test -z "$ac_c_werror_flag" ||
24939 test ! -s conftest.err
24940 } && test -s conftest.$ac_objext; then
24943 $as_echo "$as_me: failed program was:" >&5
24944 sed 's/^/| /' conftest.$ac_ext >&5
24946 ac_lo=`expr '(' $ac_mid ')' + 1`
24949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24953 '') if test "$ac_cv_type_size_t" = yes; then
24954 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24956 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24957 See \`config.log' for more details." >&5
24958 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24959 See \`config.log' for more details." >&2;}
24960 { (exit 77); exit 77; }; }; }
24962 ac_cv_sizeof_size_t=0
24966 cat >conftest.$ac_ext <<_ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h. */
24972 $ac_includes_default
24973 static long int longval () { return (long int) (sizeof (size_t)); }
24974 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24976 #include <stdlib.h>
24981 FILE *f = fopen ("conftest.val", "w");
24984 if (((long int) (sizeof (size_t))) < 0)
24986 long int i = longval ();
24987 if (i != ((long int) (sizeof (size_t))))
24989 fprintf (f, "%ld", i);
24993 unsigned long int i = ulongval ();
24994 if (i != ((long int) (sizeof (size_t))))
24996 fprintf (f, "%lu", i);
24998 /* Do not output a trailing newline, as this causes \r\n confusion
24999 on some platforms. */
25000 return ferror (f) || fclose (f) != 0;
25006 rm -f conftest$ac_exeext
25007 if { (ac_try="$ac_link"
25008 case "(($ac_try" in
25009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25010 *) ac_try_echo=$ac_try;;
25012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25013 $as_echo "$ac_try_echo") >&5
25014 (eval "$ac_link") 2>&5
25016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25018 { (case "(($ac_try" in
25019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020 *) ac_try_echo=$ac_try;;
25022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25023 $as_echo "$ac_try_echo") >&5
25024 (eval "$ac_try") 2>&5
25026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027 (exit $ac_status); }; }; then
25028 ac_cv_sizeof_size_t=`cat conftest.val`
25030 $as_echo "$as_me: program exited with status $ac_status" >&5
25031 $as_echo "$as_me: failed program was:" >&5
25032 sed 's/^/| /' conftest.$ac_ext >&5
25034 ( exit $ac_status )
25035 if test "$ac_cv_type_size_t" = yes; then
25036 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25038 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25039 See \`config.log' for more details." >&5
25040 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25041 See \`config.log' for more details." >&2;}
25042 { (exit 77); exit 77; }; }; }
25044 ac_cv_sizeof_size_t=0
25047 rm -rf conftest.dSYM
25048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25052 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25053 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25057 cat >>confdefs.h <<_ACEOF
25058 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25062 # The cast to long int works around a bug in the HP C Compiler
25063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25065 # This bug is HP SR number 8606223364.
25066 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25067 $as_echo_n "checking size of long... " >&6; }
25068 if test "${ac_cv_sizeof_long+set}" = set; then
25069 $as_echo_n "(cached) " >&6
25071 if test "$cross_compiling" = yes; then
25072 # Depending upon the size, compute the lo and hi bounds.
25073 cat >conftest.$ac_ext <<_ACEOF
25076 cat confdefs.h >>conftest.$ac_ext
25077 cat >>conftest.$ac_ext <<_ACEOF
25078 /* end confdefs.h. */
25079 $ac_includes_default
25083 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25090 rm -f conftest.$ac_objext
25091 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25100 grep -v '^ *+' conftest.er1 >conftest.err
25102 cat conftest.err >&5
25103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); } && {
25105 test -z "$ac_c_werror_flag" ||
25106 test ! -s conftest.err
25107 } && test -s conftest.$ac_objext; then
25110 cat >conftest.$ac_ext <<_ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h. */
25116 $ac_includes_default
25120 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25127 rm -f conftest.$ac_objext
25128 if { (ac_try="$ac_compile"
25129 case "(($ac_try" in
25130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25134 $as_echo "$ac_try_echo") >&5
25135 (eval "$ac_compile") 2>conftest.er1
25137 grep -v '^ *+' conftest.er1 >conftest.err
25139 cat conftest.err >&5
25140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } && {
25142 test -z "$ac_c_werror_flag" ||
25143 test ! -s conftest.err
25144 } && test -s conftest.$ac_objext; then
25145 ac_hi=$ac_mid; break
25147 $as_echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25150 ac_lo=`expr $ac_mid + 1`
25151 if test $ac_lo -le $ac_mid; then
25155 ac_mid=`expr 2 '*' $ac_mid + 1`
25158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25161 $as_echo "$as_me: failed program was:" >&5
25162 sed 's/^/| /' conftest.$ac_ext >&5
25164 cat >conftest.$ac_ext <<_ACEOF
25167 cat confdefs.h >>conftest.$ac_ext
25168 cat >>conftest.$ac_ext <<_ACEOF
25169 /* end confdefs.h. */
25170 $ac_includes_default
25174 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25181 rm -f conftest.$ac_objext
25182 if { (ac_try="$ac_compile"
25183 case "(($ac_try" in
25184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185 *) ac_try_echo=$ac_try;;
25187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25188 $as_echo "$ac_try_echo") >&5
25189 (eval "$ac_compile") 2>conftest.er1
25191 grep -v '^ *+' conftest.er1 >conftest.err
25193 cat conftest.err >&5
25194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); } && {
25196 test -z "$ac_c_werror_flag" ||
25197 test ! -s conftest.err
25198 } && test -s conftest.$ac_objext; then
25201 cat >conftest.$ac_ext <<_ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25207 $ac_includes_default
25211 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25218 rm -f conftest.$ac_objext
25219 if { (ac_try="$ac_compile"
25220 case "(($ac_try" in
25221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25222 *) ac_try_echo=$ac_try;;
25224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25225 $as_echo "$ac_try_echo") >&5
25226 (eval "$ac_compile") 2>conftest.er1
25228 grep -v '^ *+' conftest.er1 >conftest.err
25230 cat conftest.err >&5
25231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232 (exit $ac_status); } && {
25233 test -z "$ac_c_werror_flag" ||
25234 test ! -s conftest.err
25235 } && test -s conftest.$ac_objext; then
25236 ac_lo=$ac_mid; break
25238 $as_echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.$ac_ext >&5
25241 ac_hi=`expr '(' $ac_mid ')' - 1`
25242 if test $ac_mid -le $ac_hi; then
25246 ac_mid=`expr 2 '*' $ac_mid`
25249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25252 $as_echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25262 # Binary search between lo and hi bounds.
25263 while test "x$ac_lo" != "x$ac_hi"; do
25264 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25265 cat >conftest.$ac_ext <<_ACEOF
25268 cat confdefs.h >>conftest.$ac_ext
25269 cat >>conftest.$ac_ext <<_ACEOF
25270 /* end confdefs.h. */
25271 $ac_includes_default
25275 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25282 rm -f conftest.$ac_objext
25283 if { (ac_try="$ac_compile"
25284 case "(($ac_try" in
25285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25286 *) ac_try_echo=$ac_try;;
25288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25289 $as_echo "$ac_try_echo") >&5
25290 (eval "$ac_compile") 2>conftest.er1
25292 grep -v '^ *+' conftest.er1 >conftest.err
25294 cat conftest.err >&5
25295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296 (exit $ac_status); } && {
25297 test -z "$ac_c_werror_flag" ||
25298 test ! -s conftest.err
25299 } && test -s conftest.$ac_objext; then
25302 $as_echo "$as_me: failed program was:" >&5
25303 sed 's/^/| /' conftest.$ac_ext >&5
25305 ac_lo=`expr '(' $ac_mid ')' + 1`
25308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25311 ?*) ac_cv_sizeof_long=$ac_lo;;
25312 '') if test "$ac_cv_type_long" = yes; then
25313 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25315 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25316 See \`config.log' for more details." >&5
25317 $as_echo "$as_me: error: cannot compute sizeof (long)
25318 See \`config.log' for more details." >&2;}
25319 { (exit 77); exit 77; }; }; }
25321 ac_cv_sizeof_long=0
25325 cat >conftest.$ac_ext <<_ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h. */
25331 $ac_includes_default
25332 static long int longval () { return (long int) (sizeof (long)); }
25333 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25335 #include <stdlib.h>
25340 FILE *f = fopen ("conftest.val", "w");
25343 if (((long int) (sizeof (long))) < 0)
25345 long int i = longval ();
25346 if (i != ((long int) (sizeof (long))))
25348 fprintf (f, "%ld", i);
25352 unsigned long int i = ulongval ();
25353 if (i != ((long int) (sizeof (long))))
25355 fprintf (f, "%lu", i);
25357 /* Do not output a trailing newline, as this causes \r\n confusion
25358 on some platforms. */
25359 return ferror (f) || fclose (f) != 0;
25365 rm -f conftest$ac_exeext
25366 if { (ac_try="$ac_link"
25367 case "(($ac_try" in
25368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25369 *) ac_try_echo=$ac_try;;
25371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25372 $as_echo "$ac_try_echo") >&5
25373 (eval "$ac_link") 2>&5
25375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25377 { (case "(($ac_try" in
25378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25379 *) ac_try_echo=$ac_try;;
25381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25382 $as_echo "$ac_try_echo") >&5
25383 (eval "$ac_try") 2>&5
25385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); }; }; then
25387 ac_cv_sizeof_long=`cat conftest.val`
25389 $as_echo "$as_me: program exited with status $ac_status" >&5
25390 $as_echo "$as_me: failed program was:" >&5
25391 sed 's/^/| /' conftest.$ac_ext >&5
25393 ( exit $ac_status )
25394 if test "$ac_cv_type_long" = yes; then
25395 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25397 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25398 See \`config.log' for more details." >&5
25399 $as_echo "$as_me: error: cannot compute sizeof (long)
25400 See \`config.log' for more details." >&2;}
25401 { (exit 77); exit 77; }; }; }
25403 ac_cv_sizeof_long=0
25406 rm -rf conftest.dSYM
25407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25411 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25412 $as_echo "$ac_cv_sizeof_long" >&6; }
25416 cat >>confdefs.h <<_ACEOF
25417 #define SIZEOF_LONG $ac_cv_sizeof_long
25422 # Decide whether float4 is passed by value: user-selectable, enabled by default
25423 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25424 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25427 # Check whether --enable-float4-byval was given.
25428 if test "${enable_float4_byval+set}" = set; then
25429 enableval=$enable_float4_byval;
25433 cat >>confdefs.h <<\_ACEOF
25434 #define USE_FLOAT4_BYVAL 1
25437 float4passbyval=true
25440 float4passbyval=false
25443 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25444 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25445 { (exit 1); exit 1; }; }
25450 enable_float4_byval=yes
25452 cat >>confdefs.h <<\_ACEOF
25453 #define USE_FLOAT4_BYVAL 1
25456 float4passbyval=true
25460 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25461 $as_echo "$enable_float4_byval" >&6; }
25463 cat >>confdefs.h <<_ACEOF
25464 #define FLOAT4PASSBYVAL $float4passbyval
25468 # Decide whether float8 is passed by value.
25469 # Note: this setting also controls int8 and related types such as timestamp.
25470 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25471 # If not, trying to select it is an error.
25472 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25473 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25474 if test $ac_cv_sizeof_void_p -ge 8 ; then
25477 # Check whether --enable-float8-byval was given.
25478 if test "${enable_float8_byval+set}" = set; then
25479 enableval=$enable_float8_byval;
25488 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25489 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25490 { (exit 1); exit 1; }; }
25495 enable_float8_byval=yes
25503 # Check whether --enable-float8-byval was given.
25504 if test "${enable_float8_byval+set}" = set; then
25505 enableval=$enable_float8_byval;
25514 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25515 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25516 { (exit 1); exit 1; }; }
25521 enable_float8_byval=no
25526 if test "$enable_float8_byval" = yes ; then
25527 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25528 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25529 { (exit 1); exit 1; }; }
25532 if test "$enable_float8_byval" = yes ; then
25534 cat >>confdefs.h <<\_ACEOF
25535 #define USE_FLOAT8_BYVAL 1
25538 float8passbyval=true
25540 float8passbyval=false
25542 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25543 $as_echo "$enable_float8_byval" >&6; }
25545 cat >>confdefs.h <<_ACEOF
25546 #define FLOAT8PASSBYVAL $float8passbyval
25550 # Determine memory alignment requirements for the basic C data types.
25552 # The cast to long int works around a bug in the HP C Compiler,
25553 # see AC_CHECK_SIZEOF for more information.
25554 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25555 $as_echo_n "checking alignment of short... " >&6; }
25556 if test "${ac_cv_alignof_short+set}" = set; then
25557 $as_echo_n "(cached) " >&6
25559 if test "$cross_compiling" = yes; then
25560 # Depending upon the size, compute the lo and hi bounds.
25561 cat >conftest.$ac_ext <<_ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h. */
25567 $ac_includes_default
25569 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25571 typedef struct { char x; short y; } ac__type_alignof_;
25575 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25582 rm -f conftest.$ac_objext
25583 if { (ac_try="$ac_compile"
25584 case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25589 $as_echo "$ac_try_echo") >&5
25590 (eval "$ac_compile") 2>conftest.er1
25592 grep -v '^ *+' conftest.er1 >conftest.err
25594 cat conftest.err >&5
25595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); } && {
25597 test -z "$ac_c_werror_flag" ||
25598 test ! -s conftest.err
25599 } && test -s conftest.$ac_objext; then
25602 cat >conftest.$ac_ext <<_ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h. */
25608 $ac_includes_default
25610 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25612 typedef struct { char x; short y; } ac__type_alignof_;
25616 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25623 rm -f conftest.$ac_objext
25624 if { (ac_try="$ac_compile"
25625 case "(($ac_try" in
25626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25627 *) ac_try_echo=$ac_try;;
25629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25630 $as_echo "$ac_try_echo") >&5
25631 (eval "$ac_compile") 2>conftest.er1
25633 grep -v '^ *+' conftest.er1 >conftest.err
25635 cat conftest.err >&5
25636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); } && {
25638 test -z "$ac_c_werror_flag" ||
25639 test ! -s conftest.err
25640 } && test -s conftest.$ac_objext; then
25641 ac_hi=$ac_mid; break
25643 $as_echo "$as_me: failed program was:" >&5
25644 sed 's/^/| /' conftest.$ac_ext >&5
25646 ac_lo=`expr $ac_mid + 1`
25647 if test $ac_lo -le $ac_mid; then
25651 ac_mid=`expr 2 '*' $ac_mid + 1`
25654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25657 $as_echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25660 cat >conftest.$ac_ext <<_ACEOF
25663 cat confdefs.h >>conftest.$ac_ext
25664 cat >>conftest.$ac_ext <<_ACEOF
25665 /* end confdefs.h. */
25666 $ac_includes_default
25668 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25670 typedef struct { char x; short y; } ac__type_alignof_;
25674 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25681 rm -f conftest.$ac_objext
25682 if { (ac_try="$ac_compile"
25683 case "(($ac_try" in
25684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685 *) ac_try_echo=$ac_try;;
25687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25688 $as_echo "$ac_try_echo") >&5
25689 (eval "$ac_compile") 2>conftest.er1
25691 grep -v '^ *+' conftest.er1 >conftest.err
25693 cat conftest.err >&5
25694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); } && {
25696 test -z "$ac_c_werror_flag" ||
25697 test ! -s conftest.err
25698 } && test -s conftest.$ac_objext; then
25701 cat >conftest.$ac_ext <<_ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h. */
25707 $ac_includes_default
25709 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25711 typedef struct { char x; short y; } ac__type_alignof_;
25715 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25722 rm -f conftest.$ac_objext
25723 if { (ac_try="$ac_compile"
25724 case "(($ac_try" in
25725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25726 *) ac_try_echo=$ac_try;;
25728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25729 $as_echo "$ac_try_echo") >&5
25730 (eval "$ac_compile") 2>conftest.er1
25732 grep -v '^ *+' conftest.er1 >conftest.err
25734 cat conftest.err >&5
25735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); } && {
25737 test -z "$ac_c_werror_flag" ||
25738 test ! -s conftest.err
25739 } && test -s conftest.$ac_objext; then
25740 ac_lo=$ac_mid; break
25742 $as_echo "$as_me: failed program was:" >&5
25743 sed 's/^/| /' conftest.$ac_ext >&5
25745 ac_hi=`expr '(' $ac_mid ')' - 1`
25746 if test $ac_mid -le $ac_hi; then
25750 ac_mid=`expr 2 '*' $ac_mid`
25753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25756 $as_echo "$as_me: failed program was:" >&5
25757 sed 's/^/| /' conftest.$ac_ext >&5
25762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25766 # Binary search between lo and hi bounds.
25767 while test "x$ac_lo" != "x$ac_hi"; do
25768 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25769 cat >conftest.$ac_ext <<_ACEOF
25772 cat confdefs.h >>conftest.$ac_ext
25773 cat >>conftest.$ac_ext <<_ACEOF
25774 /* end confdefs.h. */
25775 $ac_includes_default
25777 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25779 typedef struct { char x; short y; } ac__type_alignof_;
25783 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25790 rm -f conftest.$ac_objext
25791 if { (ac_try="$ac_compile"
25792 case "(($ac_try" in
25793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25794 *) ac_try_echo=$ac_try;;
25796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25797 $as_echo "$ac_try_echo") >&5
25798 (eval "$ac_compile") 2>conftest.er1
25800 grep -v '^ *+' conftest.er1 >conftest.err
25802 cat conftest.err >&5
25803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); } && {
25805 test -z "$ac_c_werror_flag" ||
25806 test ! -s conftest.err
25807 } && test -s conftest.$ac_objext; then
25810 $as_echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25813 ac_lo=`expr '(' $ac_mid ')' + 1`
25816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25819 ?*) ac_cv_alignof_short=$ac_lo;;
25820 '') if test "$ac_cv_type_short" = yes; then
25821 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25823 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25824 See \`config.log' for more details." >&5
25825 $as_echo "$as_me: error: cannot compute alignment of short
25826 See \`config.log' for more details." >&2;}
25827 { (exit 77); exit 77; }; }; }
25829 ac_cv_alignof_short=0
25833 cat >conftest.$ac_ext <<_ACEOF
25836 cat confdefs.h >>conftest.$ac_ext
25837 cat >>conftest.$ac_ext <<_ACEOF
25838 /* end confdefs.h. */
25839 $ac_includes_default
25841 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25843 typedef struct { char x; short y; } ac__type_alignof_;
25844 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25845 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25847 #include <stdlib.h>
25852 FILE *f = fopen ("conftest.val", "w");
25855 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25857 long int i = longval ();
25858 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25860 fprintf (f, "%ld", i);
25864 unsigned long int i = ulongval ();
25865 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25867 fprintf (f, "%lu", i);
25869 /* Do not output a trailing newline, as this causes \r\n confusion
25870 on some platforms. */
25871 return ferror (f) || fclose (f) != 0;
25877 rm -f conftest$ac_exeext
25878 if { (ac_try="$ac_link"
25879 case "(($ac_try" in
25880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25881 *) ac_try_echo=$ac_try;;
25883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25884 $as_echo "$ac_try_echo") >&5
25885 (eval "$ac_link") 2>&5
25887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25889 { (case "(($ac_try" in
25890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25891 *) ac_try_echo=$ac_try;;
25893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25894 $as_echo "$ac_try_echo") >&5
25895 (eval "$ac_try") 2>&5
25897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898 (exit $ac_status); }; }; then
25899 ac_cv_alignof_short=`cat conftest.val`
25901 $as_echo "$as_me: program exited with status $ac_status" >&5
25902 $as_echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.$ac_ext >&5
25905 ( exit $ac_status )
25906 if test "$ac_cv_type_short" = yes; then
25907 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25909 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25910 See \`config.log' for more details." >&5
25911 $as_echo "$as_me: error: cannot compute alignment of short
25912 See \`config.log' for more details." >&2;}
25913 { (exit 77); exit 77; }; }; }
25915 ac_cv_alignof_short=0
25918 rm -rf conftest.dSYM
25919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25923 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25924 $as_echo "$ac_cv_alignof_short" >&6; }
25928 cat >>confdefs.h <<_ACEOF
25929 #define ALIGNOF_SHORT $ac_cv_alignof_short
25933 # The cast to long int works around a bug in the HP C Compiler,
25934 # see AC_CHECK_SIZEOF for more information.
25935 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25936 $as_echo_n "checking alignment of int... " >&6; }
25937 if test "${ac_cv_alignof_int+set}" = set; then
25938 $as_echo_n "(cached) " >&6
25940 if test "$cross_compiling" = yes; then
25941 # Depending upon the size, compute the lo and hi bounds.
25942 cat >conftest.$ac_ext <<_ACEOF
25945 cat confdefs.h >>conftest.$ac_ext
25946 cat >>conftest.$ac_ext <<_ACEOF
25947 /* end confdefs.h. */
25948 $ac_includes_default
25950 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25952 typedef struct { char x; int y; } ac__type_alignof_;
25956 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25963 rm -f conftest.$ac_objext
25964 if { (ac_try="$ac_compile"
25965 case "(($ac_try" in
25966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25967 *) ac_try_echo=$ac_try;;
25969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25970 $as_echo "$ac_try_echo") >&5
25971 (eval "$ac_compile") 2>conftest.er1
25973 grep -v '^ *+' conftest.er1 >conftest.err
25975 cat conftest.err >&5
25976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); } && {
25978 test -z "$ac_c_werror_flag" ||
25979 test ! -s conftest.err
25980 } && test -s conftest.$ac_objext; then
25983 cat >conftest.$ac_ext <<_ACEOF
25986 cat confdefs.h >>conftest.$ac_ext
25987 cat >>conftest.$ac_ext <<_ACEOF
25988 /* end confdefs.h. */
25989 $ac_includes_default
25991 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25993 typedef struct { char x; int y; } ac__type_alignof_;
25997 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26004 rm -f conftest.$ac_objext
26005 if { (ac_try="$ac_compile"
26006 case "(($ac_try" in
26007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26008 *) ac_try_echo=$ac_try;;
26010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26011 $as_echo "$ac_try_echo") >&5
26012 (eval "$ac_compile") 2>conftest.er1
26014 grep -v '^ *+' conftest.er1 >conftest.err
26016 cat conftest.err >&5
26017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } && {
26019 test -z "$ac_c_werror_flag" ||
26020 test ! -s conftest.err
26021 } && test -s conftest.$ac_objext; then
26022 ac_hi=$ac_mid; break
26024 $as_echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26027 ac_lo=`expr $ac_mid + 1`
26028 if test $ac_lo -le $ac_mid; then
26032 ac_mid=`expr 2 '*' $ac_mid + 1`
26035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26038 $as_echo "$as_me: failed program was:" >&5
26039 sed 's/^/| /' conftest.$ac_ext >&5
26041 cat >conftest.$ac_ext <<_ACEOF
26044 cat confdefs.h >>conftest.$ac_ext
26045 cat >>conftest.$ac_ext <<_ACEOF
26046 /* end confdefs.h. */
26047 $ac_includes_default
26049 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26051 typedef struct { char x; int y; } ac__type_alignof_;
26055 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26062 rm -f conftest.$ac_objext
26063 if { (ac_try="$ac_compile"
26064 case "(($ac_try" in
26065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066 *) ac_try_echo=$ac_try;;
26068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26069 $as_echo "$ac_try_echo") >&5
26070 (eval "$ac_compile") 2>conftest.er1
26072 grep -v '^ *+' conftest.er1 >conftest.err
26074 cat conftest.err >&5
26075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076 (exit $ac_status); } && {
26077 test -z "$ac_c_werror_flag" ||
26078 test ! -s conftest.err
26079 } && test -s conftest.$ac_objext; then
26082 cat >conftest.$ac_ext <<_ACEOF
26085 cat confdefs.h >>conftest.$ac_ext
26086 cat >>conftest.$ac_ext <<_ACEOF
26087 /* end confdefs.h. */
26088 $ac_includes_default
26090 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26092 typedef struct { char x; int y; } ac__type_alignof_;
26096 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26103 rm -f conftest.$ac_objext
26104 if { (ac_try="$ac_compile"
26105 case "(($ac_try" in
26106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26107 *) ac_try_echo=$ac_try;;
26109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26110 $as_echo "$ac_try_echo") >&5
26111 (eval "$ac_compile") 2>conftest.er1
26113 grep -v '^ *+' conftest.er1 >conftest.err
26115 cat conftest.err >&5
26116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); } && {
26118 test -z "$ac_c_werror_flag" ||
26119 test ! -s conftest.err
26120 } && test -s conftest.$ac_objext; then
26121 ac_lo=$ac_mid; break
26123 $as_echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26126 ac_hi=`expr '(' $ac_mid ')' - 1`
26127 if test $ac_mid -le $ac_hi; then
26131 ac_mid=`expr 2 '*' $ac_mid`
26134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26137 $as_echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26147 # Binary search between lo and hi bounds.
26148 while test "x$ac_lo" != "x$ac_hi"; do
26149 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26150 cat >conftest.$ac_ext <<_ACEOF
26153 cat confdefs.h >>conftest.$ac_ext
26154 cat >>conftest.$ac_ext <<_ACEOF
26155 /* end confdefs.h. */
26156 $ac_includes_default
26158 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26160 typedef struct { char x; int y; } ac__type_alignof_;
26164 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26171 rm -f conftest.$ac_objext
26172 if { (ac_try="$ac_compile"
26173 case "(($ac_try" in
26174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175 *) ac_try_echo=$ac_try;;
26177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26178 $as_echo "$ac_try_echo") >&5
26179 (eval "$ac_compile") 2>conftest.er1
26181 grep -v '^ *+' conftest.er1 >conftest.err
26183 cat conftest.err >&5
26184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); } && {
26186 test -z "$ac_c_werror_flag" ||
26187 test ! -s conftest.err
26188 } && test -s conftest.$ac_objext; then
26191 $as_echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194 ac_lo=`expr '(' $ac_mid ')' + 1`
26197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26200 ?*) ac_cv_alignof_int=$ac_lo;;
26201 '') if test "$ac_cv_type_int" = yes; then
26202 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26204 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26205 See \`config.log' for more details." >&5
26206 $as_echo "$as_me: error: cannot compute alignment of int
26207 See \`config.log' for more details." >&2;}
26208 { (exit 77); exit 77; }; }; }
26210 ac_cv_alignof_int=0
26214 cat >conftest.$ac_ext <<_ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h. */
26220 $ac_includes_default
26222 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26224 typedef struct { char x; int y; } ac__type_alignof_;
26225 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26226 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26228 #include <stdlib.h>
26233 FILE *f = fopen ("conftest.val", "w");
26236 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26238 long int i = longval ();
26239 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26241 fprintf (f, "%ld", i);
26245 unsigned long int i = ulongval ();
26246 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26248 fprintf (f, "%lu", i);
26250 /* Do not output a trailing newline, as this causes \r\n confusion
26251 on some platforms. */
26252 return ferror (f) || fclose (f) != 0;
26258 rm -f conftest$ac_exeext
26259 if { (ac_try="$ac_link"
26260 case "(($ac_try" in
26261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26262 *) ac_try_echo=$ac_try;;
26264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26265 $as_echo "$ac_try_echo") >&5
26266 (eval "$ac_link") 2>&5
26268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26270 { (case "(($ac_try" in
26271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272 *) ac_try_echo=$ac_try;;
26274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26275 $as_echo "$ac_try_echo") >&5
26276 (eval "$ac_try") 2>&5
26278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); }; }; then
26280 ac_cv_alignof_int=`cat conftest.val`
26282 $as_echo "$as_me: program exited with status $ac_status" >&5
26283 $as_echo "$as_me: failed program was:" >&5
26284 sed 's/^/| /' conftest.$ac_ext >&5
26286 ( exit $ac_status )
26287 if test "$ac_cv_type_int" = yes; then
26288 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26290 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26291 See \`config.log' for more details." >&5
26292 $as_echo "$as_me: error: cannot compute alignment of int
26293 See \`config.log' for more details." >&2;}
26294 { (exit 77); exit 77; }; }; }
26296 ac_cv_alignof_int=0
26299 rm -rf conftest.dSYM
26300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26304 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26305 $as_echo "$ac_cv_alignof_int" >&6; }
26309 cat >>confdefs.h <<_ACEOF
26310 #define ALIGNOF_INT $ac_cv_alignof_int
26314 # The cast to long int works around a bug in the HP C Compiler,
26315 # see AC_CHECK_SIZEOF for more information.
26316 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26317 $as_echo_n "checking alignment of long... " >&6; }
26318 if test "${ac_cv_alignof_long+set}" = set; then
26319 $as_echo_n "(cached) " >&6
26321 if test "$cross_compiling" = yes; then
26322 # Depending upon the size, compute the lo and hi bounds.
26323 cat >conftest.$ac_ext <<_ACEOF
26326 cat confdefs.h >>conftest.$ac_ext
26327 cat >>conftest.$ac_ext <<_ACEOF
26328 /* end confdefs.h. */
26329 $ac_includes_default
26331 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26333 typedef struct { char x; long y; } ac__type_alignof_;
26337 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26344 rm -f conftest.$ac_objext
26345 if { (ac_try="$ac_compile"
26346 case "(($ac_try" in
26347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26348 *) ac_try_echo=$ac_try;;
26350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26351 $as_echo "$ac_try_echo") >&5
26352 (eval "$ac_compile") 2>conftest.er1
26354 grep -v '^ *+' conftest.er1 >conftest.err
26356 cat conftest.err >&5
26357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); } && {
26359 test -z "$ac_c_werror_flag" ||
26360 test ! -s conftest.err
26361 } && test -s conftest.$ac_objext; then
26364 cat >conftest.$ac_ext <<_ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h. */
26370 $ac_includes_default
26372 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26374 typedef struct { char x; long y; } ac__type_alignof_;
26378 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26385 rm -f conftest.$ac_objext
26386 if { (ac_try="$ac_compile"
26387 case "(($ac_try" in
26388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26389 *) ac_try_echo=$ac_try;;
26391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26392 $as_echo "$ac_try_echo") >&5
26393 (eval "$ac_compile") 2>conftest.er1
26395 grep -v '^ *+' conftest.er1 >conftest.err
26397 cat conftest.err >&5
26398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); } && {
26400 test -z "$ac_c_werror_flag" ||
26401 test ! -s conftest.err
26402 } && test -s conftest.$ac_objext; then
26403 ac_hi=$ac_mid; break
26405 $as_echo "$as_me: failed program was:" >&5
26406 sed 's/^/| /' conftest.$ac_ext >&5
26408 ac_lo=`expr $ac_mid + 1`
26409 if test $ac_lo -le $ac_mid; then
26413 ac_mid=`expr 2 '*' $ac_mid + 1`
26416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26419 $as_echo "$as_me: failed program was:" >&5
26420 sed 's/^/| /' conftest.$ac_ext >&5
26422 cat >conftest.$ac_ext <<_ACEOF
26425 cat confdefs.h >>conftest.$ac_ext
26426 cat >>conftest.$ac_ext <<_ACEOF
26427 /* end confdefs.h. */
26428 $ac_includes_default
26430 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26432 typedef struct { char x; long y; } ac__type_alignof_;
26436 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26443 rm -f conftest.$ac_objext
26444 if { (ac_try="$ac_compile"
26445 case "(($ac_try" in
26446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447 *) ac_try_echo=$ac_try;;
26449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26450 $as_echo "$ac_try_echo") >&5
26451 (eval "$ac_compile") 2>conftest.er1
26453 grep -v '^ *+' conftest.er1 >conftest.err
26455 cat conftest.err >&5
26456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); } && {
26458 test -z "$ac_c_werror_flag" ||
26459 test ! -s conftest.err
26460 } && test -s conftest.$ac_objext; then
26463 cat >conftest.$ac_ext <<_ACEOF
26466 cat confdefs.h >>conftest.$ac_ext
26467 cat >>conftest.$ac_ext <<_ACEOF
26468 /* end confdefs.h. */
26469 $ac_includes_default
26471 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26473 typedef struct { char x; long y; } ac__type_alignof_;
26477 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26484 rm -f conftest.$ac_objext
26485 if { (ac_try="$ac_compile"
26486 case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26491 $as_echo "$ac_try_echo") >&5
26492 (eval "$ac_compile") 2>conftest.er1
26494 grep -v '^ *+' conftest.er1 >conftest.err
26496 cat conftest.err >&5
26497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); } && {
26499 test -z "$ac_c_werror_flag" ||
26500 test ! -s conftest.err
26501 } && test -s conftest.$ac_objext; then
26502 ac_lo=$ac_mid; break
26504 $as_echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26507 ac_hi=`expr '(' $ac_mid ')' - 1`
26508 if test $ac_mid -le $ac_hi; then
26512 ac_mid=`expr 2 '*' $ac_mid`
26515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26518 $as_echo "$as_me: failed program was:" >&5
26519 sed 's/^/| /' conftest.$ac_ext >&5
26524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26528 # Binary search between lo and hi bounds.
26529 while test "x$ac_lo" != "x$ac_hi"; do
26530 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26531 cat >conftest.$ac_ext <<_ACEOF
26534 cat confdefs.h >>conftest.$ac_ext
26535 cat >>conftest.$ac_ext <<_ACEOF
26536 /* end confdefs.h. */
26537 $ac_includes_default
26539 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26541 typedef struct { char x; long y; } ac__type_alignof_;
26545 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26552 rm -f conftest.$ac_objext
26553 if { (ac_try="$ac_compile"
26554 case "(($ac_try" in
26555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26556 *) ac_try_echo=$ac_try;;
26558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26559 $as_echo "$ac_try_echo") >&5
26560 (eval "$ac_compile") 2>conftest.er1
26562 grep -v '^ *+' conftest.er1 >conftest.err
26564 cat conftest.err >&5
26565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); } && {
26567 test -z "$ac_c_werror_flag" ||
26568 test ! -s conftest.err
26569 } && test -s conftest.$ac_objext; then
26572 $as_echo "$as_me: failed program was:" >&5
26573 sed 's/^/| /' conftest.$ac_ext >&5
26575 ac_lo=`expr '(' $ac_mid ')' + 1`
26578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26581 ?*) ac_cv_alignof_long=$ac_lo;;
26582 '') if test "$ac_cv_type_long" = yes; then
26583 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26585 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26586 See \`config.log' for more details." >&5
26587 $as_echo "$as_me: error: cannot compute alignment of long
26588 See \`config.log' for more details." >&2;}
26589 { (exit 77); exit 77; }; }; }
26591 ac_cv_alignof_long=0
26595 cat >conftest.$ac_ext <<_ACEOF
26598 cat confdefs.h >>conftest.$ac_ext
26599 cat >>conftest.$ac_ext <<_ACEOF
26600 /* end confdefs.h. */
26601 $ac_includes_default
26603 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26605 typedef struct { char x; long y; } ac__type_alignof_;
26606 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26607 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26609 #include <stdlib.h>
26614 FILE *f = fopen ("conftest.val", "w");
26617 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26619 long int i = longval ();
26620 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26622 fprintf (f, "%ld", i);
26626 unsigned long int i = ulongval ();
26627 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26629 fprintf (f, "%lu", i);
26631 /* Do not output a trailing newline, as this causes \r\n confusion
26632 on some platforms. */
26633 return ferror (f) || fclose (f) != 0;
26639 rm -f conftest$ac_exeext
26640 if { (ac_try="$ac_link"
26641 case "(($ac_try" in
26642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26643 *) ac_try_echo=$ac_try;;
26645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26646 $as_echo "$ac_try_echo") >&5
26647 (eval "$ac_link") 2>&5
26649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26651 { (case "(($ac_try" in
26652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26653 *) ac_try_echo=$ac_try;;
26655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26656 $as_echo "$ac_try_echo") >&5
26657 (eval "$ac_try") 2>&5
26659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660 (exit $ac_status); }; }; then
26661 ac_cv_alignof_long=`cat conftest.val`
26663 $as_echo "$as_me: program exited with status $ac_status" >&5
26664 $as_echo "$as_me: failed program was:" >&5
26665 sed 's/^/| /' conftest.$ac_ext >&5
26667 ( exit $ac_status )
26668 if test "$ac_cv_type_long" = yes; then
26669 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26671 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26672 See \`config.log' for more details." >&5
26673 $as_echo "$as_me: error: cannot compute alignment of long
26674 See \`config.log' for more details." >&2;}
26675 { (exit 77); exit 77; }; }; }
26677 ac_cv_alignof_long=0
26680 rm -rf conftest.dSYM
26681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26685 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26686 $as_echo "$ac_cv_alignof_long" >&6; }
26690 cat >>confdefs.h <<_ACEOF
26691 #define ALIGNOF_LONG $ac_cv_alignof_long
26695 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26696 # The cast to long int works around a bug in the HP C Compiler,
26697 # see AC_CHECK_SIZEOF for more information.
26698 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26699 $as_echo_n "checking alignment of long long int... " >&6; }
26700 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26701 $as_echo_n "(cached) " >&6
26703 if test "$cross_compiling" = yes; then
26704 # Depending upon the size, compute the lo and hi bounds.
26705 cat >conftest.$ac_ext <<_ACEOF
26708 cat confdefs.h >>conftest.$ac_ext
26709 cat >>conftest.$ac_ext <<_ACEOF
26710 /* end confdefs.h. */
26711 $ac_includes_default
26713 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26715 typedef struct { char x; long long int y; } ac__type_alignof_;
26719 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26726 rm -f conftest.$ac_objext
26727 if { (ac_try="$ac_compile"
26728 case "(($ac_try" in
26729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26730 *) ac_try_echo=$ac_try;;
26732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26733 $as_echo "$ac_try_echo") >&5
26734 (eval "$ac_compile") 2>conftest.er1
26736 grep -v '^ *+' conftest.er1 >conftest.err
26738 cat conftest.err >&5
26739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); } && {
26741 test -z "$ac_c_werror_flag" ||
26742 test ! -s conftest.err
26743 } && test -s conftest.$ac_objext; then
26746 cat >conftest.$ac_ext <<_ACEOF
26749 cat confdefs.h >>conftest.$ac_ext
26750 cat >>conftest.$ac_ext <<_ACEOF
26751 /* end confdefs.h. */
26752 $ac_includes_default
26754 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26756 typedef struct { char x; long long int y; } ac__type_alignof_;
26760 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26767 rm -f conftest.$ac_objext
26768 if { (ac_try="$ac_compile"
26769 case "(($ac_try" in
26770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26771 *) ac_try_echo=$ac_try;;
26773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26774 $as_echo "$ac_try_echo") >&5
26775 (eval "$ac_compile") 2>conftest.er1
26777 grep -v '^ *+' conftest.er1 >conftest.err
26779 cat conftest.err >&5
26780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); } && {
26782 test -z "$ac_c_werror_flag" ||
26783 test ! -s conftest.err
26784 } && test -s conftest.$ac_objext; then
26785 ac_hi=$ac_mid; break
26787 $as_echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26790 ac_lo=`expr $ac_mid + 1`
26791 if test $ac_lo -le $ac_mid; then
26795 ac_mid=`expr 2 '*' $ac_mid + 1`
26798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26801 $as_echo "$as_me: failed program was:" >&5
26802 sed 's/^/| /' conftest.$ac_ext >&5
26804 cat >conftest.$ac_ext <<_ACEOF
26807 cat confdefs.h >>conftest.$ac_ext
26808 cat >>conftest.$ac_ext <<_ACEOF
26809 /* end confdefs.h. */
26810 $ac_includes_default
26812 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26814 typedef struct { char x; long long int y; } ac__type_alignof_;
26818 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26825 rm -f conftest.$ac_objext
26826 if { (ac_try="$ac_compile"
26827 case "(($ac_try" in
26828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26829 *) ac_try_echo=$ac_try;;
26831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26832 $as_echo "$ac_try_echo") >&5
26833 (eval "$ac_compile") 2>conftest.er1
26835 grep -v '^ *+' conftest.er1 >conftest.err
26837 cat conftest.err >&5
26838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); } && {
26840 test -z "$ac_c_werror_flag" ||
26841 test ! -s conftest.err
26842 } && test -s conftest.$ac_objext; then
26845 cat >conftest.$ac_ext <<_ACEOF
26848 cat confdefs.h >>conftest.$ac_ext
26849 cat >>conftest.$ac_ext <<_ACEOF
26850 /* end confdefs.h. */
26851 $ac_includes_default
26853 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26855 typedef struct { char x; long long int y; } ac__type_alignof_;
26859 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26866 rm -f conftest.$ac_objext
26867 if { (ac_try="$ac_compile"
26868 case "(($ac_try" in
26869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26870 *) ac_try_echo=$ac_try;;
26872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26873 $as_echo "$ac_try_echo") >&5
26874 (eval "$ac_compile") 2>conftest.er1
26876 grep -v '^ *+' conftest.er1 >conftest.err
26878 cat conftest.err >&5
26879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); } && {
26881 test -z "$ac_c_werror_flag" ||
26882 test ! -s conftest.err
26883 } && test -s conftest.$ac_objext; then
26884 ac_lo=$ac_mid; break
26886 $as_echo "$as_me: failed program was:" >&5
26887 sed 's/^/| /' conftest.$ac_ext >&5
26889 ac_hi=`expr '(' $ac_mid ')' - 1`
26890 if test $ac_mid -le $ac_hi; then
26894 ac_mid=`expr 2 '*' $ac_mid`
26897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26900 $as_echo "$as_me: failed program was:" >&5
26901 sed 's/^/| /' conftest.$ac_ext >&5
26906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26910 # Binary search between lo and hi bounds.
26911 while test "x$ac_lo" != "x$ac_hi"; do
26912 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26913 cat >conftest.$ac_ext <<_ACEOF
26916 cat confdefs.h >>conftest.$ac_ext
26917 cat >>conftest.$ac_ext <<_ACEOF
26918 /* end confdefs.h. */
26919 $ac_includes_default
26921 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26923 typedef struct { char x; long long int y; } ac__type_alignof_;
26927 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26934 rm -f conftest.$ac_objext
26935 if { (ac_try="$ac_compile"
26936 case "(($ac_try" in
26937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26941 $as_echo "$ac_try_echo") >&5
26942 (eval "$ac_compile") 2>conftest.er1
26944 grep -v '^ *+' conftest.er1 >conftest.err
26946 cat conftest.err >&5
26947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); } && {
26949 test -z "$ac_c_werror_flag" ||
26950 test ! -s conftest.err
26951 } && test -s conftest.$ac_objext; then
26954 $as_echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26957 ac_lo=`expr '(' $ac_mid ')' + 1`
26960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26963 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26964 '') if test "$ac_cv_type_long_long_int" = yes; then
26965 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26967 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26968 See \`config.log' for more details." >&5
26969 $as_echo "$as_me: error: cannot compute alignment of long long int
26970 See \`config.log' for more details." >&2;}
26971 { (exit 77); exit 77; }; }; }
26973 ac_cv_alignof_long_long_int=0
26977 cat >conftest.$ac_ext <<_ACEOF
26980 cat confdefs.h >>conftest.$ac_ext
26981 cat >>conftest.$ac_ext <<_ACEOF
26982 /* end confdefs.h. */
26983 $ac_includes_default
26985 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26987 typedef struct { char x; long long int y; } ac__type_alignof_;
26988 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26989 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26991 #include <stdlib.h>
26996 FILE *f = fopen ("conftest.val", "w");
26999 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27001 long int i = longval ();
27002 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27004 fprintf (f, "%ld", i);
27008 unsigned long int i = ulongval ();
27009 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27011 fprintf (f, "%lu", i);
27013 /* Do not output a trailing newline, as this causes \r\n confusion
27014 on some platforms. */
27015 return ferror (f) || fclose (f) != 0;
27021 rm -f conftest$ac_exeext
27022 if { (ac_try="$ac_link"
27023 case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27028 $as_echo "$ac_try_echo") >&5
27029 (eval "$ac_link") 2>&5
27031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27033 { (case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27038 $as_echo "$ac_try_echo") >&5
27039 (eval "$ac_try") 2>&5
27041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); }; }; then
27043 ac_cv_alignof_long_long_int=`cat conftest.val`
27045 $as_echo "$as_me: program exited with status $ac_status" >&5
27046 $as_echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27049 ( exit $ac_status )
27050 if test "$ac_cv_type_long_long_int" = yes; then
27051 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27053 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27054 See \`config.log' for more details." >&5
27055 $as_echo "$as_me: error: cannot compute alignment of long long int
27056 See \`config.log' for more details." >&2;}
27057 { (exit 77); exit 77; }; }; }
27059 ac_cv_alignof_long_long_int=0
27062 rm -rf conftest.dSYM
27063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27067 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27068 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27072 cat >>confdefs.h <<_ACEOF
27073 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27078 # The cast to long int works around a bug in the HP C Compiler,
27079 # see AC_CHECK_SIZEOF for more information.
27080 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27081 $as_echo_n "checking alignment of double... " >&6; }
27082 if test "${ac_cv_alignof_double+set}" = set; then
27083 $as_echo_n "(cached) " >&6
27085 if test "$cross_compiling" = yes; then
27086 # Depending upon the size, compute the lo and hi bounds.
27087 cat >conftest.$ac_ext <<_ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h. */
27093 $ac_includes_default
27095 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27097 typedef struct { char x; double y; } ac__type_alignof_;
27101 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27108 rm -f conftest.$ac_objext
27109 if { (ac_try="$ac_compile"
27110 case "(($ac_try" in
27111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27112 *) ac_try_echo=$ac_try;;
27114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27115 $as_echo "$ac_try_echo") >&5
27116 (eval "$ac_compile") 2>conftest.er1
27118 grep -v '^ *+' conftest.er1 >conftest.err
27120 cat conftest.err >&5
27121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); } && {
27123 test -z "$ac_c_werror_flag" ||
27124 test ! -s conftest.err
27125 } && test -s conftest.$ac_objext; then
27128 cat >conftest.$ac_ext <<_ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h. */
27134 $ac_includes_default
27136 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27138 typedef struct { char x; double y; } ac__type_alignof_;
27142 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27149 rm -f conftest.$ac_objext
27150 if { (ac_try="$ac_compile"
27151 case "(($ac_try" in
27152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153 *) ac_try_echo=$ac_try;;
27155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27156 $as_echo "$ac_try_echo") >&5
27157 (eval "$ac_compile") 2>conftest.er1
27159 grep -v '^ *+' conftest.er1 >conftest.err
27161 cat conftest.err >&5
27162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163 (exit $ac_status); } && {
27164 test -z "$ac_c_werror_flag" ||
27165 test ! -s conftest.err
27166 } && test -s conftest.$ac_objext; then
27167 ac_hi=$ac_mid; break
27169 $as_echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27172 ac_lo=`expr $ac_mid + 1`
27173 if test $ac_lo -le $ac_mid; then
27177 ac_mid=`expr 2 '*' $ac_mid + 1`
27180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27183 $as_echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27186 cat >conftest.$ac_ext <<_ACEOF
27189 cat confdefs.h >>conftest.$ac_ext
27190 cat >>conftest.$ac_ext <<_ACEOF
27191 /* end confdefs.h. */
27192 $ac_includes_default
27194 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27196 typedef struct { char x; double y; } ac__type_alignof_;
27200 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27207 rm -f conftest.$ac_objext
27208 if { (ac_try="$ac_compile"
27209 case "(($ac_try" in
27210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27211 *) ac_try_echo=$ac_try;;
27213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27214 $as_echo "$ac_try_echo") >&5
27215 (eval "$ac_compile") 2>conftest.er1
27217 grep -v '^ *+' conftest.er1 >conftest.err
27219 cat conftest.err >&5
27220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); } && {
27222 test -z "$ac_c_werror_flag" ||
27223 test ! -s conftest.err
27224 } && test -s conftest.$ac_objext; then
27227 cat >conftest.$ac_ext <<_ACEOF
27230 cat confdefs.h >>conftest.$ac_ext
27231 cat >>conftest.$ac_ext <<_ACEOF
27232 /* end confdefs.h. */
27233 $ac_includes_default
27235 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27237 typedef struct { char x; double y; } ac__type_alignof_;
27241 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27248 rm -f conftest.$ac_objext
27249 if { (ac_try="$ac_compile"
27250 case "(($ac_try" in
27251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27252 *) ac_try_echo=$ac_try;;
27254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27255 $as_echo "$ac_try_echo") >&5
27256 (eval "$ac_compile") 2>conftest.er1
27258 grep -v '^ *+' conftest.er1 >conftest.err
27260 cat conftest.err >&5
27261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); } && {
27263 test -z "$ac_c_werror_flag" ||
27264 test ! -s conftest.err
27265 } && test -s conftest.$ac_objext; then
27266 ac_lo=$ac_mid; break
27268 $as_echo "$as_me: failed program was:" >&5
27269 sed 's/^/| /' conftest.$ac_ext >&5
27271 ac_hi=`expr '(' $ac_mid ')' - 1`
27272 if test $ac_mid -le $ac_hi; then
27276 ac_mid=`expr 2 '*' $ac_mid`
27279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27282 $as_echo "$as_me: failed program was:" >&5
27283 sed 's/^/| /' conftest.$ac_ext >&5
27288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27292 # Binary search between lo and hi bounds.
27293 while test "x$ac_lo" != "x$ac_hi"; do
27294 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27295 cat >conftest.$ac_ext <<_ACEOF
27298 cat confdefs.h >>conftest.$ac_ext
27299 cat >>conftest.$ac_ext <<_ACEOF
27300 /* end confdefs.h. */
27301 $ac_includes_default
27303 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27305 typedef struct { char x; double y; } ac__type_alignof_;
27309 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27316 rm -f conftest.$ac_objext
27317 if { (ac_try="$ac_compile"
27318 case "(($ac_try" in
27319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27320 *) ac_try_echo=$ac_try;;
27322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27323 $as_echo "$ac_try_echo") >&5
27324 (eval "$ac_compile") 2>conftest.er1
27326 grep -v '^ *+' conftest.er1 >conftest.err
27328 cat conftest.err >&5
27329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); } && {
27331 test -z "$ac_c_werror_flag" ||
27332 test ! -s conftest.err
27333 } && test -s conftest.$ac_objext; then
27336 $as_echo "$as_me: failed program was:" >&5
27337 sed 's/^/| /' conftest.$ac_ext >&5
27339 ac_lo=`expr '(' $ac_mid ')' + 1`
27342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27345 ?*) ac_cv_alignof_double=$ac_lo;;
27346 '') if test "$ac_cv_type_double" = yes; then
27347 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27349 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27350 See \`config.log' for more details." >&5
27351 $as_echo "$as_me: error: cannot compute alignment of double
27352 See \`config.log' for more details." >&2;}
27353 { (exit 77); exit 77; }; }; }
27355 ac_cv_alignof_double=0
27359 cat >conftest.$ac_ext <<_ACEOF
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h. */
27365 $ac_includes_default
27367 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27369 typedef struct { char x; double y; } ac__type_alignof_;
27370 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27371 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27373 #include <stdlib.h>
27378 FILE *f = fopen ("conftest.val", "w");
27381 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27383 long int i = longval ();
27384 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27386 fprintf (f, "%ld", i);
27390 unsigned long int i = ulongval ();
27391 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27393 fprintf (f, "%lu", i);
27395 /* Do not output a trailing newline, as this causes \r\n confusion
27396 on some platforms. */
27397 return ferror (f) || fclose (f) != 0;
27403 rm -f conftest$ac_exeext
27404 if { (ac_try="$ac_link"
27405 case "(($ac_try" in
27406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407 *) ac_try_echo=$ac_try;;
27409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27410 $as_echo "$ac_try_echo") >&5
27411 (eval "$ac_link") 2>&5
27413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27415 { (case "(($ac_try" in
27416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417 *) ac_try_echo=$ac_try;;
27419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27420 $as_echo "$ac_try_echo") >&5
27421 (eval "$ac_try") 2>&5
27423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); }; }; then
27425 ac_cv_alignof_double=`cat conftest.val`
27427 $as_echo "$as_me: program exited with status $ac_status" >&5
27428 $as_echo "$as_me: failed program was:" >&5
27429 sed 's/^/| /' conftest.$ac_ext >&5
27431 ( exit $ac_status )
27432 if test "$ac_cv_type_double" = yes; then
27433 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27435 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27436 See \`config.log' for more details." >&5
27437 $as_echo "$as_me: error: cannot compute alignment of double
27438 See \`config.log' for more details." >&2;}
27439 { (exit 77); exit 77; }; }; }
27441 ac_cv_alignof_double=0
27444 rm -rf conftest.dSYM
27445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27449 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27450 $as_echo "$ac_cv_alignof_double" >&6; }
27454 cat >>confdefs.h <<_ACEOF
27455 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27460 # Compute maximum alignment of any basic type.
27461 # We assume long's alignment is at least as strong as char, short, or int;
27462 # but we must check long long (if it exists) and double.
27464 MAX_ALIGNOF=$ac_cv_alignof_long
27465 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27466 MAX_ALIGNOF=$ac_cv_alignof_double
27468 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27469 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27472 cat >>confdefs.h <<_ACEOF
27473 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27478 # Some platforms predefine the types int8, int16, etc. Only check
27479 # a (hopefully) representative subset.
27480 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27481 $as_echo_n "checking for int8... " >&6; }
27482 if test "${ac_cv_type_int8+set}" = set; then
27483 $as_echo_n "(cached) " >&6
27486 cat >conftest.$ac_ext <<_ACEOF
27489 cat confdefs.h >>conftest.$ac_ext
27490 cat >>conftest.$ac_ext <<_ACEOF
27491 /* end confdefs.h. */
27493 #ifdef HAVE_SUPPORTDEFS_H
27494 #include <SupportDefs.h>
27506 rm -f conftest.$ac_objext
27507 if { (ac_try="$ac_compile"
27508 case "(($ac_try" in
27509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510 *) ac_try_echo=$ac_try;;
27512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27513 $as_echo "$ac_try_echo") >&5
27514 (eval "$ac_compile") 2>conftest.er1
27516 grep -v '^ *+' conftest.er1 >conftest.err
27518 cat conftest.err >&5
27519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); } && {
27521 test -z "$ac_c_werror_flag" ||
27522 test ! -s conftest.err
27523 } && test -s conftest.$ac_objext; then
27524 cat >conftest.$ac_ext <<_ACEOF
27527 cat confdefs.h >>conftest.$ac_ext
27528 cat >>conftest.$ac_ext <<_ACEOF
27529 /* end confdefs.h. */
27531 #ifdef HAVE_SUPPORTDEFS_H
27532 #include <SupportDefs.h>
27538 if (sizeof ((int8)))
27544 rm -f conftest.$ac_objext
27545 if { (ac_try="$ac_compile"
27546 case "(($ac_try" in
27547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27548 *) ac_try_echo=$ac_try;;
27550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27551 $as_echo "$ac_try_echo") >&5
27552 (eval "$ac_compile") 2>conftest.er1
27554 grep -v '^ *+' conftest.er1 >conftest.err
27556 cat conftest.err >&5
27557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); } && {
27559 test -z "$ac_c_werror_flag" ||
27560 test ! -s conftest.err
27561 } && test -s conftest.$ac_objext; then
27564 $as_echo "$as_me: failed program was:" >&5
27565 sed 's/^/| /' conftest.$ac_ext >&5
27567 ac_cv_type_int8=yes
27570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27572 $as_echo "$as_me: failed program was:" >&5
27573 sed 's/^/| /' conftest.$ac_ext >&5
27578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27580 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27581 $as_echo "$ac_cv_type_int8" >&6; }
27582 if test "x$ac_cv_type_int8" = x""yes; then
27584 cat >>confdefs.h <<_ACEOF
27585 #define HAVE_INT8 1
27590 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27591 $as_echo_n "checking for uint8... " >&6; }
27592 if test "${ac_cv_type_uint8+set}" = set; then
27593 $as_echo_n "(cached) " >&6
27595 ac_cv_type_uint8=no
27596 cat >conftest.$ac_ext <<_ACEOF
27599 cat confdefs.h >>conftest.$ac_ext
27600 cat >>conftest.$ac_ext <<_ACEOF
27601 /* end confdefs.h. */
27603 #ifdef HAVE_SUPPORTDEFS_H
27604 #include <SupportDefs.h>
27610 if (sizeof (uint8))
27616 rm -f conftest.$ac_objext
27617 if { (ac_try="$ac_compile"
27618 case "(($ac_try" in
27619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27620 *) ac_try_echo=$ac_try;;
27622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27623 $as_echo "$ac_try_echo") >&5
27624 (eval "$ac_compile") 2>conftest.er1
27626 grep -v '^ *+' conftest.er1 >conftest.err
27628 cat conftest.err >&5
27629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); } && {
27631 test -z "$ac_c_werror_flag" ||
27632 test ! -s conftest.err
27633 } && test -s conftest.$ac_objext; then
27634 cat >conftest.$ac_ext <<_ACEOF
27637 cat confdefs.h >>conftest.$ac_ext
27638 cat >>conftest.$ac_ext <<_ACEOF
27639 /* end confdefs.h. */
27641 #ifdef HAVE_SUPPORTDEFS_H
27642 #include <SupportDefs.h>
27648 if (sizeof ((uint8)))
27654 rm -f conftest.$ac_objext
27655 if { (ac_try="$ac_compile"
27656 case "(($ac_try" in
27657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658 *) ac_try_echo=$ac_try;;
27660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27661 $as_echo "$ac_try_echo") >&5
27662 (eval "$ac_compile") 2>conftest.er1
27664 grep -v '^ *+' conftest.er1 >conftest.err
27666 cat conftest.err >&5
27667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } && {
27669 test -z "$ac_c_werror_flag" ||
27670 test ! -s conftest.err
27671 } && test -s conftest.$ac_objext; then
27674 $as_echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27677 ac_cv_type_uint8=yes
27680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27682 $as_echo "$as_me: failed program was:" >&5
27683 sed 's/^/| /' conftest.$ac_ext >&5
27688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27690 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27691 $as_echo "$ac_cv_type_uint8" >&6; }
27692 if test "x$ac_cv_type_uint8" = x""yes; then
27694 cat >>confdefs.h <<_ACEOF
27695 #define HAVE_UINT8 1
27700 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27701 $as_echo_n "checking for int64... " >&6; }
27702 if test "${ac_cv_type_int64+set}" = set; then
27703 $as_echo_n "(cached) " >&6
27705 ac_cv_type_int64=no
27706 cat >conftest.$ac_ext <<_ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h. */
27713 #ifdef HAVE_SUPPORTDEFS_H
27714 #include <SupportDefs.h>
27720 if (sizeof (int64))
27726 rm -f conftest.$ac_objext
27727 if { (ac_try="$ac_compile"
27728 case "(($ac_try" in
27729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27730 *) ac_try_echo=$ac_try;;
27732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27733 $as_echo "$ac_try_echo") >&5
27734 (eval "$ac_compile") 2>conftest.er1
27736 grep -v '^ *+' conftest.er1 >conftest.err
27738 cat conftest.err >&5
27739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); } && {
27741 test -z "$ac_c_werror_flag" ||
27742 test ! -s conftest.err
27743 } && test -s conftest.$ac_objext; then
27744 cat >conftest.$ac_ext <<_ACEOF
27747 cat confdefs.h >>conftest.$ac_ext
27748 cat >>conftest.$ac_ext <<_ACEOF
27749 /* end confdefs.h. */
27751 #ifdef HAVE_SUPPORTDEFS_H
27752 #include <SupportDefs.h>
27758 if (sizeof ((int64)))
27764 rm -f conftest.$ac_objext
27765 if { (ac_try="$ac_compile"
27766 case "(($ac_try" in
27767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27768 *) ac_try_echo=$ac_try;;
27770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27771 $as_echo "$ac_try_echo") >&5
27772 (eval "$ac_compile") 2>conftest.er1
27774 grep -v '^ *+' conftest.er1 >conftest.err
27776 cat conftest.err >&5
27777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); } && {
27779 test -z "$ac_c_werror_flag" ||
27780 test ! -s conftest.err
27781 } && test -s conftest.$ac_objext; then
27784 $as_echo "$as_me: failed program was:" >&5
27785 sed 's/^/| /' conftest.$ac_ext >&5
27787 ac_cv_type_int64=yes
27790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27792 $as_echo "$as_me: failed program was:" >&5
27793 sed 's/^/| /' conftest.$ac_ext >&5
27798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27800 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27801 $as_echo "$ac_cv_type_int64" >&6; }
27802 if test "x$ac_cv_type_int64" = x""yes; then
27804 cat >>confdefs.h <<_ACEOF
27805 #define HAVE_INT64 1
27810 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27811 $as_echo_n "checking for uint64... " >&6; }
27812 if test "${ac_cv_type_uint64+set}" = set; then
27813 $as_echo_n "(cached) " >&6
27815 ac_cv_type_uint64=no
27816 cat >conftest.$ac_ext <<_ACEOF
27819 cat confdefs.h >>conftest.$ac_ext
27820 cat >>conftest.$ac_ext <<_ACEOF
27821 /* end confdefs.h. */
27823 #ifdef HAVE_SUPPORTDEFS_H
27824 #include <SupportDefs.h>
27830 if (sizeof (uint64))
27836 rm -f conftest.$ac_objext
27837 if { (ac_try="$ac_compile"
27838 case "(($ac_try" in
27839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27840 *) ac_try_echo=$ac_try;;
27842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27843 $as_echo "$ac_try_echo") >&5
27844 (eval "$ac_compile") 2>conftest.er1
27846 grep -v '^ *+' conftest.er1 >conftest.err
27848 cat conftest.err >&5
27849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); } && {
27851 test -z "$ac_c_werror_flag" ||
27852 test ! -s conftest.err
27853 } && test -s conftest.$ac_objext; then
27854 cat >conftest.$ac_ext <<_ACEOF
27857 cat confdefs.h >>conftest.$ac_ext
27858 cat >>conftest.$ac_ext <<_ACEOF
27859 /* end confdefs.h. */
27861 #ifdef HAVE_SUPPORTDEFS_H
27862 #include <SupportDefs.h>
27868 if (sizeof ((uint64)))
27874 rm -f conftest.$ac_objext
27875 if { (ac_try="$ac_compile"
27876 case "(($ac_try" in
27877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878 *) ac_try_echo=$ac_try;;
27880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27881 $as_echo "$ac_try_echo") >&5
27882 (eval "$ac_compile") 2>conftest.er1
27884 grep -v '^ *+' conftest.er1 >conftest.err
27886 cat conftest.err >&5
27887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); } && {
27889 test -z "$ac_c_werror_flag" ||
27890 test ! -s conftest.err
27891 } && test -s conftest.$ac_objext; then
27894 $as_echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27897 ac_cv_type_uint64=yes
27900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27902 $as_echo "$as_me: failed program was:" >&5
27903 sed 's/^/| /' conftest.$ac_ext >&5
27908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27910 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27911 $as_echo "$ac_cv_type_uint64" >&6; }
27912 if test "x$ac_cv_type_uint64" = x""yes; then
27914 cat >>confdefs.h <<_ACEOF
27915 #define HAVE_UINT64 1
27922 # We also check for sig_atomic_t, which *should* be defined per ANSI
27923 # C, but is missing on some old platforms.
27924 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27925 $as_echo_n "checking for sig_atomic_t... " >&6; }
27926 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27927 $as_echo_n "(cached) " >&6
27929 ac_cv_type_sig_atomic_t=no
27930 cat >conftest.$ac_ext <<_ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h. */
27936 #include <signal.h>
27941 if (sizeof (sig_atomic_t))
27947 rm -f conftest.$ac_objext
27948 if { (ac_try="$ac_compile"
27949 case "(($ac_try" in
27950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951 *) ac_try_echo=$ac_try;;
27953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27954 $as_echo "$ac_try_echo") >&5
27955 (eval "$ac_compile") 2>conftest.er1
27957 grep -v '^ *+' conftest.er1 >conftest.err
27959 cat conftest.err >&5
27960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); } && {
27962 test -z "$ac_c_werror_flag" ||
27963 test ! -s conftest.err
27964 } && test -s conftest.$ac_objext; then
27965 cat >conftest.$ac_ext <<_ACEOF
27968 cat confdefs.h >>conftest.$ac_ext
27969 cat >>conftest.$ac_ext <<_ACEOF
27970 /* end confdefs.h. */
27971 #include <signal.h>
27976 if (sizeof ((sig_atomic_t)))
27982 rm -f conftest.$ac_objext
27983 if { (ac_try="$ac_compile"
27984 case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27989 $as_echo "$ac_try_echo") >&5
27990 (eval "$ac_compile") 2>conftest.er1
27992 grep -v '^ *+' conftest.er1 >conftest.err
27994 cat conftest.err >&5
27995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); } && {
27997 test -z "$ac_c_werror_flag" ||
27998 test ! -s conftest.err
27999 } && test -s conftest.$ac_objext; then
28002 $as_echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28005 ac_cv_type_sig_atomic_t=yes
28008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28010 $as_echo "$as_me: failed program was:" >&5
28011 sed 's/^/| /' conftest.$ac_ext >&5
28016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28018 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28019 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28020 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28022 cat >>confdefs.h <<_ACEOF
28023 #define HAVE_SIG_ATOMIC_T 1
28031 if test "$PORTNAME" != "win32"
28033 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28034 $as_echo_n "checking for POSIX signal interface... " >&6; }
28035 if test "${pgac_cv_func_posix_signals+set}" = set; then
28036 $as_echo_n "(cached) " >&6
28038 cat >conftest.$ac_ext <<_ACEOF
28041 cat confdefs.h >>conftest.$ac_ext
28042 cat >>conftest.$ac_ext <<_ACEOF
28043 /* end confdefs.h. */
28044 #include <signal.h>
28049 struct sigaction act, oact;
28050 sigemptyset(&act.sa_mask);
28051 act.sa_flags = SA_RESTART;
28052 sigaction(0, &act, &oact);
28057 rm -f conftest.$ac_objext conftest$ac_exeext
28058 if { (ac_try="$ac_link"
28059 case "(($ac_try" in
28060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061 *) ac_try_echo=$ac_try;;
28063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28064 $as_echo "$ac_try_echo") >&5
28065 (eval "$ac_link") 2>conftest.er1
28067 grep -v '^ *+' conftest.er1 >conftest.err
28069 cat conftest.err >&5
28070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); } && {
28072 test -z "$ac_c_werror_flag" ||
28073 test ! -s conftest.err
28074 } && test -s conftest$ac_exeext && {
28075 test "$cross_compiling" = yes ||
28076 $as_test_x conftest$ac_exeext
28078 pgac_cv_func_posix_signals=yes
28080 $as_echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28083 pgac_cv_func_posix_signals=no
28086 rm -rf conftest.dSYM
28087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28088 conftest$ac_exeext conftest.$ac_ext
28090 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28091 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28092 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28094 cat >>confdefs.h <<\_ACEOF
28095 #define HAVE_POSIX_SIGNALS /**/
28099 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28101 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28102 { { $as_echo "$as_me:$LINENO: error:
28103 Thread-safety requires POSIX signals, which are not supported by this
28104 operating system; use --disable-thread-safety to disable thread safety." >&5
28105 $as_echo "$as_me: error:
28106 Thread-safety requires POSIX signals, which are not supported by this
28107 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28108 { (exit 1); exit 1; }; }
28112 # SunOS doesn't handle negative byte comparisons properly with +/- return
28113 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28114 $as_echo_n "checking for working memcmp... " >&6; }
28115 if test "${ac_cv_func_memcmp_working+set}" = set; then
28116 $as_echo_n "(cached) " >&6
28118 if test "$cross_compiling" = yes; then
28119 ac_cv_func_memcmp_working=no
28121 cat >conftest.$ac_ext <<_ACEOF
28124 cat confdefs.h >>conftest.$ac_ext
28125 cat >>conftest.$ac_ext <<_ACEOF
28126 /* end confdefs.h. */
28127 $ac_includes_default
28132 /* Some versions of memcmp are not 8-bit clean. */
28133 char c0 = '\100', c1 = '\200', c2 = '\201';
28134 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28137 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28138 or more and with at least one buffer not starting on a 4-byte boundary.
28139 William Lewis provided this test program. */
28144 for (i = 0; i < 4; i++)
28148 strcpy (a, "--------01111111");
28149 strcpy (b, "--------10000000");
28150 if (memcmp (a, b, 16) >= 0)
28160 rm -f conftest$ac_exeext
28161 if { (ac_try="$ac_link"
28162 case "(($ac_try" in
28163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28164 *) ac_try_echo=$ac_try;;
28166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28167 $as_echo "$ac_try_echo") >&5
28168 (eval "$ac_link") 2>&5
28170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28172 { (case "(($ac_try" in
28173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174 *) ac_try_echo=$ac_try;;
28176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28177 $as_echo "$ac_try_echo") >&5
28178 (eval "$ac_try") 2>&5
28180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; }; then
28182 ac_cv_func_memcmp_working=yes
28184 $as_echo "$as_me: program exited with status $ac_status" >&5
28185 $as_echo "$as_me: failed program was:" >&5
28186 sed 's/^/| /' conftest.$ac_ext >&5
28188 ( exit $ac_status )
28189 ac_cv_func_memcmp_working=no
28191 rm -rf conftest.dSYM
28192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28197 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28198 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28199 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28200 *" memcmp.$ac_objext "* ) ;;
28201 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28208 # Select semaphore implementation type.
28209 if test "$PORTNAME" != "win32"; then
28210 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28212 cat >>confdefs.h <<\_ACEOF
28213 #define USE_NAMED_POSIX_SEMAPHORES 1
28216 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28218 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28220 cat >>confdefs.h <<\_ACEOF
28221 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28224 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28227 cat >>confdefs.h <<\_ACEOF
28228 #define USE_SYSV_SEMAPHORES 1
28231 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28236 cat >>confdefs.h <<\_ACEOF
28237 #define USE_WIN32_SEMAPHORES 1
28240 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28244 # Select shared-memory implementation type.
28245 if test "$PORTNAME" != "win32"; then
28247 cat >>confdefs.h <<\_ACEOF
28248 #define USE_SYSV_SHARED_MEMORY 1
28251 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28254 cat >>confdefs.h <<\_ACEOF
28255 #define USE_WIN32_SHARED_MEMORY 1
28258 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28261 # Select latch implementation type.
28262 if test "$PORTNAME" != "win32"; then
28263 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28265 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28268 # If not set in template file, set bytes to use libc memset()
28269 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28270 MEMSET_LOOP_LIMIT=1024
28273 cat >>confdefs.h <<_ACEOF
28274 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28279 if test "$enable_nls" = yes ; then
28281 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28282 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28283 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28284 $as_echo_n "(cached) " >&6
28286 ac_func_search_save_LIBS=$LIBS
28287 cat >conftest.$ac_ext <<_ACEOF
28290 cat confdefs.h >>conftest.$ac_ext
28291 cat >>conftest.$ac_ext <<_ACEOF
28292 /* end confdefs.h. */
28294 /* Override any GCC internal prototype to avoid an error.
28295 Use char because int might match the return type of a GCC
28296 builtin and then its argument prototype would still apply. */
28300 char bind_textdomain_codeset ();
28304 return bind_textdomain_codeset ();
28309 for ac_lib in '' intl; do
28310 if test -z "$ac_lib"; then
28311 ac_res="none required"
28314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28316 rm -f conftest.$ac_objext conftest$ac_exeext
28317 if { (ac_try="$ac_link"
28318 case "(($ac_try" in
28319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320 *) ac_try_echo=$ac_try;;
28322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28323 $as_echo "$ac_try_echo") >&5
28324 (eval "$ac_link") 2>conftest.er1
28326 grep -v '^ *+' conftest.er1 >conftest.err
28328 cat conftest.err >&5
28329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 (exit $ac_status); } && {
28331 test -z "$ac_c_werror_flag" ||
28332 test ! -s conftest.err
28333 } && test -s conftest$ac_exeext && {
28334 test "$cross_compiling" = yes ||
28335 $as_test_x conftest$ac_exeext
28337 ac_cv_search_bind_textdomain_codeset=$ac_res
28339 $as_echo "$as_me: failed program was:" >&5
28340 sed 's/^/| /' conftest.$ac_ext >&5
28345 rm -rf conftest.dSYM
28346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28348 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28352 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28355 ac_cv_search_bind_textdomain_codeset=no
28357 rm conftest.$ac_ext
28358 LIBS=$ac_func_search_save_LIBS
28360 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28361 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28362 ac_res=$ac_cv_search_bind_textdomain_codeset
28363 if test "$ac_res" != no; then
28364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28367 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28368 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28369 { (exit 1); exit 1; }; }
28372 if test "${ac_cv_header_libintl_h+set}" = set; then
28373 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28374 $as_echo_n "checking for libintl.h... " >&6; }
28375 if test "${ac_cv_header_libintl_h+set}" = set; then
28376 $as_echo_n "(cached) " >&6
28378 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28379 $as_echo "$ac_cv_header_libintl_h" >&6; }
28381 # Is the header compilable?
28382 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28383 $as_echo_n "checking libintl.h usability... " >&6; }
28384 cat >conftest.$ac_ext <<_ACEOF
28387 cat confdefs.h >>conftest.$ac_ext
28388 cat >>conftest.$ac_ext <<_ACEOF
28389 /* end confdefs.h. */
28390 $ac_includes_default
28391 #include <libintl.h>
28393 rm -f conftest.$ac_objext
28394 if { (ac_try="$ac_compile"
28395 case "(($ac_try" in
28396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28397 *) ac_try_echo=$ac_try;;
28399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28400 $as_echo "$ac_try_echo") >&5
28401 (eval "$ac_compile") 2>conftest.er1
28403 grep -v '^ *+' conftest.er1 >conftest.err
28405 cat conftest.err >&5
28406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); } && {
28408 test -z "$ac_c_werror_flag" ||
28409 test ! -s conftest.err
28410 } && test -s conftest.$ac_objext; then
28411 ac_header_compiler=yes
28413 $as_echo "$as_me: failed program was:" >&5
28414 sed 's/^/| /' conftest.$ac_ext >&5
28416 ac_header_compiler=no
28419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28420 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28421 $as_echo "$ac_header_compiler" >&6; }
28423 # Is the header present?
28424 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28425 $as_echo_n "checking libintl.h presence... " >&6; }
28426 cat >conftest.$ac_ext <<_ACEOF
28429 cat confdefs.h >>conftest.$ac_ext
28430 cat >>conftest.$ac_ext <<_ACEOF
28431 /* end confdefs.h. */
28432 #include <libintl.h>
28434 if { (ac_try="$ac_cpp conftest.$ac_ext"
28435 case "(($ac_try" in
28436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28437 *) ac_try_echo=$ac_try;;
28439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28440 $as_echo "$ac_try_echo") >&5
28441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28443 grep -v '^ *+' conftest.er1 >conftest.err
28445 cat conftest.err >&5
28446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447 (exit $ac_status); } >/dev/null && {
28448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28449 test ! -s conftest.err
28451 ac_header_preproc=yes
28453 $as_echo "$as_me: failed program was:" >&5
28454 sed 's/^/| /' conftest.$ac_ext >&5
28456 ac_header_preproc=no
28459 rm -f conftest.err conftest.$ac_ext
28460 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28461 $as_echo "$ac_header_preproc" >&6; }
28463 # So? What about this header?
28464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28466 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28467 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28468 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28469 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28470 ac_header_preproc=yes
28473 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28474 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28475 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28476 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28477 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28478 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28479 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28480 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28481 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28482 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28483 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28484 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28486 ## ---------------------------------------- ##
28487 ## Report this to pgsql-bugs@postgresql.org ##
28488 ## ---------------------------------------- ##
28490 ) | sed "s/^/$as_me: WARNING: /" >&2
28493 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28494 $as_echo_n "checking for libintl.h... " >&6; }
28495 if test "${ac_cv_header_libintl_h+set}" = set; then
28496 $as_echo_n "(cached) " >&6
28498 ac_cv_header_libintl_h=$ac_header_preproc
28500 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28501 $as_echo "$ac_cv_header_libintl_h" >&6; }
28504 if test "x$ac_cv_header_libintl_h" = x""yes; then
28507 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28508 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28509 { (exit 1); exit 1; }; }
28513 for ac_prog in msgfmt
28515 # Extract the first word of "$ac_prog", so it can be a program name with args.
28516 set dummy $ac_prog; ac_word=$2
28517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28518 $as_echo_n "checking for $ac_word... " >&6; }
28519 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28520 $as_echo_n "(cached) " >&6
28522 if test -n "$MSGFMT"; then
28523 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28526 for as_dir in $PATH
28529 test -z "$as_dir" && as_dir=.
28530 for ac_exec_ext in '' $ac_executable_extensions; do
28531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28532 ac_cv_prog_MSGFMT="$ac_prog"
28533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28542 MSGFMT=$ac_cv_prog_MSGFMT
28543 if test -n "$MSGFMT"; then
28544 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28545 $as_echo "$MSGFMT" >&6; }
28547 { $as_echo "$as_me:$LINENO: result: no" >&5
28548 $as_echo "no" >&6; }
28552 test -n "$MSGFMT" && break
28555 if test -z "$MSGFMT"; then
28556 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28557 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28558 { (exit 1); exit 1; }; }
28560 for ac_prog in msgmerge
28562 # Extract the first word of "$ac_prog", so it can be a program name with args.
28563 set dummy $ac_prog; ac_word=$2
28564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28565 $as_echo_n "checking for $ac_word... " >&6; }
28566 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28567 $as_echo_n "(cached) " >&6
28569 if test -n "$MSGMERGE"; then
28570 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28573 for as_dir in $PATH
28576 test -z "$as_dir" && as_dir=.
28577 for ac_exec_ext in '' $ac_executable_extensions; do
28578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28579 ac_cv_prog_MSGMERGE="$ac_prog"
28580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28589 MSGMERGE=$ac_cv_prog_MSGMERGE
28590 if test -n "$MSGMERGE"; then
28591 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28592 $as_echo "$MSGMERGE" >&6; }
28594 { $as_echo "$as_me:$LINENO: result: no" >&5
28595 $as_echo "no" >&6; }
28599 test -n "$MSGMERGE" && break
28602 for ac_prog in xgettext
28604 # Extract the first word of "$ac_prog", so it can be a program name with args.
28605 set dummy $ac_prog; ac_word=$2
28606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28607 $as_echo_n "checking for $ac_word... " >&6; }
28608 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28609 $as_echo_n "(cached) " >&6
28611 if test -n "$XGETTEXT"; then
28612 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28615 for as_dir in $PATH
28618 test -z "$as_dir" && as_dir=.
28619 for ac_exec_ext in '' $ac_executable_extensions; do
28620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28621 ac_cv_prog_XGETTEXT="$ac_prog"
28622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28631 XGETTEXT=$ac_cv_prog_XGETTEXT
28632 if test -n "$XGETTEXT"; then
28633 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28634 $as_echo "$XGETTEXT" >&6; }
28636 { $as_echo "$as_me:$LINENO: result: no" >&5
28637 $as_echo "no" >&6; }
28641 test -n "$XGETTEXT" && break
28647 # Check for Tcl configuration script tclConfig.sh
28648 if test "$with_tcl" = yes; then
28649 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28651 # Extract the first word of "$ac_prog", so it can be a program name with args.
28652 set dummy $ac_prog; ac_word=$2
28653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28654 $as_echo_n "checking for $ac_word... " >&6; }
28655 if test "${ac_cv_path_TCLSH+set}" = set; then
28656 $as_echo_n "(cached) " >&6
28660 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28664 for as_dir in $PATH
28667 test -z "$as_dir" && as_dir=.
28668 for ac_exec_ext in '' $ac_executable_extensions; do
28669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28670 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28681 TCLSH=$ac_cv_path_TCLSH
28682 if test -n "$TCLSH"; then
28683 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28684 $as_echo "$TCLSH" >&6; }
28686 { $as_echo "$as_me:$LINENO: result: no" >&5
28687 $as_echo "no" >&6; }
28691 test -n "$TCLSH" && break
28694 if test x"$TCLSH" = x""; then
28695 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28696 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28697 { (exit 1); exit 1; }; }
28700 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28701 $as_echo_n "checking for tclConfig.sh... " >&6; }
28702 # Let user override test
28703 if test -z "$TCL_CONFIG_SH"; then
28704 pgac_test_dirs="$with_tclconfig"
28706 set X $pgac_test_dirs; shift
28707 if test $# -eq 0; then
28708 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28709 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28710 { (exit 1); exit 1; }; }
28711 set X `echo 'puts $auto_path' | $TCLSH`; shift
28715 if test -r "$pgac_dir/tclConfig.sh"; then
28716 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28722 if test -z "$TCL_CONFIG_SH"; then
28723 { $as_echo "$as_me:$LINENO: result: no" >&5
28724 $as_echo "no" >&6; }
28725 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28726 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28727 { (exit 1); exit 1; }; }
28729 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28730 $as_echo "$TCL_CONFIG_SH" >&6; }
28736 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28737 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28738 eval TCL_LIBS=\"$TCL_LIBS\"
28739 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28740 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28742 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28743 ac_save_CPPFLAGS=$CPPFLAGS
28744 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28745 if test "${ac_cv_header_tcl_h+set}" = set; then
28746 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28747 $as_echo_n "checking for tcl.h... " >&6; }
28748 if test "${ac_cv_header_tcl_h+set}" = set; then
28749 $as_echo_n "(cached) " >&6
28751 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28752 $as_echo "$ac_cv_header_tcl_h" >&6; }
28754 # Is the header compilable?
28755 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28756 $as_echo_n "checking tcl.h usability... " >&6; }
28757 cat >conftest.$ac_ext <<_ACEOF
28760 cat confdefs.h >>conftest.$ac_ext
28761 cat >>conftest.$ac_ext <<_ACEOF
28762 /* end confdefs.h. */
28763 $ac_includes_default
28766 rm -f conftest.$ac_objext
28767 if { (ac_try="$ac_compile"
28768 case "(($ac_try" in
28769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28770 *) ac_try_echo=$ac_try;;
28772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28773 $as_echo "$ac_try_echo") >&5
28774 (eval "$ac_compile") 2>conftest.er1
28776 grep -v '^ *+' conftest.er1 >conftest.err
28778 cat conftest.err >&5
28779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); } && {
28781 test -z "$ac_c_werror_flag" ||
28782 test ! -s conftest.err
28783 } && test -s conftest.$ac_objext; then
28784 ac_header_compiler=yes
28786 $as_echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28789 ac_header_compiler=no
28792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28793 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28794 $as_echo "$ac_header_compiler" >&6; }
28796 # Is the header present?
28797 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28798 $as_echo_n "checking tcl.h presence... " >&6; }
28799 cat >conftest.$ac_ext <<_ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h. */
28807 if { (ac_try="$ac_cpp conftest.$ac_ext"
28808 case "(($ac_try" in
28809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810 *) ac_try_echo=$ac_try;;
28812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28813 $as_echo "$ac_try_echo") >&5
28814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28816 grep -v '^ *+' conftest.er1 >conftest.err
28818 cat conftest.err >&5
28819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); } >/dev/null && {
28821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28822 test ! -s conftest.err
28824 ac_header_preproc=yes
28826 $as_echo "$as_me: failed program was:" >&5
28827 sed 's/^/| /' conftest.$ac_ext >&5
28829 ac_header_preproc=no
28832 rm -f conftest.err conftest.$ac_ext
28833 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28834 $as_echo "$ac_header_preproc" >&6; }
28836 # So? What about this header?
28837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28839 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28840 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28841 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28842 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28843 ac_header_preproc=yes
28846 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28847 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28848 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28849 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28850 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28851 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28852 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28853 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28854 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28855 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28856 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28857 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28859 ## ---------------------------------------- ##
28860 ## Report this to pgsql-bugs@postgresql.org ##
28861 ## ---------------------------------------- ##
28863 ) | sed "s/^/$as_me: WARNING: /" >&2
28866 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28867 $as_echo_n "checking for tcl.h... " >&6; }
28868 if test "${ac_cv_header_tcl_h+set}" = set; then
28869 $as_echo_n "(cached) " >&6
28871 ac_cv_header_tcl_h=$ac_header_preproc
28873 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28874 $as_echo "$ac_cv_header_tcl_h" >&6; }
28877 if test "x$ac_cv_header_tcl_h" = x""yes; then
28880 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28881 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28882 { (exit 1); exit 1; }; }
28886 CPPFLAGS=$ac_save_CPPFLAGS
28889 # check for <Python.h>
28890 if test "$with_python" = yes; then
28891 ac_save_CPPFLAGS=$CPPFLAGS
28892 CPPFLAGS="$python_includespec $CPPFLAGS"
28893 if test "${ac_cv_header_Python_h+set}" = set; then
28894 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28895 $as_echo_n "checking for Python.h... " >&6; }
28896 if test "${ac_cv_header_Python_h+set}" = set; then
28897 $as_echo_n "(cached) " >&6
28899 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28900 $as_echo "$ac_cv_header_Python_h" >&6; }
28902 # Is the header compilable?
28903 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
28904 $as_echo_n "checking Python.h usability... " >&6; }
28905 cat >conftest.$ac_ext <<_ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h. */
28911 $ac_includes_default
28912 #include <Python.h>
28914 rm -f conftest.$ac_objext
28915 if { (ac_try="$ac_compile"
28916 case "(($ac_try" in
28917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28918 *) ac_try_echo=$ac_try;;
28920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28921 $as_echo "$ac_try_echo") >&5
28922 (eval "$ac_compile") 2>conftest.er1
28924 grep -v '^ *+' conftest.er1 >conftest.err
28926 cat conftest.err >&5
28927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928 (exit $ac_status); } && {
28929 test -z "$ac_c_werror_flag" ||
28930 test ! -s conftest.err
28931 } && test -s conftest.$ac_objext; then
28932 ac_header_compiler=yes
28934 $as_echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28937 ac_header_compiler=no
28940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28941 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28942 $as_echo "$ac_header_compiler" >&6; }
28944 # Is the header present?
28945 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
28946 $as_echo_n "checking Python.h presence... " >&6; }
28947 cat >conftest.$ac_ext <<_ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h. */
28953 #include <Python.h>
28955 if { (ac_try="$ac_cpp conftest.$ac_ext"
28956 case "(($ac_try" in
28957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28958 *) ac_try_echo=$ac_try;;
28960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28961 $as_echo "$ac_try_echo") >&5
28962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28964 grep -v '^ *+' conftest.er1 >conftest.err
28966 cat conftest.err >&5
28967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); } >/dev/null && {
28969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28970 test ! -s conftest.err
28972 ac_header_preproc=yes
28974 $as_echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28977 ac_header_preproc=no
28980 rm -f conftest.err conftest.$ac_ext
28981 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28982 $as_echo "$ac_header_preproc" >&6; }
28984 # So? What about this header?
28985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28987 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
28988 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28989 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
28990 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
28991 ac_header_preproc=yes
28994 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
28995 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
28996 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
28997 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
28998 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
28999 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29000 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29001 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29002 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29003 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29004 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29005 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29007 ## ---------------------------------------- ##
29008 ## Report this to pgsql-bugs@postgresql.org ##
29009 ## ---------------------------------------- ##
29011 ) | sed "s/^/$as_me: WARNING: /" >&2
29014 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29015 $as_echo_n "checking for Python.h... " >&6; }
29016 if test "${ac_cv_header_Python_h+set}" = set; then
29017 $as_echo_n "(cached) " >&6
29019 ac_cv_header_Python_h=$ac_header_preproc
29021 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29022 $as_echo "$ac_cv_header_Python_h" >&6; }
29025 if test "x$ac_cv_header_Python_h" = x""yes; then
29028 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29029 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29030 { (exit 1); exit 1; }; }
29034 CPPFLAGS=$ac_save_CPPFLAGS
29038 # Check for DocBook and tools
29040 for ac_prog in onsgmls nsgmls
29042 # Extract the first word of "$ac_prog", so it can be a program name with args.
29043 set dummy $ac_prog; ac_word=$2
29044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29045 $as_echo_n "checking for $ac_word... " >&6; }
29046 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29047 $as_echo_n "(cached) " >&6
29049 if test -n "$NSGMLS"; then
29050 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29053 for as_dir in $PATH
29056 test -z "$as_dir" && as_dir=.
29057 for ac_exec_ext in '' $ac_executable_extensions; do
29058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29059 ac_cv_prog_NSGMLS="$ac_prog"
29060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29069 NSGMLS=$ac_cv_prog_NSGMLS
29070 if test -n "$NSGMLS"; then
29071 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29072 $as_echo "$NSGMLS" >&6; }
29074 { $as_echo "$as_me:$LINENO: result: no" >&5
29075 $as_echo "no" >&6; }
29079 test -n "$NSGMLS" && break
29082 for ac_prog in openjade jade
29084 # Extract the first word of "$ac_prog", so it can be a program name with args.
29085 set dummy $ac_prog; ac_word=$2
29086 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29087 $as_echo_n "checking for $ac_word... " >&6; }
29088 if test "${ac_cv_prog_JADE+set}" = set; then
29089 $as_echo_n "(cached) " >&6
29091 if test -n "$JADE"; then
29092 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29095 for as_dir in $PATH
29098 test -z "$as_dir" && as_dir=.
29099 for ac_exec_ext in '' $ac_executable_extensions; do
29100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29101 ac_cv_prog_JADE="$ac_prog"
29102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29111 JADE=$ac_cv_prog_JADE
29112 if test -n "$JADE"; then
29113 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29114 $as_echo "$JADE" >&6; }
29116 { $as_echo "$as_me:$LINENO: result: no" >&5
29117 $as_echo "no" >&6; }
29121 test -n "$JADE" && break
29125 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29126 $as_echo_n "checking for DocBook V4.2... " >&6; }
29127 if test "${pgac_cv_check_docbook+set}" = set; then
29128 $as_echo_n "(cached) " >&6
29130 cat >conftest.sgml <<EOF
29131 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29133 <title>test</title>
29135 <title>random</title>
29137 <title>testsect</title>
29144 pgac_cv_check_docbook=no
29146 if test -n "$NSGMLS"; then
29147 $NSGMLS -s conftest.sgml 1>&5 2>&1
29148 if test $? -eq 0; then
29149 pgac_cv_check_docbook=yes
29152 rm -f conftest.sgml
29154 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29155 $as_echo "$pgac_cv_check_docbook" >&6; }
29157 have_docbook=$pgac_cv_check_docbook
29160 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29161 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29162 if test "${pgac_cv_path_stylesheets+set}" = set; then
29163 $as_echo_n "(cached) " >&6
29165 if test -n "$DOCBOOKSTYLE"; then
29166 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29168 for pgac_prefix in /usr /usr/local /opt /sw; do
29169 for pgac_infix in share lib; do
29170 for pgac_postfix in \
29171 sgml/stylesheets/nwalsh-modular \
29172 sgml/stylesheets/docbook \
29173 sgml/stylesheets/dsssl/docbook \
29174 sgml/docbook-dsssl \
29175 sgml/docbook/dsssl/modular \
29176 sgml/docbook/stylesheet/dsssl/modular \
29177 sgml/docbook/dsssl-stylesheets \
29178 sgml/dsssl/docbook-dsssl-nwalsh
29180 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29181 if test -r "$pgac_candidate/html/docbook.dsl" \
29182 && test -r "$pgac_candidate/print/docbook.dsl"
29184 pgac_cv_path_stylesheets=$pgac_candidate
29193 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29195 if test -n "$DOCBOOKSTYLE"; then
29196 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29197 $as_echo "$DOCBOOKSTYLE" >&6; }
29199 { $as_echo "$as_me:$LINENO: result: no" >&5
29200 $as_echo "no" >&6; }
29202 if test -n "$DOCBOOKSTYLE"; then
29203 for ac_prog in collateindex.pl
29205 # Extract the first word of "$ac_prog", so it can be a program name with args.
29206 set dummy $ac_prog; ac_word=$2
29207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29208 $as_echo_n "checking for $ac_word... " >&6; }
29209 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29210 $as_echo_n "(cached) " >&6
29212 case $COLLATEINDEX in
29214 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29218 for as_dir in $DOCBOOKSTYLE/bin $PATH
29221 test -z "$as_dir" && as_dir=.
29222 for ac_exec_ext in '' $ac_executable_extensions; do
29223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29224 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29235 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29236 if test -n "$COLLATEINDEX"; then
29237 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29238 $as_echo "$COLLATEINDEX" >&6; }
29240 { $as_echo "$as_me:$LINENO: result: no" >&5
29241 $as_echo "no" >&6; }
29245 test -n "$COLLATEINDEX" && break
29249 for ac_prog in collateindex.pl
29251 # Extract the first word of "$ac_prog", so it can be a program name with args.
29252 set dummy $ac_prog; ac_word=$2
29253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29254 $as_echo_n "checking for $ac_word... " >&6; }
29255 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29256 $as_echo_n "(cached) " >&6
29258 case $COLLATEINDEX in
29260 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29264 for as_dir in $PATH
29267 test -z "$as_dir" && as_dir=.
29268 for ac_exec_ext in '' $ac_executable_extensions; do
29269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29270 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29281 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29282 if test -n "$COLLATEINDEX"; then
29283 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29284 $as_echo "$COLLATEINDEX" >&6; }
29286 { $as_echo "$as_me:$LINENO: result: no" >&5
29287 $as_echo "no" >&6; }
29291 test -n "$COLLATEINDEX" && break
29295 for ac_prog in xsltproc
29297 # Extract the first word of "$ac_prog", so it can be a program name with args.
29298 set dummy $ac_prog; ac_word=$2
29299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29300 $as_echo_n "checking for $ac_word... " >&6; }
29301 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29302 $as_echo_n "(cached) " >&6
29304 if test -n "$XSLTPROC"; then
29305 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29308 for as_dir in $PATH
29311 test -z "$as_dir" && as_dir=.
29312 for ac_exec_ext in '' $ac_executable_extensions; do
29313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29314 ac_cv_prog_XSLTPROC="$ac_prog"
29315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29324 XSLTPROC=$ac_cv_prog_XSLTPROC
29325 if test -n "$XSLTPROC"; then
29326 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29327 $as_echo "$XSLTPROC" >&6; }
29329 { $as_echo "$as_me:$LINENO: result: no" >&5
29330 $as_echo "no" >&6; }
29334 test -n "$XSLTPROC" && break
29337 for ac_prog in osx sgml2xml sx
29339 # Extract the first word of "$ac_prog", so it can be a program name with args.
29340 set dummy $ac_prog; ac_word=$2
29341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29342 $as_echo_n "checking for $ac_word... " >&6; }
29343 if test "${ac_cv_prog_OSX+set}" = set; then
29344 $as_echo_n "(cached) " >&6
29346 if test -n "$OSX"; then
29347 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29350 for as_dir in $PATH
29353 test -z "$as_dir" && as_dir=.
29354 for ac_exec_ext in '' $ac_executable_extensions; do
29355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29356 ac_cv_prog_OSX="$ac_prog"
29357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29366 OSX=$ac_cv_prog_OSX
29367 if test -n "$OSX"; then
29368 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29369 $as_echo "$OSX" >&6; }
29371 { $as_echo "$as_me:$LINENO: result: no" >&5
29372 $as_echo "no" >&6; }
29376 test -n "$OSX" && break
29382 # We have to run the thread test near the end so we have all our symbols
29383 # defined. Cross compiling throws a warning.
29385 if test "$enable_thread_safety" = yes; then
29386 if test "$PORTNAME" != "win32"
29388 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29389 $as_echo_n "checking thread safety of required library functions... " >&6; }
29393 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29394 LIBS="$LIBS $PTHREAD_LIBS"
29395 if test "$cross_compiling" = yes; then
29396 { $as_echo "$as_me:$LINENO: result: maybe" >&5
29397 $as_echo "maybe" >&6; }
29398 { $as_echo "$as_me:$LINENO: WARNING:
29399 *** Skipping thread test program because of cross-compile build.
29400 *** Run the program in src/test/thread on the target machine.
29402 $as_echo "$as_me: WARNING:
29403 *** Skipping thread test program because of cross-compile build.
29404 *** Run the program in src/test/thread on the target machine.
29407 cat >conftest.$ac_ext <<_ACEOF
29410 cat confdefs.h >>conftest.$ac_ext
29411 cat >>conftest.$ac_ext <<_ACEOF
29412 /* end confdefs.h. */
29413 #include "$srcdir/src/test/thread/thread_test.c"
29415 rm -f conftest$ac_exeext
29416 if { (ac_try="$ac_link"
29417 case "(($ac_try" in
29418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29419 *) ac_try_echo=$ac_try;;
29421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29422 $as_echo "$ac_try_echo") >&5
29423 (eval "$ac_link") 2>&5
29425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29427 { (case "(($ac_try" in
29428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29429 *) ac_try_echo=$ac_try;;
29431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29432 $as_echo "$ac_try_echo") >&5
29433 (eval "$ac_try") 2>&5
29435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; }; then
29437 { $as_echo "$as_me:$LINENO: result: yes" >&5
29438 $as_echo "yes" >&6; }
29440 $as_echo "$as_me: program exited with status $ac_status" >&5
29441 $as_echo "$as_me: failed program was:" >&5
29442 sed 's/^/| /' conftest.$ac_ext >&5
29444 ( exit $ac_status )
29445 { $as_echo "$as_me:$LINENO: result: no" >&5
29446 $as_echo "no" >&6; }
29447 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29448 This platform is not thread-safe. Check the file 'config.log' or compile
29449 and run src/test/thread/thread_test for the exact reason.
29450 Use --disable-thread-safety to disable thread safety." >&5
29451 $as_echo "$as_me: error: thread test program failed
29452 This platform is not thread-safe. Check the file 'config.log' or compile
29453 and run src/test/thread/thread_test for the exact reason.
29454 Use --disable-thread-safety to disable thread safety." >&2;}
29455 { (exit 1); exit 1; }; }
29457 rm -rf conftest.dSYM
29458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29465 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29466 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29470 # If compiler will take -Wl,--as-needed (or various platform-specific
29471 # spellings thereof) then add that to LDFLAGS. This is much easier than
29472 # trying to filter LIBS to the minimum for each executable.
29473 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29474 # libreadline; therefore we postpone testing it until we know what library
29475 # dependencies readline has. The test code will try to link with $LIBS.
29476 if test "$with_readline" = yes; then
29477 link_test_func=readline
29479 link_test_func=exit
29482 if test "$PORTNAME" = "darwin"; then
29483 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29484 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29485 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29486 $as_echo_n "(cached) " >&6
29488 pgac_save_LDFLAGS=$LDFLAGS
29489 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29490 if test "$cross_compiling" = yes; then
29491 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29493 cat >conftest.$ac_ext <<_ACEOF
29496 cat confdefs.h >>conftest.$ac_ext
29497 cat >>conftest.$ac_ext <<_ACEOF
29498 /* end confdefs.h. */
29499 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29508 rm -f conftest$ac_exeext
29509 if { (ac_try="$ac_link"
29510 case "(($ac_try" in
29511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29512 *) ac_try_echo=$ac_try;;
29514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29515 $as_echo "$ac_try_echo") >&5
29516 (eval "$ac_link") 2>&5
29518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29520 { (case "(($ac_try" in
29521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522 *) ac_try_echo=$ac_try;;
29524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29525 $as_echo "$ac_try_echo") >&5
29526 (eval "$ac_try") 2>&5
29528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); }; }; then
29530 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29532 $as_echo "$as_me: program exited with status $ac_status" >&5
29533 $as_echo "$as_me: failed program was:" >&5
29534 sed 's/^/| /' conftest.$ac_ext >&5
29536 ( exit $ac_status )
29537 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29539 rm -rf conftest.dSYM
29540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29544 LDFLAGS="$pgac_save_LDFLAGS"
29546 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29547 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29548 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29549 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29552 elif test "$PORTNAME" = "openbsd"; then
29553 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29554 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29555 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29556 $as_echo_n "(cached) " >&6
29558 pgac_save_LDFLAGS=$LDFLAGS
29559 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29560 if test "$cross_compiling" = yes; then
29561 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29563 cat >conftest.$ac_ext <<_ACEOF
29566 cat confdefs.h >>conftest.$ac_ext
29567 cat >>conftest.$ac_ext <<_ACEOF
29568 /* end confdefs.h. */
29569 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29578 rm -f conftest$ac_exeext
29579 if { (ac_try="$ac_link"
29580 case "(($ac_try" in
29581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29582 *) ac_try_echo=$ac_try;;
29584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29585 $as_echo "$ac_try_echo") >&5
29586 (eval "$ac_link") 2>&5
29588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29590 { (case "(($ac_try" in
29591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29592 *) ac_try_echo=$ac_try;;
29594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29595 $as_echo "$ac_try_echo") >&5
29596 (eval "$ac_try") 2>&5
29598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); }; }; then
29600 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29602 $as_echo "$as_me: program exited with status $ac_status" >&5
29603 $as_echo "$as_me: failed program was:" >&5
29604 sed 's/^/| /' conftest.$ac_ext >&5
29606 ( exit $ac_status )
29607 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29609 rm -rf conftest.dSYM
29610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29614 LDFLAGS="$pgac_save_LDFLAGS"
29616 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29617 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29618 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29619 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29623 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29624 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29625 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29626 $as_echo_n "(cached) " >&6
29628 pgac_save_LDFLAGS=$LDFLAGS
29629 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29630 if test "$cross_compiling" = yes; then
29631 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29633 cat >conftest.$ac_ext <<_ACEOF
29636 cat confdefs.h >>conftest.$ac_ext
29637 cat >>conftest.$ac_ext <<_ACEOF
29638 /* end confdefs.h. */
29639 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29648 rm -f conftest$ac_exeext
29649 if { (ac_try="$ac_link"
29650 case "(($ac_try" in
29651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652 *) ac_try_echo=$ac_try;;
29654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29655 $as_echo "$ac_try_echo") >&5
29656 (eval "$ac_link") 2>&5
29658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29660 { (case "(($ac_try" in
29661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29662 *) ac_try_echo=$ac_try;;
29664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29665 $as_echo "$ac_try_echo") >&5
29666 (eval "$ac_try") 2>&5
29668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); }; }; then
29670 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29672 $as_echo "$as_me: program exited with status $ac_status" >&5
29673 $as_echo "$as_me: failed program was:" >&5
29674 sed 's/^/| /' conftest.$ac_ext >&5
29676 ( exit $ac_status )
29677 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29679 rm -rf conftest.dSYM
29680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29684 LDFLAGS="$pgac_save_LDFLAGS"
29686 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29687 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29688 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29689 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29695 # Begin output steps
29697 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29698 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29699 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29700 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29701 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29702 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29704 # Create compiler version string
29705 if test x"$GCC" = x"yes" ; then
29706 cc_string=`${CC} --version | sed q`
29707 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29708 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29709 cc_string=`${CC} -V 2>&1 | sed q`
29715 cat >>confdefs.h <<_ACEOF
29716 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29720 # Supply a numeric version string for use by 3rd party add-ons
29721 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29722 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29724 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29726 cat >>confdefs.h <<_ACEOF
29727 #define PG_VERSION_NUM $PG_VERSION_NUM
29732 # prepare build tree if outside source tree
29733 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29734 # Note 2: /bin/pwd might be better than shell's built-in at getting
29735 # a symlink-free name.
29736 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29740 if test "$no_create" != yes; then
29741 $as_echo_n "preparing build tree... " >&6
29742 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29743 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29744 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29745 $as_echo "$as_me: error: failed" >&2;}
29746 { (exit 1); exit 1; }; }
29747 { $as_echo "$as_me:$LINENO: result: done" >&5
29748 $as_echo "done" >&6; }
29754 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29757 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}"
29760 if test "$PORTNAME" = "win32"; then
29761 ac_config_commands="$ac_config_commands check_win32_symlinks"
29765 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29768 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29771 cat >confcache <<\_ACEOF
29772 # This file is a shell script that caches the results of configure
29773 # tests run on this system so they can be shared between configure
29774 # scripts and configure runs, see configure's option --config-cache.
29775 # It is not useful on other systems. If it contains results you don't
29776 # want to keep, you may remove or edit it.
29778 # config.status only pays attention to the cache file if you give it
29779 # the --recheck option to rerun configure.
29781 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29782 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29783 # following values.
29787 # The following way of writing the cache mishandles newlines in values,
29788 # but we know of no workaround that is simple, portable, and efficient.
29789 # So, we kill variables containing newlines.
29790 # Ultrix sh set writes to stderr and can't be redirected directly,
29791 # and sets the high bit in the cache file unless we assign to the vars.
29793 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29794 eval ac_val=\$$ac_var
29798 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29802 _ | IFS | as_nl) ;; #(
29803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29804 *) $as_unset $ac_var ;;
29810 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29811 *${as_nl}ac_space=\ *)
29812 # `set' does not quote correctly, so add quotes (double-quote
29813 # substitution turns \\\\ into \\, and sed turns \\ into \).
29816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29819 # `set' quotes correctly as required by POSIX, so do not add quotes.
29820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29831 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29833 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29834 if test -w "$cache_file"; then
29835 test "x$cache_file" != "x/dev/null" &&
29836 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29837 $as_echo "$as_me: updating cache $cache_file" >&6;}
29838 cat confcache >$cache_file
29840 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29841 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29846 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29847 # Let make expand exec_prefix.
29848 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29850 DEFS=-DHAVE_CONFIG_H
29854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29855 # 1. Remove the extension, and $U if already installed.
29856 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29857 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29858 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29859 # will be set to the directory where LIBOBJS objects are built.
29860 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29861 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29863 LIBOBJS=$ac_libobjs
29865 LTLIBOBJS=$ac_ltlibobjs
29870 : ${CONFIG_STATUS=./config.status}
29872 ac_clean_files_save=$ac_clean_files
29873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29874 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29875 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29876 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29878 # Generated by $as_me.
29879 # Run this file to recreate the current configuration.
29880 # Compiler output produced by configure, useful for debugging
29881 # configure, is in config.log if it exists.
29884 ac_cs_recheck=false
29886 SHELL=\${CONFIG_SHELL-$SHELL}
29889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29890 ## --------------------- ##
29891 ## M4sh Initialization. ##
29892 ## --------------------- ##
29894 # Be more Bourne compatible
29895 DUALCASE=1; export DUALCASE # for MKS sh
29896 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29899 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29900 # is contrary to our usage. Disable this feature.
29901 alias -g '${1+"$@"}'='"$@"'
29902 setopt NO_GLOB_SUBST
29904 case `(set -o) 2>/dev/null` in
29905 *posix*) set -o posix ;;
29914 # Avoid depending upon Character Ranges.
29915 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29916 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29917 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29918 as_cr_digits='0123456789'
29919 as_cr_alnum=$as_cr_Letters$as_cr_digits
29924 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29925 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29926 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29927 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29928 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29929 as_echo='printf %s\n'
29930 as_echo_n='printf %s'
29932 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29933 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29934 as_echo_n='/usr/ucb/echo -n'
29936 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29937 as_echo_n_body='eval
29941 expr "X$arg" : "X\\(.*\\)$as_nl";
29942 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29944 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29946 export as_echo_n_body
29947 as_echo_n='sh -c $as_echo_n_body as_echo'
29949 export as_echo_body
29950 as_echo='sh -c $as_echo_body as_echo'
29953 # The user is always right.
29954 if test "${PATH_SEPARATOR+set}" != set; then
29956 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29957 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29962 # Support unset when possible.
29963 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29971 # We need space, tab and new line, in precisely that order. Quoting is
29972 # there to prevent editors from complaining about space-tab.
29973 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29974 # splitting by setting IFS to empty value.)
29977 # Find who we are. Look in the path if we contain no directory separator.
29979 *[\\/]* ) as_myself=$0 ;;
29980 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29981 for as_dir in $PATH
29984 test -z "$as_dir" && as_dir=.
29985 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29991 # We did not find ourselves, most probably we were run as `sh COMMAND'
29992 # in which case we are not to be found in the path.
29993 if test "x$as_myself" = x; then
29996 if test ! -f "$as_myself"; then
29997 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29998 { (exit 1); exit 1; }
30001 # Work around bugs in pre-3.0 UWIN ksh.
30002 for as_var in ENV MAIL MAILPATH
30003 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30015 # Required to use basename.
30016 if expr a : '\(a\)' >/dev/null 2>&1 &&
30017 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30023 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30024 as_basename=basename
30030 # Name of the executable.
30031 as_me=`$as_basename -- "$0" ||
30032 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30033 X"$0" : 'X\(//\)$' \| \
30034 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30036 sed '/^.*\/\([^/][^/]*\)\/*$/{
30055 as_lineno_1=$LINENO
30056 as_lineno_2=$LINENO
30057 test "x$as_lineno_1" != "x$as_lineno_2" &&
30058 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30060 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30061 # uniformly replaced by the line number. The first 'sed' inserts a
30062 # line-number line after each line using $LINENO; the second 'sed'
30063 # does the real work. The second script uses 'N' to pair each
30064 # line-number line with the line containing $LINENO, and appends
30065 # trailing '-' during substitution so that $LINENO is not a special
30066 # case at line end.
30067 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30068 # scripts with optimization help from Paolo Bonzini. Blame Lee
30069 # E. McMahon (1931-1989) for sed's syntax. :-)
30081 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30084 ' >$as_me.lineno &&
30085 chmod +x "$as_me.lineno" ||
30086 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30087 { (exit 1); exit 1; }; }
30089 # Don't try to exec as it changes $[0], causing all sort of problems
30090 # (the dirname of $[0] is not the place where we might find the
30091 # original and so on. Autoconf is especially sensitive to this).
30092 . "./$as_me.lineno"
30093 # Exit status is that of the last command.
30098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30104 ECHO_C= ECHO_N= ECHO_T=
30105 case `echo -n x` in
30107 case `echo 'x\c'` in
30108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30114 if expr a : '\(a\)' >/dev/null 2>&1 &&
30115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30121 rm -f conf$$ conf$$.exe conf$$.file
30122 if test -d conf$$.dir; then
30123 rm -f conf$$.dir/conf$$.file
30126 mkdir conf$$.dir 2>/dev/null
30128 if (echo >conf$$.file) 2>/dev/null; then
30129 if ln -s conf$$.file conf$$ 2>/dev/null; then
30131 # ... but there are two gotchas:
30132 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30133 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30134 # In both cases, we have to default to `cp -p'.
30135 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30137 elif ln conf$$.file conf$$ 2>/dev/null; then
30145 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30146 rmdir conf$$.dir 2>/dev/null
30148 if mkdir -p . 2>/dev/null; then
30151 test -d ./-p && rmdir ./-p
30155 if test -x / >/dev/null 2>&1; then
30156 as_test_x='test -x'
30158 if ls -dL / >/dev/null 2>&1; then
30165 if test -d "$1"; then
30171 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30172 ???[sx]*):;;*)false;;esac;fi
30176 as_executable_p=$as_test_x
30178 # Sed expression to map a string onto a valid CPP name.
30179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30181 # Sed expression to map a string onto a valid variable name.
30182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30187 # Save the log message, to keep $[0] and so on meaningful, and to
30188 # report actual input values of CONFIG_FILES etc. instead of their
30189 # values after options handling.
30191 This file was extended by PostgreSQL $as_me 9.1beta1, which was
30192 generated by GNU Autoconf 2.63. Invocation command line was
30194 CONFIG_FILES = $CONFIG_FILES
30195 CONFIG_HEADERS = $CONFIG_HEADERS
30196 CONFIG_LINKS = $CONFIG_LINKS
30197 CONFIG_COMMANDS = $CONFIG_COMMANDS
30200 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30205 case $ac_config_files in *"
30206 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30209 case $ac_config_headers in *"
30210 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30215 # Files that config.status was made for.
30216 config_files="$ac_config_files"
30217 config_headers="$ac_config_headers"
30218 config_links="$ac_config_links"
30219 config_commands="$ac_config_commands"
30223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30225 \`$as_me' instantiates files from templates according to the
30226 current configuration.
30228 Usage: $0 [OPTION]... [FILE]...
30230 -h, --help print this help, then exit
30231 -V, --version print version number and configuration settings, then exit
30232 -q, --quiet, --silent
30233 do not print progress messages
30234 -d, --debug don't remove temporary files
30235 --recheck update $as_me by reconfiguring in the same conditions
30236 --file=FILE[:TEMPLATE]
30237 instantiate the configuration file FILE
30238 --header=FILE[:TEMPLATE]
30239 instantiate the configuration header FILE
30241 Configuration files:
30244 Configuration headers:
30247 Configuration links:
30250 Configuration commands:
30253 Report bugs to <bug-autoconf@gnu.org>."
30256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30258 PostgreSQL config.status 9.1beta1
30259 configured by $0, generated by GNU Autoconf 2.63,
30260 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30262 Copyright (C) 2008 Free Software Foundation, Inc.
30263 This config.status script is free software; the Free Software Foundation
30264 gives unlimited permission to copy, distribute and modify it."
30270 test -n "\$AWK" || AWK=awk
30273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30274 # The default lists apply if the user does not specify any file.
30280 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30281 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30292 # Handling of the options.
30293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30295 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30296 $as_echo "$ac_cs_version"; exit ;;
30297 --debug | --debu | --deb | --de | --d | -d )
30299 --file | --fil | --fi | --f )
30302 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30304 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30305 ac_need_defaults=false;;
30306 --header | --heade | --head | --hea )
30309 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30311 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30312 ac_need_defaults=false;;
30314 # Conflict between --help and --header
30315 { $as_echo "$as_me: error: ambiguous option: $1
30316 Try \`$0 --help' for more information." >&2
30317 { (exit 1); exit 1; }; };;
30318 --help | --hel | -h )
30319 $as_echo "$ac_cs_usage"; exit ;;
30320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30321 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30324 # This is an error.
30325 -*) { $as_echo "$as_me: error: unrecognized option: $1
30326 Try \`$0 --help' for more information." >&2
30327 { (exit 1); exit 1; }; } ;;
30329 *) ac_config_targets="$ac_config_targets $1"
30330 ac_need_defaults=false ;;
30336 ac_configure_extra_args=
30338 if $ac_cs_silent; then
30340 ac_configure_extra_args="$ac_configure_extra_args --silent"
30344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30345 if \$ac_cs_recheck; then
30346 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30349 CONFIG_SHELL='$SHELL'
30350 export CONFIG_SHELL
30355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30360 ## Running $as_me. ##
30366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30371 # Handling of arguments.
30372 for ac_config_target in $ac_config_targets
30374 case $ac_config_target in
30375 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30376 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30377 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30378 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30379 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30380 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30381 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30382 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30383 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30384 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30385 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30386 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30387 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30389 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30390 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30391 { (exit 1); exit 1; }; };;
30396 # If the user did not use the arguments to specify the items to instantiate,
30397 # then the envvar interface is used. Set only those that are not.
30398 # We use the long form for the default assignment because of an extremely
30399 # bizarre bug on SunOS 4.1.3.
30400 if $ac_need_defaults; then
30401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30403 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30404 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30407 # Have a temporary directory for convenience. Make it in the build tree
30408 # simply because there is no reason against having it here, and in addition,
30409 # creating and moving files from /tmp can sometimes cause problems.
30410 # Hook for its removal unless debugging.
30411 # Note that there is a small window in which the directory will not be cleaned:
30412 # after its creation but before its name has been assigned to `$tmp'.
30416 trap 'exit_status=$?
30417 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30419 trap '{ (exit 1); exit 1; }' 1 2 13 15
30421 # Create a (secure) tmp directory for tmp files.
30424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30425 test -n "$tmp" && test -d "$tmp"
30428 tmp=./conf$$-$RANDOM
30429 (umask 077 && mkdir "$tmp")
30432 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30433 { (exit 1); exit 1; }
30436 # Set up the scripts for CONFIG_FILES section.
30437 # No need to generate them if there are no CONFIG_FILES.
30438 # This happens for instance with `./config.status config.h'.
30439 if test -n "$CONFIG_FILES"; then
30443 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30444 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30447 ac_cs_awk_cr=$ac_cr
30450 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30455 echo "cat >conf$$subs.awk <<_ACEOF" &&
30456 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30458 } >conf$$subs.sh ||
30459 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30460 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30461 { (exit 1); exit 1; }; }
30462 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30464 for ac_last_try in false false false false false :; do
30465 . ./conf$$subs.sh ||
30466 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30467 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30468 { (exit 1); exit 1; }; }
30470 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30471 if test $ac_delim_n = $ac_delim_num; then
30473 elif $ac_last_try; then
30474 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30475 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30476 { (exit 1); exit 1; }; }
30478 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30481 rm -f conf$$subs.sh
30483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30484 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30488 s/^/S["/; s/!.*/"]=/
30498 s/\(.\{148\}\).*/\1/
30500 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30505 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30512 s/\(.\{148\}\).*/\1/
30514 s/["\\]/\\&/g; s/^/"/; s/$/"/
30518 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30523 ' <conf$$subs.awk | sed '
30528 ' >>$CONFIG_STATUS || ac_write_fail=1
30529 rm -f conf$$subs.awk
30530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30532 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30533 for (key in S) S_is_set[key] = 1
30539 nfields = split(line, field, "@")
30541 len = length(field[1])
30542 for (i = 2; i < nfields; i++) {
30544 keylen = length(key)
30545 if (S_is_set[key]) {
30547 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30548 len += length(value) + length(field[++i])
30559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30560 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30561 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30564 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30565 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30566 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30567 { (exit 1); exit 1; }; }
30570 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30571 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30572 # trailing colons and then remove the whole line if VPATH becomes empty
30573 # (actually we leave an empty line to preserve line numbers).
30574 if test "x$srcdir" = x.; then
30575 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30576 s/:*\$(srcdir):*/:/
30577 s/:*\${srcdir}:*/:/
30579 s/^\([^=]*=[ ]*\):*/\1/
30585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30586 fi # test -n "$CONFIG_FILES"
30588 # Set up the scripts for CONFIG_HEADERS section.
30589 # No need to generate them if there are no CONFIG_HEADERS.
30590 # This happens for instance with `./config.status Makefile'.
30591 if test -n "$CONFIG_HEADERS"; then
30592 cat >"$tmp/defines.awk" <<\_ACAWK ||
30596 # Transform confdefs.h into an awk script `defines.awk', embedded as
30597 # here-document in config.status, that substitutes the proper values into
30598 # config.h.in to produce config.h.
30600 # Create a delimiter string that does not exist in confdefs.h, to ease
30601 # handling of long lines.
30603 for ac_last_try in false false :; do
30604 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30605 if test -z "$ac_t"; then
30607 elif $ac_last_try; then
30608 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30609 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30610 { (exit 1); exit 1; }; }
30612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30616 # For the awk script, D is an array of macro values keyed by name,
30617 # likewise P contains macro parameters if any. Preserve backslash
30618 # newline sequences.
30620 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30622 s/.\{148\}/&'"$ac_delim"'/g
30625 s/^[ ]*#[ ]*define[ ][ ]*/ /
30632 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30634 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30638 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30639 D["\1"]=" \3\\\\\\n"\\/p
30641 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30646 s/.\{148\}/&'"$ac_delim"'/g
30651 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30654 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30656 ' <confdefs.h | sed '
30657 s/'"$ac_delim"'/"\\\
30658 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30661 for (key in D) D_is_set[key] = 1
30664 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30666 split(line, arg, " ")
30667 if (arg[1] == "#") {
30671 defundef = substr(arg[1], 2)
30674 split(mac1, mac2, "(") #)
30676 prefix = substr(line, 1, index(line, defundef) - 1)
30677 if (D_is_set[macro]) {
30678 # Preserve the white space surrounding the "#".
30679 print prefix "define", macro P[macro] D[macro]
30682 # Replace #undef with comments. This is necessary, for example,
30683 # in the case of _POSIX_SOURCE, which is predefined and required
30684 # on some systems where configure will not decide to define it.
30685 if (defundef == "undef") {
30686 print "/*", prefix defundef, macro, "*/"
30694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30695 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30696 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30697 { (exit 1); exit 1; }; }
30698 fi # test -n "$CONFIG_HEADERS"
30701 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30706 :[FHLC]) ac_mode=$ac_tag; continue;;
30708 case $ac_mode$ac_tag in
30710 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30711 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30712 { (exit 1); exit 1; }; };;
30713 :[FH]-) ac_tag=-:-;;
30714 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30731 -) ac_f="$tmp/stdin";;
30732 *) # Look for the file first in the build tree, then in the source tree
30733 # (if the path is not absolute). The absolute path cannot be DOS-style,
30734 # because $ac_f cannot contain `:'.
30738 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30740 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30741 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30742 { (exit 1); exit 1; }; };;
30744 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30745 ac_file_inputs="$ac_file_inputs '$ac_f'"
30748 # Let's still pretend it is `configure' which instantiates (i.e., don't
30749 # use $as_me), people would be surprised to read:
30750 # /* config.h. Generated by config.status. */
30751 configure_input='Generated from '`
30752 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30754 if test x"$ac_file" != x-; then
30755 configure_input="$ac_file. $configure_input"
30756 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30757 $as_echo "$as_me: creating $ac_file" >&6;}
30759 # Neutralize special characters interpreted by sed in replacement strings.
30760 case $configure_input in #(
30761 *\&* | *\|* | *\\* )
30762 ac_sed_conf_input=`$as_echo "$configure_input" |
30763 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30764 *) ac_sed_conf_input=$configure_input;;
30768 *:-:* | *:-) cat >"$tmp/stdin" \
30769 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30770 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30771 { (exit 1); exit 1; }; } ;;
30776 ac_dir=`$as_dirname -- "$ac_file" ||
30777 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30778 X"$ac_file" : 'X\(//\)[^/]' \| \
30779 X"$ac_file" : 'X\(//\)$' \| \
30780 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30781 $as_echo X"$ac_file" |
30782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30786 /^X\(\/\/\)[^/].*/{
30801 -*) as_dir=./$as_dir;;
30803 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30807 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30808 *) as_qdir=$as_dir;;
30810 as_dirs="'$as_qdir' $as_dirs"
30811 as_dir=`$as_dirname -- "$as_dir" ||
30812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30813 X"$as_dir" : 'X\(//\)[^/]' \| \
30814 X"$as_dir" : 'X\(//\)$' \| \
30815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30816 $as_echo X"$as_dir" |
30817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30821 /^X\(\/\/\)[^/].*/{
30834 test -d "$as_dir" && break
30836 test -z "$as_dirs" || eval "mkdir $as_dirs"
30837 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30838 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30839 { (exit 1); exit 1; }; }; }
30843 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30845 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30846 # A ".." for each directory in $ac_dir_suffix.
30847 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30848 case $ac_top_builddir_sub in
30849 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30850 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30853 ac_abs_top_builddir=$ac_pwd
30854 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30855 # for backward compatibility:
30856 ac_top_builddir=$ac_top_build_prefix
30859 .) # We are building in place.
30861 ac_top_srcdir=$ac_top_builddir_sub
30862 ac_abs_top_srcdir=$ac_pwd ;;
30863 [\\/]* | ?:[\\/]* ) # Absolute name.
30864 ac_srcdir=$srcdir$ac_dir_suffix;
30865 ac_top_srcdir=$srcdir
30866 ac_abs_top_srcdir=$srcdir ;;
30867 *) # Relative name.
30868 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30869 ac_top_srcdir=$ac_top_build_prefix$srcdir
30870 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30872 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30881 ac_MKDIR_P=$MKDIR_P
30883 [\\/$]* | ?:[\\/]* ) ;;
30884 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30889 # If the template does not know about datarootdir, expand it.
30890 # FIXME: This hack should be removed a few years after 2.60.
30891 ac_datarootdir_hack=; ac_datarootdir_seen=
30904 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30905 *datarootdir*) ac_datarootdir_seen=yes;;
30906 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30907 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30908 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30911 ac_datarootdir_hack='
30912 s&@datadir@&$datadir&g
30913 s&@docdir@&$docdir&g
30914 s&@infodir@&$infodir&g
30915 s&@localedir@&$localedir&g
30916 s&@mandir@&$mandir&g
30917 s&\\\${datarootdir}&$datarootdir&g' ;;
30921 # Neutralize VPATH when `$srcdir' = `.'.
30922 # Shell code in configure.ac might set extrasub.
30923 # FIXME: do we really want to maintain this feature?
30924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30925 ac_sed_extra="$ac_vpsub
30928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30931 s|@configure_input@|$ac_sed_conf_input|;t t
30932 s&@top_builddir@&$ac_top_builddir_sub&;t t
30933 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30934 s&@srcdir@&$ac_srcdir&;t t
30935 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30936 s&@top_srcdir@&$ac_top_srcdir&;t t
30937 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30938 s&@builddir@&$ac_builddir&;t t
30939 s&@abs_builddir@&$ac_abs_builddir&;t t
30940 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30941 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30942 $ac_datarootdir_hack
30944 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30945 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30946 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30947 { (exit 1); exit 1; }; }
30949 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30950 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30951 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30952 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30953 which seems to be undefined. Please make sure it is defined." >&5
30954 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30955 which seems to be undefined. Please make sure it is defined." >&2;}
30959 -) cat "$tmp/out" && rm -f "$tmp/out";;
30960 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30962 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30963 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30964 { (exit 1); exit 1; }; }
30970 if test x"$ac_file" != x-; then
30972 $as_echo "/* $configure_input */" \
30973 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30974 } >"$tmp/config.h" \
30975 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30976 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30977 { (exit 1); exit 1; }; }
30978 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30979 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30980 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30983 mv "$tmp/config.h" "$ac_file" \
30984 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30985 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30986 { (exit 1); exit 1; }; }
30989 $as_echo "/* $configure_input */" \
30990 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30991 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30992 $as_echo "$as_me: error: could not create -" >&2;}
30993 { (exit 1); exit 1; }; }
31001 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31004 # Prefer the file from the source tree if names are identical.
31005 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31006 ac_source=$srcdir/$ac_source
31009 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31010 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31012 if test ! -r "$ac_source"; then
31013 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31014 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31015 { (exit 1); exit 1; }; }
31019 # Try a relative symlink, then a hard link, then a copy.
31021 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31022 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31024 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31025 ln "$ac_source" "$ac_file" 2>/dev/null ||
31026 cp -p "$ac_source" "$ac_file" ||
31027 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31028 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31029 { (exit 1); exit 1; }; }
31032 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31033 $as_echo "$as_me: executing $ac_file commands" >&6;}
31038 case $ac_file$ac_mode in
31039 "check_win32_symlinks":C)
31040 # Links sometimes fail undetected on Mingw -
31041 # so here we detect it and warn the user
31042 for FILE in $CONFIG_LINKS
31044 # test -e works for symlinks in the MinGW console
31045 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31046 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31049 "src/include/pg_config.h":H)
31050 # Update timestamp for pg_config.h (see Makefile.global)
31051 echo >src/include/stamp-h
31053 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31059 { (exit 0); exit 0; }
31061 chmod +x $CONFIG_STATUS
31062 ac_clean_files=$ac_clean_files_save
31064 test $ac_write_fail = 0 ||
31065 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31066 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31067 { (exit 1); exit 1; }; }
31070 # configure is writing to config.log, and then calls config.status.
31071 # config.status does its own redirection, appending to config.log.
31072 # Unfortunately, on DOS this fails, as config.log is still kept open
31073 # by configure, so config.status won't be able to write to it; its
31074 # output is simply discarded. So we exec the FD to /dev/null,
31075 # effectively closing config.log, so it can be properly (re)opened and
31076 # appended to by config.status. When coming back to configure, we
31077 # need to make the FD available again.
31078 if test "$no_create" != yes; then
31080 ac_config_status_args=
31081 test "$silent" = yes &&
31082 ac_config_status_args="$ac_config_status_args --quiet"
31084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31087 # would make configure fail if this is the last instruction.
31088 $ac_cs_success || { (exit 1); exit 1; }
31090 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31091 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31092 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}